芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/asm/js/jscripts/tiny_mce/plugins/ajaxfilemanager/inc/class.auth.php
__construct(); } /** * check if the user has logged * * @return boolean */ function isLoggedIn() { return (!empty($_SESSION[$this->__loginIndexInSession])?true:false); } /** * validate the username & password * @return boolean * */ function login() { if($_POST['username'] == CONFIG_LOGIN_USERNAME && $_POST['password'] == CONFIG_LOGIN_PASSWORD) { $_SESSION[$this->__loginIndexInSession] = true; return true; }else { return false; } } } ?>