Browse Source

优化

tags/6.1.7
xushubieli 2 years ago
parent
commit
388e138c62
22 changed files with 31 additions and 64 deletions
  1. +1
    -8
      src/admin/makehtml_list_action.php
  2. +1
    -4
      src/admin/sys_info.php
  3. +1
    -4
      src/admin/tag_test_action.php
  4. +2
    -2
      src/admin/templets/content_i_list.htm
  5. +2
    -2
      src/admin/templets/content_list.htm
  6. +2
    -2
      src/admin/templets/content_s_list.htm
  7. +2
    -2
      src/admin/templets/content_sg_list.htm
  8. +1
    -2
      src/admin/templets/freelist_add.htm
  9. +2
    -2
      src/admin/templets/member_main.htm
  10. +2
    -2
      src/admin/templets/member_operations.htm
  11. +1
    -1
      src/admin/templets/member_pm.htm
  12. +1
    -1
      src/admin/templets/member_pmall.htm
  13. +1
    -1
      src/admin/templets/member_pmone.htm
  14. +1
    -1
      src/admin/templets/module_make.htm
  15. +1
    -1
      src/admin/templets/mychannel_field_edit.htm
  16. +2
    -2
      src/admin/templets/shops_operations.htm
  17. +6
    -12
      src/admin/templets/sys_sql_query.htm
  18. +0
    -1
      src/admin/templets/templets_one.htm
  19. +0
    -4
      src/install/index.php
  20. +0
    -6
      src/system/common.inc.php
  21. +1
    -2
      src/user/templets/soft_add.htm
  22. +1
    -2
      src/user/templets/soft_edit.htm

+ 1
- 8
src/admin/makehtml_list_action.php View File

@@ -12,7 +12,6 @@ require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_MakeHtml'); CheckPurview('sys_MakeHtml');
require_once(DEDEDATA."/cache/inc_catalog_base.inc"); require_once(DEDEDATA."/cache/inc_catalog_base.inc");
require_once(DEDEINC."/channelunit.func.php"); require_once(DEDEINC."/channelunit.func.php");

if (!isset($upnext)) $upnext = 1; if (!isset($upnext)) $upnext = 1;
if (empty($gotype)) $gotype = ''; if (empty($gotype)) $gotype = '';
if (empty($pageno)) $pageno = 0; if (empty($pageno)) $pageno = 0;
@@ -21,7 +20,6 @@ if (empty($typeid)) $typeid = 0;
if (!isset($uppage)) $uppage = 0; if (!isset($uppage)) $uppage = 0;
if (empty($maxpagesize)) $maxpagesize = 50; if (empty($maxpagesize)) $maxpagesize = 50;
$adminID = $cuserLogin->getUserID(); $adminID = $cuserLogin->getUserID();

//检测获取所有栏目ID //检测获取所有栏目ID
//普通生成或一键更新时更新所有栏目 //普通生成或一键更新时更新所有栏目
if ($gotype == '' || $gotype == 'mkallct') { if ($gotype == '' || $gotype == 'mkallct') {
@@ -44,7 +42,6 @@ else if ($gotype == 'mkall') {
$idArray = array(); $idArray = array();
if (file_exists($mkcachefile)) require_once($mkcachefile); if (file_exists($mkcachefile)) require_once($mkcachefile);
} }

//当前更新栏目的ID //当前更新栏目的ID
$totalpage = count($idArray); $totalpage = count($idArray);
if (isset($idArray[$pageno])) { if (isset($idArray[$pageno])) {
@@ -58,14 +55,11 @@ if (isset($idArray[$pageno])) {
exit(); exit();
} }
} }

if ($pageno == 0 && $mkpage == 1) //清空缓存 if ($pageno == 0 && $mkpage == 1) //清空缓存
{ {
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arccache` "); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arccache` ");
} }

$reurl = ''; $reurl = '';

//更新数组所记录的栏目 //更新数组所记录的栏目
if (!empty($tid)) { if (!empty($tid)) {
if (!isset($cfg_Cs[$tid])) { if (!isset($cfg_Cs[$tid])) {
@@ -95,7 +89,6 @@ if (!empty($tid)) {
if ($mkpage >= ($ntotalpage + 1)) $finishType = TRUE; if ($mkpage >= ($ntotalpage + 1)) $finishType = TRUE;
} }
} }

$nextpage = $pageno + 1; $nextpage = $pageno + 1;
if ($nextpage >= $totalpage && $finishType) { if ($nextpage >= $totalpage && $finishType) {
if ($gotype == '') { if ($gotype == '') {
@@ -118,4 +111,4 @@ if ($nextpage >= $totalpage && $finishType) {
ShowMsg("栏目:".$tid.",继续进行操作", $gourl, 0, 100); ShowMsg("栏目:".$tid.",继续进行操作", $gourl, 0, 100);
exit(); exit();
} }
}
}

+ 1
- 4
src/admin/sys_info.php View File

@@ -11,9 +11,7 @@
require_once(dirname(__FILE__)."/config.php"); require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Edit'); CheckPurview('sys_Edit');
if (empty($dopost)) $dopost = ""; if (empty($dopost)) $dopost = "";

$configfile = DEDEDATA.'/config.cache.inc.php'; $configfile = DEDEDATA.'/config.cache.inc.php';

//更新配置函数 //更新配置函数
function ReWriteConfig() function ReWriteConfig()
{ {
@@ -39,7 +37,6 @@ function ReWriteConfig()
fwrite($fp, "?".">"); fwrite($fp, "?".">");
fclose($fp); fclose($fp);
} }

//保存配置的改动 //保存配置的改动
if ($dopost == "save") { if ($dopost == "save") {
CheckCSRF(); CheckCSRF();
@@ -162,4 +159,4 @@ EOT;
echo $hash; echo $hash;
exit(); exit();
} }
include DedeInclude('templets/sys_info.htm');
include DedeInclude('templets/sys_info.htm');

+ 1
- 4
src/admin/tag_test_action.php View File

@@ -17,17 +17,14 @@ if (empty($partcode)) {
exit; exit;
} }
$partcode = stripslashes($partcode); $partcode = stripslashes($partcode);

if (empty($typeid)) $typeid = 0; if (empty($typeid)) $typeid = 0;
if (empty($showsource)) $showsource = ""; if (empty($showsource)) $showsource = "";

if ($typeid > 0) $pv = new PartView($typeid); if ($typeid > 0) $pv = new PartView($typeid);
else $pv = new PartView(); else $pv = new PartView();

$pv->SetTemplet($partcode, "string"); $pv->SetTemplet($partcode, "string");
if ($showsource == "" || $showsource == "yes") { if ($showsource == "" || $showsource == "yes") {
echo "模板代码:"; echo "模板代码:";
echo "<span style='color:#dc3545;'><pre>".dede_htmlspecialchars($partcode)."</pre></span>"; echo "<span style='color:#dc3545;'><pre>".dede_htmlspecialchars($partcode)."</pre></span>";
echo "结果:<hr size='1' width='100%'>"; echo "结果:<hr size='1' width='100%'>";
} }
$pv->Display();
$pv->Display();

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

@@ -38,9 +38,9 @@ img{margin-right:0}
</table> </table>
<form name="form3" action="content_i_list.php" method="get"> <form name="form3" action="content_i_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives"> <input type="hidden" name="dopost" value="listArchives">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mb-3" style="margin-top:10px;border:1px solid #dee2e6">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mt-3 mb-3" style="border:1px solid #dee2e6">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td> <td>


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

@@ -34,9 +34,9 @@
</table> </table>
<form name="form3" action="content_list.php" method="get"> <form name="form3" action="content_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives"> <input type="hidden" name="dopost" value="listArchives">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mb-3" style="margin-top:10px;border:1px solid #dee2e6">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mt-3 mb-3" style="border:1px solid #dee2e6">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td> <td>


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

@@ -117,9 +117,9 @@ function noSelAll() {
</table> </table>
<form name="form3" action="content_s_list.php" method="get"> <form name="form3" action="content_s_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives"> <input type="hidden" name="dopost" value="listArchives">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mb-3" style="margin-top:10px;border:1px solid #dee2e6">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mt-3 mb-3" style="border:1px solid #dee2e6">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td> <td>


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

@@ -161,9 +161,9 @@
</table> </table>
<form name='form3' action='content_sg_list.php' method='get'> <form name='form3' action='content_sg_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives'> <input type='hidden' name='dopost' value='listArchives'>
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mb-3" style="margin-top:10px;border:1px solid #dee2e6">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mt-3 mb-3" style="border:1px solid #dee2e6">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td> <td>


+ 1
- 2
src/admin/templets/freelist_add.htm View File

@@ -116,8 +116,7 @@
<tr> <tr>
<td height="30" align="left">列表模板:</td> <td height="30" align="left">列表模板:</td>
<td align="left"><input name="templet" type="text" id="templet" style="width:300px" value="{style}/list_free.htm"> <td align="left"><input name="templet" type="text" id="templet" style="width:300px" value="{style}/list_free.htm">
<button type="button" name="set4" style="width:60px"
onClick="SelectTemplets('form1.templet');" class="btn btn-success btn-sm">浏览</button></td>
<button type="button" name="set4" style="width:60px" onClick="SelectTemplets('form1.templet');" class="btn btn-success btn-sm">浏览</button></td>
</tr> </tr>
<tr> <tr>
<td height="30" align="left">最大列出页数:</td> <td height="30" align="left">最大列出页数:</td>


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

@@ -14,9 +14,9 @@
</head> </head>
<body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'> <body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'>
<form action="member_main.php" name="form1" method="get"> <form action="member_main.php" name="form1" method="get">
<table width="98%" border="0" cellspacing="1" align="center" class="table maintable mt-3" style="margin-bottom:10px">
<table width="98%" border="0" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td>关键词:</td> <td>关键词:</td>


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

@@ -58,9 +58,9 @@
</head> </head>
<body background="../static/web/img/allbg.gif" leftmargin='8' topmargin='8'> <body background="../static/web/img/allbg.gif" leftmargin='8' topmargin='8'>
<form name="form2" method="get" action="member_operations.php"> <form name="form2" method="get" action="member_operations.php">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3" style="margin-bottom:10px">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td>输入订单号:</td> <td>输入订单号:</td>


+ 1
- 1
src/admin/templets/member_pm.htm View File

@@ -19,7 +19,7 @@
<form action="member_pm.php" name="form1" method="get"> <form action="member_pm.php" name="form1" method="get">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-borderless" style="margin-bottom:10px"> <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-borderless" style="margin-bottom:10px">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td>关键词:</td> <td>关键词:</td>


+ 1
- 1
src/admin/templets/member_pmall.htm View File

@@ -18,7 +18,7 @@
<form action="member_pm.php" name="form1" method="get"> <form action="member_pm.php" name="form1" method="get">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-borderless" style="margin-bottom:10px"> <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-borderless" style="margin-bottom:10px">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td>关键词:</td> <td>关键词:</td>


+ 1
- 1
src/admin/templets/member_pmone.htm View File

@@ -18,7 +18,7 @@
<form action="member_pm.php" name="form1" method="get"> <form action="member_pm.php" name="form1" method="get">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-borderless" style="margin-bottom:10px"> <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-borderless" style="margin-bottom:10px">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td>关键词:</td> <td>关键词:</td>


+ 1
- 1
src/admin/templets/module_make.htm View File

@@ -43,7 +43,7 @@
<input type='hidden' name='action' value='make'> <input type='hidden' name='action' value='make'>
<tr> <tr>
<td height="26" colspan="2" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="module_main.php">模块管理</a> <td height="26" colspan="2" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="module_main.php">模块管理</a>
&gt; 模块打包:</td>
&gt; 模块打包:</td>
</tr> </tr>
<tr> <tr>
<td width="19%" align="center" bgcolor="#FFFFFF">模块名称:</td> <td width="19%" align="center" bgcolor="#FFFFFF">模块名称:</td>


+ 1
- 1
src/admin/templets/mychannel_field_edit.htm View File

@@ -91,7 +91,7 @@
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
<tr> <tr>
<td width="30%" style="padding-left:10px"> <td width="30%" style="padding-left:10px">
<a href="mychannel_main.php">频道管理</a> &gt; 查看/修改字段:
<a href="mychannel_main.php">频道管理</a> &gt; 查看/修改字段:
</td> </td>
<td align="right" style="padding-top:6px;"> <td align="right" style="padding-top:6px;">
<button type="button" name="ss1" class="btn btn-success btn-sm" onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';">当前模型信息</button> <button type="button" name="ss1" class="btn btn-success btn-sm" onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';">当前模型信息</button>


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

@@ -69,9 +69,9 @@
</head> </head>
<body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'> <body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'>
<form name="form2" method="get" action="shops_operations.php"> <form name="form2" method="get" action="shops_operations.php">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3" style="margin-bottom:10px">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
<tr> <tr>
<td style="height:36px;background:#f8f8f8">
<td height="36" bgcolor="#f8f8f8">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td>输入订单号:</td> <td>输入订单号:</td>


+ 6
- 12
src/admin/templets/sys_sql_query.htm View File

@@ -53,30 +53,24 @@ while($row = $dsql->GetArray('t',MYSQL_BOTH))
$dsql->Execute('n'); $dsql->Execute('n');
$row2 = $dsql->GetArray('n',MYSQL_BOTH); $row2 = $dsql->GetArray('n',MYSQL_BOTH);
$dd = $row2[0]; $dd = $row2[0];
echo " <option value='".$row[0]."'>".$row[0]."(".$dd.")</option>\r\n";
echo "<option value='".$row[0]."'>".$row[0]."(".$dd.")</option>\r\n";
} }
?> ?>
</select> </select>
</td> </td>
<td width="2%"></td> <td width="2%"></td>
<td width="63%" valign="bottom"> <td width="63%" valign="bottom">

