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/backups_theme.php

<?php

//////////////////////////////////////////////////////////////
//===========================================================
// backups_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 backups_theme(){

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

softheader($l['title_backup_restore']);

echo '<div class="bg">
<br />
<div class="row sai_main_head" style="width:100%;" align="center">
	<div class="col-sm-5 col-xs-5" style="padding:0 10px 0 0; text-align:right;">
		<i class="fa sai-backup fa-2x" style="color:#00A0D2;"></i>
	</div>
	<div class="col-sm-7 col-xs-7" style="padding-top:10px; padding-left:0; text-align:left;">'.$l['title_backup_restore'].'</div>
</div>
<hr>';

error_handle($error, '100%');

if(!empty($deleted)){
	echo '<div class="alert alert-warning"><center><a href="#close" class="close" data-dismiss="alert" aria-label="close">&times;</a>'.$l['backup_deleted'].'</center></div>';
}

$info_only = optGET('info_only');

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>
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function _confirm(){
	var conf = confirm("'.$l['confirm_del'].'");
	if(conf){
		return true;
	}else{
		return false;
	}
};

// ]]></script>';


echo '<div class="bg2">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" class="table table-hover">
	<tr>
		<thead class="sai_head2" style="background:#333; color:#fff;">
			<th width="33%"><b>'.$l['bac_of'].'</b></th>
			<th width="30%"><b>'.$l['file_name'].'</b></th>
			<th width="6%"><b>'.$l['size'].'</b></th>
			<!--<th width="8%" align="left"><b>'.$l['version'].'</b></th>-->
			<th width="9%"><b>'.$l['notes'].'</b></th>
			<th width="10%"><b>'.$l['options'].'</b></th>
			<!--<th width="4%"><input type="checkbox" id="check_all_backups" onchange="multiple_check()"></th>-->
		</thead>
	</tr>
	</table>';

	if(count($backups) > 0){
		
		$j=1;
		
		foreach($backups as $sid => $back_ups){
			$i=1;
			
			echo '
			<table border="0" cellpadding="5" cellspacing="0" width="100%" class="table">
				<tr>
					<td>
					<table border="0" cellpadding="5" cellspacing="0" width="100%" id="abody" class="table table-hover borderless">';
					
					foreach($back_ups as $backs){
						$siteurl = site_url($backs);
						
						echo '<tr><td width="30%">';
						if($i == 1){
							echo '<a href="'. $siteurl.'" target="_blank">'.$siteurl.'</a>';
						}else{
							echo '&nbsp;';
						}
						echo '</td>
						<td width="30%" style="word-break:break-all;"><a href="'.$globals['ind'].'act=backups&download='.rawurlencode($backs['name'].'.'.$backs['ext']).'" title="'.$l['download'].'">'.$backs['name'].'.'.$backs['ext'].'</a></td>
						</td>
						<td width="7%">'.number_format($backs['size']/1024/1024, 2).' '.$l['size_mb'].'</td>
						<!--<td width="8%">'.(!empty($backs['ver']) ? $backs['ver'] : '').'</td>-->'.
						(!empty($backs['backup_note']) ? '<td width="5%"><i class="fa sai-file fa-1x" onmouseover="showtip(\''.addcslashes(htmlentities($backs['backup_note']), "'").'\', this);" style="cursor:pointer;"></i></td>' : '<td width="4%">&nbsp</td>')
						.'
						<td width="4%">';
						
						if(!empty($backs['backup_loc'])){
							
							echo '<i onmouseover="showtip(\''.$l['remote_location'].addcslashes(htmlentities($user['remote_backup_locs'][$backs['backup_loc']]['name']), "'").'\', this);" style="cursor:pointer;color:#00A0D2;" class="fa sai-external fa-1x"></i>';
							
						}
						
						echo '<a href="'.$globals['ind'].'act=backups&download='.rawurlencode($backs['name'].'.'.$backs['ext']).'" title="'.$l['download'].'"><i class="fa sai-download fa-1x"></i></a>';
						
						echo '</td>
						<td width="4%">
							<a href="'.$globals['ind'].'act=restore&restore='.rawurlencode($backs['name'].'.'.$backs['ext']).'" title="'.$l['restore'].'"><i class="fa sai-restore fa-1x"></i></a>
						</td>
						<form accept-charset="'.$globals['charset'].'" method="post" action="'.$globals['ind'].'act=backups&remove='.rawurlencode($backs['name'].'.'.$backs['ext']).(!empty($info_only) ? '&info_only=1' : '').'" class="form-horizontal">
						<td width="4%">
							<button type="submit" title="'.$l['remove'].'" onclick="return _confirm();" style="border-width:0; padding:0; background:none;"><i class="fa sai-remove fa-1x"></i></button>
						</td>
						</form>
						<!--<td width="3%">
							<input type="checkbox" name="insids[]" id="'.$siteurl.'" value="'.$siteurl.'" class="shift_select_backups check_all_backups">
						</td>-->
						</tr>';
						$i++;
					}
				echo '</table>
				</td></tr>
			</table><br />';
		}

	}else{

		echo '<br /><br /><center><table><tr>
			<td colspan="4" align="center">
				'.$l['no_backups'].'
			</td>
			</tr></table><center>';

	}

	echo '<br />
		<!--<p align="right">
			'.$l['with_selected'].': 
			<select name="multi_options" id="multi_options">
				<option name="todo" id="todo" value="0">---</option>
				<option name="todo" id="todo" value="mult_rem">'.$l['remove'].'</option>
			</select>
			<input type="button" value="'.$l['go'].'" onclick="show_confirm()" class="sai_graybluebut">
			<br />
		</p>-->
		<div id="rem_div"></div>
</div><!--end of bg class-->
</div>';

softfooter();

}

Zerion Mini Shell 1.0