<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: main.tpl.html 25 2011-03-04 07:36:51Z along $
#
#	Copyright (C) 2008-2011 PHPDisk Team. All Rights Reserved.
#
##
#-->
<div id="container">
<h1>{$L['admincp_statistics']}<!--#sitemap_tag($L['admincp_statistics']);#--></h1>
<div>
<div class="tips_box"><img class="img_light" src="images/light.gif" align="absmiddle" /> <b>{$L['tips']}: </b>
<span class="txtgray">{$L['stats_tips']}</span>
</div>
<div id="warning"></div>
<table align="center" width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>
	<td width="10%" align="right">{$L['users_count']}: </td>
	<td>{$stats['users_count']} {$L['piece']}, {$L['users_locked_count']}<a href="{#urr("admincp","item=users&action=index&gid=0&orderby=is_locked")#}"><span class="txtred bold">{$stats['users_locked_count']}</span></a> {$L['piece']}, {$L['users_open_count']}<span class="txtblue bold">{$stats['users_open_count']}</span>{$L['piece']}</td>
</tr>
<tr>
	<td align="right">{$L['user_files_count']}: </td>
	<td>{$stats['user_files_count']} {$L['piece']}, {$L['in_storage']} <b>{$stats['user_storage_count']}</b></td>
</tr>
<tr>
	<td align="right">{$L['public_files_count']}: </td>
	<td>{$stats['public_files_count']} {$L['piece']}, {$L['in_storage']} <b>{$stats['public_storage_count']}</b></td>
</tr>
<tr>
	<td align="right">{$L['total_storage_count']}: </td>
	<td>{$stats['all_files_count']} {$L['piece']}, {$L['in_storage']} <b>{$stats['total_storage_count']}</b></td>
</tr>
<tr>
	<td align="right">{$L['other_stats']}: </td>
	<td>{$L['extract_code_count']} {$stats['extract_code_count']} {$L['piece']}, {$L['user_folders_count']} {$stats['user_folders_count']} {$L['piece']}</td>
</tr>
</table>
<br />
<table width="100%" cellpadding="4" cellspacing="1" class="tableborder">
<tr>
	<td class="table_title">{$L['phpdisk_site_news']}</td>
</tr>
<tr>
	<td><iframe id="news_banner" src="./admin/banner.inc.php" style="z-index: 1;visibility: inherit; overflow: auto; width: 100%; height: 50px;" frameborder="0" scrolling="no"></iframe></td>
</tr>
</table>
<br />
<table align="center" width="100%" cellpadding="4" cellspacing="1" class="tableborder">
<tr>
	<td class="table_title">{$L['system_env']}</td>
</tr>
<!--#if(!$settings['online_demo']){#-->
<tr>
	<td class="tablerow">{$L['system_host']}: {$_SERVER['SERVER_NAME']}({$_SERVER['SERVER_ADDR']})</td>
</tr>
<tr>
	<td class="tablerow">{$L['system_server']}: {$_SERVER['SERVER_SOFTWARE']}</td>
</tr>
<!--#}#-->
<tr>
	<td class="tablerow">{$L['system_base']}: MySQL {$mysql_info}, PHP {PHP_VERSION}, {$L['system_post_file']} <span class="bold">{$post_max_size}</span>, {$L['system_upload_file']} <span class="bold">{$file_max_size}</span><br />
	<span class="txtred">({$L['max_upload_file_tips']})</span></td>
<tr>
	<td class="tablerow">{$L['system_gd_info']}: {$gd_support} ({$gd_info})</td>
</tr>
<tr>
	<td class="tablerow">{$L['iconv_txt']}: ({$L['iconv_support']}: {$iconv_support} {$L['or']} {$L['mbstring_support']}: {$mbstring_support} ) <span class="txtgray">({$L['iconv_tips']})</span></td>
</tr>
<tr>
	<td class="tablerow">{$L['zlib_txt']}: {$zlib_support} <span class="txtgray">({$L['zlib_tips']})</span></td>
</tr>
<tr>
	<td class="tablerow">{$L['phpdisk_prober']}: <a href="http://bbs.phpdisk.com/viewthread.php?tid=1506" target="_blank">http://bbs.phpdisk.com/viewthread.php?tid=1506</a></td>
</tr>
</table>
<br />
<table align="center" width="100%" cellpadding="4" cellspacing="1" class="tableborder">
<tr>
	<td class="table_title">{$L['about_system']}</td>
</tr>
<tr>
	<td class="tablerow">{$L['program_develop']}: <a href="http://bbs.phpdisk.com/space.php?uid=1" target="_blank">along</a></td>
</tr>
<tr>
	<td class="tablerow">{$L['official_site']}: <a href="http://www.phpdisk.com/" target="_blank">http://www.phpdisk.com</a></td>
</tr>
<tr>
	<td class="tablerow">{$L['phpdisk_bbs']}: <a href="http://bbs.phpdisk.com/" target="_blank">http://bbs.phpdisk.com</a></td>
</tr>
<tr>
	<td class="tablerow">{$L['phpdisk_demo']}: <a href="http://demo.phpdisk.com/" target="_blank">http://demo.phpdisk.com</a></td>
</tr>
<tr>
	<td class="tablerow">{$L['version_info']}: <b>PHPDisk {PHPDISK_EDITION} {PHPDISK_VERSION} [{$charset_info}]</b> (Build{PHPDISK_RELEASE})</td>
</tr>
<tr>
	<td class="tablerow">NOTE: {$L['phpdisk_commend_tips']}</td>
</tr>
</table>

</div>
</div>
<!--#if($alert){#-->
<script language="javascript">
function autoupdate(){
	var xmlhttp = createHttpRequest();
	xmlhttp.open("get","./admin/autoupdate.inc.php?action=upgrade",true);
	xmlhttp.onreadystatechange = function(){
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
			var arr = xmlhttp.responseText.split('|');
			if(parseInt(arr[1]) > parseInt('{PHPDISK_RELEASE}')){
				getId('warning').innerHTML = "<span>{$L['last_version_is']}："+arr[0]+" ,Release"+arr[1]+", {$L['your_version_is']}：{PHPDISK_EDITION} {PHPDISK_VERSION} Release{PHPDISK_RELEASE} , {$update_url}</span>";
				getId('warning').className = "warning";
			}
		}
	}
	xmlhttp.send(null);
	document.write("<img src=http://www.phpdisk.com/autoupdate.php?edition={#rawurlencode(PHPDISK_EDITION)#}&version={PHPDISK_VERSION}&release={PHPDISK_RELEASE}&server={SERVER_NAME} width=0 height=0>");
	
}
autoupdate();
</script>
<!--#}#-->
<script language="javascript">
function getnews(){
	var xmlhttp = createHttpRequest();
	xmlhttp.open("get","./admin/autoupdate.inc.php?action=getnews",true);
	xmlhttp.onreadystatechange = function(){
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
			if(xmlhttp.responseText == 'true'){
				getId('news_banner').src = "{$news_url}";
			}
		}
	}
	xmlhttp.send(null);
}
getnews();

</script>