<div style="float:left;margin-right:20px;"> <div style="float:left;margin-right:20px;">
<button type="Submit" name="Submit1" class="btn btn-success btn-sm"
onClick="this.form.dopost.value='opimize';">优化选中表</button>
<button type="Submit" name="Submit1" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimize';">优化选中表</button>
<br> <br>
<button type="Submit" name="Submit2" class="btn btn-success btn-sm"
onClick="this.form.dopost.value='repair';" style="margin-top:6px;">修复选中表</button>
<button type="Submit" name="Submit2" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repair';" style="margin-top:6px;">修复选中表</button>
<br> <br>
<button type="Submit" name="Submit3" class="btn btn-success btn-sm"
onClick="this.form.dopost.value='viewinfo';" style="margin-top:6px;">查看表结构</button>
<button type="Submit" name="Submit3" class="btn btn-success btn-sm" onClick="this.form.dopost.value='viewinfo';" style="margin-top:6px;">查看表结构</button>
</div> </div>
<div style="float:left"> <div style="float:left">
<button type="Submit" name="Submit5" class="btn btn-success btn-sm"
onClick="this.form.dopost.value='opimizeAll';">优化全部表</button>
<button type="Submit" name="Submit5" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimizeAll';">优化全部表</button>
<br> <br>
<button type="Submit" name="Submit6" class="btn btn-success btn-sm"
onClick="this.form.dopost.value='repairAll';" style="margin-top:6px;">修复全部表</button>
<button type="Submit" name="Submit6" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repairAll';" style="margin-top:6px;">修复全部表</button>
</div> </div>


</td> </td>


+ 0
- 1
src/admin/templets/templets_one.htm View File

@@ -13,7 +13,6 @@
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
} }

li { li {
float: left; float: left;
padding-right: 8px; padding-right: 8px;


+ 0
- 4
src/install/index.php View File

@@ -9,12 +9,10 @@
@set_time_limit(0); @set_time_limit(0);
error_reporting(E_ALL || ~E_NOTICE); error_reporting(E_ALL || ~E_NOTICE);
define('INSLOCKFILE', dirname(__FILE__).'/install_lock.txt'); define('INSLOCKFILE', dirname(__FILE__).'/install_lock.txt');

if(file_exists(INSLOCKFILE)) if(file_exists(INSLOCKFILE))
{ {
exit("程序已运行安装,如果您确定要重新安装,请先删除 public/install/install_lock.txt"); exit("程序已运行安装,如果您确定要重新安装,请先删除 public/install/install_lock.txt");
} }

$verMsg = 'V6'; $verMsg = 'V6';
$dfDbname = 'DedeBIZ'; $dfDbname = 'DedeBIZ';
$cfg_version_detail = '6.1.7beta'; //详细版本号 $cfg_version_detail = '6.1.7beta'; //详细版本号
@@ -22,7 +20,6 @@ $errmsg = '';
if (version_compare(PHP_VERSION, '8.0.0', '>=')) { if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
mysqli_report(MYSQLI_REPORT_OFF); mysqli_report(MYSQLI_REPORT_OFF);
} }

$moduleCacheFile = dirname(__FILE__).'/modules.tmp.inc'; $moduleCacheFile = dirname(__FILE__).'/modules.tmp.inc';
define('DEDEINC',dirname(__FILE__).'/../system'); define('DEDEINC',dirname(__FILE__).'/../system');
define('DEDEDATA',dirname(__FILE__).'/../data'); define('DEDEDATA',dirname(__FILE__).'/../data');
@@ -35,7 +32,6 @@ foreach(Array('_GET','_POST','_COOKIE') as $_request)
foreach($$_request as $_k => $_v) ${$_k} = RunMagicQuotes($_v); foreach($$_request as $_k => $_v) ${$_k} = RunMagicQuotes($_v);
} }
require_once(DEDEINC.'/common.func.php'); require_once(DEDEINC.'/common.func.php');

if(empty($step)) if(empty($step))
{ {
$step = 1; $step = 1;


+ 0
- 6
src/system/common.inc.php View File

@@ -7,15 +7,12 @@
* @link https://www.dedebiz.com * @link https://www.dedebiz.com
*/ */
//生产环境使用production,如果采用dev模式,会有一些php的报错信息提示,便于开发调试 //生产环境使用production,如果采用dev模式,会有一些php的报错信息提示,便于开发调试

if (!defined('DEDE_ENVIRONMENT')) { if (!defined('DEDE_ENVIRONMENT')) {
define('DEDE_ENVIRONMENT', 'production'); define('DEDE_ENVIRONMENT', 'production');
} }

if (!defined('DEBUG_LEVEL')) { if (!defined('DEBUG_LEVEL')) {
define('DEBUG_LEVEL', FALSE);//如果设置为TRUE则会打印执行SQL的时间和标签加载时间方便调试 define('DEBUG_LEVEL', FALSE);//如果设置为TRUE则会打印执行SQL的时间和标签加载时间方便调试
} }

if (DEDE_ENVIRONMENT == 'production') { if (DEDE_ENVIRONMENT == 'production') {
ini_set('display_errors', 0); ini_set('display_errors', 0);
if (version_compare(PHP_VERSION, '5.3', '>=')) if (version_compare(PHP_VERSION, '5.3', '>='))
@@ -30,7 +27,6 @@ if (DEDE_ENVIRONMENT == 'production') {
error_reporting(-1); error_reporting(-1);
ini_set('display_errors', 1); ini_set('display_errors', 1);
} }

define('DEDEINC', str_replace("\\", '/', dirname(__FILE__))); define('DEDEINC', str_replace("\\", '/', dirname(__FILE__)));
define('DEDEROOT', str_replace("\\", '/', substr(DEDEINC, 0, -6))); // 站点根目录 define('DEDEROOT', str_replace("\\", '/', substr(DEDEINC, 0, -6))); // 站点根目录
define('DEDEDATA', substr(DEDEINC, 0, -6).'data'); define('DEDEDATA', substr(DEDEINC, 0, -6).'data');
@@ -88,7 +84,6 @@ function _RunMagicQuotes(&$svar)
} }
return $svar; return $svar;
} }

foreach (array('_GET', '_POST', '_COOKIE') as $_req) { foreach (array('_GET', '_POST', '_COOKIE') as $_req) {
foreach ($$_req as $_k => $_v) { foreach ($$_req as $_k => $_v) {
if ($_k == 'nvarname') ${$_k} = $_v; if ($_k == 'nvarname') ${$_k} = $_v;
@@ -229,7 +224,6 @@ if (isset($GLOBALS['PageNo'])) {
if (isset($GLOBALS['TotalResult'])) { if (isset($GLOBALS['TotalResult'])) {
$GLOBALS['TotalResult'] = intval($GLOBALS['TotalResult']); $GLOBALS['TotalResult'] = intval($GLOBALS['TotalResult']);
} }

if (!isset($cfg_NotPrintHead)) { if (!isset($cfg_NotPrintHead)) {
if (PHP_SAPI != 'cli') { if (PHP_SAPI != 'cli') {
header("Content-Type: text/html; charset={$cfg_soft_lang}"); header("Content-Type: text/html; charset={$cfg_soft_lang}");


+ 1
- 2
src/user/templets/soft_add.htm View File

@@ -212,8 +212,7 @@
<div class="col-sm-10"> <div class="col-sm-10">
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" <input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt"
style='width:100px;text-transform:uppercase;' /> style='width:100px;text-transform:uppercase;' />
<img src="../apps/vdimgck.php" alt="看不清点击更换" align="absmiddle" style="cursor:pointer"
onclick="this.src=this.src+'?'" />
<img src="../apps/vdimgck.php" alt="看不清点击更换" align="absmiddle" style="cursor:pointer" onClick="this.src=this.src+'?'" />
</div> </div>
</div> </div>
<?php }?> <?php }?>


+ 1
- 2
src/user/templets/soft_edit.htm View File

@@ -223,8 +223,7 @@
<div class="col-sm-10"> <div class="col-sm-10">
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" <input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt"
style='width:100px;text-transform:uppercase;' /> style='width:100px;text-transform:uppercase;' />
<img src="../apps/vdimgck.php" alt="看不清点击更换" align="absmiddle" style="cursor:pointer"
onclick="this.src=this.src+'?'" />
<img src="../apps/vdimgck.php" alt="看不清点击更换" align="absmiddle" style="cursor:pointer" onClick="this.src=this.src+'?'" />
</div> </div>
</div> </div>
<?php }?> <?php }?>


Loading…
Cancel
Save