📄 function_dskspace.php
字号:
<?
/**
*
* @package wappyCULT: wap community script
* @version 1.00 2006/09/12 21:53:27 wappy
* @copyright (c) 2004-2006 wappyCULT
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
function dskspace ($dir)
{
$s = stat ($dir);
$space = $s ["blocks"]* 512;
if (is_dir ($dir))
{
$dh = opendir ($dir);
while (($file = readdir ($dh)) !==false)
if ($file != "." and $file != "..")
$space += dskspace ($dir . "/" . $file);
closedir ($dh);
}
return $space;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -