diff contrib/web/php-admin/htdocs/index.php @ 759:73c8715367fb

Better techniques for locating support files in php-admin - existing installations will need to have their conf/config.php altered to set the variable $confdir
author Ben Schmidt
date Wed, 06 Oct 2010 10:35:04 +1100
parents 6d354f3a8d90
children 331115b58da4
line wrap: on
line diff
--- a/contrib/web/php-admin/htdocs/index.php	Wed Oct 06 10:12:23 2010 +1100
+++ b/contrib/web/php-admin/htdocs/index.php	Wed Oct 06 10:35:04 2010 +1100
@@ -26,8 +26,8 @@
  * IN THE SOFTWARE.
  */
 
-require("class.rFastTemplate.php");
-require("../conf/config.php");
+require(dirname(dirname(__FILE__))."/conf/config.php");
+require(dirname(__FILE__)."/class.rFastTemplate.php");
 
 $tpl = new rFastTemplate($templatedir);