view.php
来自「php蓝狐文章管理系统」· PHP 代码 · 共 30 行
PHP
30 行
<?session_start();
require "./inc/func.php";
check_login();
require "./inc/header.inc";
require "./inc/nav.inc";
$location=".";
$res = chdir($location);
// if chdir() successful
if ($res)
{
// get directory handle
$hook = dir($location);
while ($file=$hook->read())
{
if (is_file($file))
{
echo "<a href=edit.php?id=$file>$file</a><br>";
}
}
$hook->close();
}
else
{
echo "<b>Unable to locate directory $location</b><br>";
}
require "./inc/footer.inc";
?>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?