temprary authorize access to frontend_dev and backend_dev
authorymh <ymh.work@gmail.com>
Wed, 28 Apr 2010 14:59:18 +0200
changeset 87 640852e46afa
parent 86 4ddb2636237b
child 89 2ab0257408d6
temprary authorize access to frontend_dev and backend_dev
db/create_user.sql
web/thdProject/web/backend_dev.php
web/thdProject/web/frontend_dev.php
--- a/db/create_user.sql	Wed Apr 28 14:36:49 2010 +0200
+++ b/db/create_user.sql	Wed Apr 28 14:59:18 2010 +0200
@@ -1,4 +1,5 @@
 CREATE USER 'mosatags'@'localhost' IDENTIFIED BY 'shee6Nai';
 CREATE USER 'mosatags'@'%' IDENTIFIED BY 'shee6Nai';
 GRANT ALL PRIVILEGES ON *.* TO 'mosatags'@'localhost';
-GRANT ALL PRIVILEGES ON *.* TO 'mosatags'@'%';
\ No newline at end of file
+GRANT ALL PRIVILEGES ON *.* TO 'mosatags'@'%';
+FLUSH PRIVILEGES;
\ No newline at end of file
--- a/web/thdProject/web/backend_dev.php	Wed Apr 28 14:36:49 2010 +0200
+++ b/web/thdProject/web/backend_dev.php	Wed Apr 28 14:59:18 2010 +0200
@@ -2,10 +2,10 @@
 
 // this check prevents access to debug front controllers that are deployed by accident to production servers.
 // feel free to remove this, extend it or make something more sophisticated.
-if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
+/*if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
 {
   die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
-}
+}*/
 
 require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
 
--- a/web/thdProject/web/frontend_dev.php	Wed Apr 28 14:36:49 2010 +0200
+++ b/web/thdProject/web/frontend_dev.php	Wed Apr 28 14:59:18 2010 +0200
@@ -2,10 +2,10 @@
 
 // this check prevents access to debug front controllers that are deployed by accident to production servers.
 // feel free to remove this, extend it or make something more sophisticated.
-if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
+/*if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
 {
   die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
-}
+}*/
 
 require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');