echo gt('If in doubt, contact your system administrator or hosting provider.'); ?> </div> </div> <div class="control" id="mysql_options"> <span class="label"><?php echo gt('Database Encoding'); ?> : </span> <select name="sc[DB_ENCODING]" value="<?php echo $config['DB_ENCODING']; ?> " > <?php foreach (expSettings::dropdownData("DB_ENCODING") as $key => $value) { echo '<option value="' . $key . '">' . $value . '</option>'; } ?> </select> <div class="control_help"> <?php echo gt('Don\'t change that unless you know what you are doing.'); ?> <br /><br /> <?php echo gt('If in doubt, contact your system administrator or hosting provider.'); ?> </div> <div class="control">
public function configure_site() { expHistory::set('manageable', $this->params); // TYPES OF ANTISPAM CONTROLS... CURRENTLY ONLY ReCAPTCHA $as_types = array('0' => '-- ' . gt('Please Select an Anti-Spam Control') . ' --', "recaptcha" => 'reCAPTCHA'); //THEMES FOR RECAPTCHA $as_themes = array("red" => gt('DEFAULT RED'), "white" => gt('White'), "blackglass" => gt('Black Glass'), "clean" => gt('Clean (very generic)')); // Available Themes $themes = array(); if (is_readable(BASE . 'themes')) { $theme_dh = opendir(BASE . 'themes'); while (($theme_file = readdir($theme_dh)) !== false) { if (is_readable(BASE . 'themes/' . $theme_file . '/class.php')) { // Need to avoid the duplicate theme problem. if (!class_exists($theme_file)) { include_once BASE . 'themes/' . $theme_file . '/class.php'; } if (class_exists($theme_file)) { // Need to avoid instantiating non-existent classes. $t = new $theme_file(); $themes[$theme_file] = $t->name(); } } } } uasort($themes, 'strnatcmp'); // Available Languages $langs = expLang::langList(); // ksort($langs); // smtp protocol $protocol = array('ssl' => 'SSL', 'tls' => 'TLS'); // attribution $attribution = array('firstlast' => 'John Doe', 'lastfirst' => 'Doe, John', 'first' => 'John', 'username' => 'jdoe'); // These funcs need to be moved up in to new subsystems // Date/Time Format $datetime_format = expSettings::dropdownData('datetime_format'); // Date Format $date_format = expSettings::dropdownData('date_format'); // Time Format $time_format = expSettings::dropdownData('time_format'); // Start of Week $start_of_week = expSettings::dropdownData('start_of_week'); // File Permissions $file_permisions = expSettings::dropdownData('file_permissions'); // File Permissions $dir_permissions = expSettings::dropdownData('dir_permissions'); // Homepage Dropdown $section_dropdown = navigationmodule::levelDropDownControlArray(0); // Timezone Dropdown $list = DateTimeZone::listAbbreviations(); $idents = DateTimeZone::listIdentifiers(); $data = $offset = $added = array(); foreach ($list as $abbr => $info) { foreach ($info as $zone) { if (!empty($zone['timezone_id']) and !in_array($zone['timezone_id'], $added) and in_array($zone['timezone_id'], $idents)) { $z = new DateTimeZone($zone['timezone_id']); $c = new DateTime(null, $z); $zone['time'] = $c->format('H:i a'); $data[] = $zone; $offset[] = $z->getOffset($c); $added[] = $zone['timezone_id']; } } } array_multisort($offset, SORT_ASC, $data); $tzoptions = array(); foreach ($data as $key => $row) { $tzoptions[$row['timezone_id']] = self::formatOffset($row['offset']) . ' ' . $row['timezone_id']; } assign_to_template(array('as_types' => $as_types, 'as_themes' => $as_themes, 'themes' => $themes, 'langs' => $langs, 'protocol' => $protocol, 'attribution' => $attribution, 'datetime_format' => $datetime_format, 'date_format' => $date_format, 'time_format' => $time_format, 'start_of_week' => $start_of_week, 'timezones' => $tzoptions, 'file_permisions' => $file_permisions, 'dir_permissions' => $dir_permissions, 'section_dropdown' => $section_dropdown)); }