<?php if (!$this->network->id) { $this->redirect('home'); } if (!$this->user->is_logged) { $this->redirect('home'); } $db2->query('SELECT 1 FROM users WHERE iduser="******" AND is_network_admin=1 LIMIT 1'); if (0 == $db2->num_rows()) { $this->redirect('dashboard'); } /*************************************************************************/ // needed before proceeding require_once '_all-required-language.php'; $this->load_langfile('global/global.php'); $this->load_langfile('inside/admin.php'); /*************************************************************************/ require_once '_all-required-dashboard-admin.php'; /*************************************************************************/ require_once $C->INCPATH . 'helpers/func-themes.php'; $D->listThemes = array(); foreach (get_available_themes() as $k => $v) { $D->listThemes[$k] = $v->name; } $D->themeDefault = $this->db2->fetch_field('SELECT value FROM settings WHERE word="THEME"'); /*************************************************************************/ $D->optionactive_admin = 4; $this->load_template('admin_themes.php');
$pass = get_config('login_pass', ''); if (substr($pass, 0, 4) == "sha:") { echo HASH_PASS; } else { echo htmlspecialchars($pass); } ?> ' name='login_pass' /></td></tr> <tr><td><?php echo m("Theme:"); ?> </td> <td> <select name='theme'> <?php $themes = get_available_themes(); $ctheme = get_config("theme", "default"); foreach ($themes as $theme) { echo "\n<option value='{$theme}' "; if ($theme == $ctheme) { echo "selected='selected' "; } echo ">{$theme}</option>"; } ?> </select> </td> </tr> <tr><td><?php echo m("Language:"); ?>
<div id="loginOptionsLink"><label for="showOptionsLink"><a id="showOptionsLink" href="javascript:showOptions()"><?php echo lang('options'); ?></a> <a id="hideOptionsLink" class="hidden" href="javascript:hideOptions()"><?php echo lang('hide options'); ?></a></label></div> <div id="options1" class="hidden"> <ul> <li> <label for="loginLanguage"><?php echo lang('language'); ?></label><select name="loginLanguage" id="loginLanguage"> <option value="de_de">Deutsch</option> <option selected="selected" value="en_us">English (U.S.)</option> <option value="es_es">Español</option> <option value="fr_fr">Français</option> <option value="nl_nl">Nederlands</option> </select> </li> <li> <label for="loginTheme"><?php echo lang('theme'); ?></label><select name="loginTheme" id="loginTheme"> <?php foreach (get_available_themes() as $theme => $theme_name): ?> <option<?php if (get_theme_name() == $theme) echo ' selected="selected"'; ?> value="<?php echo $theme ?>"><?php echo $theme_name ?></option> <?php endforeach ?> </select> </li> </ul> </div> </div> <div class="right"> <div id="loginPasswordDiv"> <label for="loginPassword"><?php echo lang('password') ?>:</label> <?php echo password_field('login[password]', null, array('id' => 'loginPassword', 'class' => 'medium', 'tabindex' => 2)) ?> </div> <div id="loginSubmit"><?php echo submit_button(lang('login'), null, array('tabindex' => 3) ) ?></div> <div id="options2" class="hidden"> <ul>
/** * Constructor * * @param void * @return ThemeConfigHandler */ function __construct() { $this->available_themes = get_available_themes(); } // __construct