ok

Mini Shell

Direktori : /proc/self/root/usr/local/sitepad/www/themes/default/admin/
Upload File :
Current File : //proc/self/root/usr/local/sitepad/www/themes/default/admin/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 $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $softpanel, $protocols;

//Is suPHP installed ?
$apache_modules = (function_exists('apache_get_modules') ? apache_get_modules() : '');
if(is_array($apache_modules)){
	foreach($apache_modules as $av){
		if(strtolower($av) == 'mod_suphp'){
			$suphp = true;
		}
	}
}

softheader($l['<title>']);

echo '<div class="container-fluid">
		<div class="col-sm-12 sai_heading text-center">'.$l['settings'].'</div><br />
		<div class="sai_hr"></div>
	</div><br />';

echo '<link rel="stylesheet" type="text/css" href="'.$theme['url'].'/spectrum.css?'.$globals['version'].'" />
<script language="javascript" src="'.$theme['url'].'/js/combined.js" type="text/javascript"></script>
<script src="'.$theme['url'].'/js/spectrum.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

function show_ud(id){
	var val = id.value;
	if(val == "user_defined"){
		$("#admin_prefix_ud").css("display", "");
	}else{
		$("#admin_prefix_ud").css("display", "none");
	}
}

function showtip(txt, el){	
	
	$_("stooltip").innerHTML = txt;
	
	var pos = findelpos(el);
	$_("stooltip").style.display = "";
	var tipheight = parseInt($_("stooltip").offsetHeight);
	var tipwidth = parseInt($_("stooltip").offsetWidth);
	//alert(tipheight+" "+tipwidth);
	
	var abody = findelpos($_("abody"));
	var bodyWidth = abody[0] + $_("abody").offsetWidth
	
	if((pos[0] + tipwidth) > bodyWidth){
		pos[0] = pos[0] - (pos[0] + tipwidth - bodyWidth) + 15;
	}
	
	$_("stooltip").style.left = pos[0]+"px";
	$_("stooltip").style.top = (pos[1]-5-tipheight)+"px";
	
	el.onmouseout = function(){
		hidetip();
	};

};

function hidetip(){
	$_("stooltip").style.display = "none";
}

