Current time: 12-24-2024, 03:44 AM Hello There, Guest! (LoginRegister)


Post Reply 
update_hp.php is sending notification to wrong user
Author Message
emers Offline


Posts: 1
Joined: Jul 2007
Reputation: 0
Post: #1
update_hp.php is sending notification to wrong user
Update_HP.php file has add_new_order() function, which sends email for reseller, and user. Email is an notification about updating hosting plan. The query taking these two emails from database is wrong, because it takes reseller's email, and '''first email added in first domain by this reseller'''. Should be: reseller's email, and probably first email of a domain, which is going to be updated.

Patch file is as follow:
--- update_hp.php.old 2005-12-31 12:11:31.000000000 +0100
+++ update_hp.php 2007-07-24 10:15:29.000000000 +0200
@@ -298,10 +298,10 @@
where
t1.admin_id=?
and
- t2.created_by=?
+ t2.admin_id=?
SQL_QUERY;

- $rs = exec_query($sql, $query, array($_SESSION['user_created_by'], $_SESSION['user_created_by']));
+ $rs = exec_query($sql, $query, array($_SESSION['user_created_by'], $_SESSION['user_id']));
$to = $rs -> fields['reseller_mail'];
07-24-2007 06:50 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
update_hp.php is sending notification to wrong user - emers - 07-24-2007 06:50 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)