admin/pic_view.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 图像查看
*
* @version $Id: pic_view.php 1 15:26 2010年7月20日Z tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
CheckPurview('pic_view');
if(empty($activepath)) $activepath = $cfg_medias_dir;
$activepath = preg_replace("#\/{1,}#", "/", $activepath);
$truePath = $cfg_basedir.$activepath;
$listSize=5;
include DedeInclude('templets/pic_view.htm');
function GetPrePath($nowPath)
{
if($nowPath == "" || $nowPath == "/")
{
echo("当前为根目录\n");
}
else
{
$dirs = split("/", $nowPath);
$nowPath = "";
for($i=1; $i<count($dirs)-1; $i++)
{
$nowPath .= "/".$dirs[$i];
}
echo("<a href=\"pic_view.php?activepath=".$nowPath."\">转到上级目录</a>\n");
}
}
function ListPic($truePath, $nowPath)
{
global $listSize;
$col=0;
$rowdd=0;
$rowdd++;
$imgfile="";
$truePath = preg_replace("#\/$#", "", preg_replace("#\\\\{1,}#", "/", trim($truePath)));
$nowPath = preg_replace("#\/$#", "", preg_replace("#\/{1,}#", "/", trim($nowPath)));
$dh = dir($truePath);
echo("<tr align='center'>\n");
while( $filename = $dh->read() )
{
if(!preg_match("#\.$#", $filename))
{
$fullName = $truePath."/".$filename;
$fileUrl = $nowPath."/".$filename;
if(is_dir($fullName))
{
if($col % $listSize==0 && $col != 0)
{
echo("</tr>\n<tr align='center'>\n");
for($i = $rowdd-$listSize; $i < $rowdd; $i++)
后面还有 97 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。