Here is the exact same script as used by Eternia. Released under Creative Common for you. It gives you automatic points using the Zaypay report system, and it should be no SQL injection possibilities as I see it. It is standalone, but use Geisor login session and can be integrated just as on Eternia.
If your IQ is below 95, just stop reading beyond this point.
Also, you need to know how to reconfigurate php.ini and insert SQL code. If you don't know that, just stop reading.
1. Download zaypay-0.1.2c.tar.gz
2. Extract it in your htdocs folder (so you get htdocs/zaypay)
3. Modify or vertify that php.ini (it can be found in /etc/php/cgi-php5, /etc/php, /etc/php5 or if using Windows it's /xampp/apache/php.ini) got:
Linux / *nix:
and on both platforms:
4. Restart lighttpd/nginx/apache
5. Login on your phpmyadmin and insert the code in insertME.sql in the same database as your geisor installation.
6. Edit includes/database.php to match your database login details
7. Login on Geisor
8. Go to http://<your hostname>/zaypay/pay.php
9. If you see a screen without alot of errors, your on to something
10. (Optional) Make a donation to make as a thanks for this script (2EUR)
11. Edit includes/config.php to match your Zaypay data.
12. (Optional) Edit index.php and add:
Under all the other case...break lines. Now will index.php?subtopic=pay1 work, and you'll see the script as somewhat integrated.
13. Makesure the report url is set to:
http://<your hostname>/zaypay/report.php
14. Make a test payment from the Zaypay interface and see if you got any points (First you prepare a payment, then go to Payments -> Transactions -> show all transactions. Click on the prepared payment. Click "convert to test", choose paid).
15. (Optional) Change from the default 10 points to X points by editing $points_to_give in config.php
16. Done
Changelog:
v0.1.1
Released under CC by-nc.
If your IQ is below 95, just stop reading beyond this point.
Also, you need to know how to reconfigurate php.ini and insert SQL code. If you don't know that, just stop reading.
1. Download zaypay-0.1.2c.tar.gz
2. Extract it in your htdocs folder (so you get htdocs/zaypay)
3. Modify or vertify that php.ini (it can be found in /etc/php/cgi-php5, /etc/php, /etc/php5 or if using Windows it's /xampp/apache/php.ini) got:
Linux / *nix:
Windows:extension=openssl.so
Code:
extension=php_openssl.dll
Code:
allow_url_fopen = On
5. Login on your phpmyadmin and insert the code in insertME.sql in the same database as your geisor installation.
6. Edit includes/database.php to match your database login details
7. Login on Geisor
8. Go to http://<your hostname>/zaypay/pay.php
9. If you see a screen without alot of errors, your on to something
10. (Optional) Make a donation to make as a thanks for this script (2EUR)
11. Edit includes/config.php to match your Zaypay data.
12. (Optional) Edit index.php and add:
PHP:
case "pay1";
$subtopic = "pay1";
$topic = "Support X points";
$main_content .= '<div align="center"><iframe src="http://<your hostname>/zaypay/pay.php" width="98%"
height="800px;"><p>Need IFRAME support, please download Opera,Firefox or Chrome</p></iframe></div>';
break;
13. Makesure the report url is set to:
http://<your hostname>/zaypay/report.php
14. Make a test payment from the Zaypay interface and see if you got any points (First you prepare a payment, then go to Payments -> Transactions -> show all transactions. Click on the prepared payment. Click "convert to test", choose paid).
15. (Optional) Change from the default 10 points to X points by editing $points_to_give in config.php
16. Done
Changelog:
v0.1.1
v0.1.2* Makesure the Notice doesn't show when you aren't logged in
* You can now edit points by editing $points_to_give in config.php
* Edit the message you get when you aren't logged in by editing $message_to_guests in config.php
* Some code cleaning
* Added some more comments
v0.1.2a* No more short tag
* Big table name removed
* Ability to disable native language print
* Ability to change paid message
* Credit line is now not flooding outside
* Background is removed
v0.1.2b* Fixed that no points is given do to a bad query
v0.1.2c* Possible fix to the XML language issue
This is the v0.1.2c version WITHOUT split payments (0.2.x can be brought from VAPus - Otlist Classic)* PropView attachment 7332erly display disclamer (Zaypay WILL chargeback payments if you don't!)
Released under CC by-nc.
Attachments
-
zaypay-0.1.2c.tar.gz5.8 KB · Views: 1,091 · VirusTotal
Last edited: