WARNING: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/tanyan.yykjjt.cn/wlb/functions/fun.php on line 638
- /www/wwwroot/tanyan.yykjjt.cn/wlb/lib/speed.php on line 515
510.
if($errno == E_WARNING)$msg = "WARNING";
511.
if($errno == E_NOTICE)$msg = "NOTICE";
512.
if($errno == E_STRICT)$msg = "STRICT";
513.
if($errno == 8192)$msg = "DEPRECATED";
514.
if($msg == "NOTICE") return ;;
515.
516.
err("$msg: $errstr in $errfile on line $errline");
}
517.
function err($msg){
518.
$traces = debug_backtrace();
519.
if(!$GLOBALS['debug']){
520.
header('HTTP/1.1 500 Internal Server Error');
- /www/wwwroot/tanyan.yykjjt.cn/wlb/functions/fun.php on line 638
633.
*/
634.
function GetIpLookup($ip = ''){
635.
if(empty($ip)){
636.
$ip = getip();
637.
}
638.
639.
$res =file_get_contents('http://apis.map.qq.com/ws/location/v1/ip?ip='.$ip.'&key=Z3CBZ-NIQ64-LOAUV-DEGM3-G46QZ-BNB2I');
if(empty($res)){return false;}
640.
$json_data=json_decode($res,true);
641.
if($json_data['status']==0){
642.
return $json_data;
643.
}else{
- /www/wwwroot/tanyan.yykjjt.cn/wlb/functions/fun.php on line 670
665.
$data['weekday']=date('w');//周几
666.
$data['date']=date('Ymd');
667.
$data['hour']=date('YmdH');
668.
$data['minute']=date('YmdHi');
669.
$data['time']=time();
670.
671.
$city_info=GetIpLookup($ip);
/* 腾讯 */
672.
if($city_info && $city_info['status']==0){
673.
$data['country']=$city_info['result']['ad_info']['nation'];
674.
$data['province']=$city_info['result']['ad_info']['province'];
675.
$data['city']=$city_info['result']['ad_info']['city'];
- /www/wwwroot/tanyan.yykjjt.cn/addons/news/controller/CompController.php on line 34
29.
// $this->newscatelist=get_model_other(array('cid' => 65,'is_verify' =>1),'news_article','*','sort desc, id desc',3);
30.
$this->team=get_model_one(array('id' => 73,'is_view' =>1),'news_cate');
31.
$this->teamlist=get_model_other(array('cid' => 73,'is_verify' =>1),'news_article','*','sort desc,id desc');
32.
$this->contact=get_model_one(array('id' => 70,'is_view' =>1),'news_cate');
33.
$one=get_model_one(array(), 'sys_webset');
34.
35.
if($one){$config=json_decode($one['config'],true);if($config['fwtongji']){visit_log();}}
36.
37.
}
38.
function actionIndex(){
39.
$catelist=$this->catelist;//所有栏目//
- /www/wwwroot/tanyan.yykjjt.cn/wlb/lib/speed.php on line 213
208.
209.
}
210.
public function __construct(){
211.
$this->init();
212.
/* 简介构造方法 */
213.
214.
if(method_exists($this,'_init')){$this->_init();}
}
215.
public function __get($name){return $this->_data[$name];}
216.
public function __set($name, $value){$this->_data[$name] = $value;}
217.
public function display($tpl_name='', $return = false){
218.
if($tpl_name==''){$tpl_name=$this->ca.'.html';};
- /www/wwwroot/tanyan.yykjjt.cn/wlb/lib/speed.php on line 113
108.
$str="Err: Method '$action_name ' of '$controller_name' is not exists!";
109.
}
110.
BaseController::err404($str);
111.
}
112.
}
113.
114.
$controller_obj = new $controller_name();
$controller_obj->$action_name();
115.
116.
117.
if($controller_obj->_auto_display){
118.
$auto_tpl_dir = (empty($__module) ? 'wlb'. DS.'view' : ADDONS.DS.$__module.DS.'view');
- /www/wwwroot/tanyan.yykjjt.cn/index.php on line 9
4.
define('APP_DIR', realpath('./'));
5.
define ('SITE_DOMAIN', strip_tags ( $_SERVER ['HTTP_HOST'] ) );
6.
define ('SITE_PATH', dirname ( __FILE__ ) );
7.
define('SYSNAME', "后台管理系统");
8.
define('IN',true);
9.
require(APP_DIR.'/wlb/lib/speed.php');