📄 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 + -