View Single Post
  #5  
Old 07-16-2014, 03:49 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 86,935
Kyttias is on a distinguished road
Default

This is untested, but, to change the value from '500' to 'random' on the form:
Code:
<input type="hidden" value="random" name="amount" />
Module PHP Code will now check that the value is 'random':
PHP Code:
if((isset($_POST['amount']) && !empty($_POST['amount'])) && $_POST['amount'] == "random") {
    
$amount rand(500,2000);
    
$mysidia->user->changecash($amount);

Should work and be plenty secure. ^^
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 07-16-2014 at 03:51 PM.
Reply With Quote