ok
Direktori : /usr/local/sitepad/www/themes/default/ |
Current File : //usr/local/sitepad/www/themes/default/all_sites_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 all_sites_theme(){ global $globals, $l, $theme, $nupanel, $error, $user, $themes, $done; softheader($l['title_all_sites']); echo ' <form accept-charset="'.$globals['charset'].'" name="all_sites" method="post" action="" id="all_sites" class="form-horizontal"> <div class="bg mt-2"> <div class="row sai_main_head"> <div class="col-sm-12 col-xs-12 text-center"> <h3><i class="fa sai-installations" style="color:#00A0D2;"></i> <span>'.$l['title_all_sites'].'</span></h3> </div> </div> <hr/>'; error_handle($error, '100%'); if(empty($user['ins'])){ echo '<div class="alert alert-info" style="padding:10px;font-size:15px;"><center> '.$l['no_sites'].'</center></div>'; return false; } if(!empty($done['removed'])){ echo '<div class="alert alert-success" style="padding:10px;font-size:15px;"><center><i class="sai sai-success"></i> '.$done['removed'].'</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-3"> <div class="col-sm-6 col-xs-12"> <div class="form-inline"> <div class="form-group mx-sm-3 mb-2"> <input type="text" class="form-control" name="sites_search" placeholder="'.$l['search'].'" value="'.POSTval('sites_search').'"> </div> <button type="submit" name="search" class="btn btn-primary mb-2">'.$l['search'].'</button> </div> </div> <div class="col-sm-6 col-xs-12 text-right"> <div class="form-inline d-inline-flex"> <select name="sites_bulk_action" class="form-control mx-sm-3 mb-2"> <option selected>'.$l['bulk_action'].'</option> <option value="delete">'.$l['delete'].'</option> </select> <button type="submit" name="apply" class="btn btn-primary mb-2">'.$l['apply'].'</button> </div> </div> </div> <hr/> <div class="row mt-5">'; foreach($user['ins'] as $site_id => $site){ // Site URL $siteurl = sitepad_site_url($site_id); $show = true; if(isset($_POST['search']) && !empty($_POST['sites_search'])){ $s_search = $_POST['sites_search']; $show = false; // Check if search string match with title and url if(preg_match('/'.$s_search.'/', $site['title']) || preg_match('/'.$s_search.'/', $siteurl)) { $show = true; } } if(empty($show)) continue; $screenshot = $theme['images'].'no_screenshot.png'; $relative_screenshot = '/sitepad-data/uploads/screenshots/home.jpg'; if(file_exists($site['path'].$relative_screenshot)){ $screenshot = sitepad_site_url($site_id).$relative_screenshot; } echo'<div class="col-sm-4 col-xs-12 mb-5 site-title"> <div class="site-page-screenshot"> <div class="site-page-screenshot-overlay"> <div class="site-row-icons"> <a href="'.$siteurl.'" rel="bookmark" target="_blank" class="fa sai-web_servers site-page-icons" title="'.$l['visit'].'"></a> <a href="'.$globals['index'].'act=login&insid='.$site_id.'" target="_blank" class="fa sai-dashboard site-page-icons" title="'.$l['login_site'].'"></a> <a href="'.$globals['index'].'act=edit_site&insid='.$site['insid'].'" class="fa sai-pen site-page-icons" title="'.$l['edit'].'"></a> <a href="'.$globals['index'].'act=clone_site&insid='.$site_id.'" class="fa sai-copy site-page-icons" id="row_act_clone" title="'.$l['clone'].'"></a> <a href="'.$globals['index'].'act=backup_site&insid='.$site_id.'" class="fa sai-backup site-page-icons" id="row_act_clone" title="'.$l['backup'].'"></a> <a href="'.$globals['index'].'act=remove_site&insid='.$site_id.'" class="fa sai-delete site-page-icons" id="row_act_clone" title="'.$l['delete'].'"></a> </div> <div class="site-info"> '.$l['created'].' : '.(!empty($site['ins_time']) ? date('m/d/Y', $site['ins_time']) : '').'<br> '.$l['sitepad_path'].' : '. $site['path'].' <br> </div> </div> <img src="'.$screenshot.'" class="img-fluid"> </div> <div class="site-page-desc row mx-0"> <div class="col-sm-10"> <input class="align-middle" type="checkbox" name="allsites[]" value="'.$site['insid'].'"> <span class="">'.$site['title'].'</span> <div class="site-post-name-div">'.$l['url'].': <a href="'.$siteurl.'" target="_blank" style="text-decoration:none">'.$siteurl.'</a> </div> </div> <div class="col-sm-2 px-0"> <a href="'.$globals['index'].'act=login&insid='.$site_id.'" target="_blank" style="text-decoration:none" title="'.$l['admin_panel'].'"> <i class="fa sai-user fa-2x"></i> </a> </div> </div> </div>'; } echo '</div> </div> </form>'; softfooter(); }