# HG changeset patch # User ymh # Date 1272459558 -7200 # Node ID 640852e46afa18fb621d4ed7066e30892d3ad3b4 # Parent 4ddb2636237b89aefd9e2e5635dd630540b3f71b temprary authorize access to frontend_dev and backend_dev diff -r 4ddb2636237b -r 640852e46afa db/create_user.sql --- 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 diff -r 4ddb2636237b -r 640852e46afa web/thdProject/web/backend_dev.php --- 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'); diff -r 4ddb2636237b -r 640852e46afa web/thdProject/web/frontend_dev.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');