Quote:
Yesterday at 05:58 AM Cloudrunner said this in Post #44
Actually, the item_number column was removed for the guest posters portion of the hack...unfortunately, this is my fault, I forgot to remove that in the paypal_admin.php.
I will fix it and get the fixed archive up again.
bug found 
mist, okay, I'm not quite understanding again...you want the donation button to be displayed for xxx amount of (days, weeks, months, years, etc). and then upon expiration anyone who donated using that button get their awards and such removed right? What about the topten listing? do we want them removed from there as well?
I fix my post upstairs too...sorry, I thought it was funny :P
Okay to fix the donate_buttons query before I get the new archive up here:
in paypal_admin.php find:
PHP Code:
$DB_site->query("INSERT INTO paypal_donatebuttons (id,
business,
item_name,
Replace that entire query with this:
PHP Code:
$DB_site->query("INSERT INTO paypal_donatebuttons (id,
business,
item_name,
image_url,
no_shipping,
return,
rm,
cancel_return,
no_note,
cn,
cs,
invoice,
tax,
currency_code,
amount,
submit_button) VALUES (NULL, '"
.addslashes($options['business_email'])
."', '"
.addslashes($_POST['item_name'])
."', '"
.addslashes($_POST['image_url'])
."', '', '"
.addslashes($return)
."', '"
.addslashes($_POST['rm'])
."', '"
.addslashes($cancel_return)
."', '', '"
.addslashes($_POST['cn'])
."', '"
.addslashes($_POST['cs'])
."', '"
.addslashes($_POST['invoice'])
."', '"
.addslashes($_POST['tax'])
."', '"
.addslashes($_POST['currency_code'])
."', '"
.addslashes($_POST['amount'])
."', '"
.addslashes($_POST['submit_button'])
."')");
then find this:
PHP Code:
$DB_site->query("UPDATE paypal_donatebuttons SET business = '"
and replace that entire query with this:
PHP Code:
$DB_site->query("UPDATE paypal_donatebuttons SET business = '"
.addslashes($options['business_email'])
."', item_name = '"
.addslashes($_POST['item_name'])
."', image_url = '"
.addslashes($_POST['image_url'])
."', return = '"
.addslashes($return)
."', rm = '"
.addslashes($_POST['rm'])
."', cancel_return = '"
.addslashes($cancel_return)
."', cn = '"
.addslashes($_POST['cn'])
."', cs = '"
.addslashes($_POST['cs'])
."', invoice = '"
.addslashes($_POST['invoice'])
."', tax = '"
.addslashes($_POST['tax'])
."', currency_code = '"
.addslashes($_POST['currency_code'])
."', amount = '"
.addslashes($_POST['amount'])
."', submit_button = '"
.addslashes($_POST['submit_button'])
."' WHERE id = '"
.$_POST['id']
."'");
The queries both end the line before
PHP Code:
echo "All good!";
The file is fixed, but won't be up until next update, so in the interrim use this to fix the problem.
|
Thanks Cloudrunner, it's working fine now, great hack to mate alot of people have been waiting for this,
Clicks install
Thanks again
Rebel
|