filesystem.class.php

来自「STCMS 音乐系统 v2.5 build 090501: 为达到最佳效果」· PHP 代码 · 共 49 行

PHP
49
字号
<?php
///////////////////////////////////////////////////////////////////
// Author:daong | E-mail: dahongy@gmail.com
// Copyright &copy Http://www.phpstcms.cn
// This is not a free software, please to pay for more functions
// $Id: 2009-05-01 version V2.5 $
///////////////////////////////////////////////////////////////////
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 + -
显示快捷键?