ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/local/sitepad/www/themes/default/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/local/sitepad/www/themes/default/clone_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 clone_site_theme(){

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

softheader($l['title_clone_site']);
?>
<script>

jQuery(document).ready(function(){
	checkhttps('#softdomain');
});

function checkhttps(ele){
	$.ajax({
		type: "POST",
		url: "<?php echo $globals['index'];?>act=clone_site&api=json&checkhttps="+encodeURIComponent($(ele).val()),
		timeout:10000,
		dataType: "json",
		// Checking for success
		success: function(data){
		try{
			if('checkhttps' in data && data.checkhttps){
				$("#softproto").val("https");
			}
		}catch(e){}
		}
	});
}
</script>
<?php
echo '
<div class="bg mt-2">
<form accept-charset="'.$globals['charset'].'" name="clone" method="post" action="" id="clone" 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-copy" style="color:#00A0D2;"></i></h3>
		</div>
		<div class="col-sm-6 col-xs-6" style="text-align:left;"><h3>'.$l['title_clone_site'].'</h3></div>
	</div>
	<hr/>';
	
	error_handle($error, '100%');
	
	$get_insid = optGET('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'].'</div></center>';
	}
	
	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_source'].'</label>
				<span class="sai_exp">'.$l['site_source_exp'].'</span>
			</div>
			<div class="col-sm-8">
				<select name="insid" class="form-control" '.( !empty($get_insid) && array_key_exists($get_insid, $user['ins']) ? 'disabled' : '' ).'>';
					foreach($user['ins'] as $k => $v){
						echo '<option value="'.$v['insid'].'" '.( (!empty($get_insid) && $v['insid'] == $get_insid) || (!empty($_POST['insid']) && $v['insid'] == trim($_POST['insid']) )? 'selected="selected"' : '' ).'>'.$v['domain'].'/'.$v['subdir'].'</option>';
					}
				echo '
				</select>
			</div>
		</div>
	
		<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" id="softproto" class="form-control">';
							foreach($globals['protocols'] as $k => $v){
								echo '<option value="'.$k.'">'.$v.'</option>';
							}
						echo '
						</select> 
					</div>
					<div class="col-sm-5">
						<select name="domain" id="softdomain" class="form-control" onchange="checkhttps(this)">';
							foreach($nupanel->domainroots as $k => $v){
								echo '<option value="'.$k.'">'.$k.'</option>';
							}
						echo '
						</select> 
					</div>
					<div class="col-sm-4">
						<input type="text" name="subdir" value="'.POSTval('subdir').'" class="form-control" placeholder="'.$l['subdir'].'">
					</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').'" 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').'" 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