iLight Posted April 8, 2009 Share Posted April 8, 2009 Hello, I would like someone to fix that mysql command so that users can't refresh the page so it send the mysql command again and again and again : mysql_connect("localhost", "*****", "*****"); mysql_select_db("*******_whmcs"); mysql_query("UPDATE tblclients SET credit=credit + 1 WHERE id='" . $_SESSION['uid'] . "'"); It will be veryyyyy nice. I can pay for that :x. Since my webmaster is in vacation, I have to fix it quickly. Link to comment Share on other sites More sharing options...
iLight Posted April 8, 2009 Author Share Posted April 8, 2009 forget to say that you can use the variable : $RECALL wich include a custom CODE every transaction so if the user already used that code, he can't refresh again with the same. Link to comment Share on other sites More sharing options...
iLight Posted April 8, 2009 Author Share Posted April 8, 2009 Please? :x Link to comment Share on other sites More sharing options...
iLight Posted April 9, 2009 Author Share Posted April 9, 2009 Someone ? It's important Link to comment Share on other sites More sharing options...
Steven Crothers Posted April 9, 2009 Share Posted April 9, 2009 Toss me an email through the TCAdmin email system. I'll fix it for ya. Link to comment Share on other sites More sharing options...
Shawn Brant Posted April 14, 2009 Share Posted April 14, 2009 An easy fix would be to just define a new session variable then add the credit. All you would have to do is see if a session variable is defined and if it is do not do x commands. Send me a PM if you need some help. I am very good with PHP. Link to comment Share on other sites More sharing options...
iLight Posted April 15, 2009 Author Share Posted April 15, 2009 Well I've made a phone system in whmcs (that allows customers to buy game servers with credits on their phone =) ) so I just need to fix some bugs. Shall I post the script here so you can find something to secure it ? Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.