Commit 7339fc55 authored by chenchuanwen's avatar chenchuanwen

report

parent 13b2f3b2
......@@ -4,15 +4,16 @@ mb_internal_encoding("UTF-8");
define("TIMESTAMP",time());
define("APPLICATION_PATH", realpath(dirname(__FILE__) . '/../'));
define("APP_ENV",ini_get('yaf.environ'));
file_put_contents('test.txt','ab'.$_POST['data']['debug'].'abc');
if(APP_ENV=='develop'){
// error_reporting(E_ALL);
}
if(APP_ENV=='test' || APP_ENV=='pre' ||APP_ENV=='ccwdevelop' || APP_ENV=='product' || APP_ENV=='productone'){
if(isset($_POST['data']['debug'])&&!empty($_POST['data']['debug'])){
file_put_contents('test.txt','1');
// define("DEBUG",1);
// error_reporting(E_ALL);
}else{
file_put_contents('test.txt','2');
error_reporting(0);
}
}
......
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