<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case 'manage': checkpower("menu_template_manage"); $dir = trim($_GET["dir"]); $L = GetFolderList($dir, "templates", ""); da_admin_head(); ?> <div class="container" id="cpcontainer"> <table class="tb tb2 nobdb" width="100%"> <tr> <th height="20">当前路径:<strong><a href="admincp.php?do=template&operation=manage"><?php echo $Folder . '/' . $dir; ?> </a></strong></th> </tr> </table> <table class="tb tb2 nobdb" width="100%"> <?php if ($L['parentfolder']) { ?>
<?php header("content-Type: text/html; charset=utf-8"); require "private.php"; InitParam(); $GLOBALS["sAction"] = strtoupper(TrimGet("action")); if ($GLOBALS["sAction"] == "FILE") { OutScript(GetFileList()); } else { $GLOBALS["sAction"] = "FOLDER"; OutScript(GetFolderList()); } function GetFileList() { $s_ReturnFlag = TrimGet("returnflag"); $s_FolderType = TrimGet("foldertype"); $s_Dir = TrimGet("dir"); $s_CurrDir = ""; $s_Dir = UTF8_to_Pagecode($s_Dir, true); switch ($s_FolderType) { case "upload": $s_CurrDir = $GLOBALS["sUploadDir"]; break; case "shareimage": $GLOBALS["sAllowExt"] = ""; $s_CurrDir = $GLOBALS["sPathShareImage"]; break; case "shareflash": $GLOBALS["sAllowExt"] = ""; $s_CurrDir = $GLOBALS["sPathShareFlash"]; break;
/* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); $in = $_GET['in']; switch ($operation) { case in_array($operation, array('file', 'template')): $dir = trim($_GET["dir"]); $type = $_GET["type"]; $hit = $_GET["hit"]; $from = $_GET["from"]; $Folder = $operation == 'template' ? 'templates' : $DreamCMS->config['uploadfiledir']; $L = GetFolderList($dir, $Folder, $type); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo htmlcharset(); ?> "> <link rel="stylesheet" href="admin/images/style.css" type="text/css" media="all" /> <link rel="stylesheet" href="admin/images/jquery.function.css" type="text/css" media="all" /> <script type="text/javascript" src="include/javascript/jquery.js"></script> <script type="text/javascript" src="include/javascript/jquery.function.js"></script> <script type="text/javascript" src="include/javascript/admin.fun.js"></script>