filesystem.class.php
来自「STCMS音乐系统 系统功能: 1、随意的添加导航栏目的频道」· PHP 代码 · 共 48 行
PHP
48 行
<?php
///////////////////////////////////////////////
// Author:daong | E-mail: dahongy@gmail.com
// Copyright © Http://stcms.vicp.net
// $Id: 09-03-23 final version $
///////////////////////////////////////////////
class FileSystem
{
var $dir = STCMS_ROOT;
var $file = '';
var $name = '';
var $size = 0;
var $mode = 777;
var $mtime = '';
function listFile($path)
{
if(is_dir($path))
{
$fileRs = scandir($path);
foreach($fileRs as $temp)
{
if(!in_array($temp,array('.','..')))
{
$sPath = checkPath($path).$temp;
if(is_dir($sPath))
{
$this->showDir($sPath);
}
elseif(is_file($sPath))
{
$this->showFile($sPath);
}
}
}
}
}
function showDir($path)
{
echo ""
}
funtion showFile($path)
{
}
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?