public function login() { $input['account'] = $_SESSION['account'] = hy_rand(6); $input['pwd'] = $_SESSION['pwd'] = hy_rand(6); $this->assign_global(); $this->assign('input', $input); $this->display('login.html'); }
if (!isset($_data['files'][$k])) { echo 'FILE:' . base64_decode($k) . ' is redundant<br>'; } else { if ($_data['files'][$k] != $v) { echo 'FILE:' . base64_decode($k) . ' is modified<br>'; } } } foreach ($_data['files'] as $k => $v) { if (!isset($_DATA['files'][$k])) { echo 'FILE:' . base64_decode($k) . ' is miss<br>'; } } } } else { $_SESSION['field'] = hy_rand(6); home_page(); } /*====================函数部分=====================*/ function traverse($path = '.', $print = true) { global $_EXCEPT, $_DATA; $current_dir = opendir($path); //opendir()����һ��Ŀ¼���,ʧ�ܷ���false while (($file = readdir($current_dir)) !== false) { //readdir()���ش�Ŀ¼����е�һ����Ŀ $sub_dir = $path . DIRECTORY_SEPARATOR . $file; //������Ŀ¼·�� $relat_url = str_replace(ROOT_PATH . '\\', '', $sub_dir); if ($file == '.' || $file == '..' || in_array($path, $_EXCEPT['dir']) || in_array($path . $file, $_EXCEPT['file'])) { continue;