Commit 13528c0c authored by zhangkuanguang's avatar zhangkuanguang

本地化

parent 7b5f75df
<?php
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
......
......@@ -8,7 +8,7 @@ $IpHostAllow =explode('.',GetIp());
//if($IpHostAllow['0']=='192' || $IpHostAllow['0']=='127')
$server_ip = $_SERVER['SERVER_ADDR'];
if($server_ip == '192.168.105.107')
if(in_array($server_ip,array('192.168.105.107','127.0.0.1')))
{
$memcached['servers'] = array(
'default' => array(
......
......@@ -48,7 +48,7 @@ if (defined('ENVIRONMENT'))
}
}
if($_COOKIE['zkg']){
if($_COOKIE['admin_debug']){
error_reporting(E_ALL);
ini_set("display_errors",TRUE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment