/** * 作者:狐狸<*****@*****.**> * 功能描述:request 相关 * @version $Id: request.func.php 5114 2013-11-27 07:06:10Z wuliyong $ */ function __request($action, $post = array(), &$error) { settype($post, "array"); $post['system_env'] = $post['system_env'] ? array_merge((array) $post['system_env'], (array) get_system_env()) : (array) get_system_env(); $aclData = upsCtrl()->Account(); $post['__acl__']['account'] = $aclData['account']; $post['__acl__']['token'] = $aclData['token']; $data = '_POST=' . urlencode(base64_encode(serialize($post))); $config = jconf::get(); $charset = strtolower(str_replace('-', '', $config['charset'])); $version = urlencode(SYS_VERSION); $pid = 2; #if NEDU if (defined('NEDU_MOYO')) { $pid = 3; } #endif $server_url = base64_decode('aHR0cDovL3VwZGF0ZS5jZW53b3IuY29tL3NlcnZlci5yZXF1ZXN0LnBocA==') . "?do={$action}&pid={$pid}&charset={$charset}&iver={$version}"; $response = dfopen($server_url, 5000000, $data); $error_msg = array(1 => "error_nodata", 2 => "error_format"); if ($response == "") { $result = $error_msg[$error = 1]; } else { $int = preg_match("/<DATA>(.*)<\\/DATA>/s", $response, $m); if ($int < 1) { $result = $error_msg[$error = 2]; } else { if (false !== strpos($m[1], "\n")) { $m[1] = preg_replace('~\\s+\\w{1,10}\\s+~', '', $m[1]); } $response = unserialize(base64_decode($m[1])); $result = $response['data']; if ($response['type']) { $error = 3; } } } return $result; }
function ShowBody($body) { echo $body; if (upsCtrl()->ccDSP()) { echo "P" . "o" . "w" . "e" . "r" . "e" . "d" . " b" . "y" . " J" . "i" . "s" . "h" . "i" . "G" . "o" . "u"; } }
) } </script> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="12"> <div class="NavaL ndt">系统版本信息(<a href="http://cnrdn.com/35f4" target=_blank>关注新版</a>)</div> </td> </tr> <tr> <td> <span id="version_str" >本站所用版本:V<?php echo $GLOBALS['_J']['config']['sys_version']; ?> <?php echo SYS_PUBLISHED; ?> <?php echo SYS_BUILD; ?> (<?php echo $this->Config['charset']; ?> ) </span> <span id="ups_alert"></span> <br/><?php echo upsCtrl()->LicenceDSP(); ?> </td> </td> <td> <style type="text/css">.rssbutton input{ margin:0; padding:0; box-shadow: 0 0 0 #fff inset;}</style> 想了解最新的安全更新、功能预览、运营技巧吗?请关注官方微信(搜索帐号<span style="color:#D94446">jishigou</span>或扫一扫):<br/> <a href="http://t.jishigou.net/" target="_blank"> <img width="150px" height="150px" alt="扫一扫有惊喜哦!" title="扫一扫有惊喜哦!" src="images/jishigou_qr_code.jpg" border="0"/></a> </td> </tr> </table> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="12"> <div class="NavaL ndt">主要设置引导</div> </td> </tr> <tr class=""> <td> 1、初期设置: <a href="admin.php?mod=setting&code=modify_normal">核心设置</a> | <a href="admin.php?mod=show&code=editlogo"><span style="color:#266AAE">Logo更新</span></a> | <a href="admin.php?mod=setting&code=modify_mobile"><span style="color:#D94446">手机应用</span></a> | <a href="admin.php?mod=setting&code=modify_smtp">邮件设置</a> | <a href="admin.php?mod=setting&code=modify_rewrite">伪静态</a> | <a href="admin.php?mod=vipintro&code=categorylist"><span style="color:#D94446">V认证分类</span></a> | <a href="admin.php?mod=ucenter&code=ucenter">UCenter整合</a> <br> 2、运营调整: <a href="admin.php?mod=setting&code=modify_register">注册控制</a> | <a href="admin.php?mod=setting&code=modify_filter">关键词过滤</a> | <a href="admin.php?mod=setting&code=regfollow"><span style="color:#266AAE">自动关注</span></a> |
function upgrade_check() { $ckey = 'fcache/home.console.upgrade.check'; $ctim = 86400 * 3; $last = cache_file('get', $ckey); $last && exit($last); $response = request('upgrade', array(), $error); upsCtrl()->RPSFailed($response) && exit('~'); $version = is_array($response) ? $response['version'] : SYS_VERSION; $build = is_array($response) ? 'build ' . $response['build'] : SYS_BUILD; if ($version == SYS_VERSION) { $alert = 'noups'; cache_file('set', $ckey, $alert, $ctim); exit($alert); } $version == '' && exit('noups'); $aver = '发现新版本:' . $version . ' ' . $build; cache_file('set', $ckey, $aver, $ctim); exit($aver); }
private function checkResponse($response) { if (!is_string($response)) { return $response; } if (upsCtrl()->RPSFailed($response)) { include template('admin/upgrade_acl_signup'); exit; } return $response; }
?> </div> <?php if ($k_g == count($naviList['list'])) { ?> <span><?php echo $GLOBALS['_J']['config']['copyright']; ?> </span> <span><?php echo $GLOBALS['_J']['config']['tongji']; ?> </span> <span class="MIB_linkar" style="display:none;"> <?php $__server_execute_time = round(microtime(true) - $GLOBALS['_J']['time_start'], 5) . " Second "; ?> <?php $__gzip_tips = defined('GZIP') && GZIP ? " Gzip Enable." : "Gzip Disable."; ?> <span title="<?php echo $__server_execute_time; ?> ,<?php echo $__gzip_tips; ?> ">网页执行信息</span> <?php echo upsCtrl()->Comlic(); ?> </span> <?php } ?> <?php } }