ok
Direktori : /proc/thread-self/root/usr/local/sitepad/www/themes/default/ |
Current File : //proc/thread-self/root/usr/local/sitepad/www/themes/default/settings_theme.php |
<?php ////////////////////////////////////////////////////////////// //=========================================================== // settings_theme.php //=========================================================== // SOFTACULOUS // Version : 1.1 // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Alons // Date: 10th Jan 2009 // Time: 21:00 hrs // Site: http://www.softaculous.com/ (SOFTACULOUS) // ---------------------------------------------------------- // Please Read the Terms of use at http://www.softaculous.com // ---------------------------------------------------------- //=========================================================== // (c)Softaculous Inc. //=========================================================== ////////////////////////////////////////////////////////////// if(!defined('SITEPAD') && !defined('SITEMUSH')){ die('Hacking Attempt'); } function settings_theme(){ global $globals, $l, $theme, $nupanel, $error, $user, $themes, $done, $langs; softheader($l['title_settings']); echo ' <div class="bg mt-2"> <div class="row sai_main_head" style="width:100%;" align="center"> <div class="col-sm-6 col-xs-6" style="text-align:right;"> <h3><i class="fa sai-settings" style="color:#00A0D2;"></i></h3> </div> <div class="col-sm-6 col-xs-6" style="text-align:left;"><h3>'.$l['title_settings'].'</h3></div> </div> <hr/>'; error_handle($error, '100%'); if(!empty($done)){ echo '<div class="alert alert-success" style="padding:10px;font-size:15px;"><center><i class="sai sai-success"></i> '.$done['msg'].'</div></center>'; } echo' <form accept-charset="'.$globals['charset'].'" name="settings" method="post" action="" id="edit_site" class="form-horizontal sitepad-form"> <div class="row justify-content-center py-2"> <div class="col-sm-8"> <div class="row py-2"> <div class="col-sm-4"> <label for="language" class="sai_head">'.$l['choose_lang'].'</label> <span class="sai_exp">'.$l['choose_lang_exp'].'</span> </div> <div class="col-sm-8"> <select name="language" id="language" class="form-control">'; foreach($langs as $k => $v){ echo '<option value="'.$k.'" '.(empty($_POST['language']) && (empty($user['language']) ? $globals['language'] : $user['language']) == $v ? 'selected="selected"' : (trim($_POST['language']) == $k ? 'selected="selected"' : '') ).'>'._ucfirst($v).'</option>'; } echo '</select> </div> </div> <div class="row py-2"> <div class="col-sm-4"> <label for="timezone" class="sai_head">'.$l['timezone'].'</label> <span class="sai_exp">'.$l['timezone_exp'].'</span> </div> <div class="col-sm-8"> <select name="timezone" id="timezone" class="form-control"> <option value="-12" '.(($user['timezone'] == -12) ? 'selected="selected"' : '').'>(GMT -12:00) Eniwetok, Kwajalein</option> <option value="-11" '.(($user['timezone'] == -11) ? 'selected="selected"' : '').'>(GMT -11:00) Midway Island, Samoa</option> <option value="-10" '.(($user['timezone'] == -10) ? 'selected="selected"' : '').'>(GMT -10:00) Hawaii</option> <option value="-9" '.(($user['timezone'] == -9) ? 'selected="selected"' : '').'>(GMT -9:00) Alaska</option> <option value="-8" '.(($user['timezone'] == -8) ? 'selected="selected"' : '').'>(GMT -8:00) Pacific Time (US & Canada)</option> <option value="-7" '.(($user['timezone'] == -7) ? 'selected="selected"' : '').'>(GMT -7:00) Mountain Time (US & Canada)</option> <option value="-6" '.(($user['timezone'] == -6) ? 'selected="selected"' : '').'>(GMT -6:00) Central Time (US & Canada), Mexico City</option> <option value="-5" '.(($user['timezone'] == -5) ? 'selected="selected"' : '').'>(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option> <option value="-4" '.(($user['timezone'] == -4) ? 'selected="selected"' : '').'>(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option> <option value="-3.5" '.(($user['timezone'] == -3.5) ? 'selected="selected"' : '').'>(GMT -3:30) Newfoundland</option> <option value="-3" '.(($user['timezone'] == -3) ? 'selected="selected"' : '').'>(GMT -3:00) Brazil, Buenos Aires, Georgetown</option> <option value="-2" '.(($user['timezone'] == -2) ? 'selected="selected"' : '').'>(GMT -2:00) Mid-Atlantic</option> <option value="-1" '.(($user['timezone'] == -1) ? 'selected="selected"' : '').'>(GMT -1:00 hour) Azores, Cape Verde Islands</option> <option value="+0" '.(($user['timezone'] == '+0') ? 'selected="selected"' : '').'>(GMT) Western Europe Time, London, Lisbon, Casablanca</option> <option value="1" '.(($user['timezone'] == 1) ? 'selected="selected"' : '').'>(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option> <option value="2" '.(($user['timezone'] == 2) ? 'selected="selected"' : '').'>(GMT +2:00) Kaliningrad, South Africa</option> <option value="3" '.(($user['timezone'] == 3) ? 'selected="selected"' : '').'>(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option> <option value="3.5" '.(($user['timezone'] == 3.5) ? 'selected="selected"' : '').'>(GMT +3:30) Tehran</option> <option value="4" '.(($user['timezone'] == 4) ? 'selected="selected"' : '').'>(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option> <option value="4.5" '.(($user['timezone'] == 4.5) ? 'selected="selected"' : '').'>(GMT +4:30) Kabul</option> <option value="5" '.(($user['timezone'] == 5) ? 'selected="selected"' : '').'>(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option> <option value="5.5" '.(($user['timezone'] == 5.5) ? 'selected="selected"' : '').'>(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option> <option value="6" '.(($user['timezone'] == 6) ? 'selected="selected"' : '').'>(GMT +6:00) Almaty, Dhaka, Colombo</option> <option value="6.5" '.(($user['timezone'] == 6.5) ? 'selected="selected"' : '').'>(GMT +6:30) Yangon, Myanmar</option> <option value="7" '.(($user['timezone'] == 7) ? 'selected="selected"' : '').'>(GMT +7:00) Bangkok, Hanoi, Jakarta</option> <option value="8" '.(($user['timezone'] == 8) ? 'selected="selected"' : '').'>(GMT +8:00) Beijing, Perth, Singapore, Hong Kong, Taiwan</option> <option value="9" '.(($user['timezone'] == 9) ? 'selected="selected"' : '').'>(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option> <option value="9.5" '.(($user['timezone'] == 9.5) ? 'selected="selected"' : '').'>(GMT +9:30) Adelaide, Darwin</option> <option value="10" '.(($user['timezone'] == 10) ? 'selected="selected"' : '').'>(GMT +10:00) Eastern Australia, Guam, Vladivostok</option> <option value="11" '.(($user['timezone'] == 11) ? 'selected="selected"' : '').'>(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option> <option value="12" '.(($user['timezone'] == 12) ? 'selected="selected"' : '').'>(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option> <option value="0" '.(empty($user['timezone']) ? 'selected="selected"' : '').'>'.$l['default_timezone'].'</option> </select> </div> </div> <br/> <center><input type="submit" class="btn btn-primary" name="save" value="'.$l['save'].'" /><br /><img id="waiting" src="'.$theme['images'].'progress.gif" style="display:none"></center> </div> </div> </form> <br />'; echo ' </div>'; softfooter(); }