"] i.e.: $directory_data = $varray["directory_data"]; The associative array ($varray) enables the configuration settings to be modified to include additional variables. */ $varray = array(); // Load the onSite environment $baseconfig = '../env.sh'; if(is_file($baseconfig) == FALSE) { echo "Initialization file not found"; exit; } readConfigFile($baseconfig); // Load the sitemap variables $directory_base = $varray["directory_base"]; $directory_onsite = $directory_base . "/" . $varray["directory_onsite"]; $directory_config = $directory_onsite . "/" . $varray["directory_config"]; $siteconfig = $_REQUEST["siteconfig"]; $filename_config = $directory_config . "/" . $siteconfig; if(is_file($filename_config) == FALSE) { $filename_config = $directory_onsite . "/config.init"; } readConfigFile($filename_config); function readConfigFile($cfilename) { global $varray; $cfilehandle = fopen($cfilename, "r"); while (!feof($cfilehandle)) { $configrow = fgets($cfilehandle, 4096); $hashexists = strncmp($configrow, '#', 1); if( $hashexists == 0) continue; $configrow = str_replace("export", "", $configrow); $configrow = trim($configrow); $varlen = strpos($configrow, "="); if($varlen == false) continue; $varname = substr($configrow, 0, $varlen); $varvalue = substr($configrow, ++$varlen); $varray[$varname] = $varvalue; } // Uncomment the following line to run this script in a standalone mode. // foreach($varray as $key => $value) echo $key . ' ' . $value . '
'; fclose($cfilehandle); } ?> onSite - Sitemap File Manager
Select Configuration: Save As:    
Status
Select a sitemap configuration.
[ + ] [ - ] Directory Tree View
Select a sitemap configuration.
[ + ] [ - ] Sitemap Configuration
Select a sitemap configuration.