Index: trunk/admin/install.php =================================================================== diff -u -r32 -r41 --- trunk/admin/install.php (.../install.php) (revision 32) +++ trunk/admin/install.php (.../install.php) (revision 41) @@ -129,6 +129,16 @@ $configs[3] = "in-portal:configure_categories"; $mods[3] = "In-Portal"; + +// simulate rootURL variable: begin + $rootURL = 'http://'.dirname($_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']); + $tmp = explode('/', $rootURL); + if( $tmp[ count($tmp) - 1 ] == $admin) unset( $tmp[ count($tmp) - 1 ] ); + $rootURL = implode('/', $tmp).'/'; + unset($tmp); + echo "RU: $rootURL
"; +// simulate rootURL variable: end + if(strlen($g_DBType)>0 && strlen($state)>0 && $state !="dbinfo" && $state !="db_config_save") { require_once($pathtoroot."kernel/startup.php"); @@ -159,7 +169,7 @@ } require_once($pathtoroot.$admin."/install/inst_ado.php"); - +$helpURL = $rootURL.$admin.'/help/install_help.php?destform=popup&help_usage=install'; ?> @@ -183,10 +193,34 @@ function Continue() { document.iform1.submit(); } + + function CreatePopup(window_name, url, width, height) + { + // creates a popup window & returns it + if(url == null && typeof(url) == 'undefined' ) url = ''; + if(width == null && typeof(width) == 'undefined' ) width = 750; + if(height == null && typeof(height) == 'undefined' ) height = 400; + + + return window.open(url,window_name,'width='+width+',height='+height+',status=yes,resizable=yes,menubar=no,scrollbars=yes,toolbar=no'); + } + + function ShowHelp(section) + { + var frm = document.getElementById('help_form'); + + frm.section.value = section; + frm.method = 'POST'; + CreatePopup('HelpPopup','/help/blank.html', null, 600); + frm.target = 'HelpPopup'; + frm.submit(); + } + +
">