From: <pan...@us...> - 2009-03-01 18:22:57
|
Revision: 515 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=515&view=rev Author: panzaboi Date: 2009-03-01 18:22:55 +0000 (Sun, 01 Mar 2009) Log Message: ----------- Set Enviroment path for library and application Modified Paths: -------------- website/httpdocs/.htaccess website/httpdocs/index.php website/library/Application.php Modified: website/httpdocs/.htaccess =================================================================== --- website/httpdocs/.htaccess 2009-03-01 16:23:15 UTC (rev 514) +++ website/httpdocs/.htaccess 2009-03-01 18:22:55 UTC (rev 515) @@ -3,4 +3,7 @@ RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] -RewriteRule ^.*$ /index.php [NC,L] \ No newline at end of file +RewriteRule ^.*$ /index.php [NC,L] + +SetEnv LIBRARY_PATH D:/server/library/ +SetEnv APPLICATION_PATH D:/server/ \ No newline at end of file Modified: website/httpdocs/index.php =================================================================== --- website/httpdocs/index.php 2009-03-01 16:23:15 UTC (rev 514) +++ website/httpdocs/index.php 2009-03-01 18:22:55 UTC (rev 515) @@ -6,7 +6,7 @@ //$_docroot = dirname($_SERVER["DOCUMENT_ROOT"]); $_approot = dirname(__FILE__); -set_include_path("D:/server/library/;D:/server/httpdocs/;D:/server/config/;D:/server/lang/;D:/server/application/" . get_include_path()); +set_include_path($_SERVER['LIBRARY_PATH'] . ';' . $_SERVER['APPLICATION_PATH'] . 'httpdocs/;' . $_SERVER['APPLICATION_PATH'] . 'config/;' . $_SERVER['APPLICATION_PATH'] . 'lang/;' . $_SERVER['APPLICATION_PATH'] . 'application/;' . get_include_path()); require_once 'Application.php'; Modified: website/library/Application.php =================================================================== --- website/library/Application.php 2009-03-01 16:23:15 UTC (rev 514) +++ website/library/Application.php 2009-03-01 18:22:55 UTC (rev 515) @@ -208,7 +208,7 @@ } // Setup Dojo - Zend_Dojo::enableView($view); + //Zend_Dojo::enableView($view); // Setup JQuery ZendX_JQuery::enableView($view); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |