发表文章

[PHP] 投票系统发送项目, 不更新点 "Vote system sends items, doesnt update points"[mwenhanced]

GoogleCodeExporter 6月前 55

We gotta get this fixed!! the vote system will send the reward items, but
will not update the points in the database. I believe this is the issue:

if(strpos($send_mail, $_SESSION["char_name"]))
            {
                $DB->query("UPDATE `voting_points` SET `points`=(`points` -
".$tab_rewards[$reward][2].") WHERE `id` = ".$_SESSION["user_id"]." LIMIT 1");
                $_SESSION["points"] -= $tab_rewards[$reward][2];
                $message = "<font color=\"blue\">".$lang["was_given"]."
".$reward_texts[$langs[$set_lang][2]][$reward]." ".$lang["to"]."
".$_SESSION["char_name"]."</font>";
            }
            else
                $message = "<font color=\"red\">Send Mail Problem: ".$send_mail."</font>";
        }
        else
            $message = "<font color=\"red\">Remote Login Problem:
".$remote_login."</font>";
        fclose($telnet);
    }
    else
        $message = "<font color=\"red\">Telnet Connection Problem:
".$errstr."</font>";
    return $message."<br />";
}

-- strpos is not acceptable in mangosweb i dont think

wilson.steven10@gmail.com 2010年3月3日在 5:59 code.google.com 报告的原始问题

原文:
We gotta get this fixed!! the vote system will send the reward items, but
will not update the points in the database. I believe this is the issue:

if(strpos($send_mail, $_SESSION["char_name"]))
            {
                $DB->query("UPDATE `voting_points` SET `points`=(`points` -
".$tab_rewards[$reward][2].") WHERE `id` = ".$_SESSION["user_id"]." LIMIT 1");
                $_SESSION["points"] -= $tab_rewards[$reward][2];
                $message = "<font color=\"blue\">".$lang["was_given"]."
".$reward_texts[$langs[$set_lang][2]][$reward]." ".$lang["to"]."
".$_SESSION["char_name"]."</font>";
            }
            else
                $message = "<font color=\"red\">Send Mail Problem: ".$send_mail."</font>";
        }
        else
            $message = "<font color=\"red\">Remote Login Problem:
".$remote_login."</font>";
        fclose($telnet);
    }
    else
        $message = "<font color=\"red\">Telnet Connection Problem:
".$errstr."</font>";
    return $message."<br />";
}

-- strpos is not acceptable in mangosweb i dont think

Original issue reported on code.google.com by wilson.steven10@gmail.com on 3 Mar 2010 at 5:59

相关推荐
最新评论 (1)
GoogleCodeExporter 6月前
1
Fixed as of 
Revision 9d10df3330 (mangoswe)
Revision 26b3e1e8f9 (trinityweb)

最初的评论 wilson.steven10@gmail.com 在2010年3月4日在3:14

  • 更改的状态:固定
原文:
Fixed as of 
Revision 9d10df3330 (mangoswe)
Revision 26b3e1e8f9 (trinityweb)

Original comment by wilson.steven10@gmail.com on 4 Mar 2010 at 3:14

  • Changed state: Fixed
返回
发表文章
GoogleCodeExporter
文章数
3257
评论数
13138
注册排名
7388