Browse Source

no message

DESKTOP-9JTA2JJ\HP 5 năm trước cách đây
mục cha
commit
507ba4110c
1 tập tin đã thay đổi với 24 bổ sung24 xóa
  1. 24 24
      api/index.php

+ 24 - 24
api/index.php

@@ -37,7 +37,7 @@
  */
 ini_set('session.cookie_path', '/');
 
-ini_set('session.cookie_domain', 'www.lampmind.com'); //注意domain.com换成你自己的域名
+// ini_set('session.cookie_domain', 'www.lampmind.com'); //注意domain.com换成你自己的域名
 
 // ini_set('session.cookie_lifetime', '1800');
 /*
@@ -68,31 +68,31 @@ ini_set('session.cookie_domain', 'www.lampmind.com'); //注意domain.com换成
  * Different environments will require different levels of error reporting.
  * By default development will show errors but testing and live will hide them.
  */
-switch (ENVIRONMENT)
-{
-	case 'development':
-		error_reporting(-1);
-		ini_set('display_errors', 1);
-	break;
+// switch (ENVIRONMENT)
+// {
+// 	case 'development':
+// 		error_reporting(-1);
+// 		ini_set('display_errors', 1);
+// 	break;
 
-	case 'testing':
-	case 'production':
-		ini_set('display_errors', 0);
-		if (version_compare(PHP_VERSION, '5.3', '>='))
-		{
-			error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
-		}
-		else
-		{
-			error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
-		}
-	break;
+// 	case 'testing':
+// 	case 'production':
+// 		ini_set('display_errors', 0);
+// 		if (version_compare(PHP_VERSION, '5.3', '>='))
+// 		{
+// 			error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
+// 		}
+// 		else
+// 		{
+// 			error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
+// 		}
+// 	break;
 
-	default:
-		header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
-		echo 'The application environment is not set correctly.';
-		exit(1); // EXIT_ERROR
-}
+// 	default:
+// 		header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
+// 		echo 'The application environment is not set correctly.';
+// 		exit(1); // EXIT_ERROR
+// }
 
 /*
  *---------------------------------------------------------------