function isNumber(n) {
	if(isNaN(n.value)){
		alert(n.value+\' is not a valid Number\');
		return false;
	}
}

// ]]></script>';

if(!empty($saved)){
	echo '<div class="container-fluid"><div class="alert alert-success text-center"><a href="#" class="close" data-dismiss="alert">&times;</a><img src="'.$theme['images'].'success.gif" /> '.$l['settings_saved'].'</div></div>';
}

echo '<div id="stooltip" style="display:none; position:absolute; top: 0px; left: 0px; border: 1px solid #CCC; padding: 8px; background: #FFF; z-index:1000;"></div>
<form accept-charset="'.$globals['charset'].'" name="editsettings" method="post" action="" class="form-horizontal">
<div class="container-fluid">';

error_handle($error);

echo '<div class="row">
	<div class="col-sm-6">';
	
if(defined('SITEPADADMIN')){
	echo '<div class="sai_form_head">'.$l['pathhead'].'</div>
	<div class="sai_form">
		<div class="row">
			<div class="col-sm-5">
				<label for="softpath" class="sai_head">'.$l['softpath'].'</label><br />
				<span class="sai_exp2">'.$l['softpath_exp'].'</span>
			</div>
			<div class="col-sm-7">
				<input type="text" name="path" class="form-control" id="softpath" value="'.aPOSTval('path', $globals['path']).'" />
			</div>
		</div><br />
	
		<div class="row">
			<div class="col-sm-5">
				<label class="sai_head">'.$l['user_homedir'].'</label><br />
				<span class="sai_exp2">'.$l['user_homedir_exp'].'</span>
			</div>
			<div class="col-sm-7">
				<input type="text" name="user_homedir" class="form-control" size="30" value="'.POSTval('user_homedir', $globals['user_homedir']).'" />
			</div>
		</div><br />
	<p><input type="submit" class="flat-butt" name="editsettings" value="'.$l['edit_settings'].'"/></p>
	</div><br />	
	
	<div class="sai_form_head">'.$l['rebranding_settings'].'</div>
	<div class="sai_form">		
		<div class="row">
			<div class="col-sm-7">
				<label for="sm_brand" class="sai_head">'.$l['sm_brand'].'</label><br />
				<span class="sai_exp2">'.$l['sm_brand_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="sm_brand" id="sm_brand" class="form-control" value="'.aPOSTval('sm_brand', $globals['sm_brand']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="sn" class="sai_head">'.$l['sitename'].'</label><br />
				<span class="sai_exp2">'.$l['sitename_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="sn" id="sn" class="form-control" value="'.aPOSTval('sn', $globals['sn']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="sm_brand_editor" class="sai_head">'.$l['sm_brand_editor'].'</label><br />
				<span class="sai_exp2">'.$l['sm_brand_editor_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="sm_brand_editor" id="sm_brand_editor" class="form-control" value="'.aPOSTval('sm_brand_editor', $globals['sm_brand_editor']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="logo_url" class="sai_head">'.$l['logo_url'].'</label><br />
				<span class="sai_exp2">'.$l['logo_url_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="logo_url" id="logo_url" class="form-control" value="'.aPOSTval('logo_url', $globals['logo_url']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="sm_brand_url" class="sai_head">'.$l['sm_brand_url'].'</label><br />
				<span class="sai_exp2">'.$l['sm_brand_url_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="sm_brand_url" id="sm_brand_url" class="form-control" value="'.aPOSTval('sm_brand_url', $globals['sm_brand_url']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="logout_url" class="sai_head">'.$l['logout_url'].'</label><br />
				<span class="sai_exp2">'.$l['logout_url_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="logout_url" id="logout_url" class="form-control" value="'.aPOSTval('logout_url', $globals['logout_url']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="show_top_themes" class="sai_head">'.$l['show_top_themes'].'</label><br />
				<span class="sai_exp2">'.$l['show_top_themes_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="show_top_themes" id="show_top_themes" class="form-control" value="'.aPOSTval('show_top_themes', $globals['show_top_themes']).'" />
			</div>
		</div><br />
	<p><input type="submit" class="flat-butt" name="editsettings" value="'.$l['edit_settings'].'"/></p>
	</div><br />
	
	
	<div class="sai_form_head">'.$l['file_settings'].'</div>
	<div class="sai_form">
		<div class="row">
			<div class="col-sm-7">
				<label for="chmod_files" class="sai_head">'.$l['chmod_files'].'</label><br />
				<span class="sai_exp2">'.$l['chmod_files_exp'].' '.(empty($suphp) ? '' : '<b>('.$l['suphp_detected'].')</b>').'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="chmod_files" id="chmod_files" class="form-control"  value="'.aPOSTval('chmod_files', $globals['chmod_files']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="chmod_dir" class="sai_head">'.$l['chmod_dir'].'</label><br />
				<span class="sai_exp2">'.$l['chmod_dir_exp'].' '.(empty($suphp) ? '' : '<b>('.$l['suphp_detected'].')</b>').'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="chmod_dir" id="chmod_dir" class="form-control" value="'.aPOSTval('chmod_dir', $globals['chmod_dir']).'" />
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="chmod_conf_file" class="sai_head">'.$l['chmod_conf_file'].'</label><br />
				<span class="sai_exp2">'.$l['chmod_conf_file_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="chmod_conf_file" id="chmod_conf_file" class="form-control" value="'.aPOSTval('chmod_conf_file', @$globals['chmod_conf_file']).'" />
			</div>
		</div><br />
	</div><br />
	
	<div class="sai_form_head">'.$l['update_settings'].'</div>
	<div class="sai_form">
		<div class="row">
			<div class="col-sm-7">
				<label class="sai_head">'.$l['auto_upd_softac'].'</label><br />
				<span class="sai_exp2">'.$l['auto_upd_softac_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="radio" name="update" value="0" '.POSTradio('update', 0, $globals['update']).' /> '.$l['never_update'].' <br />
				<input type="radio" name="update" value="1" '.POSTradio('update', 1, $globals['update']).' /> '.$l['stable'].' <br />
				<input type="radio" name="update" value="2" '.POSTradio('update', 2, $globals['update']).' /> '.$l['release_cand'].'
			</div>
		</div><br />
		
		<div class="row">
			<div class="col-sm-7">
				<label for="cron_time" class="sai_head">'.$l['cron_time'].'</label><br />
				<span class="sai_exp2">'.$l['cron_time_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="cron_time" id="cron_time" class="form-control" size="30" value="'.aPOSTval('cron_time', $globals['cron_time']).'" />
			</div>
		</div><br />
		<p><input type="submit" class="flat-butt" name="editsettings" value="'.$l['edit_settings'].'"/></p>
		</div>
	</div>
	
	<div class="col-sm-6">
	
		<div class="sai_form_head">'.$l['gen_set'].'</div>
		<div class="sai_form">
			
			<div class="row">
			<div class="col-sm-7">
				<label for="sm_brand_demos" class="sai_head">'.$l['sm_brand_demos'].'</label><br />
				<span class="sai_exp2">'.$l['sm_brand_demos_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="sm_brand_demos" id="sm_brand_demos" class="form-control" size="30" value="'.aPOSTval('sm_brand_demos', $globals['sm_brand_demos']).'" />
			</div>
			</div><br />
			
			<div class="row">
				<div class="col-sm-7">
					<label class="sai_head">'.$l['no_demos'].'</label><br />
					<span class="sai_exp2">'.$l['no_demos_exp'].'</span>
				</div>
				<div class="col-sm-5">
					<input type="checkbox" name="no_demos" '.POSTchecked('no_demos', $globals['no_demos']).' />
				</div>
			</div><br />
			
			<div class="row">
				<div class="col-sm-7">
					<label class="sai_head">'.$l['no_recent_themes'].'</label><br />
					<span class="sai_exp2">'.$l['no_recent_themes_exp'].'</span>
				</div>
				<div class="col-sm-5">
					<input type="checkbox" name="no_recent_themes" '.POSTchecked('no_recent_themes', $globals['no_recent_themes']).' />
				</div>
			</div><br />
			
			<div class="row">
			<div class="col-sm-7">
				<label for="soft_email" class="sai_head">'.$l['soft_email'].'</label><br />
				<span class="sai_exp2">'.$l['soft_email_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="soft_email" id="soft_email" class="form-control" size="30" value="'.aPOSTval('soft_email', $globals['soft_email']).'" />
			</div>
			</div><br />
			
			<div class="row">
			<div class="col-sm-7">
				<label for="from_email" class="sai_head">'.$l['from_email'].'</label><br />
				<span class="sai_exp2">'.$l['from_email_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="from_email" id="from_email" size="30" class="form-control" value="'.aPOSTval('from_email', $globals['from_email']).'" />
			</div>
			</div><br />
			
			<div class="row">
				<div class="col-sm-7">
					<label class="sai_head">'.$l['no_reseller_panel'].'</label><br />
					<span class="sai_exp2">'.$l['disable_reseller_panel'].'</span>
				</div>
				<div class="col-sm-5">
					<input type="checkbox" name="disable_reseller_panel" '.POSTchecked('disable_reseller_panel', $globals['disable_reseller_panel']).' />
				</div>
			</div><br />
		
			<div class="row">
				<div class="col-sm-7">
				<label for="from_email" class="sai_head">'.$l['enable_downloads'].'</label><br />
				<span class="sai_exp2">'.$l['enable_downloads_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="checkbox" name="enable_downloads" '.POSTchecked('enable_downloads', $globals['enable_downloads']).' />
			</div>
			</div><br />
			
			<div class="row">
				<div class="col-sm-7">
					<label class="sai_head">'.$l['dbpass_len'].'</label><br />
					<span class="sai_exp2">'.$l['dbpass_len_exp'].'</span>
				</div>
				<div class="col-sm-5">
				<input type="text" id="dbpass_len" name="dbpass_len" class="form-control" value="'.aPOSTval('dbpass_len', @$globals['dbpass_len']).'" onblur="isNumber(this)"/>
				</div>
			</div><br />

			<div class="row">
				<div class="col-sm-7">
					<label class="sai_head">'.$l['choose_lang'].'</label><br />
					<span class="sai_exp2">'.$l['choose_lang_exp'].'</span>
				</div>
				<div class="col-sm-5">
					<select name="language" class="form-control">';
					foreach($langs as $k => $v){
						echo '<option value="'.$v.'" '.(empty($_POST['language']) && $globals['language'] == $v ? 'selected="selected"' : (@trim($_POST['language']) == $v ? 'selected="selected"' : '') ).'>'._ucfirst($v).'</option>';
					}
					echo '</select>
				</div>
			</div><br />
	
			<div class="row">
			<div class="col-sm-3">
				<label class="sai_head">'.$l['timezone'].'</label><br />
			</div>
			<div class="col-sm-9">
				<select name="timezone" style="font-size:12px" class="form-control">
					<option value="-12" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-12' ? 'selected="selected"' : ($globals['timezone'] == -12 ? 'selected="selected"' : '')).' >(GMT -12:00) Eniwetok, Kwajalein</option>
					<option value="-11" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-11' ? 'selected="selected"' : ($globals['timezone'] == -11 ? 'selected="selected"' : '')).' >(GMT -11:00) Midway Island, Samoa</option>
					<option value="-10" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-10' ? 'selected="selected"' : ($globals['timezone'] == -10 ? 'selected="selected"' : '')).' >(GMT -10:00) Hawaii</option>
					<option value="-9" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-9' ? 'selected="selected"' : ($globals['timezone'] == -9 ? 'selected="selected"' : '')).' >(GMT -9:00) Alaska</option>
					<option value="-8" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-8' ? 'selected="selected"' : ($globals['timezone'] == -8 ? 'selected="selected"' : '')).' >(GMT -8:00) Pacific Time (US &amp; Canada)</option>
					<option value="-7" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-7' ? 'selected="selected"' : ($globals['timezone'] == -7 ? 'selected="selected"' : '')).' >(GMT -7:00) Mountain Time (US &amp; Canada)</option>
					<option value="-6" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-6' ? 'selected="selected"' : ($globals['timezone'] == -6 ? 'selected="selected"' : '')).' >(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
					<option value="-5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-5' ? 'selected="selected"' : ($globals['timezone'] == -5 ? 'selected="selected"' : '')).' >(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
					<option value="-4" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-4' ? 'selected="selected"' : ($globals['timezone'] == -4 ? 'selected="selected"' : '')).' >(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option>
					<option value="-3.5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-3.5' ? 'selected="selected"' : ($globals['timezone'] == -3.5 ? 'selected="selected"' : '')).' >(GMT -3:30) Newfoundland</option>
					<option value="-3" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-3' ? 'selected="selected"' : ($globals['timezone'] == -3 ? 'selected="selected"' : '')).' >(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>
					<option value="-2" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-2' ? 'selected="selected"' : ($globals['timezone'] == -2 ? 'selected="selected"' : '')).' >(GMT -2:00) Mid-Atlantic</option>
					<option value="-1" '.(isset($_POST['timezone']) && $_POST['timezone'] == '-1' ? 'selected="selected"' : ($globals['timezone'] == -1 ? 'selected="selected"' : '')).' >(GMT -1:00 hour) Azores, Cape Verde Islands</option>
					<option value="0" '.(isset($_POST['timezone']) && $_POST['timezone'] == '0' ? 'selected="selected"' : ($globals['timezone'] == 0 ? 'selected="selected"' : '')).' >(GMT) Western Europe Time, London, Lisbon, Casablanca</option>
					<option value="1" '.(isset($_POST['timezone']) && $_POST['timezone'] == '1' ? 'selected="selected"' : ($globals['timezone'] == 1 ? 'selected="selected"' : '')).' >(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>
					<option value="2" '.(isset($_POST['timezone']) && $_POST['timezone'] == '2' ? 'selected="selected"' : ($globals['timezone'] == 2 ? 'selected="selected"' : '')).' >(GMT +2:00) Kaliningrad, South Africa</option>
					<option value="3" '.(isset($_POST['timezone']) && $_POST['timezone'] == '3' ? 'selected="selected"' : ($globals['timezone'] == 3 ? 'selected="selected"' : '')).' >(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>
					<option value="3.5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '3.5' ? 'selected="selected"' : ($globals['timezone'] == 3.5 ? 'selected="selected"' : '')).' >(GMT +3:30) Tehran</option>
					<option value="4" '.(isset($_POST['timezone']) && $_POST['timezone'] == '4' ? 'selected="selected"' : ($globals['timezone'] == 4 ? 'selected="selected"' : '')).' >(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>
					<option value="4.5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '4.5' ? 'selected="selected"' : ($globals['timezone'] == 4.5 ? 'selected="selected"' : '')).' >(GMT +4:30) Kabul</option>
					<option value="5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '5' ? 'selected="selected"' : ($globals['timezone'] == 5 ? 'selected="selected"' : '')).' >(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
					<option value="5.5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '5.5' ? 'selected="selected"' : ($globals['timezone'] == 5.5 ? 'selected="selected"' : '')).' >(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>
					<option value="6" '.(isset($_POST['timezone']) && $_POST['timezone'] == '6' ? 'selected="selected"' : ($globals['timezone'] == 6 ? 'selected="selected"' : '')).' >(GMT +6:00) Almaty, Dhaka, Colombo</option>
					<option value="6.5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '6.5' ? 'selected="selected"' : ($globals['timezone'] == 6.5 ? 'selected="selected"' : '')).' >(GMT +6:30) Yangon, Myanmar</option>
					<option value="7" '.(isset($_POST['timezone']) && $_POST['timezone'] == '7' ? 'selected="selected"' : ($globals['timezone'] == 7 ? 'selected="selected"' : '')).' >(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
					<option value="8" '.(isset($_POST['timezone']) && $_POST['timezone'] == '8' ? 'selected="selected"' : ($globals['timezone'] == 8 ? 'selected="selected"' : '')).' >(GMT +8:00) Beijing, Perth, Singapore, Hong Kong, Taiwan</option>
					<option value="9" '.(isset($_POST['timezone']) && $_POST['timezone'] == '9' ? 'selected="selected"' : ($globals['timezone'] == 9 ? 'selected="selected"' : '')).' >(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>
					<option value="9.5" '.(isset($_POST['timezone']) && $_POST['timezone'] == '9.5' ? 'selected="selected"' : ($globals['timezone'] == 9.5 ? 'selected="selected"' : '')).' >(GMT +9:30) Adelaide, Darwin</option>
					<option value="10" '.(isset($_POST['timezone']) && $_POST['timezone'] == '10' ? 'selected="selected"' : ($globals['timezone'] == 10 ? 'selected="selected"' : '')).' >(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>
					<option value="11" '.(isset($_POST['timezone']) && $_POST['timezone'] == '11' ? 'selected="selected"' : ($globals['timezone'] == 11 ? 'selected="selected"' : '')).' >(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>
					<option value="12" '.(isset($_POST['timezone']) && $_POST['timezone'] == '12' ? 'selected="selected"' : ($globals['timezone'] == 12 ? 'selected="selected"' : '')).' >(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>
				</select>
			</div>
			</div><br />
			<p><input type="submit" class="flat-butt" name="editsettings" value="'.$l['edit_settings'].'"/></p>
		</div><br />
	
		<div class="sai_form_head">'.$l['old_set'].'</div>
		<div class="sai_form">
		
			<div class="row">
			<div class="col-sm-7">
				<label for="host_sm" class="sai_head">'.$l['host_sm'].'</label><br />
				<span class="sai_exp2">'.$l['host_sm_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="host_sm" id="host_sm" class="form-control" size="30" value="'.aPOSTval('host_sm', $globals['host_sm']).'" />
			</div>
			</div><br />
			
			<div class="row">
			<div class="col-sm-7">
				<label for="ftp_host" class="sai_head">'.$l['ftp_host'].'</label><br />
				<span class="sai_exp2">'.$l['ftp_host_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="ftp_host" id="ftp_host" class="form-control" size="30" value="'.aPOSTval('ftp_host', $globals['ftp_host']).'" />
			</div>
			</div><br />
			
			<div class="row">
			<div class="col-sm-7">
				<label for="ftp_port" class="sai_head">'.$l['ftp_port'].'</label><br />
				<span class="sai_exp2">'.$l['ftp_port_exp'].'</span>
			</div>
			<div class="col-sm-5">
				<input type="text" name="ftp_port" id="ftp_port" class="form-control" size="30" value="'.aPOSTval('ftp_port', $globals['ftp_port']).'" />
			</div>
			</div>
		</div><br />
	
		<div class="sai_form_head">'.$l['disable_soft'].'</div>
		<div class="sai_form">
			<div class="row">
				<div class="col-sm-5">
					<label class="sai_head">'.$l['soft_off'].'</label><br />
					<span class="sai_exp2">'.$l['soft_off_exp'].'</span>
				</div>
				<div class="col-sm-7">
					<input type="checkbox" name="off" '.POSTchecked('off', $globals['off']).' />
				</div>
			</div><br />
			
			<div class="row">
				<div class="col-sm-5">
					<label for="off_subject" class="sai_head">'.$l['off_sub'].'</label><br />
				</div>
				<div class="col-sm-7">
					<input type="text" name="off_subject" class="form-control" id="off_subject" size="30" value="'.aPOSTval('off_subject', $globals['off_subject']).'" />
				</div>
			</div><br />
			
			<div class="row">
				<div class="col-sm-5">
					<label for="off_message" class="sai_head">'.$l['off_message'].'</label><br />
				</div>
				<div class="col-sm-7">
					<textarea name="off_message" class="form-control" cols="30" rows="6">'.aPOSTval('off_message', $globals['off_message']).'</textarea>
				</div>
			</div><br />
			<p><input type="submit" class="flat-butt " name="editsettings" value="'.$l['edit_settings'].'"/></p>
		</div><br />
	</div>';
}
	
echo '</div>
</div>
</div>

</form>
<script>
function updateColor(color, id) {
	
	var hexColor = "transparent";
	if(color) {
		hexColor = color.toHexString();
	}
	if(hexColor == "transparent") return;
	
	// Set the hidden value so that we can save the settings
	$("#default_hf_bg").val("1");
	
	// For changing text colors of category heading
	if(id == "default_hf_text"){
		$(".soft_cathead a").css("color", hexColor);
		$(".soft_nav a").css("color", hexColor);
		$(".fa").css("color", hexColor);
		
		// set the hidden value so that it can be saved
		$("#hidden_default_hf_text").val(hexColor);
	}
	
	// For changing text colors of category heading hover color
	if(id == "default_cat_hover"){
		try{
			$(".soft_cathead:hover, .soft_cathead_slide:hover").css("background-color", hexColor);
			//$(".soft_cathead_slide:hover").css("background-color", hexColor);
		
			// set the hidden value so that it can be saved
			$("#hidden_default_cat_hover").val(hexColor);
		}catch(e){
			// do nothing
		}
	}
	
	// For changing text colors of script names
	if(id == "default_scriptname_text"){
		$(".softlinks li a").css("color", hexColor);
		
		// set the hidden value so that it can be saved
		$("#hidden_default_scriptname_text").val(hexColor);
	}
	
	// For changing background color
	if(id == "default_hf_bg"){
		$(".soft_nav").css("background", hexColor);
		
		// set the hidden value so that it can be saved
		$("#hidden_default_hf_bg").val(hexColor);
	}
	
}

var pallete_array = [
		["rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", /*"rgb(153, 153, 153)","rgb(183, 183, 183)",*/
		"rgb(204, 204, 204)", "rgb(217, 217, 217)", /*"rgb(239, 239, 239)", "rgb(243, 243, 243)",*/ "rgb(255, 255, 255)"],
		["rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)",
		"rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)"],
		["rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)",
		"rgb(208, 224, 227)", "rgb(201, 218, 248)", "rgb(207, 226, 243)", "rgb(217, 210, 233)", "rgb(234, 209, 220)",
		"rgb(221, 126, 107)", "rgb(234, 153, 153)", "rgb(249, 203, 156)", "rgb(255, 229, 153)", "rgb(182, 215, 168)",
		"rgb(162, 196, 201)", "rgb(164, 194, 244)", "rgb(159, 197, 232)", "rgb(180, 167, 214)", "rgb(213, 166, 189)",
		"rgb(204, 65, 37)", "rgb(224, 102, 102)", "rgb(246, 178, 107)", "rgb(255, 217, 102)", "rgb(147, 196, 125)",
		"rgb(118, 165, 175)", "rgb(109, 158, 235)", "rgb(111, 168, 220)", "rgb(142, 124, 195)", "rgb(194, 123, 160)",
		"rgb(166, 28, 0)", "rgb(204, 0, 0)", "rgb(230, 145, 56)", "rgb(241, 194, 50)", "rgb(106, 168, 79)",
		"rgb(69, 129, 142)", "rgb(60, 120, 216)", "rgb(61, 133, 198)", "rgb(103, 78, 167)", "rgb(166, 77, 121)",
		/*"rgb(133, 32, 12)", "rgb(153, 0, 0)", "rgb(180, 95, 6)", "rgb(191, 144, 0)", "rgb(56, 118, 29)",
		"rgb(19, 79, 92)", "rgb(17, 85, 204)", "rgb(11, 83, 148)", "rgb(53, 28, 117)", "rgb(116, 27, 71)",*/
		"rgb(91, 15, 0)", "rgb(102, 0, 0)", "rgb(120, 63, 4)", "rgb(127, 96, 0)", "rgb(39, 78, 19)",
		"rgb(12, 52, 61)", "rgb(28, 69, 135)", "rgb(7, 55, 99)", "rgb(32, 18, 77)", "rgb(76, 17, 48)"]
	];

$(function() {
	$("#default_hf_bg").spectrum({
		allowEmpty:true,
		color : "'.(!empty($globals['default_hf_bg']) ? $globals['default_hf_bg'] : '#333333').'",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});

$(function() {
	$("#default_cat_hover").spectrum({
		allowEmpty:true,
		color : "'.(!empty($globals['default_cat_hover']) ? $globals['default_cat_hover'] : '#4096ee').'",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});

$(function() {
	$("#default_hf_text").spectrum({
		allowEmpty:true,
		color : "'.(!empty($globals['default_hf_text']) ? $globals['default_hf_text'] : '#F2F2F2').'",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});

$(function() {
	$("#default_scriptname_text").spectrum({
		allowEmpty:true,
		color : "'.(!empty($globals['default_scriptname_text']) ? $globals['default_scriptname_text'] : '#FFFFFF').'",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});
</script>';

softfooter();

}

?>

Zerion Mini Shell 1.0