0)) { // Setup list of all timezones, calculate selected timezone require_once('../../lib/OA/Admin/Timezones.php'); $aTimezones = OA_Admin_Timezones::AvailableTimezones(true); if ($_POST['aConfig']['timezone']['location']) { $selTimezone = $_POST['aConfig']['timezone']['location']; } else { $aTimezone = OA_Admin_Timezones::getTimezone(); $selTimezone = $aTimezone['tz']; } // What display string do we need to show for the timezone? if ($aTimezone['calculated']) { $errorImage = ""; $strTimezoneToDisplay = $strTimezoneEstimated . '
' . $errorImage . $strTimezoneGuessedValue . ''; } else { $strTimezoneToDisplay = $strTimezone; } // For language, setup English as first choice $langVal = 'english'; phpAds_ShowSettings(array ( array ( 'text' => $strConfigurationSettings, 'items' => array ( array ( 'type' => 'select', 'name' => 'aConfig[max][language]', 'text' => $strLanguageSelection, 'req' => true, 'value' => $langVal, 'items' => MAX_Admin_Languages::AvailableLanguages() ), array ( 'type' => 'break' ), array ( 'type' => 'select', 'name' => 'aConfig[timezone][location]', 'text' => $strTimezoneToDisplay, 'req' => true, 'value' => $selTimezone, 'items' => $aTimezones ), array ( 'type' => 'break' ), array ( 'type' => 'url', 'name' => 'aConfig[webpath][admin]', 'text' => $strWebPathSimple, 'size' => '50', 'value' => $aConfig['webpath']['admin'], 'enabled' => true ), array ( 'type' => 'break' ), array ( 'type' => 'urln', 'name' => 'aConfig[webpath][delivery]', 'text' => $strDeliveryPath, 'req' => true, 'size' => '50', 'value' => $aConfig['webpath']['delivery'] ), array ( 'type' => 'break' ), array ( 'type' => 'urln', 'name' => 'aConfig[webpath][images]', 'text' => $strImagePath, 'req' => true, 'size' => '50', 'value' => $aConfig['webpath']['images'] ), array ( 'type' => 'break' ), array ( 'type' => 'urls', 'name' => 'aConfig[webpath][deliverySSL]', 'text' => $strDeliverySslPath, 'req' => true, 'size' => '50', 'value' => $aConfig['webpath']['deliverySSL'] ), array ( 'type' => 'break' ), array ( 'type' => 'urls', 'name' => 'aConfig[webpath][imagesSSL]', 'text' => $strImageSslPath, 'req' => true, 'size' => '50', 'value' => $aConfig['webpath']['imagesSSL'] ), array ( 'type' => 'break' ), array ( 'type' => 'text', 'name' => 'aConfig[store][webDir]', 'text' => $strImageStore, 'req' => true, 'size' => '50', 'value' => $aConfig['store']['webDir'] ) ) ) ), $errormessage, 0, $imgPath); } else { ?>
 
  Configuration setup not needed, config file is present