deleted
合并至 develop
@@ -77,7 +77,7 @@ Sockets:支持接入DedeBIZ商业组件模块 | |||||
2.上传程序目录中的`/src`到网站根目录; | 2.上传程序目录中的`/src`到网站根目录; | ||||
3.运行`http://www.yourname.com/install/index.php`(yourname表示你的域名),按照安装提速说明进行程序安装; | |||||
3.运行`http://www.yourname.com/install/index.php`(yourname表示您的域名),按照安装提速说明进行程序安装; | |||||
详细安装步骤可以查看[帮助文档](https://www.dedebiz.com/help) | 详细安装步骤可以查看[帮助文档](https://www.dedebiz.com/help) | ||||
@@ -9,7 +9,7 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
// 切换工作目录到./src | |||||
//切换工作目录到./src | |||||
$workDir = dirname(__FILE__) . "/src"; | $workDir = dirname(__FILE__) . "/src"; | ||||
chdir($workDir); | chdir($workDir); | ||||
@@ -32,7 +32,7 @@ WEBSITE: | |||||
https://www.dedebiz.com/help/ | https://www.dedebiz.com/help/ | ||||
"; | "; | ||||
// 将选项转化为SQL IN参数 | |||||
//将选项转化为SQL IN参数 | |||||
function Option2SQLin($str = "") | function Option2SQLin($str = "") | ||||
{ | { | ||||
$str = preg_replace("#[^0-9-,]#", "", $str); | $str = preg_replace("#[^0-9-,]#", "", $str); | ||||
@@ -72,8 +72,8 @@ function RandEncode($length=26) | |||||
} | } | ||||
if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | ||||
// PHP5.4以下不支持内建服务器 | |||||
// 用于开发调试 | |||||
//PHP5.4以下不支持内建服务器 | |||||
//用于开发调试 | |||||
if (phpversion() < "5.4") { | if (phpversion() < "5.4") { | ||||
die("DedeBIZ:command web server not support\n\n"); | die("DedeBIZ:command web server not support\n\n"); | ||||
} | } | ||||
@@ -89,10 +89,10 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
require_once($workDir . "/include/common.inc.php"); | require_once($workDir . "/include/common.inc.php"); | ||||
require_once(DEDEINC . "/cli.class.php"); | require_once(DEDEINC . "/cli.class.php"); | ||||
// 一个命令行的生成工具 | |||||
//一个命令行的生成工具 | |||||
if (count($argv) > 2 && ($argv[2] == "arc" || $argv[2] == "a")) { | if (count($argv) > 2 && ($argv[2] == "arc" || $argv[2] == "a")) { | ||||
// 生成文档 | |||||
// make arc typeid=1 | |||||
//生成文档 | |||||
//make arc typeid=1 | |||||
$t1 = ExecTime(); | $t1 = ExecTime(); | ||||
$addsql = "1=1"; | $addsql = "1=1"; | ||||
$typeid = Option2SQLin(DedeCli::getOption("typeid")); | $typeid = Option2SQLin(DedeCli::getOption("typeid")); | ||||
@@ -120,7 +120,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
DedeCli::write($queryTime); | DedeCli::write($queryTime); | ||||
exit; | exit; | ||||
} else if (count($argv) > 2 && ($argv[2] == "list" || $argv[2] == "l")) { | } else if (count($argv) > 2 && ($argv[2] == "list" || $argv[2] == "l")) { | ||||
// 生成栏目 | |||||
//生成栏目 | |||||
$addsql = "1=1"; | $addsql = "1=1"; | ||||
$typeid = Option2SQLin(DedeCli::getOption("typeid")); | $typeid = Option2SQLin(DedeCli::getOption("typeid")); | ||||
if (!empty($typeid)) { | if (!empty($typeid)) { | ||||
@@ -140,7 +140,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
} | } | ||||
exit; | exit; | ||||
} else if (count($argv) > 2 && ($argv[2] == "index" || $argv[2] == "i")) { | } else if (count($argv) > 2 && ($argv[2] == "index" || $argv[2] == "i")) { | ||||
// 生成首页 | |||||
//生成首页 | |||||
$position = DedeCli::getOption("position"); | $position = DedeCli::getOption("position"); | ||||
if (empty($position)) { | if (empty($position)) { | ||||
$position = "../index.html"; | $position = "../index.html"; | ||||
@@ -162,7 +162,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
$pv->SaveToHtml($homeFile); | $pv->SaveToHtml($homeFile); | ||||
DedeCli::write("Make index html successfull"); | DedeCli::write("Make index html successfull"); | ||||
} else if (count($argv) > 2 && ($argv[2] == "auto" || $argv[2] == "o")) { | } else if (count($argv) > 2 && ($argv[2] == "auto" || $argv[2] == "o")) { | ||||
// 自动生成 | |||||
//自动生成 | |||||
function OptimizeData($dsql) | function OptimizeData($dsql) | ||||
{ | { | ||||
global $cfg_dbprefix; | global $cfg_dbprefix; | ||||
@@ -184,7 +184,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
exit; | exit; | ||||
} | } | ||||
// 1.生成首页 | |||||
//1.生成首页 | |||||
$pv = new PartView(); | $pv = new PartView(); | ||||
$row = $pv->dsql->GetOne("SELECT * FROM `#@__homepageset` "); | $row = $pv->dsql->GetOne("SELECT * FROM `#@__homepageset` "); | ||||
$templet = str_replace("{style}", $cfg_df_style, $row['templet']); | $templet = str_replace("{style}", $cfg_df_style, $row['templet']); | ||||
@@ -199,7 +199,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
if (file_exists($homeFile)) @unlink($homeFile); | if (file_exists($homeFile)) @unlink($homeFile); | ||||
} | } | ||||
DedeCli::write("Make index html successfull"); | DedeCli::write("Make index html successfull"); | ||||
// 2.生成栏目 | |||||
//2.生成栏目 | |||||
$query = "SELECT DISTINCT typeid From `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1"; | $query = "SELECT DISTINCT typeid From `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1"; | ||||
$dsql->SetQuery($query); | $dsql->SetQuery($query); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
@@ -234,7 +234,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
DedeCli::write("Make list html successfull"); | DedeCli::write("Make list html successfull"); | ||||
} | } | ||||
// 生成文档 | |||||
//生成文档 | |||||
$tt = $dsql->GetOne("SELECT COUNT(id) as dd FROM `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1"); | $tt = $dsql->GetOne("SELECT COUNT(id) as dd FROM `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1"); | ||||
$total = intval($tt['dd']); | $total = intval($tt['dd']); | ||||
$dsql->Execute('out', "SELECT id FROM `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1 ORDER BY typeid ASC"); | $dsql->Execute('out', "SELECT id FROM `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1 ORDER BY typeid ASC"); | ||||
@@ -248,7 +248,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
} | } | ||||
DedeCli::write("Make archives html successfull"); | DedeCli::write("Make archives html successfull"); | ||||
// 优化数据 | |||||
//优化数据 | |||||
OptimizeData($dsql); | OptimizeData($dsql); | ||||
DedeCli::write("Optimize data successfull"); | DedeCli::write("Optimize data successfull"); | ||||
} else { | } else { | ||||
@@ -274,7 +274,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
define("DEDEINC", $workDir."/include"); | define("DEDEINC", $workDir."/include"); | ||||
require_once(DEDEINC."/dedehttpdown.class.php"); | require_once(DEDEINC."/dedehttpdown.class.php"); | ||||
require_once(DEDEINC . "/cli.class.php"); | require_once(DEDEINC . "/cli.class.php"); | ||||
// 更新系统 | |||||
//更新系统 | |||||
$latestURL = "https://cdn.dedebiz.com/release/latest.txt"; | $latestURL = "https://cdn.dedebiz.com/release/latest.txt"; | ||||
$del = new DedeHttpDown(); | $del = new DedeHttpDown(); | ||||
$del->OpenUrl($latestURL); | $del->OpenUrl($latestURL); | ||||
@@ -292,11 +292,11 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
$del->OpenUrl($fileHashURL); | $del->OpenUrl($fileHashURL); | ||||
$filelist = $del->GetJSON(); | $filelist = $del->GetJSON(); | ||||
$offFiles = array(); | $offFiles = array(); | ||||
// TODO 命令行自动更新 | |||||
//TODO 命令行自动更新 | |||||
} else if (count($argv) > 1 && ($argv[1] == "quick" || $argv[1] == "q")){ | } else if (count($argv) > 1 && ($argv[1] == "quick" || $argv[1] == "q")){ | ||||
define("DEDEINC", $workDir."/include"); | define("DEDEINC", $workDir."/include"); | ||||
require_once(DEDEINC . "/cli.class.php"); | require_once(DEDEINC . "/cli.class.php"); | ||||
// 快速开始一个用于开发的DedeBIZ环境,基于SQLite无其他依赖 | |||||
//快速开始一个用于开发的DedeBIZ环境,基于SQLite无其他依赖 | |||||
if (file_exists($workDir."/data/DedeBIZ.db")) { | if (file_exists($workDir."/data/DedeBIZ.db")) { | ||||
DedeCli::write("development environment has inited"); | DedeCli::write("development environment has inited"); | ||||
echo "Start Dev Server For DedeBIZ\n\r"; | echo "Start Dev Server For DedeBIZ\n\r"; | ||||
@@ -304,7 +304,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||||
passthru(PHP_BINARY . ' -S localhost:8088 -t' . escapeshellarg('./')); | passthru(PHP_BINARY . ' -S localhost:8088 -t' . escapeshellarg('./')); | ||||
exit; | exit; | ||||
} | } | ||||
// 初始化安装一个开发环境 | |||||
//初始化安装一个开发环境 | |||||
$db = new SQLite3($workDir.'/data/DedeBIZ.db'); | $db = new SQLite3($workDir.'/data/DedeBIZ.db'); | ||||
$fp = fopen($workDir."/install/common.inc.php","r"); | $fp = fopen($workDir."/install/common.inc.php","r"); | ||||
$configStr1 = fread($fp,filesize($workDir."/install/common.inc.php")); | $configStr1 = fread($fp,filesize($workDir."/install/common.inc.php")); | ||||
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 检索操作 | * 检索操作 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* @version $Id: actionsearch_class.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: actionsearch_class.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeBIZ.Administrator | * @package DedeBIZ.Administrator |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 广告添加 | * 广告添加 | ||||
* | * | ||||
@@ -9,7 +8,6 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_广告管理'); | CheckPurview('plus_广告管理'); | ||||
require_once DEDEINC."/typelink.class.php"; | require_once DEDEINC."/typelink.class.php"; |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 广告编辑 | * 广告编辑 | ||||
* | * | ||||
@@ -28,7 +27,7 @@ if ($dopost == 'delete') { | |||||
$row = $dsql->GetOne("SELECT tagname from `#@__myad` WHERE aid='$aid' "); | $row = $dsql->GetOne("SELECT tagname from `#@__myad` WHERE aid='$aid' "); | ||||
$showtag = '{'."dede:myad name='{$row['tagname']}'/".'}'; | $showtag = '{'."dede:myad name='{$row['tagname']}'/".'}'; | ||||
$info = "<b>说明:</b>如果嵌入的是织梦CMS广告标签,那么将会解析成标签中的内容到页面,广告更改后需要重新生成。<br /> | |||||
$info = "<b>说明:</b>如果嵌入的是织梦CMS广告标签,那么将会解析成标签中的内容到页面,广告修改后需要重新生成。<br /> | |||||
如果不希望重新生成所有页面,则直接调用JS代码即可。 | 如果不希望重新生成所有页面,则直接调用JS代码即可。 | ||||
"; | "; | ||||
$wintitle = "广告管理-获取广告标签"; | $wintitle = "广告管理-获取广告标签"; | ||||
@@ -63,7 +62,7 @@ if ($dopost == 'delete') { | |||||
WHERE aid='$aid' | WHERE aid='$aid' | ||||
"; | "; | ||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
ShowMsg("成功更改一则广告代码", $ENV_GOBACK_URL); | |||||
ShowMsg("成功修改一则广告代码", $ENV_GOBACK_URL); | |||||
exit(); | exit(); | ||||
} | } | ||||
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 广告管理 | * 广告管理 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 友情链接类型 | * 友情链接类型 | ||||
* | * | ||||
@@ -12,7 +11,7 @@ | |||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
if (empty($dopost)) $dopost = ''; | if (empty($dopost)) $dopost = ''; | ||||
//保存更改 | |||||
//保存修改 | |||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
$startID = 1; | $startID = 1; | ||||
$endID = $idend; | $endID = $idend; |
@@ -96,7 +96,7 @@ else if ($dopost == 'save') { | |||||
//处理上传的缩略图 | //处理上传的缩略图 | ||||
if (empty($ddisremote)) $ddisremote = 0; | if (empty($ddisremote)) $ddisremote = 0; | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
// 处理新的缩略图上传 | |||||
//处理新的缩略图上传 | |||||
if ($litpic_b64 != "") { | if ($litpic_b64 != "") { | ||||
$data = explode(',', $litpic_b64); | $data = explode(',', $litpic_b64); | ||||
$ntime = time(); | $ntime = time(); | ||||
@@ -301,7 +301,7 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布图片</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>更改图集</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>预览文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布图片管理</a> $backurl"; | |||||
$msg = "请选择您的后续操作:<a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布图片</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>修改图集</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>预览文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布图片管理</a> $backurl"; | |||||
$msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | $msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | ||||
$wintitle = "成功发布一个图集"; | $wintitle = "成功发布一个图集"; |
@@ -112,7 +112,7 @@ else if ($dopost == 'save') { | |||||
$ddisremote = 0; | $ddisremote = 0; | ||||
} | } | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
// 处理新的缩略图上传 | |||||
//处理新的缩略图上传 | |||||
if ($litpic_b64 != "") { | if ($litpic_b64 != "") { | ||||
$data = explode(',', $litpic_b64); | $data = explode(',', $litpic_b64); | ||||
$ntime = time(); | $ntime = time(); | ||||
@@ -280,7 +280,7 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
if ($albums !== "") { | if ($albums !== "") { | ||||
$albumsArr = json_decode(stripslashes($albums), true); | $albumsArr = json_decode(stripslashes($albums), true); | ||||
// var_dump($albumsArr);exit; | |||||
//var_dump($albumsArr);exit; | |||||
for ($i = 0; $i <= count($albumsArr) - 1; $i++) { | for ($i = 0; $i <= count($albumsArr) - 1; $i++) { | ||||
$album = $albumsArr[$i]; | $album = $albumsArr[$i]; | ||||
$data = explode(',', $album['img']); | $data = explode(',', $album['img']); | ||||
@@ -367,11 +367,11 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布图片</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a> <a href='$arcUrl' target='_blank' class='btn btn-success btn-sm'>预览文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理已发布图片</a> $backurl"; | |||||
$wintitle = "成功更改图集"; | |||||
$wecome_info = "文章管理::更改图集"; | |||||
$msg = "请选择您的后续操作:<a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布图片</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看修改</a> <a href='$arcUrl' target='_blank' class='btn btn-success btn-sm'>预览文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理已发布图片</a> $backurl"; | |||||
$wintitle = "成功修改图集"; | |||||
$wecome_info = "文章管理::修改图集"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->AddTitle("成功更改一个图集:"); | |||||
$win->AddTitle("成功修改一个图集:"); | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 图集测试 | * 图集测试 | ||||
* | * | ||||
@@ -9,7 +8,6 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
AjaxHead(); | AjaxHead(); | ||||
$myhtml = UnicodeUrl2Gbk(stripslashes($myhtml)); | $myhtml = UnicodeUrl2Gbk(stripslashes($myhtml)); |
@@ -97,7 +97,7 @@ else if ($dopost == 'save') { | |||||
$ddisremote = 0; | $ddisremote = 0; | ||||
} | } | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
// 处理新的缩略图上传 | |||||
//处理新的缩略图上传 | |||||
if ($litpic_b64 != "") { | if ($litpic_b64 != "") { | ||||
$data = explode(',', $litpic_b64); | $data = explode(',', $litpic_b64); | ||||
$ntime = time(); | $ntime = time(); | ||||
@@ -187,7 +187,7 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='archives_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文档</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>更改文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布文档管理</a> $backurl"; | |||||
$msg = "请选择您的后续操作:<a href='archives_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文档</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>修改文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布文档管理</a> $backurl"; | |||||
$msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | $msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | ||||
$wintitle = '成功发布文档'; | $wintitle = '成功发布文档'; | ||||
$wecome_info = '文档管理::发布文档'; | $wecome_info = '文档管理::发布文档'; |
@@ -199,11 +199,11 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='archives_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文档</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理文档</a> $backurl"; | |||||
$wintitle = "成功更改文档"; | |||||
$wecome_info = "文档管理::更改文档"; | |||||
$msg = "请选择您的后续操作:<a href='archives_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文档</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看修改</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理文档</a> $backurl"; | |||||
$wintitle = "成功修改文档"; | |||||
$wecome_info = "文档管理::修改文档"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->AddTitle("成功更改文档:"); | |||||
$win->AddTitle("成功修改文档:"); | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); |
@@ -80,7 +80,7 @@ else if ($dopost == 'save') { | |||||
$fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999)); | $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999)); | ||||
$fullUrl = $fullUrl.".png"; | $fullUrl = $fullUrl.".png"; | ||||
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | ||||
// 加水印 | |||||
//加水印 | |||||
WaterImg($cfg_basedir.$fullUrl, 'up'); | WaterImg($cfg_basedir.$fullUrl, 'up'); | ||||
$litpic = $fullUrl; | $litpic = $fullUrl; | ||||
} | } | ||||
@@ -141,7 +141,7 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
ClearMyAddon($arcID, $title); | ClearMyAddon($arcID, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='archives_sg_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文档</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>更改文档</a> <a href='content_sg_list.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-success btn-sm'>已发布文档管理</a> <a href='catalog_main.php' class='btn btn-success btn-sm'>网站栏目管理</a>"; | |||||
$msg = "请选择您的后续操作:<a href='archives_sg_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文档</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>修改文档</a> <a href='content_sg_list.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-success btn-sm'>已发布文档管理</a> <a href='catalog_main.php' class='btn btn-success btn-sm'>网站栏目管理</a>"; | |||||
$wintitle = "成功发布文档"; | $wintitle = "成功发布文档"; | ||||
$wecome_info = "文档管理::发布文档"; | $wecome_info = "文档管理::发布文档"; | ||||
$win = new OxWindow(); | $win = new OxWindow(); |
@@ -79,7 +79,7 @@ else if ($dopost == 'save') { | |||||
$fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999)); | $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999)); | ||||
$fullUrl = $fullUrl.".png"; | $fullUrl = $fullUrl.".png"; | ||||
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | ||||
// 加水印 | |||||
//加水印 | |||||
WaterImg($cfg_basedir.$fullUrl, 'up'); | WaterImg($cfg_basedir.$fullUrl, 'up'); | ||||
$litpic = $fullUrl; | $litpic = $fullUrl; | ||||
} | } | ||||
@@ -128,11 +128,11 @@ else if ($dopost == 'save') { | |||||
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$id"; | if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$id"; | ||||
ClearMyAddon($id, $title); | ClearMyAddon($id, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='archives_sg_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文档</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='catalog_do.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-success btn-sm'>管理文档</a> <a href='catalog_main.php' class='btn btn-success btn-sm'>网站栏目管理</a>"; | |||||
$wintitle = "成功更改文档"; | |||||
$wecome_info = "文档管理::更改文档"; | |||||
$msg = "请选择您的后续操作:<a href='archives_sg_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文档</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看修改</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a> <a href='catalog_do.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-success btn-sm'>管理文档</a> <a href='catalog_main.php' class='btn btn-success btn-sm'>网站栏目管理</a>"; | |||||
$wintitle = "成功修改文档"; | |||||
$wecome_info = "文档管理::修改文档"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->AddTitle("成功更改文档:"); | |||||
$win->AddTitle("成功修改文档:"); | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); |
@@ -223,7 +223,7 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文章</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文章</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>更改文章</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布文章管理</a> $backurl"; | |||||
$msg = "请选择您的后续操作:<a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文章</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文章</a> <a href='archives_do.php?aid=".$arcID."&dopost=editArchives' class='btn btn-success btn-sm'>修改文章</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布文章管理</a> $backurl"; | |||||
$msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | $msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>".GetUpdateTest(); | ||||
$wintitle = "成功发布文章"; | $wintitle = "成功发布文章"; | ||||
$wecome_info = "文章管理::发布文章"; | $wecome_info = "文章管理::发布文章"; |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 允许的站内链接 | * 允许的站内链接 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文档规则采集 | * 文档规则采集 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文档描述管理 | * 文档描述管理 | ||||
* | * |
@@ -214,11 +214,11 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作:<a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文章</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文章</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理文章</a> $backurl"; | |||||
$wintitle = "成功更改文章"; | |||||
$wecome_info = "文章管理::更改文章"; | |||||
$msg = "请选择您的后续操作:<a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文章</a> <a href='archives_do.php?aid=".$id."&dopost=editArchives' class='btn btn-success btn-sm'>查看修改</a> <a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文章</a> <a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理文章</a> $backurl"; | |||||
$wintitle = "成功修改文章"; | |||||
$wecome_info = "文章管理::修改文章"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->AddTitle("成功更改文章:"); | |||||
$win->AddTitle("成功修改文章:"); | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文档关键词管理 | * 文档关键词管理 | ||||
* | * | ||||
@@ -16,11 +15,11 @@ setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | |||||
if (empty($dopost)) $dopost = ''; | if (empty($dopost)) $dopost = ''; | ||||
//保存批量更改 | |||||
//保存批量修改 | |||||
if ($dopost == 'saveall') { | if ($dopost == 'saveall') { | ||||
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "article_keywords_main.php" : $_COOKIE['ENV_GOBACK_URL']; | $ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "article_keywords_main.php" : $_COOKIE['ENV_GOBACK_URL']; | ||||
if (!isset($aids)) { | if (!isset($aids)) { | ||||
ShowMsg("您没有选择要更改的内容!", $ENV_GOBACK_URL); | |||||
ShowMsg("您没有选择要修改的内容!", $ENV_GOBACK_URL); | |||||
exit(); | exit(); | ||||
} | } | ||||
foreach ($aids as $aid) { | foreach ($aids as $aid) { | ||||
@@ -49,7 +48,7 @@ if ($dopost == 'saveall') { | |||||
$dsql->ExecuteNoneQuery($query1); | $dsql->ExecuteNoneQuery($query1); | ||||
} | } | ||||
} | } | ||||
ShowMsg("完成指定的更改!", $ENV_GOBACK_URL); | |||||
ShowMsg("完成指定的修改!", $ENV_GOBACK_URL); | |||||
exit(); | exit(); | ||||
} | } | ||||
//增加关键字 | //增加关键字 |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文档关键词生成 | * 文档关键词生成 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文档关键词选择 | * 文档关键词选择 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* @version $Id: article_select_sw.php 1 8:26 2010年7月12日Z tianya $ | * @version $Id: article_select_sw.php 1 8:26 2010年7月12日Z tianya $ | ||||
* @package DedeBIZ.Administrator | * @package DedeBIZ.Administrator |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文章来源编辑 | * 文章来源编辑 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 防采集混淆字符串管理 | * 防采集混淆字符串管理 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文档随机模板 | * 文档随机模板 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 检测重复文档 | * 检测重复文档 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 检测重复文档 | * 检测重复文档 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 文章作者管理 | * 文章作者管理 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 百度新闻 | * 百度新闻 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 生成点卡 | * 生成点卡 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 点卡管理 | * 点卡管理 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 点卡类型 | * 点卡类型 | ||||
* | * | ||||
@@ -13,7 +12,7 @@ require_once(dirname(__FILE__).'/config.php'); | |||||
CheckPurview('member_Type'); | CheckPurview('member_Type'); | ||||
if (empty($dopost)) $dopost = ""; | if (empty($dopost)) $dopost = ""; | ||||
//保存更改 | |||||
//保存修改 | |||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
$startID = 1; | $startID = 1; | ||||
$endID = $idend; | $endID = $idend; |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 栏目添加 | * 栏目添加 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 删除栏目 | * 删除栏目 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 栏目操作 | * 栏目操作 | ||||
* | * | ||||
@@ -97,14 +96,14 @@ function ViewSgPage() | |||||
exit(); | exit(); | ||||
} | } | ||||
/*------------------------ | /*------------------------ | ||||
更改栏目排列顺序 | |||||
修改栏目排列顺序 | |||||
function upRank() | function upRank() | ||||
------------------------*/ else if ($dopost == "upRank") { | ------------------------*/ else if ($dopost == "upRank") { | ||||
//检查权限许可 | //检查权限许可 | ||||
CheckPurview('t_Edit,t_AccEdit'); | CheckPurview('t_Edit,t_AccEdit'); | ||||
//检查栏目操作许可 | //检查栏目操作许可 | ||||
CheckCatalog($cid, "您无权更改本栏目"); | |||||
CheckCatalog($cid, "您无权修改本栏目"); | |||||
$row = $dsql->GetOne("SELECT reid,sortrank FROM #@__arctype WHERE id='$cid'"); | $row = $dsql->GetOne("SELECT reid,sortrank FROM #@__arctype WHERE id='$cid'"); | ||||
$reid = $row['reid']; | $reid = $row['reid']; | ||||
$sortrank = $row['sortrank']; | $sortrank = $row['sortrank']; |
@@ -15,7 +15,7 @@ $id = isset($id) ? intval($id) : 0; | |||||
//检查权限许可 | //检查权限许可 | ||||
CheckPurview('t_Edit,t_AccEdit'); | CheckPurview('t_Edit,t_AccEdit'); | ||||
//检查栏目操作许可 | //检查栏目操作许可 | ||||
CheckCatalog($id, '您无权更改本栏目'); | |||||
CheckCatalog($id, '您无权修改本栏目'); | |||||
/*----------------------- | /*----------------------- | ||||
function action_save() | function action_save() | ||||
----------------------*/ | ----------------------*/ | ||||
@@ -57,7 +57,7 @@ if ($dopost == "save") { | |||||
$uptopsql | $uptopsql | ||||
WHERE id='$id' "; | WHERE id='$id' "; | ||||
if (!$dsql->ExecuteNoneQuery($upquery)) { | if (!$dsql->ExecuteNoneQuery($upquery)) { | ||||
ShowMsg("保存当前栏目更改时失败,请检查您的输入资料是否存在问题", "-1"); | |||||
ShowMsg("保存当前栏目修改时失败,请检查您的输入资料是否存在问题", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
//如果选择子栏目可投稿,更新顶级栏目为可投稿 | //如果选择子栏目可投稿,更新顶级栏目为可投稿 | ||||
@@ -70,7 +70,7 @@ if ($dopost == "save") { | |||||
$upquery = "UPDATE `#@__arctype` SET moresite='$moresite', siteurl='$siteurl',sitepath='$sitepath',ishidden='$ishidden' WHERE 1=1 AND $slinks"; | $upquery = "UPDATE `#@__arctype` SET moresite='$moresite', siteurl='$siteurl',sitepath='$sitepath',ishidden='$ishidden' WHERE 1=1 AND $slinks"; | ||||
$dsql->ExecuteNoneQuery($upquery); | $dsql->ExecuteNoneQuery($upquery); | ||||
} | } | ||||
//更改子栏目属性 | |||||
//修改子栏目属性 | |||||
if (!empty($upnext)) { | if (!empty($upnext)) { | ||||
$upquery = "UPDATE `#@__arctype` SET | $upquery = "UPDATE `#@__arctype` SET | ||||
issend='$issend', | issend='$issend', | ||||
@@ -84,12 +84,12 @@ if ($dopost == "save") { | |||||
ishidden='$ishidden' | ishidden='$ishidden' | ||||
WHERE 1=1 AND $slinks"; | WHERE 1=1 AND $slinks"; | ||||
if (!$dsql->ExecuteNoneQuery($upquery)) { | if (!$dsql->ExecuteNoneQuery($upquery)) { | ||||
ShowMsg("更改当前栏目成功,但更改下级栏目属性时失败", "-1"); | |||||
ShowMsg("修改当前栏目成功,但修改下级栏目属性时失败", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
UpDateCatCache(); | UpDateCatCache(); | ||||
ShowMsg("成功更改一个分类", "catalog_main.php"); | |||||
ShowMsg("成功修改一个分类", "catalog_main.php"); | |||||
exit(); | exit(); | ||||
} //End Save Action | } //End Save Action | ||||
else if ($dopost == "savetime") { | else if ($dopost == "savetime") { | ||||
@@ -119,11 +119,11 @@ else if ($dopost == "savetime") { | |||||
corank='$corank' $uptopsql | corank='$corank' $uptopsql | ||||
WHERE id='$id' "; | WHERE id='$id' "; | ||||
if (!$dsql->ExecuteNoneQuery($upquery)) { | if (!$dsql->ExecuteNoneQuery($upquery)) { | ||||
ShowMsg("保存当前栏目更改时失败,请检查您的输入资料是否存在问题", "-1"); | |||||
ShowMsg("保存当前栏目修改时失败,请检查您的输入资料是否存在问题", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
UpDateCatCache(); | UpDateCatCache(); | ||||
ShowMsg("成功更改一个分类", "catalog_main.php"); | |||||
ShowMsg("成功修改一个分类", "catalog_main.php"); | |||||
exit(); | exit(); | ||||
} | } | ||||
//读取栏目信息 | //读取栏目信息 |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 栏目管理 | * 栏目管理 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 栏目菜单 | * 栏目菜单 | ||||
* | * |
@@ -40,7 +40,7 @@ if (!isset($GLOBALS['csrf_token']) || $GLOBALS['csrf_token'] === null) { | |||||
if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') { | if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') { | ||||
PutCookie('dede_csrf_token', $GLOBALS['csrf_token'], 7200, '/'); | PutCookie('dede_csrf_token', $GLOBALS['csrf_token'], 7200, '/'); | ||||
} | } | ||||
//获得当前脚本名称,如果您的系统被禁用了$_SERVER变量,请自行更改这个选项 | |||||
//获得当前脚本名称,如果您的系统被禁用了$_SERVER变量,请自行修改这个选项 | |||||
$dedeNowurl = $s_scriptName = ''; | $dedeNowurl = $s_scriptName = ''; | ||||
$isUrlOpen = @ini_get('allow_url_fopen'); | $isUrlOpen = @ini_get('allow_url_fopen'); | ||||
$dedeNowurl = GetCurUrl(); | $dedeNowurl = GetCurUrl(); |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 内容属性 | * 内容属性 | ||||
* | * | ||||
@@ -13,7 +12,7 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
CheckPurview('sys_Att'); | CheckPurview('sys_Att'); | ||||
if (empty($dopost)) $dopost = ''; | if (empty($dopost)) $dopost = ''; | ||||
//保存更改 | |||||
//保存修改 | |||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
$startID = 1; | $startID = 1; | ||||
$endID = $idend; | $endID = $idend; |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 内容处理函数 | * 内容处理函数 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 内容处理函数 | * 内容处理函数 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 内容列表 | * 内容列表 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 内容列表 | * 内容列表 | ||||
* content_s_list.php、content_i_list.php、content_select_list.php | * content_s_list.php、content_i_list.php、content_select_list.php | ||||
@@ -82,7 +81,7 @@ if (empty($totalresult) && empty($keyword) && empty($orderby) && empty($flag)) { | |||||
if (count($tinyQuerys) > 0) { | if (count($tinyQuerys) > 0) { | ||||
$tinyQuery = "WHERE ".join(' AND ', $tinyQuerys); | $tinyQuery = "WHERE ".join(' AND ', $tinyQuerys); | ||||
} | } | ||||
// 缓存处理 | |||||
//缓存处理 | |||||
$sql = "SELECT COUNT(*) AS dd FROM `#@__arctiny` $tinyQuery "; | $sql = "SELECT COUNT(*) AS dd FROM `#@__arctiny` $tinyQuery "; | ||||
$arr = $dsql->GetOne($sql); | $arr = $dsql->GetOne($sql); | ||||
$totalresult = $arr['dd']; | $totalresult = $arr['dd']; | ||||
@@ -114,7 +113,7 @@ if ($channelid < -1) { | |||||
} | } | ||||
// 栏目大于800则需要缓存数据 | |||||
//栏目大于800则需要缓存数据 | |||||
$optHash = md5($cid.serialize($admin_catalogs).$channelid); | $optHash = md5($cid.serialize($admin_catalogs).$channelid); | ||||
$optCache = DEDEDATA."/tplcache/inc_option_$optHash.inc"; | $optCache = DEDEDATA."/tplcache/inc_option_$optHash.inc"; | ||||
@@ -199,5 +198,5 @@ $dlist->SetSource($query); | |||||
//显示 | //显示 | ||||
$dlist->Display(); | $dlist->Display(); | ||||
// echo $dlist->queryTime; | |||||
//echo $dlist->queryTime; | |||||
$dlist->Close(); | $dlist->Close(); |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 专题列表 | * 专题列表 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 选择文章 | * 选择文章 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 单表模型列表 | * 单表模型列表 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 内容统计 | * 内容统计 | ||||
* | * |
@@ -0,0 +1 @@ | |||||
*{padding:0;margin:0;box-sizing:border-box}a{text-decoration:none}html,body{width:100%;height:100%}body{height:100%;font-size:12px;overflow:hidden;z-index:1}body.showmenu{background:url(../images/leftmenu_bg.gif)-10px top repeat-y}body.hidemenu{background:none}ul{list-style:none}form{margin:0;padding:0}.head{width:100%;height:76px;overflow:hidden;z-index:8;position:relative}.top{height:46px;width:100%;background-image:linear-gradient(135deg,#008E38 0%,#639709 50%);overflow:hidden;clear:both}.top .top_logo{float:left;margin-left:30px;height:46px;line-height:46px}.top .top_logo a{font-size:18px;font-weight:600;color:#fff}.top .top_version{display:inline-block;margin-top:12px;margin-left:10px;color:#fff}.top .top_link{float:right;margin-right:30px}.top .top_link ul{float:left;line-height:46px;overflow:hidden}.top .top_link ul li.welcome img{margin-top:-2px;margin-right:10px;width:30px;height:30px;vertical-align:middle;border-radius:50%}.top .top_link ul li{float:left;color:#fff}.top .top_link ul li a{color:#fff;padding-left:20px}.top .top_link ul li a:hover{color:#ccc}.top .top_link .quick{padding:3px 0px 0px 0px;float:left}.top .top_link .quick a{display:block;color:#C60;float:left;line-height:21px;height:21px;overflow:hidden}.topnav{width:100%;height:30px;line-height:30px;background:#393d49;overflow:hidden;clear:both}.topnav .menuact{width:168px;float:left;padding-left:30px;overflow:hidden}.topnav .menuact a{overflow:hidden;color:#eee;padding-right:10px}.topnav .menuact a:hover{color:#fff}.nav{float:left;padding-left:2px;line-height:26px;color:#999}.nav ul li{float:left;display:block;margin-left:4px}.nav ul li a{padding:0 10px 0px 10px;color:#FFCC00}.nav ul li a:hover{color:#fff}.nav ul li a.thisclass,.nav ul li a.thisclass:hover{color:#4E8100;display:block;font-weight:bold;background:#fff;line-height:23px;border-top:2px solid #FFDE59;margin-top:4px;padding:0 10px 0px 10px}.sysmsg{padding-right:30px;float:right;width:500px;color:#999;overflow:hidden}.scroll{float:right;overflow:hidden}.scroll ul li,.sysmsg ul li a{color:#bbb}.scroll ul li a:hover{text-decoration:underline}.scroll a{padding-left:10px;color:#fff}body.showmenu .left{display:block}body.hidemenu .left{display:none}body.showmenu .right{left:220px}body.hidemenu .right{left:0}.left{position:absolute;top:76px;width:220px;left:0;bottom:0;z-index:7}.menu{height:100%}.top_link{font-size:12px}.menu iframe{height:100%;width:99.99%;z-index:20}.right{position:absolute;right:0;top:76px;bottom:0;z-index:7}.main{height:100%}.main iframe{height:100%;width:99.99%;z-index:20}.qucikmenu{position:absolute;right:10px;top:32px;z-index:9;display:none}.qucikmenu ul{width:110px;list-style:none;border:1px solid #E7E7E7;background:#fff}.qucikmenu ul li{display:block;text-align:left}.qucikmenu ul li a{height:30px;line-height:30px;display:block;color:#666;padding-left:10px;padding-right:10px}.qucikmenu ul li a:hover{background:#F7F7F7}.pagemask{width:100%;height:100%;background:#424b51;position:absolute;z-index:100;filter:alpha(opacity=70);-moz-opacity:.7;opacity:.7;display:none}.iframemask{position:absolute;z-index:80;top:0;left:0;background:#fff;border:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;height:100%;width:100%;display:none}.allmenu{margin-left:-400px;padding:10px;display:none;width:800px;position:absolute;top:76px;left:50%;z-index:999;background:#fff;border-radius:.2rem}.allmenu .allmenu-box{margin:0 auto;text-align:left;overflow:hidden;padding-left:2px}.maptop{float:left;width:130px;overflow:hidden;padding-right:6px;padding-left:6px;margin-left:-1px}.maptop dt.bigitem{padding:5px 10px;line-height:18px;color:#fff;background:#424b51}.mapitem dt{line-height:30px;font-weight:bold;text-indent:10px;background:#EFF1F1}.mapitem ul{margin-top:10px;margin-bottom:10px}.mapitem ul li{text-indent:20px;line-height:24px;background:url(../images/arrr.gif)0 8px no-repeat}.allmenu a{color:#5C604F}.allmenu a:hover{color:#F63}#login .theme{clear:both;padding:10px;width:70%;margin-top:20px}#login .theme li{margin-bottom:15px;margin-top:5px;overflow:hidden}#login .theme span{display:inline-block;float:left;width:150px;height:22px;line-height:22px;color:#424b51;text-align:right}input[type="text"],input[type="password"]{padding:2px 4px;width:140px;height:18px;line-height:18px;border-width:1px;border-style:solid;border-color:#fff;background:#fff;vertical-align:middle}input[type="text"]:focus,input[type="password"]:focus{box-shadow:none;outline:none}* html input.text{width:220px;border:1px solid #a7a6aa;background:#fff url(../images/input.gif)0 0 no-repeat;margin-top:-1px;margin-right:5px;margin-bottom:0;margin-left:2px;padding:3px;line-height:12px}* html input.radio{margin:-1px 0 0 -2px}.allsearch{float:left;margin-top:6px!important;font-size:12px;border:1px solid #fff;border-radius:.2rem}.np{margin-left:10px;width:40px;height:18px;font-size:12px;color:#fff;background:#57960f;border-radius:.2rem;border:none;cursor:pointer} |
@@ -1,30 +1,24 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 该页仅用于检测用户登录的情况,如要手工更改系统配置,请更改common.inc.php | |||||
* 该页仅用于检测用户登录的情况,如要手工修改系统配置,请修改common.inc.php | |||||
* | * | ||||
* @version $Id: config.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: config.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/../../include/common.inc.php"); | require_once(dirname(__FILE__)."/../../include/common.inc.php"); | ||||
require_once(DEDEINC."/userlogin.class.php"); | require_once(DEDEINC."/userlogin.class.php"); | ||||
//获得当前脚本名称,如果您的系统被禁用了$_SERVER变量,请自行更改这个选项 | |||||
//获得当前脚本名称,如果您的系统被禁用了$_SERVER变量,请自行修改这个选项 | |||||
$dedeNowurl = ''; | $dedeNowurl = ''; | ||||
$s_scriptName = ''; | $s_scriptName = ''; | ||||
$isUrlOpen = @ini_get('allow_url_fopen'); | $isUrlOpen = @ini_get('allow_url_fopen'); | ||||
$dedeNowurl = GetCurUrl(); | $dedeNowurl = GetCurUrl(); | ||||
$dedeNowurls = explode("?", $dedeNowurl); | $dedeNowurls = explode("?", $dedeNowurl); | ||||
$s_scriptName = $dedeNowurls[0]; | $s_scriptName = $dedeNowurls[0]; | ||||
//检验用户登录状态 | //检验用户登录状态 | ||||
$cuserLogin = new userLogin(); | $cuserLogin = new userLogin(); | ||||
if ($cuserLogin->getUserID() <= 0) { | if ($cuserLogin->getUserID() <= 0) { | ||||
if (empty($adminDirHand)) { | if (empty($adminDirHand)) { | ||||
ShowMsg("<b>提示:需输入后台管理目录才能登录</b><br /><form>请输入后台管理目录名:<input type='hidden' name='gotopage' value='".urlencode($dedeNowurl)."' /><input type='text' name='adminDirHand' value='dede' style='width:120px;' /><input style='width:80px;' type='submit' name='sbt' value='转入登录' /></form>", "javascript:;"); | ShowMsg("<b>提示:需输入后台管理目录才能登录</b><br /><form>请输入后台管理目录名:<input type='hidden' name='gotopage' value='".urlencode($dedeNowurl)."' /><input type='text' name='adminDirHand' value='dede' style='width:120px;' /><input style='width:80px;' type='submit' name='sbt' value='转入登录' /></form>", "javascript:;"); |
@@ -4,7 +4,7 @@ | |||||
* | * | ||||
* @version $Id: select_images.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: select_images.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
@@ -73,7 +73,7 @@ table{background:#fff} | |||||
</head> | </head> | ||||
<body class="bg"> | <body class="bg"> | ||||
<div id="floater" class="napisdiv"> | <div id="floater" class="napisdiv"> | ||||
<a href="javascript:nullLink();" onClick="document.getElementById('floater').style.display='none';"><img src="img/picviewnone.gif" id='picview' alt="关闭预览"></a> | |||||
<a href="javascript:nullLink();" onClick="document.getElementById('floater').style.display='none';"><img src="img/picviewnone.gif" id="picview" alt="关闭预览"></a> | |||||
</div> | </div> | ||||
<script src="../js/float.js"></script> | <script src="../js/float.js"></script> | ||||
<script> | <script> | ||||
@@ -134,7 +134,7 @@ table{background:#fff} | |||||
<td width="30%" class="linerow">修改时间</td> | <td width="30%" class="linerow">修改时间</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="linerow" colspan="4">点击V预览图片,点击图片名选择图片,显示图片后点击该图片关闭预览</td> | |||||
<td class="linerow" colspan="4">点击图片预览,点击图片名选择图片,显示图片后点击该图片关闭预览。</td> | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
$dh = dir($inpath); | $dh = dir($inpath); | ||||
@@ -160,16 +160,16 @@ table{background:#fff} | |||||
else if ($file == "..") { | else if ($file == "..") { | ||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow' colspan='2'> | <td class='linerow' colspan='2'> | ||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src='img/dir2.gif'>上级目录</a></td> | <a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src='img/dir2.gif'>上级目录</a></td> | ||||
<td colspan='2' class='linerow'>当前目录:$activepath</td> | <td colspan='2' class='linerow'>当前目录:$activepath</td> | ||||
</tr>"; | </tr>"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
if (preg_match("#^_(.*)$#i", $file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 | |||||
if (preg_match("#^_(.*)$#i", $file)) continue; | |||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | if (preg_match("#^\.(.*)$#i", $file)) continue; | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow' colspan='2'> | <td class='linerow' colspan='2'> | ||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'><img src='img/dir.gif'>$file</a></td> | <a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'><img src='img/dir.gif'>$file</a></td> | ||||
<td class='linerow'></td> | <td class='linerow'></td> | ||||
@@ -182,7 +182,7 @@ table{background:#fff} | |||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = " style='color:red' "; | if ($file == $comeback) $lstyle = " style='color:red' "; | ||||
else $lstyle = ""; | else $lstyle = ""; | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif'></a> | <td class='linerow'><a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif'></a> | ||||
</td> | </td> | ||||
<td class='linerow'><a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src='img/gif.gif'>$file</a></td> | <td class='linerow'><a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src='img/gif.gif'>$file</a></td> | ||||
@@ -196,7 +196,7 @@ table{background:#fff} | |||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = " style='color:red' "; | if ($file == $comeback) $lstyle = " style='color:red' "; | ||||
else $lstyle = ""; | else $lstyle = ""; | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif'></a></td> | <td class='linerow'><a href=\"#\" onClick=\"ChangeImage('$reurl');\"><img src='img/picviewnone.gif'></a></td> | ||||
<td class='linerow'><a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src='img/jpg.gif'>$file</a></td> | <td class='linerow'><a href=# onclick=\"ReturnImg('$reurl');\" $lstyle><img src='img/jpg.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
@@ -204,7 +204,7 @@ table{background:#fff} | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} | } | ||||
} //End Loop | |||||
}//End Loop | |||||
$dh->close(); | $dh->close(); | ||||
?> | ?> | ||||
<tr> | <tr> |
@@ -1,18 +1,15 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 图片选择 | * 图片选择 | ||||
* | * | ||||
* @version $Id: select_images_post.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: select_images_post.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
require_once(DEDEINC."/image.func.php"); | require_once(DEDEINC."/image.func.php"); | ||||
if (empty($activepath)) { | if (empty($activepath)) { | ||||
$activepath = ''; | $activepath = ''; | ||||
$activepath = str_replace('.', '', $activepath); | $activepath = str_replace('.', '', $activepath); | ||||
@@ -21,20 +18,18 @@ if (empty($activepath)) { | |||||
$activepath = $cfg_image_dir; | $activepath = $cfg_image_dir; | ||||
} | } | ||||
} | } | ||||
if (empty($imgfile)) { | if (empty($imgfile)) { | ||||
$imgfile = ''; | $imgfile = ''; | ||||
} | } | ||||
if (!is_uploaded_file($imgfile)) { | if (!is_uploaded_file($imgfile)) { | ||||
ShowMsg("您没有选择上传的文件!".$imgfile, "-1"); | |||||
ShowMsg("您没有选择上传的文件".$imgfile, "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1; | $CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1; | ||||
$imgfile_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $imgfile_name)); | $imgfile_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $imgfile_name)); | ||||
if (!preg_match("#\.(".$cfg_imgtype.")#i", $imgfile_name)) { | if (!preg_match("#\.(".$cfg_imgtype.")#i", $imgfile_name)) { | ||||
ShowMsg("您所上传的图片类型不在许可列表,请更改系统对扩展名限定的配置", "-1"); | |||||
ShowMsg("您所上传的图片类型不在许可列表,请修改系统对扩展名限定的配置", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$nowtme = time(); | $nowtme = time(); | ||||
@@ -56,7 +51,6 @@ $filename = $filename.'.'.$fs[count($fs) - 1]; | |||||
$filename_name = $filename_name.'.'.$fs[count($fs) - 1]; | $filename_name = $filename_name.'.'.$fs[count($fs) - 1]; | ||||
$fullfilename = $cfg_basedir.$activepath."/".$filename; | $fullfilename = $cfg_basedir.$activepath."/".$filename; | ||||
move_uploaded_file($imgfile, $fullfilename) or die("上传文件到 $fullfilename 失败"); | move_uploaded_file($imgfile, $fullfilename) or die("上传文件到 $fullfilename 失败"); | ||||
@unlink($imgfile); | @unlink($imgfile); | ||||
if (empty($resize)) { | if (empty($resize)) { | ||||
$resize = 0; | $resize = 0; | ||||
@@ -70,7 +64,6 @@ if ($resize == 1) { | |||||
WaterImg($fullfilename, 'up'); | WaterImg($fullfilename, 'up'); | ||||
} | } | ||||
} | } | ||||
$info = ''; | $info = ''; | ||||
$sizes[0] = 0; | $sizes[0] = 0; | ||||
$sizes[1] = 0; | $sizes[1] = 0; | ||||
@@ -90,8 +83,6 @@ if ($GLOBALS['cfg_html_editor'] == 'ckeditor' && $CKUpload) { | |||||
echo json_encode($result); | echo json_encode($result); | ||||
exit; | exit; | ||||
} | } | ||||
if (!empty($noeditor)) { | if (!empty($noeditor)) { | ||||
ShowMsg("成功上传一幅图片", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&noeditor=yes&activepath=".urlencode($activepath)."/$mdir&d=".time()); | ShowMsg("成功上传一幅图片", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&noeditor=yes&activepath=".urlencode($activepath)."/$mdir&d=".time()); | ||||
} else { | } else { |
@@ -0,0 +1,188 @@ | |||||
<?php | |||||
/** | |||||
* 多媒体选择框 | |||||
* | |||||
* @version $Id: select_media.php 1 9:43 2010年7月8日Z tianya $ | |||||
* @package DedeBIZ.Dialog | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | |||||
* @link https://www.dedebiz.com | |||||
*/ | |||||
require_once(dirname(__FILE__)."/config.php"); | |||||
if (empty($activepath)) { | |||||
$activepath = ''; | |||||
} | |||||
$noeditor = isset($noeditor) ? $noeditor : ''; | |||||
$activepath = str_replace('.', '', $activepath); | |||||
$activepath = preg_replace("#\/{1,}#", '/', $activepath); | |||||
if (strlen($activepath) < strlen($cfg_other_medias)) { | |||||
$activepath = $cfg_other_medias; | |||||
} | |||||
$inpath = $cfg_basedir.$activepath; | |||||
$activeurl = '..'.$activepath; | |||||
if (!is_dir($inpath)) { | |||||
die('No Exsits Path'); | |||||
} | |||||
if (empty($f)) { | |||||
$f = 'form1.enclosure'; | |||||
} | |||||
if (empty($comeback)) { | |||||
$comeback = ''; | |||||
} | |||||
$addparm = ''; | |||||
if (!empty($CKEditor)) { | |||||
$addparm = '&CKEditor='.$CKEditor; | |||||
} | |||||
if (!empty($CKEditorFuncNum)) { | |||||
$addparm .= '&CKEditorFuncNum='.$CKEditorFuncNum; | |||||
} | |||||
if (!empty($noeditor)) { | |||||
$addparm .= '&noeditor=yes'; | |||||
} | |||||
?> | |||||
<html> | |||||
<head> | |||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||||
<title>媒体文件管理器</title> | |||||
<link rel="stylesheet" href="../../static/css/bootstrap.min.css"> | |||||
<link rel="stylesheet" href="../../static/font-awesome/css/font-awesome.min.css"> | |||||
<link rel="stylesheet" href="../css/base.css"> | |||||
<style> | |||||
html{background:#f2f2f2} | |||||
body{margin:0;line-height:1.5;font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif} | |||||
a{text-decoration:none!important} | |||||
table{background:#fff} | |||||
.bg{margin:10px;border-radius:.2rem;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)} | |||||
.linerow{border-bottom:1px solid #eee!important} | |||||
</style> | |||||
</head> | |||||
<body class="bg"> | |||||
<script> | |||||
function nullLink() { | |||||
return; | |||||
} | |||||
function ReturnValue(reimg) { | |||||
if (window.opener.document.<?php echo $f ?> != null) { | |||||
window.opener.document.<?php echo $f ?>.value = reimg; | |||||
} | |||||
var funcNum = <?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>; | |||||
if (window.opener.CKEDITOR != null && funcNum != 1) { | |||||
window.opener.CKEDITOR.tools.callFunction(funcNum, reimg); | |||||
} | |||||
window.close(); | |||||
} | |||||
</script> | |||||
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="2" class="table table-borderless"> | |||||
<tr> | |||||
<td width="55%" align="center" class="linerow">点击名称选择文件</td> | |||||
<td width="15%" align="center" class="linerow">文件大小</td> | |||||
<td width="30%" align="center" class="linerow">最后修改时间</td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($inpath); | |||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
while ($file = $dh->read()) { | |||||
//计算文件大小和创建时间 | |||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | |||||
$filesize = filesize("$inpath/$file"); | |||||
$filesize = $filesize / 1024; | |||||
if ($filesize != "") | |||||
if ($filesize < 0.1) { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 2); | |||||
} else { | |||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 1); | |||||
} | |||||
$filetime = filemtime("$inpath/$file"); | |||||
$filetime = MyDate("Y-m-d H:i", $filetime); | |||||
} | |||||
//判断文件类型并作处理 | |||||
if ($file == ".") continue; | |||||
else if ($file == "..") { | |||||
if ($activepath == "") continue; | |||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | |||||
$line = "<tr> | |||||
<td class='linerow'><a href='select_media.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='img/dir2.gif'>上级目录</a></td> | |||||
<td colspan='2' class='linerow'>当前目录:$activepath</td> | |||||
</tr>"; | |||||
echo $line; | |||||
} else if (is_dir("$inpath/$file")) { | |||||
if (preg_match("#^_(.*)$#i", $file)) continue; | |||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=select_media.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='img/dir.gif'>$file</a></td> | |||||
<td class='linerow'></td> | |||||
<td class='linerow'></td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
$reurl = $reurl; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\"><img src='img/flash.gif'>$file</a></td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td align='center' class='linerow'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(wmv|avi)#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
$reurl = $reurl; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\"><img src='img/wmv.gif'>$file</a></td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td class='linerow' align='center'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(rm|rmvb)#i", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
$reurl = $reurl; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\"><img src='img/rm.gif'>$file</a></td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td class='linerow' align='center'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} else if (preg_match("#\.(mp3|wma)#", $file)) { | |||||
$reurl = "$activeurl/$file"; | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | |||||
$reurl = $reurl; | |||||
if ($file == $comeback) $lstyle = " style='color:red' "; | |||||
else $lstyle = ""; | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\"><img src='img/mp3.gif'>$file</a></td> | |||||
<td class='linerow'>$filesize KB</td> | |||||
<td class='linerow' align='center'>$filetime</td> | |||||
</tr>"; | |||||
echo "$line"; | |||||
} | |||||
}//End Loop | |||||
$dh->close(); | |||||
?> | |||||
<tr> | |||||
<td colspan="3"> | |||||
<form action="select_media_post.php" method="POST" enctype="multipart/form-data" name="myform"> | |||||
<input type="hidden" name="activepath" value="<?php echo $activepath ?>"> | |||||
<input type="hidden" name="f" value="<?php echo $f ?>"> | |||||
<input type="hidden" name="job" value="upload"> | |||||
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>"> | |||||
上传:<input type="file" name="uploadfile" style="width:160px;border:none"> | |||||
<button type="submit" name="sb1" class="btn btn-success btn-sm">确定</button> | |||||
</form> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | |||||
</html> |
@@ -1,11 +1,10 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 多媒体发送 | * 多媒体发送 | ||||
* | * | ||||
* @version $Id: select_media_post.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: select_media_post.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
@@ -23,5 +22,4 @@ if (empty($activepath)) { | |||||
$activepath = $cfg_other_medias; | $activepath = $cfg_other_medias; | ||||
} | } | ||||
} | } | ||||
require_once(dirname(__FILE__)."/select_soft_post.php"); | require_once(dirname(__FILE__)."/select_soft_post.php"); |
@@ -4,7 +4,7 @@ | |||||
* | * | ||||
* @version $Id: select_soft.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: select_soft.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
@@ -82,10 +82,8 @@ table{background:#fff} | |||||
<input type="hidden" name="activepath" value="<?php echo $activepath ?>"> | <input type="hidden" name="activepath" value="<?php echo $activepath ?>"> | ||||
<input type="hidden" name="f" value="<?php echo $f ?>"> | <input type="hidden" name="f" value="<?php echo $f ?>"> | ||||
<input type="hidden" name="job" value="upload"> | <input type="hidden" name="job" value="upload"> | ||||
上传:<input type="file" name="uploadfile" size="24" style="border:none"> | |||||
| |||||
上传:<input type="file" name="uploadfile" size="24" style="border:none"> | |||||
改名:<input type="text" name="newname" style="width:160px"> | 改名:<input type="text" name="newname" style="width:160px"> | ||||
| |||||
<button type="submit" name="sb1" class="btn btn-success btn-sm">确定</button> | <button type="submit" name="sb1" class="btn btn-success btn-sm">确定</button> | ||||
</form> | </form> | ||||
</td> | </td> | ||||
@@ -94,8 +92,8 @@ table{background:#fff} | |||||
<td colspan="3"> | <td colspan="3"> | ||||
<table width="100%" border="0" cellspacing="0" cellpadding="2"> | <table width="100%" border="0" cellspacing="0" cellpadding="2"> | ||||
<tr height="28"> | <tr height="28"> | ||||
<td width="50%" class="linerow">选择文件</td> | |||||
<td width="20%" class="linerow">文件大小</td> | |||||
<td width="45%" class="linerow">选择文件</td> | |||||
<td width="25%" class="linerow">文件大小</td> | |||||
<td width="30%" class="linerow">修改时间</td> | <td width="30%" class="linerow">修改时间</td> | ||||
</tr> | </tr> | ||||
<?php | <?php | ||||
@@ -122,15 +120,15 @@ table{background:#fff} | |||||
else if ($file == "..") { | else if ($file == "..") { | ||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | ||||
$line = "\n<tr height='26'> | |||||
$line = "<tr height='26'> | |||||
<td class='linerow'><a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='img/dir2.gif'>上级目录</a></td> | <td class='linerow'><a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='img/dir2.gif'>上级目录</a></td> | ||||
<td colspan='2' class='linerow'>当前目录:$activepath</td> | |||||
<td colspan='2' class='linerow'>当前目录:$activepath</td> | |||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
if (preg_match("#^_(.*)$#i", $file)) continue; | if (preg_match("#^_(.*)$#i", $file)) continue; | ||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | if (preg_match("#^\.(.*)$#i", $file)) continue; | ||||
$line = "\n<tr height='26'> | |||||
$line = "<tr height='26'> | |||||
<td class='linerow'><a href=select_soft.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='img/dir.gif'>$file</a></td> | <td class='linerow'><a href=select_soft.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='img/dir.gif'>$file</a></td> | ||||
<td class='linerow'></td> | <td class='linerow'></td> | ||||
<td class='linerow'></td> | <td class='linerow'></td> | ||||
@@ -142,7 +140,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
$line = "\n<tr height='26'> | |||||
$line = "<tr height='26'> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/zip.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/zip.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td> | <td class='linerow'>$filetime</td> | ||||
@@ -154,7 +152,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
$line = "\n<tr height='26'> | |||||
$line = "<tr height='26'> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/exe.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/exe.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td> | <td class='linerow'>$filetime</td> | ||||
@@ -168,7 +166,7 @@ table{background:#fff} | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="3" height="30">点击选择的文件,红色字样的为刚上传的文件</td> | |||||
<td colspan="3" height="30">点击选择的文件,红色字样的为刚上传的文件。</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</body> | </body> |
@@ -1,11 +1,10 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 软件发送 | * 软件发送 | ||||
* | * | ||||
* @version $Id: select_soft_post.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: select_soft_post.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
@@ -17,25 +16,20 @@ if (empty($uploadmbtype)) $uploadmbtype = '软件类型'; | |||||
if (empty($bkurl)) $bkurl = 'select_soft.php'; | if (empty($bkurl)) $bkurl = 'select_soft.php'; | ||||
$CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1; | $CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1; | ||||
$newname = (empty($newname) ? '' : preg_replace("#[\\ \"\*\?\t\r\n<>':\/|]#", "", $newname)); | $newname = (empty($newname) ? '' : preg_replace("#[\\ \"\*\?\t\r\n<>':\/|]#", "", $newname)); | ||||
$uploadfile = isset($imgfile) && empty($uploadfile) ? $imgfile : $uploadfile; | $uploadfile = isset($imgfile) && empty($uploadfile) ? $imgfile : $uploadfile; | ||||
$uploadfile_name = isset($imgfile_name) && empty($uploadfile_name) ? $imgfile_name : $uploadfile_name; | $uploadfile_name = isset($imgfile_name) && empty($uploadfile_name) ? $imgfile_name : $uploadfile_name; | ||||
if (!is_uploaded_file($uploadfile)) { | if (!is_uploaded_file($uploadfile)) { | ||||
ShowMsg("您没有选择上传的文件或选择的文件大小超出限制!", "-1"); | ShowMsg("您没有选择上传的文件或选择的文件大小超出限制!", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//软件类型所有支持的附件 | //软件类型所有支持的附件 | ||||
$cfg_softtype = $cfg_softtype; | $cfg_softtype = $cfg_softtype; | ||||
$cfg_softtype = str_replace('||', '|', $cfg_softtype); | $cfg_softtype = str_replace('||', '|', $cfg_softtype); | ||||
$uploadfile_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $uploadfile_name)); | $uploadfile_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $uploadfile_name)); | ||||
if (!preg_match("#\.(".$cfg_softtype.")#i", $uploadfile_name)) { | if (!preg_match("#\.(".$cfg_softtype.")#i", $uploadfile_name)) { | ||||
ShowMsg("您所上传的{$uploadmbtype}不在许可列表,请更改系统对扩展名限定的配置", ""); | |||||
ShowMsg("您所上传的{$uploadmbtype}不在许可列表,请修改系统对扩展名限定的配置", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$nowtme = time(); | $nowtme = time(); | ||||
if ($activepath == $cfg_soft_dir) { | if ($activepath == $cfg_soft_dir) { | ||||
$newdir = MyDate($cfg_addon_savetype, $nowtme); | $newdir = MyDate($cfg_addon_savetype, $nowtme); | ||||
@@ -45,7 +39,6 @@ if ($activepath == $cfg_soft_dir) { | |||||
CloseFtp(); | CloseFtp(); | ||||
} | } | ||||
} | } | ||||
//文件名(前为手工指定, 后者自动处理) | //文件名(前为手工指定, 后者自动处理) | ||||
if (!empty($newname)) { | if (!empty($newname)) { | ||||
$filename = $newname; | $filename = $newname; | ||||
@@ -60,17 +53,15 @@ if (!empty($newname)) { | |||||
$filename = $cuserLogin->getUserID().'-'.dd2char(MyDate('ymdHis', $nowtme)); | $filename = $cuserLogin->getUserID().'-'.dd2char(MyDate('ymdHis', $nowtme)); | ||||
$fs = explode('.', $uploadfile_name); | $fs = explode('.', $uploadfile_name); | ||||
if (preg_match("#".$cfg_not_allowall."#", $fs[count($fs) - 1])) { | if (preg_match("#".$cfg_not_allowall."#", $fs[count($fs) - 1])) { | ||||
ShowMsg("您上传了某些可能存在不安全因素的文件,系统拒绝操作", 'javascript:;'); | |||||
ShowMsg("您上传了某些可能存在不安全因素的文件,系统拒绝操作", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$filename = $filename.'.'.$fs[count($fs) - 1]; | $filename = $filename.'.'.$fs[count($fs) - 1]; | ||||
} | } | ||||
$fullfilename = $cfg_basedir.$activepath.'/'.$filename; | $fullfilename = $cfg_basedir.$activepath.'/'.$filename; | ||||
$fullfileurl = $activepath.'/'.$filename; | $fullfileurl = $activepath.'/'.$filename; | ||||
move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到 $fullfilename 失败"); | move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到 $fullfilename 失败"); | ||||
@unlink($uploadfile); | @unlink($uploadfile); | ||||
if ($uploadfile_type == 'application/x-shockwave-flash') { | if ($uploadfile_type == 'application/x-shockwave-flash') { | ||||
$mediatype = 2; | $mediatype = 2; | ||||
} else if (preg_match('#image#i', $uploadfile_type)) { | } else if (preg_match('#image#i', $uploadfile_type)) { | ||||
@@ -80,15 +71,11 @@ if ($uploadfile_type == 'application/x-shockwave-flash') { | |||||
} else { | } else { | ||||
$mediatype = 4; | $mediatype = 4; | ||||
} | } | ||||
$inquery = "INSERT INTO `#@__uploads`(arcid,title,url,mediatype,width,height,playtime,filesize,uptime,mid) | $inquery = "INSERT INTO `#@__uploads`(arcid,title,url,mediatype,width,height,playtime,filesize,uptime,mid) | ||||
VALUES ('0','$filename','$fullfileurl','$mediatype','0','0','0','{$uploadfile_size}','{$nowtme}','".$cuserLogin->getUserID()."'); "; | VALUES ('0','$filename','$fullfileurl','$mediatype','0','0','0','{$uploadfile_size}','{$nowtme}','".$cuserLogin->getUserID()."'); "; | ||||
$dsql->ExecuteNoneQuery($inquery); | $dsql->ExecuteNoneQuery($inquery); | ||||
$fid = $dsql->GetLastID(); | $fid = $dsql->GetLastID(); | ||||
AddMyAddon($fid, $fullfileurl); | AddMyAddon($fid, $fullfileurl); | ||||
if ($ck == 1) { | if ($ck == 1) { | ||||
$funcNum = isset($_GET['CKEditorFuncNum']) ? $_GET['CKEditorFuncNum'] : 1; | $funcNum = isset($_GET['CKEditorFuncNum']) ? $_GET['CKEditorFuncNum'] : 1; | ||||
$url = $fullfileurl; | $url = $fullfileurl; |
@@ -4,7 +4,7 @@ | |||||
* | * | ||||
* @version $Id: select_templets.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: select_templets.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
@@ -89,7 +89,7 @@ table{background:#fff} | |||||
else if ($file == "..") { | else if ($file == "..") { | ||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#", "", $activepath); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='img/dir2.gif'>上级目录</a></td> | <td class='linerow'><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='img/dir2.gif'>上级目录</a></td> | ||||
<td colspan='2' class='linerow'>当前目录:$activepath</td> | <td colspan='2' class='linerow'>当前目录:$activepath</td> | ||||
</tr>\r\n"; | </tr>\r\n"; | ||||
@@ -97,7 +97,7 @@ table{background:#fff} | |||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
if (preg_match("#^_(.*)$#i", $file)) continue; | if (preg_match("#^_(.*)$#i", $file)) continue; | ||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | if (preg_match("#^\.(.*)$#i", $file)) continue; | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src='img/dir.gif'>$file</a></td> | <td class='linerow'><a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src='img/dir.gif'>$file</a></td> | ||||
<td class='linerow'></td> | <td class='linerow'></td> | ||||
<td class='linerow'></td> | <td class='linerow'></td> | ||||
@@ -109,7 +109,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/htm.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/htm.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td> | <td class='linerow'>$filetime</td> | ||||
@@ -121,7 +121,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."/#", "", $reurl); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/css.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/css.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td> | <td class='linerow'>$filetime</td> | ||||
@@ -133,7 +133,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/js.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/js.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td> | <td class='linerow'>$filetime</td> | ||||
@@ -145,7 +145,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/jpg.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/jpg.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td> | <td class='linerow'>$filetime</td> | ||||
@@ -157,7 +157,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/gif.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/gif.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td> | <td class='linerow'>$filetime</td> | ||||
@@ -169,7 +169,7 @@ table{background:#fff} | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
$line = "\n<tr> | |||||
$line = "<tr> | |||||
<td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/txt.gif'>$file</a></td> | <td class='linerow'><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='img/txt.gif'>$file</a></td> | ||||
<td class='linerow'>$filesize KB</td> | <td class='linerow'>$filesize KB</td> | ||||
<td class='linerow'>$filetime</td></tr>"; | <td class='linerow'>$filetime</td></tr>"; |
@@ -1,15 +1,13 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 模板发送 | * 模板发送 | ||||
* | * | ||||
* @version $Id: select_templets_post.php 1 9:43 2010年7月8日Z tianya $ | * @version $Id: select_templets_post.php 1 9:43 2010年7月8日Z tianya $ | ||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
$cfg_txttype = "htm|html|tpl|txt"; | $cfg_txttype = "htm|html|tpl|txt"; | ||||
if (empty($uploadfile)) { | if (empty($uploadfile)) { |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 增加自定义表单 | * 增加自定义表单 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 编辑自定义表单 | * 编辑自定义表单 | ||||
* | * | ||||
@@ -25,7 +24,7 @@ if ($dopost == "save") { | |||||
$name = dede_htmlspecialchars($name); | $name = dede_htmlspecialchars($name); | ||||
$query = "UPDATE `#@__diyforms` SET name = '$name', listtemplate='$listtemplate', viewtemplate='$viewtemplate', posttemplate='$posttemplate', public='$public' WHERE diyid='$diyid' "; | $query = "UPDATE `#@__diyforms` SET name = '$name', listtemplate='$listtemplate', viewtemplate='$viewtemplate', posttemplate='$posttemplate', public='$public' WHERE diyid='$diyid' "; | ||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
ShowMsg("成功更改一个自定义表单", "diy_main.php"); | |||||
ShowMsg("成功修改一个自定义表单", "diy_main.php"); | |||||
exit(); | exit(); | ||||
} | } | ||||
/*---------------- | /*---------------- |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 增加自定义表单字段 | * 增加自定义表单字段 | ||||
* | * |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 编辑自定义表单字段 | * 编辑自定义表单字段 | ||||
* | * | ||||
@@ -38,7 +37,7 @@ foreach ($ds as $d) { | |||||
$fieldtypes[$dds[0]] = $dds[1]; | $fieldtypes[$dds[0]] = $dds[1]; | ||||
} | } | ||||
//保存更改 | |||||
//保存修改 | |||||
/*-------------------- | /*-------------------- | ||||
function _SAVE() | function _SAVE() | ||||
----------------------*/ | ----------------------*/ | ||||
@@ -101,7 +100,7 @@ if ($action == 'save') { | |||||
$oksetting = $dtp->GetResultNP(); | $oksetting = $dtp->GetResultNP(); | ||||
$oksetting = addslashes($oksetting); | $oksetting = addslashes($oksetting); | ||||
$dsql->ExecuteNoneQuery("UPDATE #@__diyforms SET info='$oksetting' WHERE diyid='$diyid' "); | $dsql->ExecuteNoneQuery("UPDATE #@__diyforms SET info='$oksetting' WHERE diyid='$diyid' "); | ||||
ShowMsg("成功更改一个字段的配置", "diy_edit.php?diyid={$diyid}"); | |||||
ShowMsg("成功修改一个字段的配置", "diy_edit.php?diyid={$diyid}"); | |||||
exit(); | exit(); | ||||
} | } | ||||
/*------------------ | /*------------------ |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 自定义表单列表管理 | * 自定义表单列表管理 | ||||
* | * |