ok

Mini Shell

Direktori : /proc/thread-self/root/usr/local/sitepad/www/themes/default/
Upload File :
Current File : //proc/thread-self/root/usr/local/sitepad/www/themes/default/edit_site_theme.php

<?php

//////////////////////////////////////////////////////////////
//===========================================================
// hf_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 edit_site_theme(){

global $globals, $l, $theme, $nupanel, $error, $user, $themes, $done, $langs, $insid;

softheader($l['title_edit_site']);
 
echo '
<div class="bg mt-2">
<form accept-charset="'.$globals['charset'].'" name="edit_site" method="post" action="" id="edit_site" class="form-horizontal sitepad-form">
	<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-pen" style="color:#00A0D2;"></i></h3>
		</div>
		<div class="col-sm-6 col-xs-6" style="text-align:left;"><h3>'.$l['title_edit_site'].'</h3></div>
	</div>
	<hr/>';
	
	error_handle($error, '100%');
		
	if(empty($insid) || !isset($user['ins'][$insid])){
		echo '<div class="alert alert-info" style="padding:10px;font-size:15px;"><center><i class="sai sai-times"></i>&nbsp;&nbsp;'.$l['no_site_on_ins'].'</div></center>';
		return false;
	}

	$site = $user['ins'][$insid];
		
	if(!empty($done)){
		echo '<div class="alert alert-success" style="padding:10px;font-size:15px;"><center><i class="sai sai-success"></i>&nbsp;&nbsp;'.$done['msg'].'</center></div>';
	}
	
	echo'
<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="site_address" class="sai_head">'.$l['site_address'].'</label>
				<span class="sai_exp">'.$l['site_address_exp'].'</span>
			</div>
			<div class="col-sm-8">
				<div class="row no-gutters">
					<div class="col-sm-3">
						<select name="protocol" class="form-control">';
							foreach($globals['protocols'] as $k => $v){
								echo '<option value="'.$k.'" '.POSTselect('protocol', $k, ($site['protocol'] == $k)) .'>'.$v.'</option>';
							}
						echo '
						</select> 
					</div>
					<div class="col-sm-5">
						<select name="domain" class="form-control" disabled>';
							foreach($nupanel->domainroots as $k => $v){
								echo '<option value="'.$k.'"'.(trim($site['domain']) == $k ? 'selected="selected"' : '').'>'.$k.'</option>';
							}
						echo '
						</select> 
					</div>
					<div class="col-sm-4">
						<input type="text" name="subdir" value="'.$site['subdir'].'" class="form-control" disabled>
					</div>
				</div>
			</div>
		</div>
	
		<div class="row py-2">
			<div class="col-sm-4">
				<label for="site_title" class="sai_head">'.$l['site_title'].'</label>
				<span class="sai_exp">'.$l['site_title_exp'].'</span>
			</div>
			<div class="col-sm-8">
				<input type="text" name="title" value="'.POSTval('title', $site['title']).'" class="form-control" placeholder="'.$l['enter_site_title'].'">
			</div>
		</div>
	
		<div class="row py-2">
			<div class="col-sm-4">
				<label for="site_email" class="sai_head">'.$l['site_email'].'</label>
				<span class="sai_exp">'.$l['site_email_exp'].'</span>
			</div>
			<div class="col-sm-8">
				<input type="text" name="email" value="'.POSTval('email', $site['email']).'" class="form-control" placeholder="'.$l['enter_email'].'">
			</div>
		</div>
		
		<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>
		
		<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();

}

Zerion Mini Shell 1.0