<?php

/* O88ooO888i   .=O888O=
*    +8+        O8=    i88   
*    88.      88;     :88  
*   I8O      I88      +8o  
*  O8:       I88     =8O   
* ;88         =88+i+8o~    
*
*
*
*
*
*
*
*别看了              会怀孕的
*
*
*
*
*
*
*
*
*/
require_once './Application/core.php';
runtime();
App::run();
Exemple #2
0
<?php

/**
 * @Author: gaohuabin
 * @Date:   2015-12-03 21:24:15
 * @Last Modified by:   gaohuabin
 * @Last Modified time: 2015-12-20 22:33:08
 */
//防止恶意调用
if (!defined('IN_TG')) {
    exit('Access Defined!');
}
//关闭数据库
close();
?>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.lettering.js"></script>
<script>
    $(document).ready(function() {
        $(".logo").lettering().children('span').wrap('<span />');
    });
</script>
<footer class="footer h150 mt20 tc">
    <p>该页面执行总共耗时:<mark><?php 
echo round(runtime() - TIME_START, 4);
?>
</mark></p>
</footer>
        </div>
    </div>
</div>
<div id="footer">
    <div class="footer">
        <p><a href="http://www.finecms.net" target="_blank"><?php 
echo lang('a-com-12');
?>
</a> |&nbsp;
            <a href="http://bbs.finecms.net" target="_blank"><?php 
echo lang('a-com-13');
?>
</a></p>
        <p class="ptop">Powered by <?php 
echo CMS_NAME;
?>
 v<?php 
echo CMS_VERSION;
?>
 © 2011-<?php 
echo date('Y');
?>
 FineCMS Inc, Processed in <?php 
echo runtime();
?>
 second(s).</p>
    </div>
</div>
</body>
</html>
 public function cacheAction($show = 0, $site_id = 0)
 {
     if ($show == 0 && !$this->get('qok')) {
         $this->adminMsg(lang('a-lin-8'), url('admin/linkage/cache', array('qok' => 1)), 0, 1, 2);
     }
     $data = $this->link->where('keyid=0')->select();
     $list = $site = array();
     $site_id = $site_id ? $site_id : ($_GET['siteid'] ? $_GET['siteid'] : $this->siteid);
     foreach ($data as $t) {
         $keyid = $t['id'];
         if (empty($t['site'])) {
             //全局类型
             $list[$keyid] = $t;
             $sdata = $this->link->from('linkage')->where('keyid=' . $keyid)->order(array('parentid ASC', 'listorder ASC', 'id ASC'))->select();
             $_data = $this->getChildData($t['parentid'], $sdata);
             $list[$keyid]['data'] = $this->setChildData($t['parentid'], $_data);
         } else {
             $site[$keyid] = $t;
             $sdata = $this->link->from('linkage')->where('keyid=' . $keyid . ' AND site=' . $site_id)->order(array('parentid ASC', 'listorder ASC', 'id ASC'))->select();
             $_data = $this->getChildData($t['parentid'], $sdata);
             $site[$keyid]['data'] = $this->setChildData($t['parentid'], $_data);
         }
     }
     $this->cache->set('linkage', $list);
     $this->cache->set('linkage_' . $site_id, $site);
     $show or $this->adminMsg(lang('a-update') . '(' . runtime() . 's)', '', 3, 1, 1);
 }
Exemple #5
0
//防止恶意调用
if (!defined('IN_TG')) {
    exit('Access Defined!');
}
//转换硬路径常量
define('ROOT_PATH', substr(dirname(__FILE__), 0, -8));
//拒绝PHP低版本
if (PHP_VERSION < '4.1.0') {
    echo "PHP version is too low!";
    exit;
}
//引入函数库
require ROOT_PATH . 'includes/global.func.php';
require ROOT_PATH . 'includes/mysql.func.php';
//执行计时开始
define('TIME_START', runtime());
//$GLOBALS['time_start'] = runtime();
//数据库连接
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PWD', '');
define('DB_NAME', 'bbs');
//初始化数据库
connect();
select_db();
set_names();
//私信提醒,得到登录用户bbs_state=0的字段的总和
$message = @fetch_array("SELECT COUNT(bbs_id) AS count FROM bbs_message WHERE bbs_state=0 AND bbs_touser='******'username']}'");
if (empty($message['count'])) {
    $GLOBALS['message'] = '<strong style="color:orange">(0)</strong>';
} else {
    ?>
        <tr>
            <td colspan="99" align="left" style="font-size:12px">
                当前使用的是模型格式默认模板(views/admin/content_default.html),您可以将默认模板文件复制命名为(<?php 
    echo $diy_file;
    ?>
),这样方便您重新布局列表显示。
            </td>
        </tr>
        <?php 
}
?>
		</tbody>
		</table>
		<?php 
echo str_replace('<a>共' . $total . '条</a>', '<a>耗时' . runtime() . '秒</a><a>共' . $total . '条</a>', $pagelist);
?>
		</form>
	</div>
</div>
<script type="text/javascript">
$(function(){
    window.top.art.dialog({id:'clz'}).close();
	$('a').click(
		function(){
		    var clz = $(this).attr('clz');
			if (clz != '1') window.top.art.dialog({ id:'clz',title:'loading',fixed:true,lock:false,content: '<img src="<?php 
echo ADMIN_THEME;
?>
images/onLoad.gif">' });
		}