Current time: 04-19-2024, 04:11 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
domain_edit
Author Message
datacompboy Offline
Junior Member
*

Posts: 50
Joined: Nov 2009
Reputation: 0
Post: #1
domain_edit
Hi all!

Adding to domain edit select with fast change tariff plan of user, and have found intresting moment:
PHP Code:
diff -uw admin/domain_edit.php reseller/domain_edit.php 
@@ -506,11 +514,11 @@
 
         
// update the sql quotas, too
         
$query "SELECT `domain_name` FROM `domain` WHERE `domain_id` = ?";
-        
$rs exec_query($sql$query$user_id);
+        
$rs exec_query($sql$query, array($user_id));
         
$temp_dmn_name $rs->fields['domain_name'];
 
         
$query "SELECT COUNT(`name`) AS cnt FROM `quotalimits` WHERE `name` = ?";
-        
$rs exec_query($sql$query$temp_dmn_name);
+        
$rs exec_query($sql$query, array($temp_dmn_name));
         if (
$rs->fields['cnt'] > 0) {
             
// we need to update it
             
if ($disk == 0) { 

seems, reseller's variant correct, while admin's not Smile
12-11-2009 12:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
domain_edit - datacompboy - 12-11-2009 12:12 AM
RE: domain_edit - datacompboy - 12-11-2009, 01:47 AM
RE: domain_edit - gOOvER - 12-11-2009, 01:58 AM
RE: domain_edit - datacompboy - 12-11-2009, 02:12 AM

Forum Jump:


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