Browse Source

sql方法调用错误修复

tags/6.2.12
tianya 8 months ago
parent
commit
0e858d92a4
8 changed files with 15 additions and 15 deletions
  1. +3
    -3
      src/admin/article_test_same.php
  2. +1
    -1
      src/admin/catalog_do.php
  3. +1
    -1
      src/admin/diy_list.php
  4. +1
    -1
      src/apps/diy.php
  5. +4
    -4
      src/system/archive/searchview.class.php
  6. +1
    -1
      src/system/helpers/cookie.helper.php
  7. +1
    -1
      src/system/helpers/debug.helper.php
  8. +3
    -3
      src/user/resetpassword.php

+ 3
- 3
src/admin/article_test_same.php View File

@@ -76,8 +76,8 @@ else if ($dopost == 'delsel') {
}
//向导页
$channelinfos = array();
$dsql->setquery("SELECT id,typename,maintable,addtable FROM `#@__channeltype`");
$dsql->execute();
while ($row = $dsql->getarray()) $channelinfos[] = $row;
$dsql->SetQuery("SELECT id,typename,maintable,addtable FROM `#@__channeltype`");
$dsql->Execute();
while ($row = $dsql->GetArray()) $channelinfos[] = $row;
include DedeInclude('templets/article_test_same.htm');
?>

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

@@ -135,7 +135,7 @@ else if ($dopost == "upcatcache") {
continue;
} else {
$sql = "INSERT INTO `#@__arctiny` (id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid) SELECT aid, typeid, 0, arcrank, channel, senddate, 0, mid FROM `$tb` ";
$rs = $dsql->executenonequery($sql);
$rs = $dsql->ExecuteNoneQuery($sql);
$doarray[$tb] = 1;
}
}


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

@@ -31,7 +31,7 @@ if ($action == 'post') {
exit();
}
}
$diyform = $dsql->getOne("SELECT * FROM `#@__diyforms` WHERE diyid=$diyid");
$diyform = $dsql->GetOne("SELECT * FROM `#@__diyforms` WHERE diyid=$diyid");
if (!is_array($diyform)) {
showmsg("表单不存在,程序返回", '-1');
exit();


+ 1
- 1
src/apps/diy.php View File

@@ -32,7 +32,7 @@ if ($action == 'post') {
exit();
}
}
$diyform = $dsql->getOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid' ");
$diyform = $dsql->GetOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid' ");
if (!is_array($diyform)) {
showmsg('表单不存在,程序返回', '-1');
exit();


+ 4
- 4
src/system/archive/searchview.class.php View File

@@ -363,10 +363,10 @@ class SearchView
} else {
if ($this->TotalResult == -1) {
$this->dsql->SetQuery($cquery);
$this->dsql->execute();
$this->dsql->Execute();
$aidarr = array();
$aidarr[] = 0;
while ($row = $this->dsql->getarray()) {
while ($row = $this->dsql->GetArray()) {
if ($this->ChannelType < 0 || $this->ChannelTypeid < 0) $aidarr[] = $row['aid'];
else $aidarr[] = $row['id'];
}
@@ -374,10 +374,10 @@ class SearchView
$aids = implode(',', $aidarr);
$delete = "DELETE FROM `#@__arccache` WHERE uptime<".(time() - 3600 * 24);
$this->dsql->SetQuery($delete);
$this->dsql->executenonequery();
$this->dsql->ExecuteNoneQuery();
$insert = "INSERT INTO `#@__arccache` (`md5hash`,`uptime`,`cachedata`) VALUES ('$hascode','$uptime','$aids')";
$this->dsql->SetQuery($insert);
$this->dsql->executenonequery();
$this->dsql->ExecuteNoneQuery();
$this->TotalResult = $nums;
}
}


+ 1
- 1
src/system/helpers/cookie.helper.php View File

@@ -3,7 +3,7 @@ if (!defined('DEDEINC')) exit ('dedebiz');
/**
* Cookie处理助手
*
* @version $id:file.helper.php 13:58 2010年7月5日 tianya $
* @version $id:cookie.helper.php 13:58 2010年7月5日 tianya $
* @package DedeBIZ.Helpers
* @copyright Copyright (c) 2022 DedeBIZ.COM
* @license GNU GPL v2 (https://www.dedebiz.com/license)


+ 1
- 1
src/system/helpers/debug.helper.php View File

@@ -3,7 +3,7 @@ if (!defined('DEDEINC')) exit ('dedebiz');
/**
* 验证助手
*
* @version $id:validate.helper.php 2 13:56 2010年7月5日 tianya $
* @version $id:debug.helper.php 2 13:56 2010年7月5日 tianya $
* @package DedeBIZ.Helpers
* @copyright Copyright (c) 2022 DedeBIZ.COM
* @license GNU GPL v2 (https://www.dedebiz.com/license)


+ 3
- 3
src/user/resetpassword.php View File

@@ -84,7 +84,7 @@ if ($dopost == "") {
$tptim = (60 * 60 * 24 * 3);
$dtime = time();
if ($dtime - $tptim > $row['mailtime']) {
$db->executenonequery("DELETE FROM `#@__pwd_tmp` WHERE `md` = '$id';");
$db->ExecuteNoneQuery("DELETE FROM `#@__pwd_tmp` WHERE `md` = '$id';");
ShowMsg("临时密码修改期限已过期", "login.php");
exit();
}
@@ -103,9 +103,9 @@ if ($dopost == "") {
$pwdok = md5($pwdok);
}
$sql = "DELETE FROM `#@__pwd_tmp` WHERE `mid` = '$id';";
$db->executenonequery($sql);
$db->ExecuteNoneQuery($sql);
$sql = "UPDATE `#@__member` SET `$pp` = '$pwdok' WHERE `mid` = '$id';";
if ($db->executenonequery($sql)) {
if ($db->ExecuteNoneQuery($sql)) {
ShowMsg('修改密码成功,请牢记新密码', 'login.php');
exit;
}


Loading…
Cancel
Save