?? myindex.php
字號:
<?phpdefine('CURSCRIPT', 'myinfo');require_once '../include/common.php';if(empty($cbc_uid)) { redirect('璇峰厛鐧婚檰', '../user/login.php');}if( (!@include_once '../webdata/cache/cache_userweek.php') || ($timestamp - $expiration > 10) ){$contents = "\r\n\n\$userWeekCache = array\r\n(\r\n";$query = $DB->query("SELECT uid, username, face FROM {$tablepre}users ORDER BY uid DESC LIMIT 0, 12");while($rs = $DB->fetch_array($query)) { $rs['face'] = $rs['face'] ? "../webdata/userface/" . $rs['face'] : '../images/common/head_no.gif'; $contents .= "'$rs[uid]' => array('username'=>'".addslashes($rs[username])."', 'face'=>'$rs[face]'), \r\n";} $contents .= ");"; $contents = preg_replace('/(.+?),/Us', '\\1\\2', $contents); if($fp = @fopen(FLY_ROOT . "/webdata/cache/cache_userweek.php", 'wb')) { @fwrite($fp, "<?php\r\nif(!defined('IN_FLY')) exit('Access Denied');\r\n\n\$expiration='".(time())."';\r\n".$contents."\r\n?>"); @fclose($fp); @chmod($cachefile, 0777); } else { echo 'Can not write to cache files, please check directory ./cache/ .'; exit; }}include showPage('myindex');?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -