ok

Mini Shell

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

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

softheader($l['title_dashboard']);
?>

<script type="text/javascript">
var themes = <?php echo json_encode($themes) ?>;
var mirror = "<?php echo fastestmirror() ?>/files/themes";

function show_theme_tile(theme){
	var html = '<div class="col-md-4 my-2">'+
		'<div class="card theme_details">'+
			'<div class="theme-screenshot">'+
				'<img src="'+mirror+'/'+theme['slug']+'/screenshot.jpg" loading="lazy" alt="" style="width:100%"/>'+
			'</div>'+
			'<div class="theme_name p-2">'+theme['name']+'</div>'+
		'</div>'+
	'</div>';	
	$('#themes-holder').append(html);
}

// addonload(\'load_soft_info();\');
$(document).ready(function(){
	
	var num = 12;
	var i = 0;	
	
	for(var x in themes){
		
		// Show latest 10 themes
		if(i >= num){
			break;
		}
		
		show_theme_tile(themes[x]);
		i++;
	}
	
});
</script>

<?php
echo '<form accept-charset="'.$globals['charset'].'" name="dashboard" method="post" action="" id="dashboard" class="form-horizontal">

<div class="mt-2">
	<div class="row sai_main_head sp-headig-color">
		<div class="col-sm-12 col-xs-12">
			<h4><span>'.$l['dashboard'].'</span></h4>
		</div>
	</div>';
	
	error_handle($error, '100%');
	
	if(empty($user['ins'])){
		echo '<div class="alert alert-info mt-2" style="padding:10px;font-size:15px;"><center>&nbsp;&nbsp;'.$l['no_sites'].'</center></div>';
	}
	
	echo '<div class="row mt-3">
		<div class="col-md-3 col-sm-6 mb-2">
			<div class="card h-100 border-info" style="border-width:0 0 3px 0">
			<a href="'.$globals['index'].'act=all_sites" class="card-link">
				<div class="card-body">
					<div class="row align-items-center">
						<div class="col-auto px-2">
							<i class="fa sai-www fa-3x m-0 alert alert-info"></i>
						</div>
						<div class="col-auto text-muted">
							<h6 class="card-subtitle sp-headig-color mb-2 mt-2">'.$l['sites'].'</h6>
							<p class="card-text"> <b style="font-size:1.5em">'.count($user['ins']).'</b> of Unlimited</p>
						</div>
					</div>
				</div>
			</a>
			</div>
		</div>
		<div class="col-md-3 col-sm-6 mb-2 pl-sm-0">
			<div class="card h-100 border-success" style="border-width:0 0 3px 0">
				<div class="card-body">
					<div class="row align-items-center">
						<div class="col-auto px-2">
							<i class="fa sai-statistics fa-3x m-0 alert alert-success"></i>
						</div>
						<div class="col-auto text-muted">
							<h6 class="card-subtitle sp-headig-color mb-2 mt-2">'.$l['disk_space'].'</h6>
							<p class="card-text">'.str_replace(',', '', (is_numeric($nupanel->spaceremain) ? number_format($nupanel->spaceremain/1024/1024, 2) : 'unlimited')).'</p>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="col-md-3 col-sm-6 mb-2 pl-sm-0">
			<div class="card h-100 border-warning" style="border-width:0 0 3px 0">
				<a href="'.$nupanel->theme['domains_url'].'" target="_blank" class="card-link">
					<div class="card-body">
						<div class="row align-items-center">
							<div class="col-auto px-2">
								<i class="fa sai-web_servers fa-3x m-0 alert alert-warning"></i>
							</div>
							<div class="col-auto text-muted">
								<h6 class="card-subtitle sp-headig-color mb-2 mt-2">'. $l['domains'].'</h6>
								<p class="card-text"><b style="font-size:1.5em">'.count($nupanel->domainroots).'</b></p>
							</div>
						</div>
					</div>
				</a>
			</div>
		</div>
		<div class="col-md-3 col-sm-6 mb-2 pl-sm-0">
			<div class="card h-100 border-primary" style="border-width:0 0 3px 0">
				<div class="card-body">
					<div class="row align-items-center">
						<div class="col-auto px-2">
							<i class="fa sai-databases fa-3x m-0 alert alert-info"></i>
						</div>
						<div class="col-auto text-muted">
							<h6 class="card-subtitle sp-headig-color mb-2 mt-2">'. $l['databases'].'</h6>
							<p class="card-text"> <b style="font-size:1.5em">'.$nupanel->dbsused().'</b> of '.(is_numeric($nupanel->maxdb()) ? $nupanel->maxdb() : 'unlimited').'</p>
						</div>
					</div>
					
				</div>
			</div>
		</div>
	</div>
	<div class="row mt-3">
		<div class="col-sm-8 col-xs-12">
			<div class="card mt-4">
				<h6 class="card-header sp-headig-color">'.$l['latest_themes'].'</h6>
				<div class="card-body row" id="themes-holder" style="max-height: 350px;overflow:auto;"></div>
			</div>
			<div class="card mt-4">
				<h6 class="card-header sp-headig-color">'.$l['more_features'].'</h6>
				<div class="card-body">';
				
				foreach($features as $k => $v){
					echo '<h6 class="card-subtitle text-muted mb-2">'.$v['t'].'</h6>
						<p class="card-text">'.$v['e'].'</p><br/>';
				}
				
			echo '</div>
			</div>
		</div>
		<div class="col-sm-4 col-xs-12">
			<div class="card mt-4">
				<h6 class="card-header sp-headig-color">'.$l['imp_links'].'</h6>
				<div class="card-body">
					<p><a class="card-link" href="https://sitepad.com/docs/"><i class="fa sai-external fa-lg"></i> &nbsp;  '.$l['docs'].'!</a></p>
					<p><a class="card-link" href="https://sitepad.com/blog/"><i class="fa sai-external fa-lg"></i> &nbsp; '.$l['wt_news'].'!</a></p>
					<p><a class="card-link" href="https://softaculous.deskuss.com/"><i class="fa sai-external fa-lg"></i> &nbsp; '.$l['help_center'].'</a></p>
					<p><a class="card-link" href="https://sitepad.com/contact/"><i class="fa sai-external fa-lg"></i> &nbsp; '.$l['contact'].'!</a></p>
				</div>
			</div>
			<div class="card mt-4">
				<h6 class="card-header sp-headig-color">'.$l['need_support'].'</h6>
				<div class="card-body">
					<p class="card-text"> '.$l['need_support_desc'].' </p>
					<a href="mailto:support@sitepad.com" class="btn btn-primary">'.$l['support'].'</a>
				</div>
			</div>
			<div class="card mt-4">
				<h6 class="card-header sp-headig-color">'.$l['found_bug'].'</h6>
				<div class="card-body">
					<p class="card-text">'.$l['found_bug_desc'].'</p>
					<a href="mailto:support@sitepad.com" class="btn btn-primary"> '.$l['found_bug_btn'].' </a>
				</div>
			</div>
		</div>
	</div>
</div>

</form>';

softfooter();

}

Zerion Mini Shell 1.0