ok
Direktori : /proc/thread-self/root/usr/local/sitepad/www/www/www/themes/default/admin/ |
Current File : //proc/thread-self/root/usr/local/sitepad/www/www/www/themes/default/admin/adminindex_theme.php |
<?php ////////////////////////////////////////////////////////////// //=========================================================== // adminindex_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 adminindex_theme(){ global $theme, $globals, $user, $l, $scripts, $cscripts, $iscripts, $count_data, $nupanel; softheader($l['head_ap']); echo '<script language="javascript" type="text/javascript" src="'.serverurls('latestinfo').'"></script> <script type="text/javascript"> function load_soft_info(){ $_("softnews").style.width = $_("softnewsholder").offsetWidth; //The news if(typeof(soft_news) == "undefined"){ $_("softnews").innerHTML = "'.$l['conect_to_soft'].'"; }else{ var newsstr = ""; for(x in soft_news){ newsstr = newsstr+\'<div class="softnewshead">\'+soft_news[x][0]+\'</div>\'+\'<div class="softnewsblock">\'+soft_news[x][1]+\'</div><br />\'; } $_("softnews").innerHTML = newsstr; } //The current version if(typeof(soft_latest_version) == "undefined"){ $_("newsoftversion").innerHTML = "<i>'.$l['no_info'].'</i>"; }else{ $_("newsoftversion").innerHTML = soft_latest_version; } } addonload(\'load_soft_info();\'); function rotate_img() { $("#refresh_ins_count, #refresh_user_count, #refresh_domain_count").click(function () { $(this).first().addClass("fa-rotate-360"); }); } $(document).ready(function(){ try{ $("#refresh_ins_count, #refresh_user_count, #refresh_domain_count").tooltip(); }catch(e){} $("#refresh_user_count, #refresh_ins_count, #refresh_domain_count").click(function(){ var that = this; $.getJSON("'.$globals['ind'].'act=adminindex&rebuild_cache=1&api=json", function(data){ $(that).first().removeClass("fa-rotate-360"); //alert(data.users_count); $("#new_users_count").html(data.count_data.new_users_count); $("#new_sites_count").html(data.count_data.new_sites_count); $("#users_count").html(data.count_data.users_count); }); }); }); </script> <br /> <div class="bg2"><br />'; if(method_exists('nupanel', 'pricing_url')){ $pricing_url = $nupanel->pricing_url(); } if(empty($pricing_url)){ $pricing_url = serverurls('pricing'); } if(!defined('SOFTRESELLER')){ echo '<div class="row"> <div class="col-sm-4"> <div class="sai_smbox"> <div class="row pull-right" style="width:15%;"> <p style="color: #29B7D3; margin-top:-10px; position:absolute; cursor:pointer; "title="'.$l['users_count_title'].'" id="refresh_user_count" data-placement="bottom" onclick ="rotate_img()"><i class="fa sai-sync fa-1x"></i></p> </div> <center><p align="center" class="ie8_users" style="color: #29B7D3; font-size:13px; margin-top:-3px;"><i class="fa sai-blogs fa-3x"></i></p> <p id="new_users_count" style="color: #444; font-size: 15px; font-weight: normal; text-shadow: 0 1px 0 #fff;">'.(int) $count_data['new_users_count'].'</p> <p style="color: #999; font-size:12px; margin-top:-12px;"><b>'.$l['users'].'</b><br>(New Editor)</p></center> </div> </div> <div class="col-sm-4"> <div class="sai_smbox"> <center><p align="center" class="ie8_users" style="color: #29B7D3; font-size:13px; margin-top:-3px;"><i class="fa sai-blogs fa-3x"></i></p> <p id="new_sites_count" style="color: #444; font-size: 15px; font-weight: normal; text-shadow: 0 1px 0 #fff;">'.(int) $count_data['new_sites_count'].'</p> <p style="color: #999; font-size:12px; margin-top:-12px;"><b>'.$l['active_websites'].'</b><br>(New Editor)</p></center> </div> </div> <div class="col-sm-4"> <div class="sai_smbox"> <center><p align="center" class="ie8_users" style="color: #29B7D3; font-size:13px; margin-top:-3px;"><i class="fa sai-blogs fa-3x"></i></p> <p id="users_count" style="color: #444; font-size: 15px; font-weight: normal; text-shadow: 0 1px 0 #fff;">'.(int) $count_data['users_count'].'</p> <p style="color: #999; font-size:12px; margin-top:-12px;"><b>'.$l['users'].'</b><br>(Old Editor)</p></center> </div> </div> </div>'; } echo '<div class="sai_licensebox"> <div class="row"> <div class="col-md-12" align="center" style="color: #666; font-size:18px;"> '.$l['soft_info'].' <hr class="my-2" /> </div> </div> <div class="row"> <div class="col-sm-9 px-5"> <div class="softinfo" >'.(!defined('SOFTRESELLER') ? '<b>'.$l['soft_license'].'</b> : '.$globals['license'].' ('.$globals['ip'].')<br /> <b>'.$l['soft_license_type'].'</b> : '.$globals['type_txt'].' (<a href="'.$pricing_url.'" target="_blank">'.$l['pricing'].'</a>) (<a href="http://www.softaculous.com/clients" target="_blank">'.$l['client_center'].'</a>) (<a href="'.$globals['ind'].'refreshlicense">'.$l['refreshlicense'].'</a>)' : '').'<br /> <b>'.$l['server_addr'].'</b> : '.$_SERVER['SERVER_ADDR'].' <br /> '.(!defined('SOFTRESELLER') ? '<b>'.$l['expires'].'</b> : '.(empty($globals['expires']) ? $l['never'] : makedate($globals['expires']).' (DD/MM/YYYY)' ).' <br />': ''). '<b>'.$l['ip_license'].'</b> : '.@substr(curl_call('http://api.softaculous.com/ip.php', 0, 5), 0, 16).'<br /> <b>'.$l['soft_version'].'</b> : '.$globals['version'].'<br /> <b>'.$l['latest_soft_version'].'</b> : <span id="newsoftversion"></span> </div> </div> <div class="col-sm-3"> <div align="center"><img src="'.$theme['images'].(empty($globals['type']) ? 'free' : 'premium').'.png"/></div> </div> </div> </div> <div id="softnewsholder" style="margin-left:0px; margin-right:0px;"> <center class="news_content_header"> '.$l['news'].' </center> <div class="news_content sai_newzbox" style="padding:0;"> <div class="softnews" id="softnews"></div> </div> </div> </div><br />'; softfooter(); }