Browse Source

移除无效资源

tags/6.1.8
tianya 1 year ago
parent
commit
58d3221815
16 changed files with 17 additions and 120 deletions
  1. +4
    -4
      src/admin/media_main.php
  2. +0
    -28
      src/admin/sys_passport.php
  3. +2
    -2
      src/admin/templets/diy_edit_content.htm
  4. +2
    -2
      src/admin/templets/diy_list.htm
  5. +0
    -7
      src/admin/templets/media_main.htm
  6. +6
    -3
      src/admin/templets/mytag_edit.htm
  7. +0
    -71
      src/admin/templets/sys_passport.htm
  8. +1
    -1
      src/admin/tpl.php
  9. BIN
      src/static/web/img/button_back.gif
  10. BIN
      src/static/web/img/button_ok.gif
  11. BIN
      src/static/web/img/button_reset.gif
  12. BIN
      src/static/web/img/channeladd.gif
  13. BIN
      src/static/web/img/channellist.gif
  14. BIN
      src/static/web/img/pic_dir.gif
  15. +1
    -1
      src/theme/system/part_autochannel.htm
  16. +1
    -1
      src/theme/system/part_channelartlist.htm

+ 4
- 4
src/admin/media_main.php View File

@@ -41,9 +41,9 @@ if ($mediatype > 1) {
$addsql .= " AND u.mediatype='$membertype' ";
}
$sql = "SELECT u.aid,u.title,u.url,u.mediatype,u.filesize,u.mid,u.uptime,a.userid AS adminname,m.userid AS membername
FROM #@__uploads u
LEFT JOIN #@__admin a ON a.id = u.mid
LEFT JOIN #@__member m ON m.mid = u.mid
FROM `#@__uploads` u
LEFT JOIN `#@__admin` a ON a.id = u.mid
LEFT JOIN `#@__member` m ON m.mid = u.mid
$addsql ORDER BY u.aid DESC";
$dlist = new DataListCP();
$dlist->pageSize = 20;
@@ -56,7 +56,7 @@ $dlist->Display();
function MediaType($tid, $nurl)
{
if ($tid == 1) {
return "图片<a href=\"javascript:;\" onClick=\"ChangeImage('$nurl');\"><img src='../static/web/img/picviewnone.gif' name='picview' border='0' alt='预览'></a>";
return "图片<a href=\"$nurl\" target=\"_blank\"><i class='fa fa-picture-o' name='picview' border='0' alt='预览'></i></a>";
} else if ($tid == 2) {
return "FLASH";
} else if ($tid == 3) {


+ 0
- 28
src/admin/sys_passport.php View File

@@ -1,28 +0,0 @@
<?php
/**
* 通行证设置
*
* @version $Id: sys_passport.php 1 22:28 2010年7月20日Z tianya $
* @package DedeBIZ.Administrator
* @copyright Copyright (c) 2022, DedeBIZ.COM
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
if (!isset($dopost)) $dopost = "";

if ($dopost == 'save') {
$ConfigFile = DEDEINC."/config_passport.php";
$vars = array('cfg_pp_need', 'cfg_pp_encode', 'cfg_pp_login', 'cfg_pp_exit', 'cfg_pp_reg');
$configstr = "";
foreach ($vars as $v) {
${$v} = str_replace("'", "", ${$v});
$configstr .= "\${$v} = '".str_replace("'", "", stripslashes(${'edit___'.$v}))."';\r\n";
}
$configstr = '<'.'?'."\r\n".$configstr.'?'.'>';
$fp = fopen($ConfigFile, "w") or die("写入文件 $ConfigFile 失败,请检查权限");
fwrite($fp, $configstr);
fclose($fp);
echo "<script>alert('修改通行证配置成功');window.location='sys_passport.php?".time()."';</script>\r\n";
}
include DedeInclude('templets/sys_passport.htm');

+ 2
- 2
src/admin/templets/diy_edit_content.htm View File

@@ -28,11 +28,11 @@
if($row[$field]=='') continue;
if($fielddata[1]=='img')
{
$row[$field] = "<input name='photo' type='file'> <a href='{$row[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>";
$row[$field] = "<input name='photo' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>";
}
else if($fielddata[1]=='addon')
{
$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>";
$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>";
} else {
if(!in_array($fielddata[1],$allowhtml)){
$row[$field] = dede_htmlspecialchars($row[$field]);


+ 2
- 2
src/admin/templets/diy_list.htm View File

@@ -28,10 +28,10 @@
{
if($fields[$field]=='') continue;
if($fielddata[1]=='img'){
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'>图片附件</a>";
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 图片附件</a>";
}
else if($fielddata[1]=='addon'){
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='../static/web/img/channeladd.gif' border='0'>其它附件</a>";
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 其它附件</a>";
} else {
if(!in_array($fielddata[1],$allowhtml)){
$fields[$field] = dede_htmlspecialchars($fields[$field]);


+ 0
- 7
src/admin/templets/media_main.htm View File

@@ -17,7 +17,6 @@
}
</style>
<script>
function ChangeImage(surl) { document.getElementById('picview').src = surl; }
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
@@ -56,12 +55,6 @@
</script>
</head>
<body>
<div id="floater" class="napisdiv">
<a href="javascript:;" onClick="ChangeImage('../static/web/img/picviewnone.gif');">
<img src='../static/web/img/picviewnone.gif' id='picview' name='picview' border='0' alt='单击关闭预览' style='z-index:10000'>
</a>
</div>
<SCRIPT src="js/float.js"></SCRIPT>
<table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
<tr>
<td height="26" colspan="7" background="../static/web/img/tbg.gif">


+ 6
- 3
src/admin/templets/mytag_edit.htm View File

@@ -4,15 +4,16 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>修改标记</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
</head>
<body>
<table width="98%" align="center" cellpadding="3" cellspacing="1">
<table width="98%" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3">
<tr>
<td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="mytag_main.php">自定义标记管理</a> &gt; 修改标记</td>
</tr>
<tr>
<td height="200">
<table width="100%" cellspacing="4" cellpadding="4">
<table width="100%" cellspacing="4" cellpadding="4" class="table table-borderless">
<form action="mytag_edit.php" method="post" enctype="multipart/form-data" name="form1">
<input type='hidden' name='aid' value='<?php echo $aid?>'>
<input type='hidden' name='dopost' value='saveedit'>
@@ -65,7 +66,9 @@
</tr>
<tr>
<td height="53" align="center"></td>
<td colspan="2"><input name="imageField" type="image" src="../static/web/img/button_ok.gif"></td>
<td colspan="2">
<button type='submit' name='B1' class='btn btn-success btn-sm'>确定</button>
</td>
</tr>
</form>
</table>


+ 0
- 71
src/admin/templets/sys_passport.htm View File

@@ -1,71 +0,0 @@
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>通行证设置</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
<table width="98%" cellpadding="2" cellspacing="1" align="center">
<tr>
<td height="26" background="../static/web/img/tbg.gif">通行证设置:</td>
</tr>
<tr>
<td>
<table width="100%" cellspacing="1" cellpadding="1">
<form action="sys_passport.php" method="post" name="form1">
<input type="hidden" name="dopost" value="save">
<tr align="center" bgcolor="#E6F7CA" height="26">
<td width="25%">参数说明</td>
<td width="75%">参数值</td>
</tr>
<tr height="26" align="center" bgcolor="#F4FCDC">
<td> 是否使用通行证:</td>
<td align="left">
<input type='radio' class='np' name='edit___cfg_pp_need' value='Y'<?php if($cfg_pp_need=='Y') echo " checked"; ?>>
<input type='radio' class='np' name='edit___cfg_pp_need' value='N'<?php if($cfg_pp_need=='N') echo " checked"; ?>>
否</td>
</tr>
<tr height="26" align="center" bgcolor="#F4FCDC">
<td> 通行证加密码:</td>
<td align="left">
<?php
if($cfg_pp_encode=='') $cfg_pp_encode = chr(mt_rand(ord('A'),ord('Z'))).chr(mt_rand(ord('a'),ord('z'))).chr(mt_rand(ord('A'),ord('Z'))).chr(mt_rand(ord('A'),ord('Z'))).chr(mt_rand(ord('a'),ord('z'))).mt_rand(1000,9999).chr(mt_rand(ord('A'),ord('Z')));
?>
<input type='text' name='edit___cfg_pp_encode' id='edit___cfg_pp_encode' style='width:80%' value='<?php echo $cfg_pp_encode?>'>
</td>
</tr>
<tr height="26" align="center">
<td> 登录通行证网址:</td>
<td align="left">
<input type='text' name='edit___cfg_pp_login' id='edit___cfg_pp_login' style='width:80%' value='<?php echo $cfg_pp_login?>'></td>
</tr>
<tr height="26" align="center" bgcolor="#F4FCDC">
<td>退出通行证网址:</td>
<td align="left"><input name="edit___cfg_pp_exit" type='text' id="edit___cfg_pp_exit" style='width:80%' value='<?php echo $cfg_pp_exit?>'></td>
</tr>
<tr height="26" align="center">
<td>注册通行证帐号网址:</td>
<td align="left">
<input type='text' name='edit___cfg_pp_reg' id='edit___cfg_pp_reg' style='width:80%' value='<?php echo $cfg_pp_reg?>'>
</td>
</tr>
<tr>
<td height="50" colspan="2"> <table width="98%" cellspacing="1" cellpadding="1">
<tr>
<td width="11%"></td>
<td width="11%"><input name="imageField" type="image" src="../static/web/img/button_ok.gif" class="np"></td>
<td width="78%"><img src="../static/web/img/button_reset.gif" width="60" height="26" style="cursor:pointer" onClick="document.form1.reset()"></td>
</tr>
</table></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<center>
</center>
</body>
</html>

+ 1
- 1
src/admin/tpl.php View File

@@ -227,7 +227,7 @@ else if ($action == 'savetagfile') {
<input type='hidden' name='dopost' value='make' />
测试标签:(需要使用环境变量的不能在此测试)<br>
<textarea name='partcode' cols='150' rows='6' style='width:90%;'>{dede:{$tagname} }{/dede:{$tagname}}</textarea><br>
<input name='imageField1' type='image' class='np' src='../static/web/img/button_ok.gif' width='60' height='26' border='0' />
<button type='submit' name='B1' class='btn btn-success btn-sm'>确定</button>
</form>
";
$wintitle = "成功修改/创建文件";


BIN
src/static/web/img/button_back.gif View File

Before After
Width: 60  |  Height: 22  |  Size: 272B

BIN
src/static/web/img/button_ok.gif View File

Before After
Width: 60  |  Height: 22  |  Size: 269B

BIN
src/static/web/img/button_reset.gif View File

Before After
Width: 60  |  Height: 22  |  Size: 265B

BIN
src/static/web/img/channeladd.gif View File

Before After
Width: 14  |  Height: 18  |  Size: 387B

BIN
src/static/web/img/channellist.gif View File

Before After
Width: 14  |  Height: 18  |  Size: 387B

BIN
src/static/web/img/pic_dir.gif View File

Before After
Width: 44  |  Height: 42  |  Size: 731B

+ 1
- 1
src/theme/system/part_autochannel.htm View File

@@ -1,6 +1,6 @@
<ul style="padding:0;margin:0;list-style-type: none;">
<li style='float:left;padding-left:3px;padding-right:3px;'>
<img src='../static/web/img/channellist.gif'>
</li>
<li style='float:left'>
<a href="[field:typelink/]">[field:typename/]</a>


+ 1
- 1
src/theme/system/part_channelartlist.htm View File

@@ -4,7 +4,7 @@
{dede:type}
<table cellpadding="0" cellspacing="0" width="98%">
<tr>
<td width='10%'><img src='../static/web/img/channellist.gif'></td>
<td width='10%'></td>
<td width='60%'>
<a href="[field:typelink /]">[field:typename /]</a>
</td>


Loading…
Cancel
Save