ok
Direktori : /usr/local/sitepad/www/themes/default/ |
Current File : //usr/local/sitepad/www/themes/default/backup_site_theme.php |
<?php ////////////////////////////////////////////////////////////// //=========================================================== // backup_site_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 backup_site_theme(){ global $globals, $l, $theme, $nupanel, $error, $user, $themes, $insid, $done, $location; softheader($l['title_backup_site']); echo ' <form accept-charset="'.$globals['charset'].'" name="remove_site" method="post" action="" id="remove_site" class="form-horizontal"> <div class="bg mt-2 p-5 "> <div class="row sai_main_head"> <div class="col-sm-12 col-xs-12 text-center"> <h3><i class="fa sai-backup" style="color:#00A0D2;"></i> <span>'.$l['title_backup_site'].'</span></h3>'. (empty($done) ? '<div class="sai_sub_head text-left">'.$l['select_backup_option'] .'</div>' : '' ). ' </div> </div> <hr/>'; error_handle($error, '100%'); $site = $user['ins'][$insid]; if(empty($site)){ echo '<div class="alert alert-danger" style="padding:10px;font-size:15px;"><center><i class="sai sai-remove"></i> '.$l['no_ins_found'].' </center> </div> <br/> <center><a href="'.$globals['index'].'act=all_sites" class="sai_head">'.$l['return_all_site'].'</a></center>'; return false; } if(!empty($done)){ echo '<div class="alert alert-success" style="padding:10px;font-size:15px;"><center><i class="sai sai-success"></i> '.$done['msg'].' </center> </div> <br/> <center><a href="'.$globals['index'].'act=all_sites" class="sai_head">'.$l['return_all_site'].'</a></center> '; return true; } echo '<div class="row mt-4 mb-4"> <div class="col-sm-12"> <div class="row py-2"> <div class="col-sm-4"> <label for="backup_dir" class="sai_head">'.$l['backup_dir'].'</label> <span class="sai_exp">'.$l['backup_dir_exp'].'</span> </div> <div class="col-sm-8"> <input type="checkbox" name="backup_dir" checked="checked"> </div> </div> <div class="row py-2"> <div class="col-sm-4"> <label for="backup_db" class="sai_head">'.$l['backup_db'].'</label> <span class="sai_exp">'.$l['backup_db_exp'].'</span> </div> <div class="col-sm-8"> <input type="checkbox" name="backup_db" checked="checked"> </div> </div> <div class="row py-2"> <div class="col-sm-4"> <label for="backup_note" class="sai_head">'.$l['backup_note'].'</label> <span class="sai_exp">'.$l['backup_note_exp'].'</span> </div> <div class="col-sm-8"> <input type="text" name="backup_note" value="'.POSTval('backup_note').'" class="form-control"> </div> </div> <!--<div class="row py-2"> <div class="col-sm-4"> <label for="backup_loc" class="sai_head">'.$l['backup_loc'].'</label> <span class="sai_exp">'.$l['backup_loc_exp'].'</span> </div> <div class="col-sm-8"> <select name="backup_loc" class="form-control">'; foreach($location as $k => $v){ echo '<option value="'.$k.'">'.$v.'</option>'; } echo ' </select> </div> </div>--> </div> </div> <div class="row"> <div class="col-sm-9 mx-auto"> <div class="info_block"> <div class="sai_sub_head">'.$l['site_info'] .'</div> <hr/> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['site_id'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.$site['insid'].'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['site_name'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.$site['title'].'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['ins_time'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.(!empty($site['ins_time']) ? date('d/m/Y', $site['ins_time']) : '').'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['path'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.$site['path'].'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['url'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.sitepad_site_url($site['insid']).'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['db_name'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.$site['db_name'].'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['db_user'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.$site['db_user'].'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['db_host'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.$site['db_host'].'</span> </div> </div> <div class="row mb-3"> <div class="col-sm-5"> <span class="sai_head">'.$l['db_table_prefix'] .'</span> </div> <div class="col-sm-6"> <span class="sai_info">'.$site['db_table_prefix'].'</span> </div> </div> </div> </div> <div class="col-sm-12 text-center"> <button type="submit" name="backup_ins" class="btn btn-primary mb-4 mt-4">'.$l['backup_ins'].'</button> <br/> <a href="'.$globals['index'].'act=all_sites" class="sai_head">'.$l['return_all_site'].'</a> </div> </div> </div> </form>'; softfooter(); }