价格表 v2 0 Anatol Leskovski

功能


系统要求



其他文件由:网站管理员

Evennews 邮件器 (2006/06/04)
象棋 (2004/08/07)
Avantgo 2.14 (2004/04/28)
Cjay 内容 3 (2004/04/28)
Direct Friends (2004/04/28)
Enterprise-X (2004/04/28)
错误处理器 (2004/04/28)
链接到我们 (2004/04/28)
Metacat 1.0 (2004/04/28)
MSN Messenger (2004/04/28)
EasyWeb (2004/04/28)
支持 (2004/04/28)
wsProject (2004/04/28)
地址模块 (2004/04/28)
Agnitio 病毒信息 (2004/04/28)
Altern8news (2004/04/28)
模拟时钟 (2004/04/28)
DB 备份与还原 3.0 (2004/04/28)

评论归作者所有。我们不对内容负责。
user

 价格表 2.0+ZIP 小修正




以下是我发现的价格列表模块中的一个错误修复


文件 pricelist/admin/index.php 中第 210 行存在错误,阻止了类别的修改。以下是修复方法。将 set 替换为 ,
这就完成了!

修复前

function DbEditDeleteCat($functz, $ok, $caid, $catname, $parent) {
global $xoopsDB;
if ($functz==0) {
$xoopsDB->query("update ".$xoopsDB->prefix("pricelist_categories")." set catname='$catname' set parent='$parent' where caid=$caid');");
redirect_header("index.php",1,_UPDATED);
}
if ($functz==1) {
title(""._ADMINADSAECAT."");
OpenTable();
if ($ok == 0) {
echo "

"._AUTHORDELSURE." $catname "._FRCATLISTQ.""
."

[ "._YES." ] [ "._NO." ]
";
}
CloseTable();
}
}

修复后

function DbEditDeleteCat($functz, $ok, $caid, $catname, $parent) {
global $xoopsDB;
if ($functz==0) {
$xoopsDB->query("update ".$xoopsDB->prefix("pricelist_categories")." set catname='$catname', parent='$parent' where caid=$caid");
redirect_header("index.php",1,_UPDATED);
}
if ($functz==1) {
title(""._ADMINADSAECAT."");
OpenTable();
if ($ok == 0) {
echo "
"._AUTHORDELSURE." $catname "._FRCATLISTQ.""
."

[ "._YES." ] [ "._NO." ]
";
}
CloseTable();
}
}

 
user

 Re: Pricelist 2.0+ZIP little correction


Hi, this does not work at 2.0.18.1, are there only the one "set" i have to change?
The whole module isnt working on my server, please help!

 
user

 Re: Pricelist 2.0+ZIP little correction


add this in beginning of admin/index.php. I add it after this line

$mytree = new XoopsTree($xoopsDB->prefix("pricelist_cat"),"cid","pid");


It works on my server

// 在
  
if (!ini_get('register_globals')) {
     
$superglobals = array($_SERVER$_ENV,
        
$_FILES$_COOKIE$_POST$_GET);
     if (isset(
$_SESSION)) {
        
array_unshift($superglobals$_SESSION);
     }
     foreach (
$superglobals as $superglobal) {
        
extract($superglobalEXTR_SKIP);
     }
  }

 


Login

Top Module Downloads

Who's Online

338 user(s) are online (23 user(s) are browsing Module Repository)


Members: 0


Guests: 338


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!