<?php
defined('IN_PHPCMS') or exit('No permission resources.');
header("Content-Type:text/html;charset=utf-8");
//pc_base::load_sys_class('model', '../phpcms/libs/classes/', 0);
pc_base::load_sys_class('model', '', 0);
class news extends model{
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'news';
parent::__construct();
}
}
//
//setcache("baidudaypushnewsid",0, 'commons');
//setcache("baidudaypushartsid",0, 'commons');die;
$nid=0;$aid=0;
$today = strtotime(date("Y-m-d"),time());
if(getcache('baidudaypushnewsid','commons')){
$nid = getcache("