Index: trunk/admin/install/prerequisit_errors.php =================================================================== diff -u -r898 -r1990 --- trunk/admin/install/prerequisit_errors.php (.../prerequisit_errors.php) (revision 898) +++ trunk/admin/install/prerequisit_errors.php (.../prerequisit_errors.php) (revision 1990) @@ -2,7 +2,6 @@ define('THIS_FILE', 'admin/install/prerequisit_errors.php'); - $pathtoroot = ""; if(!strlen($pathtoroot)) { @@ -56,6 +55,13 @@ $pathtoroot = ".".$pathchar; } } + +$sub = substr($pathtoroot,strlen($pathchar)*-1); +if($sub!=$pathchar) +{ + $pathtoroot = $pathtoroot.$pathchar; +} + function GetPathChar($path = null) { if( !isset($path) ) $path = $GLOBALS['pathtoroot']; @@ -72,8 +78,12 @@ $rootURL = implode('/', $tmp).'/'; unset($tmp); -$prerequisit_path = $pathtoroot.$pathchar.$_GET['module'].$pathchar."admin".$pathchar."install".$pathchar."prerequisit.php"; +error_reporting('E_ALL'); +ini_set('display_errors', 1); +require_once($pathtoroot."/kernel/startup.php"); +$prerequisit_path = $pathtoroot.$_GET['module'].$pathchar."admin".$pathchar."install".$pathchar."prerequisit.php"; + function print_pre($s) { echo '
'.print_r($s, true).'
'; @@ -86,6 +96,9 @@ { $charset = 'iso-8859-1'; } + +$rootURL .= 'admin/'; + ?> @@ -125,7 +138,7 @@ if( file_exists($prerequisit_path) ) { $pathtoroot .= $pathchar; - $show_errors = true; + $show_errors = true; include_once($prerequisit_path); }