ok

Mini Shell

Direktori : /usr/local/sitepad/www/themes/default/
Upload File :
Current File : //usr/local/sitepad/www/themes/default/import_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.
//===========================================================
//////////////////////////////////////////////////////////////

//<input type="file" name="filename" value="'.POSTval('email', $site['email']).'" class="form-control" placeholder="">

if(!defined('SITEPAD') && !defined('SITEMUSH')){

	die('Hacking Attempt');

}

function import_site_theme(){

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

softheader($l['title_import_site']);
 
echo '
<div class="bg mt-2">
<form accept-charset="'.$globals['charset'].'" enctype="multipart/form-data" name="import_site" method="post" action="" id="import_site" class="form-horizontal sitepad-form">
	<div class="row sai_main_head" style="width:100%;" align="center">
		<div class="col-sm-12 col-xs-12 text-center"><h3>'.$l['import_site'].'</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>&nbsp;&nbsp;'.$done['msg'].'</center></div>';
	}
	
	echo'
	<div class="row justify-content-sm-center p-3">
		<div class="col-sm-8 mb-2">
			<label for="siteurl" class="setup-field-head">'.$l['site_address'].'</label>
			<div class="row no-gutters">
				<div class="col-sm-4">
					<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-4">
					<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', $site['subdir']).'" class="form-control" placeholder="'.$l['subdir'].'">
				</div>
			</div>
			<label class="setup-field-exp">'.$l['site_address_local_exp'].'</label>
		</div>
		<div class="col-12 text-center">
			<button type="submit" class="btn button-primary" name="local_import" style="white-space: nowrap;">
				<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" style="display:none;"></span> '.$l['import_site'].'
			</button>
		</div>
	</div>
</form>
<br />
</div>';

softfooter();
}

Zerion Mini Shell 1.0