<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: main.tpl.php 64 2016-07-30 14:01:18Z along $
#
#	Copyright (C) 2008-2016 PHPDisk Team. All Rights Reserved.
#
##
#-->
<?php !defined('IN_PHPDISK') && exit('[PHPDisk] Access Denied!'); ?>
<div id="container">
<h1><?=__('admincp_statistics')?><!--#sitemap_tag(__('admincp_statistics'));#--></h1>
<div>
<div class="tips_box"><img class="img_light" src="images/light.gif" align="absmiddle" /> <b><?=__('tips')?>: </b>
<span class="txtgray"><?=__('stats_tips')?></span>
</div>
<div id="warning"></div>
<!--#if($install_dir_exists){#-->
<div id="install_exists_tips" class="msg_tips"><img src="images/light.gif" align="absmiddle" border="0" /> <?=__('install_exists_tips')?></div>
<!--#}#-->
<table align="center" width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>
	<td width="15%" align="right"><?=__('users_count')?>: </td>
	<td>{$stats['users_count']} , <?=__('users_locked_count')?>&nbsp;&nbsp;<a href="{#urr(ADMINCP,"item=users&menu=extend&action=index&gid=0&orderby=is_locked")#}"><span class="txtred bold">{$stats['users_locked_count']}</span></a>  , <?=__('users_open_count')?>&nbsp;&nbsp;<span class="txtblue bold">{$stats['users_open_count']}</span></td>
	<td rowspan="5" valign="top" width="50%"><div style="font-size:14px; border:1px solid #CCC; padding:8px; height:auto">{#get_auth_info()#}</div></td>
</tr>
<tr>
	<td align="right"><?=__('total_storage_count')?>: </td>
	<td>{$stats['all_files_count']} , <?=__('in_storage')?> <b>{$stats['total_storage_count']}</b></td>
</tr>
<tr>
	<td align="right"><?=__('other_stats')?>: </td>
	<td><?=__('user_folders_count')?> {$stats['user_folders_count']} </td>
</tr>
<tr>
	<td align="right">网站空间统计: </td>
	<td>剩{#get_size(disk_free_space(PHPDISK_ROOT))#}/共{#get_size(disk_total_space(PHPDISK_ROOT))#}</td>
</tr>
<tr class="bold">
	<td align="right">系统最大用户数: </td>
	<td>{$max_user_num}</td>
</tr>
</table>
<br />
<table width="100%" cellpadding="4" cellspacing="1" class="tableborder" style="display:{$show_news_frame}">
<tr>
	<td class="table_title"><?=__('phpdisk_site_news')?></td>
</tr>
<tr>
	<td><div id="phpdisk_news"></div></td>
</tr>
</table>
<br />
<table align="center" width="100%" cellpadding="4" cellspacing="1" class="tableborder">
<tr>
	<td class="table_title" colspan="2"><?=__('system_env')?></td>
</tr>
<!--#if(!$settings['online_demo']){#-->
<tr>
	<td class="tablerow"><?=__('system_host')?>: {$_SERVER['SERVER_NAME']}({$_SERVER['SERVER_ADDR']})</td>
	<td class="tablerow" valign="top" width="50%" rowspan="6"><div style="margin-bottom:5px;"><?=__('phpdisk_email_subscribe')?></div><script >var nId = "0e1bc68fa78ff8fd7d9841059b4313737169dd94b352cf7e",nWidth="500",sColor="light",sText="<?=__('phpdisk_email_subscribe2')?>" ;</script><script src="http://list.qq.com/zh_CN/htmledition/js/qf/page/qfcode.js" charset="gb18030"></script></td>
</tr>
<tr>
	<td class="tablerow"><?=__('system_server')?>: {$_SERVER['SERVER_SOFTWARE']}</td>
</tr>
<!--#}#-->
<tr>
	<td class="tablerow"><?=__('system_base')?>: MySQL {$mysql_info}, PHP {PHP_VERSION}, <?=__('system_post_file')?> <span class="bold">{$post_max_size}</span>, <?=__('system_upload_file')?> <span class="bold">{$file_max_size}</span><span class="txtred">(<?=__('max_upload_file_tips')?>)</span></td>
<tr>
	<td class="tablerow"><?=__('system_gd_info')?>: {$gd_support} ({$gd_info})</td>
</tr>
<tr>
	<td class="tablerow"><?=__('iconv_txt')?>: (<?=__('iconv_support')?>: {$iconv_support} <?=__('or')?> <?=__('mbstring_support')?>: {$mbstring_support} ) <span class="txtgray">(<?=__('iconv_tips')?>)</span></td>
</tr>
<tr>
	<td class="tablerow"><?=__('phpdisk_commend')?>: 
	<a href="http://bbs.phpdisk.com/viewthread.php?tid=1506" target="_blank"><?=__('phpdisk_prober')?></a>
	<a href="http://www.phpdisk.com/addvalue.html" target="_blank" class="txtred"><?=__('phpdisk_addvalue')?></a>
	</td>
</tr>
</table>
<br />
<table align="center" width="100%" cellpadding="4" cellspacing="1" class="tableborder">
<tr>
	<td class="table_title"><?=__('about_system')?></td>
</tr>
<tr>
	<td class="tablerow"><?=__('program_develop')?>: <a href="http://bbs.phpdisk.com/space.php?uid=1" target="_blank">along</a></td>
</tr>
<tr>
	<td class="tablerow"><?=__('official_site')?>: <a href="http://www.phpdisk.com/" target="_blank">http://www.phpdisk.com</a></td>
</tr>
<tr>
	<td class="tablerow"><?=__('phpdisk_bbs')?>: <a href="http://bbs.phpdisk.com/" target="_blank">http://bbs.phpdisk.com</a></td>
</tr>
<tr>
	<td class="tablerow"><?=__('phpdisk_demo')?>: <a href="http://demo.phpdisk.com/" target="_blank">http://demo.phpdisk.com</a></td>
</tr>
<tr>
	<td class="tablerow"><?=__('version_info')?>: <b>PHPDisk {PHPDISK_EDITION} {PHPDISK_VERSION} [{$charset_info}]</b> (Build{PHPDISK_RELEASE})</td>
</tr>
<tr>
	<td class="tablerow"><?=__('phpdisk_commend_tips')?></td>
</tr>
</table>

</div>
</div>
<div class="lo_box box_shadow" id="update_msgbox" style="display:none">
<div class="tit f14"><span style="float:right;cursor:pointer; margin-right:5px;" onclick="$('#update_msgbox').hide(300);" title="关闭">X</span><div id="sp_txt"></div></div>
  <div class="ann_list" id="ann_list" style="padding:3px;">
	<ul></ul>
	<div align="center" style="padding-bottom:5px;"><input type="hidden" id="last_u_day" /><input type="button" onclick="close_update_msgbox()" class="btn" value="我已清楚，忽略此版本升级提示。" /></div>
</div>
</div>

<script language="javascript">
function close_update_msgbox(){
	if(confirm('确认忽略此版本升级提示吗？')){
		var last_u_day = $.trim($('#last_u_day').val());
		$.ajax({
			type : 'post',
			url : 'adm_ajax.php',
			data : 'action=close_update_msgbox&day='+last_u_day,
			dataType : 'json',
			success:function(cb){
				if(cb.success){
					$('#update_msgbox').hide(300);
				}else{
					atips(cb.msg);
				}
			},
			error:function(){
			}
	
		});
	}
}

function autoupdate(){
	document.write("<img src=http://www.phpdisk.com/autoupdate.php?edition={#rawurlencode(PHPDISK_EDITION)#}&version={#rawurlencode(PHPDISK_VERSION)#}&release={#rawurlencode(PHPDISK_RELEASE)#}&server=<?=rawurlencode($_SERVER['HTTP_HOST'])?> width=0 height=0>");
}
autoupdate();
$('#phpdisk_news').html('<img src="images/ajax_loading.gif" align="absmiddle" border="0" />官方动态数据加载中...');
$.getScript('{$auth[com_news_url]}',function(){
	var arr = cb.split('|');
	if(arr[2]!=''){
		layer.open({
			title:arr[1],
			content:arr[2]
		});
	}
	$('#phpdisk_news').html(arr[0]);
});
setTimeout(function(){
	$.getScript('{$auth[com_upgrade_url]}?pr={PHPDISK_RELEASE}',function(){			
		if(dt!=''){
			var arr2 = dt.split('|');
			if(arr2[2]!='{$last_up_day}'){
				$('#last_u_day').val(arr2[2]);
				$('#sp_txt').html(arr2[0]);
				$('#ann_list > ul').html(arr2[1]);
				$('#update_msgbox').show(300);
			}
		}
	});
},3000);
</script>
