Current time: 11-26-2024, 05:10 AM 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
datacompboy Offline
Junior Member
*

Posts: 50
Joined: Nov 2009
Reputation: 0
Post: #2
RE: domain_edit
here is patch for reseller domain_edit, allowing to change domain hosting plan from select box.


Attached File(s)
.zip  select_plan.zip (Size: 2.61 KB / Downloads: 5)
12-11-2009 01:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #3
RE: domain_edit
Maybe it's easier to create a Ticket in the Bugtracker Smile
12-11-2009 01:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
datacompboy Offline
Junior Member
*

Posts: 50
Joined: Nov 2009
Reputation: 0
Post: #4
RE: domain_edit
I can't log into bugtracker Sad Reset password ok, but can't log in with received info.
Have tried already lot of times.
12-11-2009 02:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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