Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: Wully616 on August 05, 2013, 01:13:39 PM

Title: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Wully616 on August 05, 2013, 01:13:39 PM
PUDS v0.2.7
PayPal-ULX Donation System

This web based application is an automated donation system.
This has been made to ease the strain on myself on my server when users donate and I'm not around to add them to the correct rank they donated for.
PUDS solves this issue.
Since I don't know Lua this method works for me and is customizable to my linking.
I have tested this extensively on my server and using paypals Sandbox, the scripts can be edited to work with the sandbox easily, I recommend you google how the sandbox works before playing around with it.

If there is any bugs/features you would like please comment here or on github!


Features:


Example:

This is my own setup for my sandbox server, hosted on my website. Using the ULX MOTD to pass things such as the player's steamID, map, hostname to the index.php I created for my MOTD. It autofills out player name and SteamID when they view it ingame, this speeds up the processes further and helps to ensure there is less chance of mistakes happening, though the player can still change the data (perhaps they want to donate on behalf of someone). Once the player donates through the MOTD they automatically get the rank within a few seconds.

http://www.wullysgamers.co.uk/motd/index.php?steamid=STEAM_0:0:14806053&mapname=gm_flatgrass&hostname=Donate (http://www.wullysgamers.co.uk/motd/index.php?steamid=STEAM_0:0:14806053&mapname=gm_flatgrass&hostname=Donate)

(http://gyazo.com/8ccbef874dbd4012786978219a538079.png)
Requirements:


Installation:

https://github.com/Wully616/PUDS/wiki/Installation-Tutorial-%5BPartially-Outdated!%5D (https://github.com/Wully616/PUDS/wiki/Installation-Tutorial-%5BPartially-Outdated!%5D)

PayPal Sandbox Testing Tutorial:
https://github.com/Wully616/PUDS/wiki/PayPal-Sandbox-Tutorial (https://github.com/Wully616/PUDS/wiki/PayPal-Sandbox-Tutorial)

Changelog:
Code: [Select]
Minor Fix

A login loop was caused by a function being commented out. This is now fixed.

Version 0.2.7

Implemented a new login system.
Fixed directory redirection using absolute referencing
Implemented, broke, then fixed a web based config!

Version 0.2.6
Fixed Steam login issue.
PUDS has some config changes be sure to check the config.php file!
PUDS now requires a Steam API key! http://steamcommunity.com/dev/registerkey

Version 0.2.5

Escaped MySQL inputs.

Version 0.2.4

Users can now log into Steam to get their ingame name/SteamID to simplify the process.
Checked the first rank on the donation page by default to make sure something is indeed sent to paypal.

Version 0.2.3

Fixed broken rcon commands.
Fixed db config (again)

Version 0.2.2

Escaped database username/passwords etc. (oops)
Added option in the config file to specify the command for each rank
Fixed issue with closing mysql connection when DB wasn't in use. (Thanks born2beatu)
Fixed undefined variables for the config file. (Thanks born2beatu)
Fixed depreciated eregi in paypal.class.php to preg_match. (Thanks born2beatu)

Added install.php form to write a config file - WIP

Version 0.2.1
Fixed: New lines in the log not working,
Fixed: Security issue where rcon passwords were shown in log file and could be accessed if user didn't change the log file permissions. (removed displaying the password)

Version 0.2:

Made the web application more easily configurable (everything is now done in config.php)
Donation prices and ranks are stored in arrays and the index.php is dynamically generated based on the number of ranks/prices. (So you can now enter as many ranks/prices as you wish in the config.php file and don't need to edit the index.php file or ipn.php file anymore!)


Download:

Right here: https://github.com/Wully616/PUDS (https://github.com/Wully616/PUDS)


Support:

If you wish to support me I would appreciate any donations for helping to automate your server donations :D

Donate to Wully Here (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JJ9BFL6PRURMJ)
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Panicx72 on August 05, 2013, 02:44:12 PM
Thanks a <censor> lot!
Testing it right away.


Edit: After some struggling got it to work!
Title: Re: PUDS - PayPal-ULX Donation System
Post by: TheAndroid1 on August 07, 2013, 11:04:04 AM
<Edit - JamminR> No need to quote entire first post.
I am willing to make a Lua addon for this which syncs with the MySQL DB if you like because using RCon is unreliable, I will start when I have the time.
Also if I get around to it I could maybe send you some CSS or something to make this look a little nicer?
Add me on Steam at http://steamcommunity.com/id/theandroid1/
Title: Re: PUDS - PayPal-ULX Donation System
Post by: SatoshiAaron on August 08, 2013, 10:41:39 AM
I've just payed for one of these ;~; Only yesterday too D:
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Wully616 on August 09, 2013, 07:21:00 AM
I've just payed for one of these ;~; Only yesterday too D:

As long as it wasn't this one someone sold you :P
Title: Re: PUDS - PayPal-ULX Donation System
Post by: BlueGhostHD on August 12, 2013, 03:27:34 PM
Hmm, I cant get it to work with my Database, but other than that it runs perfect.
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Wully616 on August 14, 2013, 02:00:58 AM
Hmm, I cant get it to work with my Database, but other than that it runs perfect.


What sort of issue are you having with your database, is there any errors?
Have you previously created a table called donations or something else?

The ipn.php file automatically creates a new table in your database called donations or whatever $DBTABLE is set to in config.php. If you already have a table created but do not have any fields in the table it may fail to create the fields since the script will assume the fields are already there as the table exists.
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Bite That Apple on August 14, 2013, 03:30:54 AM
Very nice idea here. When I have time later today, I'll take a look at it and give it a spin on sandbox.paypal.com
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Wully616 on August 14, 2013, 08:20:19 AM
Added an example of my own donation MOTD on the op.

Very nice idea here. When I have time later today, I'll take a look at it and give it a spin on sandbox.paypal.com

Thank you chaos, let me know if there is any issues!



Title: Re: PUDS - PayPal-ULX Donation System
Post by: Bite That Apple on August 15, 2013, 03:54:55 AM
Added an example of my own donation MOTD on the op.

Thank you chaos, let me know if there is any issues!

I'm not the best with Paypal, and maybe other people may not be. So I would suggest maybe put a little more instruction on this thread or maybe the readme. Maybe even make a youtube video on it.

 I literlly spent like three hours just trying to get anything to work, sadly I was unable to get it to work. Though, it might just be a me, but sandbox.paypal is acting stupid..
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Wully616 on August 15, 2013, 06:34:26 PM
I'm not the best with Paypal, and maybe other people may not be. So I would suggest maybe put a little more instruction on this thread or maybe the readme. Maybe even make a youtube video on it.

 I literlly spent like three hours just trying to get anything to work, sadly I was unable to get it to work. Though, it might just be a me, but sandbox.paypal is acting stupid..

I'm looking to work with TheAndroid1 to make it more userfriendly and configurable view a webbased GUI, but I will certainly create more of a step by step tutorial tomorrow to explain the installation.
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Bite That Apple on August 15, 2013, 07:10:03 PM
I'm looking to work with TheAndroid1 to make it more userfriendly and configurable view a webbased GUI, but I will certainly create more of a step by step tutorial tomorrow to explain the installation.

Glad to hear you've made friends here on the ulx forums to help you. Though, I don't host servers anymore, and I made addons for ulx myself now, I like to test other people's addons and see fit that they work good and correctly.

I hope to see ulx server that do donations use this.
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Wully616 on August 18, 2013, 05:47:43 AM
Updated:


I have also created a tutorial, forgive the formatting on github, it's my first time using it to create a wiki  ;)

https://github.com/Wully616/PUDS/wiki/Installation-Tutorial (https://github.com/Wully616/PUDS/wiki/Installation-Tutorial)
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Bite That Apple on August 18, 2013, 05:49:17 AM
Updated:

  • Made the web application more easily configurable (everything is now done in config.php)
  • Donation prices and ranks are stored in arrays and the index.php is dynamically generated based on the number of ranks/prices. (So you can now enter as many ranks/prices as you wish in the config.php file and don't need to edit the index.php file or ipn.php file anymore!)

I have also created a tutorial, forgive the formatting on github, it's my first time using it to create a wiki  ;)

https://github.com/Wully616/PUDS/wiki/Installation-Tutorial (https://github.com/Wully616/PUDS/wiki/Installation-Tutorial)

Very nice mate. That's what I'm talking about. I'll take a look when I have time, at this moment dealing with a table issue.
Title: Re: PUDS - PayPal-ULX Donation System
Post by: bender180 on August 18, 2013, 09:07:28 AM
having a small issue after the paypal transaction is complete the donator gets this as an email
Code: [Select]
Thank you for your purchase

Your rank information
-------------------------
Paid:
SteamID:
Rank:
-------------------------

There has been an issue when adding your SteamID to the correct usergroup.
Please contact the server admin to resolve this issue.
Ive tested it my self and i get the same results if i check the php table the info is there (seen here: https://dl.dropboxusercontent.com/u/2418443/images/php.JPG)
i get the money from the transaction and im positive i set up the config.php correctly.

EDIT: upon investigation i found in the error log
Quote
Unable to connect!Unable to connect to Rcon, please check your configuration.
the ip the port and the pass are all correct im not sure what the issue is....
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Sam Johnson on August 18, 2013, 01:49:24 PM
This is a really great system!
I though have a request. Is it possible to add the feature so they get auto demoted to the rank they had before when x ammount of time goes?
We have some monthly/half year subscriptions and it's getting really hard to filter those out and demote them if they dont want to continue.
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Bite That Apple on August 18, 2013, 04:45:03 PM
This is a really great system!
I though have a request. Is it possible to add the feature so they get auto demoted to the rank they had before when x ammount of time goes?
We have some monthly/half year subscriptions and it's getting really hard to filter those out and demote them if they dont want to continue.

There's another modification that does that already. Though it would have to be modified to your liking
http://forums.ulyssesmod.net/index.php/topic,5953.0.html
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Wully616 on August 19, 2013, 03:25:00 AM
having a small issue after the paypal transaction is complete the donator gets this as an email
Code: [Select]
Thank you for your purchase

Your rank information
-------------------------
Paid:
SteamID:
Rank:
-------------------------

Is there any
There has been an issue when adding your SteamID to the correct usergroup.
Please contact the server admin to resolve this issue.
Ive tested it my self and i get the same results if i check the php table the info is there (seen here: https://dl.dropboxusercontent.com/u/2418443/images/php.JPG)
i get the money from the transaction and im positive i set up the config.php correctly.

EDIT: upon investigation i found in the error log  the ip the port and the pass are all correct im not sure what the issue is....

I had this issue myself when I changed the configuration, I thought it may have been my host being a derp and blocking outward connections to my serverIP, but I tested the Rcon script on its own and it connected fine, but not in the donation system.
Setting the permissions on rcon_code.php to 755 worked for me last night, although I have just tested it again twice just there with default permissions (644) and it connected to my rcon fine.
Its a long shot but check your websites IP address isn't in the banned_ip.cfg file in your garrysmod/garrysmod/cfg directory. (as too many failed rcon attempts will ban the IP)

It could also be that the connection is taking too long and timing out.

A successful donation should print like this in the log.txt
Code: [Select]
Connected to database
Table exists, Connecting to table.
IPN Validated.
test@wullysgamers.co.uk wully 1.00 STEAM_0:0:14806053 iron
Added to database.
IP: 149.210.141.26 Port: 27065 Password: <password removed> Command: ulx adduserid STEAM_0:0:14806053 iron
(Console) added [WB] Wully to group iron
ServerLog: [ULX] (Console) added [WB] Wully to group iron

My only suggestion is to check if you can connect to your server through your rcon password in a client like HLSW or something. Make sure in your configuration you have not left in the colon(:) after the IP address and make sure the port is correct.

I'll try my best and make a tutorial today explaining how to test paypal stuff in paypals sandbox - this uses mock accounts which you create on paypal to pay money, it means your not using your own real money to test the system before its ready.

Title: Re: PUDS - PayPal-ULX Donation System
Post by: Wully616 on August 19, 2013, 03:32:33 AM
This is a really great system!
I though have a request. Is it possible to add the feature so they get auto demoted to the rank they had before when x ammount of time goes?
We have some monthly/half year subscriptions and it's getting really hard to filter those out and demote them if they dont want to continue.

Thank you Sam :)

Yes I could certainly add that, as chaos said, it would be easiest to use the ulx addtempuser. http://forums.ulyssesmod.net/index.php/topic,5953.0.html (http://forums.ulyssesmod.net/index.php/topic,5953.0.html)
I could add it in so that you can select in the config whether to use ulx addtempuser or ulx adduserid.
This could be on a per rank basis, eg. one rank is a permanent rank and other ones are only temp, with configurable times of course.

I think I will also add in an extra column or two in the MySQL table showing the date they donated and if it is a temprank, another column for when it will expire. Since currently the only way to check the dates right now is to check your paypal account.

Would admins who use this like a feature that it e-mails yourself when a users donated? As well as any details if there was an issue with the donation?

I go away to Insomniai49 on Thursday but I will try and get any remaining bugs squashed and get a sandbox tutorial up for you guys to test it properly :)

PayPal Sandbox Tutorial done:
https://github.com/Wully616/PUDS/wiki/PayPal-Sandbox-Tutorial (https://github.com/Wully616/PUDS/wiki/PayPal-Sandbox-Tutorial)
Title: Re: PUDS - PayPal-ULX Donation System
Post by: bender180 on August 19, 2013, 08:49:42 PM
Thanks for the reply I will try out what you said on Thursday as I'm away from my computer (posting on phone)and I'm busy until then. I will try the permissions and check the banned ips then HLSW works fine I was using it the same day I set up the system to see if it was working. As for the sandbox I was using that to test I only twice used the live PayPal and I used existing funds.


Edit:Worked with my host to get this working. Their firewall was blocking the request, they adjusted the firewall and now its working. :)
Title: Re: PUDS - PayPal-ULX Donation System
Post by: DoubleN on August 25, 2013, 06:37:47 AM
Hello. Great system. Is it posible for it to change the rank on forums. I use MyBB.
Title: Re: PUDS - PayPal-ULX Donation System
Post by: Prentice on August 25, 2013, 11:14:41 AM
Sorry if I missed it, however I was wondering how to get use the ulx motd feature to auto-fill in the details?

Thanks for this great addon!
Title: Re: PUDS v0.2.2 - PayPal-ULX Donation System
Post by: Wully616 on August 31, 2013, 03:56:52 PM
Added the ability to specify the command per rank:

Code: [Select]
$prices = array("1","2","3","4"); //prices for each rank, do not include currency symbol
$ranks = array("iron","bronze","silver","gold"); //ulx group names of each rank corresponding to the same array position in $costs
$commands = array("ulx adduserid $steamid $rank","ulx adduserid $steamid $rank","ulx adduserid $steamid $rank","ulx adduserid $steamid $rank"); //commands for each rank, these will support other commands in the future

This is a quick way to do this right now, I will make a webbased form for creating each donation rank/service which will be a lot easier to use.

For now, in the above example, each position in the arrays corresponds to each other array, eg position 0 in $prices corresponds to position 0 in $commands and $ranks.

In the $commands array it can use variables such as $steamid $rank and $name (which should hopefully be the ingame name specified in the donation form) to build the command for that donation.

I'm not sure if ulx tempadduser supports steamIDs but if it does the the command for that could be:

Code: [Select]
ulx tempadduser $steamid $rank 60
It could be used for pointshop right now in this form I think, I don't know what the pointshop command is for adding points to a player though  :P
Title: Re: PUDS v0.2.3 - PayPal-ULX Donation System
Post by: thetomm2010 on September 04, 2013, 03:20:52 PM
this is awesome I use this for a lot of stuff Is there anyway to make it so people just use there steam login instead of having them put in there steam ID?
Title: Re: PUDS v0.2.2 - PayPal-ULX Donation System
Post by: sabo on September 05, 2013, 07:15:41 AM
It could be used for pointshop right now in this form I think, I don't know what the pointshop command is for adding points to a player though  :P

Code: [Select]
self:PS_GivePoints( xxx );

replace xxx with how many points you want to give the player.

I am not fully sure if this is going to work, so you would have to test it wully and then add it to your awesome release :)

Hope I could add something to this ;)

And TempAddUser supports SteamIDs now!
Title: Re: PUDS v0.2.3 - PayPal-ULX Donation System
Post by: Wully616 on September 09, 2013, 05:44:21 AM
Apologies for the slow development recently. I'm due to fly to London on Sunday to start training for a graduate job I got, I will be in London for 6 weeks. I imagine I will have free time at the weekends and unless I'm studying I plan to work on this.

If there is any major bugs, by all means contact me on Steam or post on github, a couple of people have already added me on Steam and have helped me to find bugs.

this is awesome I use this for a lot of stuff Is there anyway to make it so people just use there steam login instead of having them put in there steam ID?

I will try to implement this today, out of all the things on my todo list I think I could do this quickest.
Title: Re: PUDS v0.2.3 - PayPal-ULX Donation System
Post by: thetomm2010 on September 09, 2013, 11:51:29 AM
Awesome!! Hey your killin it keep it up.
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Wully616 on September 09, 2013, 03:47:42 PM
Version 0.2.4
Users can now log into Steam to get their ingame name/SteamID to simplify the process.
Checked the first rank on the donation page by default to make sure something is indeed sent to paypal.

The SteamAPI made by Rob McFadzean caches the users profiles, to save multiple requests to the Steam Web API.

Users can still input their steamID manually if they wish.

(http://gyazo.com/ca87d6284d62fdd99586183fd68c2036.png)
(http://gyazo.com/897939a077dc3cb18a058b67dfd6b48b.png)


Edit **

I have been working on the web based config system, you can view it and mess about with it here, be aware I'm still editing it so things may change.
Input the details and click Save and it will write to the config file, click Load to load the config file data for editing.
I plan to make this require a Steam login in which the first person to log in will become the admin by default, from then on only the admin will be allowed to edit the config.

http://wullysgamers.co.uk/donate/install-WIP.php (http://wullysgamers.co.uk/donate/install-WIP.php)
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: bender180 on September 10, 2013, 11:57:36 AM
hey uh wully for some reason firefox thinks the page you linked is malicious, just a heads up
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Wully616 on September 10, 2013, 12:31:09 PM
hey uh wully for some reason firefox thinks the page you linked is malicious, just a heads up

Its a bad day when google blocks your site :S I sent them a report to say their review is false :)

Once I've finished the web based system it will be on github anyway :D
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Bite That Apple on September 12, 2013, 01:37:48 AM
Great to hear that you've made some friends on this great forum, and people found a liking to your addon. I'll be willing to test it again, once more when I have time later today. I'll see if it's much more use friendly now, than it was a few months ago.
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Darkness717 on September 12, 2013, 07:03:18 PM
Any tips on how I would find out why it isn't promoting people on my server? I went over the setup file over and over and everything seems to be right.
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Wully616 on September 13, 2013, 02:46:52 AM
Any tips on how I would find out why it isn't promoting people on my server? I went over the setup file over and over and everything seems to be right.


Post the contents of log.txt, error_log and ipn_log.txt and I'll have a look.
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Darkness717 on September 13, 2013, 05:20:13 PM
log.txt

Connected to database
Table exists, Connecting to table.
IPN Validated.
email@live.co.uk Crumpet 20.00 STEAM_0:0 donatordiamond
Added to database.
IP: 74.91.114.42 Port: 27015 Password: HIDDEN Command: ulx adduserid STEAM_0:0: donatordiamond
(Console) added name to group donatordiamond
ServerLog: [ULX] (Console) added name to group donatordiamond
L 09/13/2013 - 15:46:49: [ULX] (Console) added Name to group donatordiamond


I deleted their ID and name for privacy reasons. And I only posted one of these for redundancy reasons the other one is pretty much the exact same



ipnlog.txt

[09/13/2013 1:46 PM] - SUCCESS!
IPN POST Vars from Paypal:
mc_gross=20.00, protection_eligibility=Ineligible, payer_id=HN3BLQT2WZPTS, tax=0.00, payment_date=13:46:39 Sep 13, 2013 PDT, payment_status=Completed, charset=windows-1252, first_name=Bradley, option_selection1=Crumpet, option_selection2=STEAM_0:0:31054961, mc_fee=1.08, notify_version=3.7, custom=, payer_status=unverified, business=removed, quantity=1, verify_sign=AR3Bnd85qDAG2ivRgEH-F3bq0tH3A0SJclfDncG7QcMuAlYtQyKieGdy, payer_email=Bradley.Olah@live.co.uk, option_name1=In-Game Name, option_name2=SteamID, txn_id=7HE93125UM7776718, payment_type=instant, last_name=Olah, receiver_email=-removed-, payment_fee=1.08, receiver_id=DYHKNMX7N623S, txn_type=web_accept, item_name=PUDS - Game Server Donation, mc_currency=USD, item_number=, residence_country=GB, handling_amount=0.00, transaction_subject=, payment_gross=20.00, shipping=0.00, ipn_track_id=9c21fe282f204,
IPN Response from Paypal Server:
 HTTP/1.1 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=14400
Strict-Transport-Security: max-age=14400
Content-Type: text/html; charset=UTF-8
DC: slc-b-origin-www-2.paypal.com
Date: Fri, 13 Sep 2013 20:46:57 GMT
Content-Length: 8
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=5u8TRXlu9WUPAIQbiSFIzXM4tzRss9fIjYZwODlTH8OtOBOFw56ao1wHJoZNDo6aqeVNvvuZ55RsrDY7ZBp-uKUkB4trdpHQlJHuzyRB_fjfM30ssuSML2FXfpYgdVGeNBNelfrP452DNGxNb6PZW8_-OqXgYvDB_6BdmqajMAajqXUULrZJLKW3xC1EyOByYkUOwrSVt9Pr7gubtTZCbobcncIJnIIKmC2BInp2Tt9YnCpGtXq6ORWVS_zCZKl4Z-KJMnIvuxDbavVX9adfrf9a5x8vIMvjX9Jx1AD-ZagSRiP8LXDIE_fDTPFKGL56toleqy3MX5Y7TuRvTTbIlj018YeJZhu8_8zlncyM68UVvor25szl_L2A8CRWC207NvhRhHxafn9Qeq7UOKxlqgpZDKRD73HsiguVlkicl38lSz_RDPb68KcIOMu; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Mon, 11-Sep-2023 20:46:57 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Thu, 08-Sep-2033 20:46:57 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.74.8.137.1379105217096144; path=/; expires=Sun, 06-Sep-43 20:46:57 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE6.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D3245945682; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: Apache=10.74.8.53.1379105217089337; path=/; expires=Sun, 06-Sep-43 20:46:57 GMT
Set-Cookie: DC=slc-b-origin-www-2.paypal.com; secure
Set-Cookie: aksession=1379105517~id=cookievGvZXt9MaCZG8gH1I5Z5TkkLu+e8pht9wjwRyW7ya9htIw1OGktSHnwqGSuAKoP28bVEC1J6TqeBMYYnp/SVfFHfcgUkHSqX8F9ezrbTwA7yues86weTWrgcytvDedFfePMKKYtsTGM=; expires=Fri, 13-Sep-2013 20:51:57 GMT; path=/; domain=.paypal.com

VERIFIED
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Wully616 on September 14, 2013, 03:59:43 AM
log.txt

Connected to database
Table exists, Connecting to table.
IPN Validated.
email@live.co.uk Crumpet 20.00 STEAM_0:0 donatordiamond
Added to database.
IP: 74.91.114.42 Port: 27015 Password: HIDDEN Command: ulx adduserid STEAM_0:0: donatordiamond
(Console) added name to group donatordiamond
ServerLog: [ULX] (Console) added name to group donatordiamond
L 09/13/2013 - 15:46:49: [ULX] (Console) added Name to group donatordiamond


I deleted their ID and name for privacy reasons. And I only posted one of these for redundancy reasons the other one is pretty much the exact same



ipnlog.txt

[09/13/2013 1:46 PM] - SUCCESS!
IPN POST Vars from Paypal:
mc_gross=20.00, protection_eligibility=Ineligible, payer_id=HN3BLQT2WZPTS, tax=0.00, payment_date=13:46:39 Sep 13, 2013 PDT, payment_status=Completed, charset=windows-1252, first_name=Bradley, option_selection1=Crumpet, option_selection2=STEAM_0:0:31054961, mc_fee=1.08, notify_version=3.7, custom=, payer_status=unverified, business=-removed-, quantity=1, verify_sign=AR3Bnd85qDAG2ivRgEH-F3bq0tH3A0SJclfDncG7QcMuAlYtQyKieGdy, payer_email=Bradley.Olah@live.co.uk, option_name1=In-Game Name, option_name2=SteamID, txn_id=7HE93125UM7776718, payment_type=instant, last_name=Olah, receiver_email=-removed-, payment_fee=1.08, receiver_id=DYHKNMX7N623S, txn_type=web_accept, item_name=PUDS - Game Server Donation, mc_currency=USD, item_number=, residence_country=GB, handling_amount=0.00, transaction_subject=, payment_gross=20.00, shipping=0.00, ipn_track_id=9c21fe282f204,
IPN Response from Paypal Server:
 HTTP/1.1 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=14400
Strict-Transport-Security: max-age=14400
Content-Type: text/html; charset=UTF-8
DC: slc-b-origin-www-2.paypal.com
Date: Fri, 13 Sep 2013 20:46:57 GMT
Content-Length: 8
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=5u8TRXlu9WUPAIQbiSFIzXM4tzRss9fIjYZwODlTH8OtOBOFw56ao1wHJoZNDo6aqeVNvvuZ55RsrDY7ZBp-uKUkB4trdpHQlJHuzyRB_fjfM30ssuSML2FXfpYgdVGeNBNelfrP452DNGxNb6PZW8_-OqXgYvDB_6BdmqajMAajqXUULrZJLKW3xC1EyOByYkUOwrSVt9Pr7gubtTZCbobcncIJnIIKmC2BInp2Tt9YnCpGtXq6ORWVS_zCZKl4Z-KJMnIvuxDbavVX9adfrf9a5x8vIMvjX9Jx1AD-ZagSRiP8LXDIE_fDTPFKGL56toleqy3MX5Y7TuRvTTbIlj018YeJZhu8_8zlncyM68UVvor25szl_L2A8CRWC207NvhRhHxafn9Qeq7UOKxlqgpZDKRD73HsiguVlkicl38lSz_RDPb68KcIOMu; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Mon, 11-Sep-2023 20:46:57 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Thu, 08-Sep-2033 20:46:57 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.74.8.137.1379105217096144; path=/; expires=Sun, 06-Sep-43 20:46:57 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE6.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D3245945682; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: Apache=10.74.8.53.1379105217089337; path=/; expires=Sun, 06-Sep-43 20:46:57 GMT
Set-Cookie: DC=slc-b-origin-www-2.paypal.com; secure
Set-Cookie: aksession=1379105517~id=cookievGvZXt9MaCZG8gH1I5Z5TkkLu+e8pht9wjwRyW7ya9htIw1OGktSHnwqGSuAKoP28bVEC1J6TqeBMYYnp/SVfFHfcgUkHSqX8F9ezrbTwA7yues86weTWrgcytvDedFfePMKKYtsTGM=; expires=Fri, 13-Sep-2013 20:51:57 GMT; path=/; domain=.paypal.com

VERIFIED

By the looks of these logs everything is working. The IPN is verified as successful for a price of $20 and the ipn.php script has processed that as the donatordiamond rank, the server has responded successfully with "(Console) added name to group donatordiamond" where "name" I believe you have removed the steamID for privacy reasons (though you missed it in the ipn_log.txt ;) )

Everything looks to be working fine and there is no issue connecting through rcon. Are you use "donatordiamond" is a group you have already created in ULX and is indeed the correct name for the group?
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Darkness717 on September 14, 2013, 11:39:50 AM
Yeaahhh. I have no idea what happened. It fixed itself somehow. That was only 2/15 or so and only the one worked.

I don't know if maybe it's worth noting for you since other people said they had to change permissions and then it fixed itself.

Thanks for the support though!  ;D
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Mattsky on September 16, 2013, 01:01:03 PM
Got an interesting bug here - after signing in through Steam, and returning to the donation page, the only things visible are the selectors for the donation ranks. All other info has disappeared. Any idea what might be causing this?
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Prentice on September 17, 2013, 12:05:55 PM
I'm getting an RCON connection error and my host was wondering whether there was a port that it might be closed that needed to be open for it to work?

Either way, if anyone has any idea why this might not be working, that'd be great!
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: Wully616 on September 22, 2013, 09:32:49 AM
Got an interesting bug here - after signing in through Steam, and returning to the donation page, the only things visible are the selectors for the donation ranks. All other info has disappeared. Any idea what might be causing this?

When you say all other info do you mean the info in the form such as the players name/steamID, if so this data isn't passed back to the donation page from paypal so it would essentially be a "clean" page with no data, ready for another donation.

I'm getting an RCON connection error and my host was wondering whether there was a port that it might be closed that needed to be open for it to work?

Either way, if anyone has any idea why this might not be working, that'd be great!

Prentice, the port required to open would be the port of your game server, eg 27065 or something around that range. Rcon connects directly to the source server through its game port.
Title: Re: PUDS v0.2.4 - PayPal-ULX Donation System
Post by: JamminR on September 22, 2013, 12:38:19 PM
Unless Garry changed it for Gmod (99% sure he didn't), rcon uses 27015, or the port you specify the game listen on specified in startup command line.
https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: morten7000 on September 26, 2013, 11:12:02 AM
Can someone help me with this? I never tried anything like this before and i just made a webpage where I followed the instuction and stuff like that.. the webpage works but.. the paypal sandbox thingy is just confusing me.. because when i pay to become "superadmin" or "admin" then it dosn't do anything? it just say "tranfer complete" and nothing els? it doesn't react on it, It doesn't make me admin or superadmin?

Notes:
1) Its a free webpage
2) I followed the install instructions
3) the webpage works (i think) i can get on the page where you can pay and stuff

If you could help me with this, i would be forever happy :D

Ps: I dont use MySQL. is that needed. I mean like.. ehmm i acutally dont know what i mean.. ehmm :D.. "can you use this without" is the best question i can come up with :)?
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: JamminR on September 26, 2013, 01:57:31 PM
"can you use this without" is the best question

NO.
Requirements:

  • MySQL Database
  • Garrysmod Server
  • ULX/ULIB SVNS
  • Paypal account
  • Web Server
  • Some knowledge of HTML/PHP (to edit the scripts)

Knowing basic SQL, PHP, HTML are required.
SQL database is needed.
A web server is needed.
A 'free web page' most likely will never give you the access needed like an actual web server does,
Most hosting companies that offer web services also offer PHP engines and SQL databases. They pretty much go hand in hand.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: morten7000 on September 26, 2013, 09:44:25 PM
Okay, thanks jamminR for confirming my question :)
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Streetlight on September 27, 2013, 09:36:04 AM
Code: [Select]
Warning: file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home2/streetli/public_html/donate/steamlogin.php on line 77

Warning: file_get_contents(https://steamcommunity.com/openid/login) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home2/streetli/public_html/donate/steamlogin.php on line 77

I get this error code on the donor page. I have not edited anything that is not to be edited.

Screenshot of webpage:
(http://gyazo.com/ea1ecf526870d88c0f7d460b4ced4173.png)

Does anyone know what is wrong and, possibly, give me some advice on how to deal with this? Thank you in advance!
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Wully616 on September 27, 2013, 12:19:12 PM
Code: [Select]
Warning: file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home2/streetli/public_html/donate/steamlogin.php on line 77

Warning: file_get_contents(https://steamcommunity.com/openid/login) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home2/streetli/public_html/donate/steamlogin.php on line 77

I get this error code on the donor page. I have not edited anything that is not to be edited.

Does anyone know what is wrong and, possibly, give me some advice on how to deal with this? Thank you in advance!

Hello Streetlight,

You need to enable allow_url_fopen in your PHP configuration. If you are using a webhost you will most likely need to contact them to ask them to enable it. If you do have access to php.ini configuration file change allow_url_fopen=0 to allow_url_fopen=1


Apologises there has not been many updates to the application the last 2 weeks. I am still in London training for my job, another 4 weeks to go and I'll be home :)
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Streetlight on September 27, 2013, 04:00:28 PM
Hello Streetlight,

You need to enable allow_url_fopen in your PHP configuration. If you are using a webhost you will most likely need to contact them to ask them to enable it. If you do have access to php.ini configuration file change allow_url_fopen=0 to allow_url_fopen=1


Apologises there has not been many updates to the application the last 2 weeks. I am still in London training for my job, another 4 weeks to go and I'll be home :)

Thanks for the help! Sadly my webhost is ... !   Not allowing me or them to change any php settings. So I have had to transfer my donation script to another webhost that allows the "Allow_url_fopen=1"! Thank you though! + rep!
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Wully616 on September 28, 2013, 07:53:23 AM
Thanks for the help! Sadly my webhost is ... !   Not allowing me or them to change any php settings. So I have had to transfer my donation script to another webhost that allows the "Allow_url_fopen=1"! Thank you though! + rep!

My webhost is the same, I will change the Allow_url_fopen is only needed for the steam login functionality.
I will change the steam login system when I have time after training.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: thetomm2010 on September 29, 2013, 11:16:31 AM
My primary website does not allow me to change my php settings sooo I use this free sight and it works fine lol members.000webhost.com
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: rainbow Dash on October 02, 2013, 03:02:17 AM
Hey wully, any chance you could make it so it works with multiple servers?
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Darkness717 on October 07, 2013, 02:31:05 PM
Did anyone figure out how to add
self:PS_GivePoints( xxx );?

I'd like it to auto give points as well.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: cah98 on October 27, 2013, 01:41:19 AM
I attached a screenshot of what my finished donation page looks like and it has some kinds of errors that i would like help with.

Edit: I disabled these notifications inside the php.ini and it seems to be working as it should now.

Edit#2 Nvm when i press the paypal donate button nothing happens.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Scratch on October 27, 2013, 11:10:32 AM
So I got to thinking, what would happen if someone gives me money on PayPal without using PUDS

I don't know much about PayPal, I had to set up a premier account or something, even then the IPN didn't show (Found it in the actual profile settings page)
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: cah98 on October 27, 2013, 02:02:30 PM
You need to change your account to premier for ipn to become available. It is free so just do it  :)
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Scratch on October 28, 2013, 04:51:22 PM
Okay, so I have set up the config.php to my liking, and have followed (what I think is outdated) Installation Tutorial

But I have no idea how to set up the DataBase table.
Anyone able to give a hand?

One More Thing:

Quote
<A shitty Email> Scratch 2.00 STEAM_0:0:32493517 donator
IP: 103.23.148.228 Port: 27025 Password: HIDDEN Command: status STEAM_0:0:32493517 donator
Unable to connect!Unable to connect to Rcon, please check your configuration.

IP, Port and RconPass are correct, is there an off chance that my host is blocking outside access?
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Wully616 on October 31, 2013, 12:18:16 PM
Hey guys,

I'm finally back from training finally, I can start fixing things that have broke since I've been away and start adding features.

Firstly:
My webhost is the same, I will change the Allow_url_fopen is only needed for the steam login functionality.
I will change the steam login system when I have time after training.
The steam login system depends on Allow_url_fopen, I'll try get this changed to use Curl as soon as I figure it out xD.

Hey wully, any chance you could make it so it works with multiple servers?

Certainly! You mean a user donates once and gets the rank/perk on both servers? I can do that :)

Did anyone figure out how to add
self:PS_GivePoints( xxx );?

I'd like it to auto give points as well.

I'll get this added as well once I finish the web based configuration, which will make it a lot easier for users to add in what servers/ranks/perks they want for each donation!

So I got to thinking, what would happen if someone gives me money on PayPal without using PUDS

I don't know much about PayPal, I had to set up a premier account or something, even then the IPN didn't show (Found it in the actual profile settings page)

Without PUDS the donation will go through like a regular paypal donation, you would get an e-mail regarding it, but you would need to do your own administration for giving the player any ranks/perks they applied for.

Okay, so I have set up the config.php to my liking, and have followed (what I think is outdated) Installation Tutorial

But I have no idea how to set up the DataBase table.
Anyone able to give a hand?

One More Thing:

IP, Port and RconPass are correct, is there an off chance that my host is blocking outside access?

The database is automatically made the first time a donation comes through ( this includes the first donation done using the paypal sandbox).
The only thing you need to do for the database is set up a user in your mysql database and a database for the donation info to be stored in. Then fill out the config details in config.php.

Code: [Select]
///MySQL Database Configuration///
$UseDB = "true"; //Change to false if you do not want to use a MySQL database.
$HOST = "localhost";     //If this script is on the same webserver as your database leave as localhost
$DBUSER = "scratch_paypal";        //The user for the MySql database
$DBPASS = "passwordhere";    //Password for the MySql user
$DBNAME = "scratch_donations";        //The name of the database
$DBTABLE = "donations";      //The name of the database table to store the donation information

The table does not need to be created already, the script will do that for you so you can name $DBTABLE whatever you want and the script will create it. Or if you already have created a table, input that tables name.

Finally Scratch,

There may be a chance your host is blocking outside access, you will need to send them a support ticket to request the port to be open (27015 I believe JamminR said).
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: frogger50 on November 01, 2013, 04:09:35 AM
The problem in having is that it does not set the players rank that they bought and the verification email doesn't have any of the info that should be filled out. this is what it looks like

Thank you for your purchase

Your rank information
-------------------------
Paid: 
SteamID: 
Rank: 
-------------------------
           
There has been an issue when adding your SteamID to the correct usergroup.
Please contact the server admin to resolve this issue.

Also in the log.txt it says

Connected to database
Table does not exist, creating table.
IPN Validated.
meow@gmail.com Van Hohenheim 0.01 STEAM_0:0:33963289 contributor
Added to database.
IP: 108.61.76.154 Port: 27016 Password: HIDDEN Command: ulx adduserid STEAM_0:0:33963289 contributor
Unable to connect!Unable to connect to Rcon, please check your configuration.

Connected to database
Table exists, Connecting to table.
IPN Validated.
meow@gmail.com Van Hohenheim 0.01 STEAM_0:0:33963289 contributor
Added to database.
IP: 108.61.76.154 Port: 27016 Password: HIDDEN Command: ulx adduserid STEAM_0:0:33963289 contributor
Unable to connect!Unable to connect to Rcon, please check your configuration.

The server configuration is filled out correctly in the config.php
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Darkness717 on November 01, 2013, 04:33:07 PM
Wully616 is the best <3 much love!
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: rainbow Dash on November 03, 2013, 01:22:07 AM
Hey uh, been experiencing issues. Players will donate, but not receive their rank, for whatever reason..

I know that my web host is allowing rcon TO the server, but I have noticed people donate and not receive rank, regardless of the IPN being correctly linked.

How can I troubleshoot this without money to feed to paypal?
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: JamminR on November 03, 2013, 05:13:27 AM
How can I troubleshoot this without money to feed to paypal?
Doesn't Paypal have a 'sandbox' that allows for such testing?
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: frogger50 on November 04, 2013, 11:32:46 AM
How can I troubleshoot this without money to feed to paypal?

Well on the main post it has the tutorial on how to use the paypal sandbox here it is again in case you missed it.

PUDS v0.2.5
PayPal Sandbox Testing Tutorial:
https://github.com/Wully616/PUDS/wiki/PayPal-Sandbox-Tutorial (https://github.com/Wully616/PUDS/wiki/PayPal-Sandbox-Tutorial)
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: rainbow Dash on November 04, 2013, 11:53:59 PM
Well on the main post it has the tutorial on how to use the paypal sandbox here it is again in case you missed it.

Yeah, I tried sandbox before, didn't go so well... I'll give it another shot.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: rainbow Dash on November 05, 2013, 01:39:12 AM
I FIGURED OUT HOW TO FIX THE BLANK EMAIL!

Unfortunately, the blank email is caused by the message being defined and locked in with blank variables before the rank etc is confirmed.

A simple fix would be to implement the message's definition in the IPN, right before you send it, rather than in the config, where $rank, $steamid, and all that have not been defined yet or are completely unknown.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Noodlepad on November 12, 2013, 11:36:12 AM
Hello, thanks for spending time with this script! I'm grateful that somebody does it, but I'm struggling with some problems.

The logs says that it's unable to connect to my Rcon, but I've written in the right IP, Port and RCon password.. What's wrong with it? :(

Connected to database
Table exists, Connecting to table.
IPN Validated.
filipjurgen-facilitator@gmail.com qvist #Coding 15.00 STEAM_0:0:41508447  Moderator
Added to database.
IP:  Port:  Password: HIDDEN Command: ulx adduserid STEAM_0:0:41508447  Moderator
Unable to connect!Unable to connect to Rcon, please check your configuration.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Bite That Apple on November 15, 2013, 02:01:32 AM
Hello, thanks for spending time with this script! I'm grateful that somebody does it, but I'm struggling with some problems.

The logs says that it's unable to connect to my Rcon, but I've written in the right IP, Port and RCon password.. What's wrong with it? :(

Connected to database
Table exists, Connecting to table.
IPN Validated.
filipjurgen-facilitator@gmail.com qvist #Coding 15.00 STEAM_0:0:41508447  Moderator
Added to database.
IP:  Port:  Password: HIDDEN Command: ulx adduserid STEAM_0:0:41508447  Moderator
Unable to connect!Unable to connect to Rcon, please check your configuration.

Assuming you're using notepad++ to edit the server.cfg file, make sure you press tab after you put rcon_password    "password"

So it should look something like this, and make sure you have the password for rcon in quotes. (This is what my server.cfg looks like so yeah.)

Code: [Select]
hostname "#1 Dev Server - Mr. Apple"
sv_kickerrornum 0
rcon_password "InsertPasswordHere"
sv_loadingurl "www.youtuberepeat.com/watch?v=7Sw9Fh6uk4Q"
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: cah98 on November 22, 2013, 01:32:56 AM
Should the person donating press this donate image when they have entered their steamid and name? because when i press it nothing happens at all except for the site refreshing.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: rhys54 on December 29, 2013, 03:51:27 AM
Does anyone know how to make this work for multiple servers it has been confusing me!

Thanks!
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: JamminR on December 29, 2013, 09:04:23 AM
rhys54, I've not used this, but it seems to only be made for one server.
Depending on whether or not it stores the donator's steamID in the MySQL database list, if it does, you could design/find a SQL system to control ULib access across multiple servers.
There are many mentions and even a release or two here within the Ulysses community for SQL. Unfortunately, most are even more complicated than what this release seems to be.
Gmod just doesn't seem to have an easy to drop-in solution for SQL system across multiple servers.
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: rhys54 on December 29, 2013, 11:12:54 AM
rhys54, I've not used this, but it seems to only be made for one server.
Depending on whether or not it stores the donator's steamID in the MySQL database list, if it does, you could design/find a SQL system to control ULib access across multiple servers.
There are many mentions and even a release or two here within the Ulysses community for SQL. Unfortunately, most are even more complicated than what this release seems to be.
Gmod just doesn't seem to have an easy to drop-in solution for SQL system across multiple servers.

Thanks Anyway

I will fiddle around with the files!

But I guess I will do a simple You donate for this server only policy!

Thanks

Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: cookie0810 on January 07, 2014, 08:46:45 AM
Hi I downloaded the Donation System and installed it but i have a couple of problems:

When you chose sign in through steam, it takes you to steam and when you sign in through steam it redirects you to wullysgamers.co.uk!  >:(
Next when you try to fill in your steam details manually it doesn't let you type in the boxes!   

Any help would be greatly appreciated,

Cookie
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: Neku on January 07, 2014, 03:26:56 PM
Hi I downloaded the Donation System and installed it but i have a couple of problems:

When you chose sign in through steam, it takes you to steam and when you sign in through steam it redirects you to wullysgamers.co.uk!  >:(
Next when you try to fill in your steam details manually it doesn't let you type in the boxes!   

Any help would be greatly appreciated,

Cookie


Did you try restarting it? Have you updated ULX?
Title: Re: PUDS v0.2.5 - PayPal-ULX Donation System
Post by: pants on January 07, 2014, 04:54:59 PM
Okay guys, I was asking before about the possibility of giving points for the pointshop on top of auto promoting.

I asked one of my friends to find a way for that to happen. So, what he ended up doing was setting it up to where the first time you log on to the server as a new rank you get a certain amount of points, so you only get it once.

You will have to change the ranks and the point amount to match your preferences but here is a link to the code :D


Donationpsnotify - Cobalt
(goes in lua/autorun)
http://puu.sh/6dixt.lua (http://puu.sh/6dixt.lua)
Here's his steam as well.
http://steamcommunity.com/id/cobalt77/ (http://steamcommunity.com/id/cobalt77/)

If you have any questions let me know!




PICTURE: http://puu.sh/6dgLP.jpg (http://puu.sh/6dgLP.jpg)
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 08, 2014, 01:35:38 PM
Hello everyone,

Once again sorry for the lack of updates, life just gets in the way of things like this.

I have committed a new version of PUDS and I'll clarify a few things.

Steam login has been fixed! Woohoo! Sorry it took so long.

Steam logins are the only way to allow someone to donate, this is to prevent users not typing in the correct steam ID (or some players might not know how to get their steamID)

However! If you wish to disable this and allow people to type in there own username and steam ID you only need to remove the green highlighted "readonly" text in the image below:

(http://gyazo.com/9ea25b540576c3ce4bd00cb66b0b2b8a.png)

PUDS now requires a Steam API Key!
I wish I didn't have to require this but due to the way openID works a SteamAPI key is required.
You can get one here:
http://steamcommunity.com/dev/registerkey (http://steamcommunity.com/dev/registerkey)

Some of the code is a little bit of a mess (including wullysgamers url's in commits etc, I'm in the process of tidying up this second. I don't have my own garrysmod server to test the rcon side of things now and don't have much time to set up a local one to mess about with.

For people who do not like to use ulx usergroups and want some other command to be executed when the donation accepted you can edit the config.php
*This is not tested but it may work if ps_givepoints follows a format of "ps_givepoints steamid #numberOfPoints" if the steamid and number of points are the other way around it wont work yet sorry :P*

Code: [Select]
//////////////////////////////////
///Donation Ranks & prices////////
$prices = array("1","2","3"); //prices for each rank, do not include currency symbol
$ranks = array("iron","bronze","gold "); //ulx group names of each rank corresponding to the same array position in $costs
$commands = array("ulx adduserid","ulx adduserid","ulx adduserid"); //commands for each rank, these will support other commands in the future

//Example alternate donation with point shop
$prices = array("1","2","3");
$ranks = array("1000","2000","3000 ");
$commands = array("ps_givepoints","ps_givepoints","ps_givepoints");

I do want to create a command builder which would allow you to make basically whatever command you want to execute for the donation. I will get to it, I have not abandoned PUDS!
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Neku on January 08, 2014, 02:53:47 PM
Ah, glad to see you're still alive and kicking.

Welcome back ^°^
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 08, 2014, 03:48:00 PM
Ah, glad to see you're still alive and kicking.

Welcome back ^°^

Thanks Ven!


Another update! Web based configuration!

The code and files have been cleaned up a lot. The config can now be done through install.php, It needs your steam API key to be put in the top of the install.php file first though. If you forget, the web page will print in big letters telling you to go do it :D.

So to use the web based config:

Simply navigate to yourdomain.com/donate/install.php and sign in through steam.
(http://gyazo.com/63d767674c36b7a49438144993591e4d.png)

This will add you - the first user who logs in -  as an admin, it uses a very simple mechanism for this for now, so don't expect much. If it breaks, open up admin.php and delete the numbers from the variable.
It's more or less just to prevent other people viewing your config through the web based config, there are more than likely much better ways to do this. To be super safe, rename install.php to install.php.bak or delete it or something once you're finished configuring PUDS!


Install.php will have some defaults and cleverly fill fields with correct information such as the IPN script URL/Your website and the PayPal URL. Image link below to see the css hating form.
http://gyazo.com/e4dca129a8681364ed8ae33ca2023ed2 (http://gyazo.com/e4dca129a8681364ed8ae33ca2023ed2)

Once you have configured it as needed, click save. It will ask you to log in again through steam, this is a bug until I get sessions implemented but will work no problem and write the config to config.php.
 
If you have any issues with the web based config you can still configure the config.php file manually.

PLEASE NOTE:
The config.php from github will be empty as default. You need log into the install.php page at least once and click save so it generates the defaults and entries in config.php
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Poop2heaven on January 10, 2014, 02:05:14 AM
Hey i love the work you do with the addon.

But the addon doesn't seem to work for me.  :'(
I've entered the SteamAPI for my server into the install.php and i went through the entire install.php installation.
But then when it asked me to log in for a second time and i did, everything i entered was gone, and loading the config file did nothing.
Also the Config.php doesn't generate anything when i first log in.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: duncandelano on January 10, 2014, 10:50:25 AM
Hey man love this,

Only i have one problem, the install script sends me back to your website and when i do the config manually it hust shows the text on top of the install.php

So i hope someone can help

~Duncan

EDIT: This has all been fixed, the only problem now is that is doesnt send the steam ID to the rcon?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 11, 2014, 06:46:27 AM
Hey i love the work you do with the addon.

But the addon doesn't seem to work for me.  :'(
I've entered the SteamAPI for my server into the install.php and i went through the entire install.php installation.
But then when it asked me to log in for a second time and i did, everything i entered was gone, and loading the config file did nothing.
Also the Config.php doesn't generate anything when i first log in.

make sure config.php has the permissions 644 at least.
Did you log in, fill in your details then click save? The config should be generated then.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 11, 2014, 06:49:31 AM
Hey man love this,

Only i have one problem, the install script sends me back to your website and when i do the config manually it hust shows the text on top of the install.php

So i hope someone can help

~Duncan

EDIT: This has all been fixed, the only problem now is that is doesnt send the steam ID to the rcon?

I will need to investigate it sending the steamID to the rcon, does it not show it being sent in the log/puds.log file?

Could anyone else confirm?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: 3PlayingGames on January 11, 2014, 10:47:50 AM
Hello, I followed your tutorial given in the post and ended up with alot of errors on the index.php
Then I noticed there was a install.php which gives this error:
"Parse error: syntax error, unexpected '$admin' (T_VARIABLE), expecting identifier (T_STRING) in /home/tttmadne/public_html/donate/install.php on line 1"

If you need any other error messages/things I have them.

Thanks, -Nick
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 11, 2014, 05:42:04 PM
Hello, I followed your tutorial given in the post and ended up with alot of errors on the index.php
Then I noticed there was a install.php which gives this error:
"Parse error: syntax error, unexpected '$admin' (T_VARIABLE), expecting identifier (T_STRING) in /home/tttmadne/public_html/donate/install.php on line 1"

If you need any other error messages/things I have them.

Thanks, -Nick

Apologies Nick, I'm aware of these problems, I will make another commit tonight to fix them.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: atomic-cruncher on January 12, 2014, 04:01:00 AM
This seem's not to work for me good. I entered steam api key, logged in and it say's i'm not admin or something eventhough i see my avatar and the api key that is generated by the logged in account
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: atomic-cruncher on January 12, 2014, 05:12:00 AM
edit: got it working now, even though i can't make multiple rankings, just put them all together in 1, even though i use a comma seperate
and what is rank command? just like: donator or ulx adduser donator?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 12, 2014, 09:17:44 AM
Yes, for some reason I can't login as admin as well. I changed the URL in install.php to my website where PUDS is installed, and I put my steamid in the admin.php, but it says I am not admin. I also tried putting my username there, that didn't work either. I will try more options and post them here.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 13, 2014, 09:41:25 AM
I have another problem now, after I manually setup the config instead of using isntall.php. I can login via Steam, but it doesn't fill out the forms on completion. When I click donate, it also just displays a blank SteamID and Name on the paypal site under options.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 13, 2014, 10:34:15 AM
I got the same problem as TheSabreSlicer and here is a link to prove to to my website: http://dtrp.tk/tttshop/index.php (http://dtrp.tk/tttshop/index.php)
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 13, 2014, 12:15:45 PM
I presume you are talking about the forms not filling out, correct?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 13, 2014, 12:29:40 PM
I apologise guys, my knowledge of php is limited, I'm still learning. There is a issue with how the web based config interprets the ranks/commands/prices and I'm trying to fix it.

I have implemented sessions so you can actually log in/ log out and it wont make you sign in again whenever you click save/load for the config.

I'm sorry about the quality of PUDS right now, I come home from work and try to fix things people have e-mailed me then end up breaking stuff because I don't have proper time to test. So this time please be patient as I'm working through all the issues. I will get a stable working version up as soon as I can. Then I will go from there.


Edit**
Fixed the issue where the donation choices on the donation page were being put on the one line.

Edit 2**
Setting up a local garrysmod server so I can test this properly. Config writing and the donation page is working. Testing the donation page on PayPals sandbox now, won't get far as I dont have a gmod server to rcon to, however I will be able to see if its posting the ipn.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 13, 2014, 02:41:58 PM
Do you mind posting a list of the current issues being worked on?

I have a friend who is knowledgable in php, we were trying to fix some of the problems I mentioned earlier.

Also, what does exactly go into admin.php?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 13, 2014, 03:10:15 PM
Do you mind posting a list of the current issues being worked on?

I have a friend who is knowledgable in php, we were trying to fix some of the problems I mentioned earlier.

Also, what does exactly go into admin.php?

Tonight i've fixed the majority of the install.php and implemented a proper login/logout system.
There was some issues with how the install script grabbed the form data and saved it to the config and then allowed it to be displayed within the form again for editing. But this appears to be fixed now.

The only other major issue is the e-mail messages cant accept variables within the form, such as $rank/$steamid/$fee, i'll need to just code a parser so it can replace specific strings such as buyer_steamid with the variables when the payment is processed.

Other than that i'm just testing the logging of the process, two logs will be created in /log/ puds.log and ipn.log.
I will need to make the logging a bit more verbose so things can be interpreted easier.

Then i'll need to test the script is still correctly connecting to rcon and adding the user etc - I haven't edited any of that part of the script, so it shouldn't be broke :P. Just the config stuff I've been messing up haha.

I'll upload a commit to a dev branch in a little while and post the link here, you guys can let me know if it is working any better.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 13, 2014, 03:25:16 PM
Tonight i've fixed the majority of the install.php and implemented a proper login/logout system.
There was some issues with how the install script grabbed the form data and saved it to the config and then allowed it to be displayed within the form again for editing. But this appears to be fixed now.

The only other major issue is the e-mail messages cant accept variables within the form, such as $rank/$steamid/$fee, i'll need to just code a parser so it can replace specific strings such as buyer_steamid with the variables when the payment is processed.

Other than that i'm just testing the logging of the process, two logs will be created in /log/ puds.log and ipn.log.
I will need to make the logging a bit more verbose so things can be interpreted easier.

Then i'll need to test the script is still correctly connecting to rcon and adding the user etc - I haven't edited any of that part of the script, so it shouldn't be broke :P. Just the config stuff I've been messing up haha.

I'll upload a commit to a dev branch in a little while and post the link here, you guys can let me know if it is working any better.

What about admin.php? I haven't been able to get it to work as of now. I have tried putting my steam username, Steam64 ID, and normal Steam ID; none have worked and I still get the "not logged in as admin" error. Also have you confirmed that there is a problem getting Steam details when logging in? As mentioned above, I can login with Steam, and it grabs my info, but it is not inserted into the SteamID and Name text boxes, nor does it appear in PayPal.

Also, on a more "casual" note, I think the image you are using for the PayPal button is corrupted. It gets weird towards the bottom. You can see it on GitHub, so it's not a problem with my individual button. https://raw.github.com/Wully616/PUDS/master/donate/paypal-donate.gif
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 13, 2014, 04:10:27 PM
What about admin.php? I haven't been able to get it to work as of now. I have tried putting my steam username, Steam64 ID, and normal Steam ID; none have worked and I still get the "not logged in as admin" error. Also have you confirmed that there is a problem getting Steam details when logging in? As mentioned above, I can login with Steam, and it grabs my info, but it is not inserted into the SteamID and Name text boxes, nor does it appear in PayPal.

Also, on a more "casual" note, I think the image you are using for the PayPal button is corrupted. It gets weird towards the bottom. You can see it on GitHub, so it's not a problem with my individual button. https://raw.github.com/Wully616/PUDS/master/donate/paypal-donate.gif

admin.php should have your steam64 ID. The current version on github is broken. Well fixed now..hopefully :)
I've fixed the donate button too :P must of got corrupted haha.


I've uploaded a new version: https://github.com/Wully616/PUDS/archive/master.zip please test it.
I have fixed the install.php and configs save properly and the /donate/index.php is displaying donation options correctly again.

Instructions:
Upload as normal to your web directory.
edit login.php and put your steam dev key at the top of the file.
Navigate to yoursite.com/donate/install.php
It will ask you to login through steam to add you as an admin, so login.
You will be redirected to a page that says your are not admin and to log in - this is a minor bug I need to fix. Just log out and log in again.
The config page will now be displayed.
Configure your settings for your server.
Click save at the bottom of the page.
Click logout near the top when you're finished.

I'd recommend testing with the paypal sandbox when testing yoursite.com/donate/index.php

Log files are stored in yoursite.com/donate/log/

Its just after midnight so I'll be going to bed now but please post your results in the thread :P
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 13, 2014, 04:55:46 PM
I completely deleted everything off my webserver, and reinstalled PUDS. I can get to the login screen, but when I login with Steam, it redirects me right back to the login screen again with no success. An infinite loop :P
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Neku on January 13, 2014, 11:16:23 PM
Did you mess with the PUDS files?
Did you install ULX + ULib?

Did you try restarting it?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 14, 2014, 05:02:52 AM
I completely deleted everything off my webserver, and reinstalled PUDS. I can get to the login screen, but when I login with Steam, it redirects me right back to the login screen again with no success. An infinite loop :P

When you log in for the first time, it should redirect you and say "Hello, $friendlyName You are not admin! Please login as admin."
You then need to click logout and log in again so it updates and lets you view the install page.

The other issue could be permissions, what permissions have you set the files to on your web server. admin.php and config.php should be 644 everything else 755
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 14, 2014, 06:43:58 AM
When you log in for the first time, it should redirect you and say "Hello, $friendlyName You are not admin! Please login as admin."
You then need to click logout and log in again so it updates and lets you view the install page.

The other issue could be permissions, what permissions have you set the files to on your web server. admin.php and config.php should be 644 everything else 755

I get what you mean, but it doesn't do that. It just redirects back to the login screen with the same message, and no "Hello." I have tested it on 2 webservers.

Here is mine: www.piedmontmc.net/gmod/donate/install.php (http://www.piedmontmc.net/gmod/donate/install.php)
And the other one my friend is hosting: http://lugservo.no-ip.biz/testdonate/install.php (http://lugservo.no-ip.biz/testdonate/install.php)

I will double check the file perms, but I think they are correct.

EDIT: Yes, the file perms are correct, everything except for admin and config are 755, admin and config are 644. Still not working.

EDIT 2: My host is a piece of ****, so today I will try and see if I get different results using some free hosts. I plan to switch hosts anyways soon, we'll see when I do that as well. This is so annoying (and I don't think it's your fault, Wully).
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 07:39:03 AM
Af i login it says:

Forbidden

You don't have permission to access /donate/login.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

And when i look at the error log i get those errors:

[14-Jan-2014 15:30:23 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[14-Jan-2014 15:30:23 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[14-Jan-2014 15:33:42 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1

Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 08:06:03 AM
This seems to work good for me (haven't tested a payment yet). I have a request though. Is it possible to add some sort of thing where you have the name of the rank, let's say "Bronze". But your usergroup in ULX is named "donator1". Can you make it possible so that instead of showing "donator1" for 3$, then it would show "Bronze" for 3$ instead?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 08:10:21 AM
I don't see why he should do that you can just rename you rank really easily
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 08:35:51 AM
I don't see why he should do that you can just rename you rank really easily
That's true, but I like having the ULX groups non-capitalized and other things capitalized (in this case, the list of choices). It'd also be nice to have if I want to put a small description for the rank like: "Bronze - Reserved Slot (2 USD)".
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 10:01:12 AM
True
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 14, 2014, 10:15:38 AM
Have any of you gotten the newest version to work?

EDIT: My true problem is NOT that I can't get the installer working, I can edit the config myself, it's not a big deal, it's that when I login via Steam on index.php, it DOESN'T fill the forms with my details, even though it says "Successfully grabbed your details" and displays my correct Steam64ID.

Wully, do you have a test installation where you can show me that it works on your webserver?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 14, 2014, 10:52:13 AM
I've forked the repo in GitHub, my friend and I are going to work on making it work without the SteamID authentication (just personal preference).

Anyone can view our progress here:
https://github.com/TheSabreSlicer/PUDS
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 11:33:52 AM
You could test here: http://coocus.com/donate/ (http://coocus.com/donate/)
Works for me.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 14, 2014, 11:45:10 AM
Benjamin -  have you put your steamapi key into login.php
Sabre -  I can certainly make a version without steam login.
Decicus -  I can do that tomorrow, I don't have access to my computer tonight, I'm on my phone.

My site is set up at Wullysgamers.co.uk/donate Sabre, it certainly works for me.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 14, 2014, 11:48:59 AM
Benjamin -  have you put your steamapi key into login.php
Sabre -  I can certainly make a version without steam login.
Decicus -  I can do that tomorrow, I don't have access to my computer tonight, I'm on my phone.

My site is set up at Wullysgamers.co.uk/donate Sabre, it certainly works for me.

Ok, tested on your site, and it works, so I am assuming this is a problem with my host. Don't worry about making that version, my friend wants a challenge. I will try a different host and see how it goes.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 12:04:03 PM
Decicus -  I can do that tomorrow, I don't have access to my computer tonight, I'm on my phone.
No problem. Take your time.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 14, 2014, 12:06:27 PM
Ok, tested on your site, and it works, so I am assuming this is a problem with my host. Don't worry about making that version, my friend wants a challenge. I will try a different host and see how it goes.

Ah cool thanks for letting me know, is there anything in error_log, might point to why your host isn't supporting it, php may have something disabled in its configuration. Then I could code in some compability


Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 14, 2014, 12:19:57 PM
No, it's not that, I just have a really ****ty host. I just tried doing it on a free host (x10), and it worked like a charm. I am looking forward to getting a better host  :P Thanks for the help  :D
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 12:23:29 PM
No, it's not that, I just have a really ****ty host. I just tried doing it on a free host (x10), and it worked like a charm. I am looking forward to getting a better host  :P Thanks for the help  :D
What's your gameserver host? I know a few gameserver hosts have free web hosting for one domain too.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 12:25:52 PM
Benjamin -  have you put your steamapi key into login.php
Sabre -  I can certainly make a version without steam login.
Decicus -  I can do that tomorrow, I don't have access to my computer tonight, I'm on my phone.

My site is set up at Wullysgamers.co.uk/donate Sabre, it certainly works for me.

Yes I did I have the code here and it is my api key I got from steam:

<?php
ob_start();
session_start();
/////////////////////////////////////////
////////PUDS Config Installer////////////
//////Configuration//////////////////////
//Steam API Key//////////////////////////
$_STEAMAPI = "EDF2DDB85F9C275C2E1C6BFABDF3EDDB";
/////////////////////////////////////////
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 12:35:47 PM
You should probably not show the API key to the public eye, by the way. Even though it's not really that big of a deal on these forums, I don't think.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 12:39:52 PM
Well ppl cant really use it to anything plus I can just get a new one easily.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 14, 2014, 01:00:14 PM
What's your gameserver host? I know a few gameserver hosts have free web hosting for one domain too.

I don't use a GSP, I host my server on a VPS. It's much more cost effective ($12/mo with unlimited slots vs $20+/mo for ~25? Slots)
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 01:08:12 PM
I don't use a GSP, I host my server on a VPS. It's much more cost effective ($12/mo with unlimited slots vs $20+/mo for ~25? Slots)
Since you host it on a VPS, it might be better for you to dedicate your time to figure out how to host your own web server.
I can probably help you out if it's running on Windows (preferably Windows Server 2008), since I have some experience with that. Let's take that over PMs or something like that (if you want to do that), I feel like we've derailed this thread enough.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 01:11:06 PM
@Wully616  I got one of my coders to look at these errors in one of the files and he thinks you are doing drugs
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 01:19:08 PM
Btw where did you even use this piece of code.

    function __construct($host)
    {
        $this->trustRoot = (strpos($host, '://') ? $host : 'http://' . $host);
        if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')
            || (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])
            && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        ) {
            $this->trustRoot = (strpos($host, '://') ? $host : 'https://' . $host);
        }

        if(($host_end = strpos($this->trustRoot, '/', 8 )) !== false) {
            $this->trustRoot = substr($this->trustRoot, 0, $host_end);
        }

        $uri = rtrim(preg_replace('#((?<=\?)|&)openid\.[^&]+#', '', $_SERVER['REQUEST_URI']), '?');
        $this->returnUrl = $this->trustRoot . $uri;

        $this->data = ($_SERVER['REQUEST_METHOD'] === 'POST') ? $_POST : $_GET;

        if(!function_exists('curl_init') && !in_array('https', stream_get_wrappers())) {
            throw new ErrorException('You must have either https wrappers or curl enabled.');
        }
    }
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Neku on January 14, 2014, 02:58:57 PM
@Wully616  I got one of my coders to look at these errors in one of the files and he thinks you are doing drugs

Nice way to tick off major contributors.

And anyway, if you have coders, tell then to fix it.
It's their job, isn't it?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 14, 2014, 03:13:04 PM
Well yes I have one coder I got for free so he is not the best he can on repair some and stuff so yeah
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Neku on January 14, 2014, 03:15:46 PM
Well yes I have one coder I got for free so he is not the best he can on repair some and stuff so yeah

In that case, he has no right to judge code.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 14, 2014, 09:11:12 PM
Just a few suggestions:

Pointshop integration, so that it can add points.

Add a space between price and currency, I haven't been able to do that by editing code.

That's it for now. Maybe a simple webpage that can grab details from the MySQL database and display them in a list?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 14, 2014, 10:52:33 PM
Btw where did you even use this piece of code.

    function __construct($host)
    {
        $this->trustRoot = (strpos($host, '://') ? $host : 'http://' . $host);
        if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')
            || (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])
            && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        ) {
            $this->trustRoot = (strpos($host, '://') ? $host : 'https://' . $host);
        }

        if(($host_end = strpos($this->trustRoot, '/', 8 )) !== false) {
            $this->trustRoot = substr($this->trustRoot, 0, $host_end);
        }

        $uri = rtrim(preg_replace('#((?<=\?)|&)openid\.[^&]+#', '', $_SERVER['REQUEST_URI']), '?');
        $this->returnUrl = $this->trustRoot . $uri;

        $this->data = ($_SERVER['REQUEST_METHOD'] === 'POST') ? $_POST : $_GET;

        if(!function_exists('curl_init') && !in_array('https', stream_get_wrappers())) {
            throw new ErrorException('You must have either https wrappers or curl enabled.');
        }
    }
I'm pretty sure that's just one part of the whole "OpenID addon" that Wully seems to have used from a Third Party (as there are commented lines saying that it's released under MIT license, correct me if I'm wrong).

Just a few suggestions:

Pointshop integration, so that it can add points.

Add a space between price and currency, I haven't been able to do that by editing code.

That's it for now. Maybe a simple webpage that can grab details from the MySQL database and display them in a list?
This idea would be good for more support, but are most pointshops used based around the same code/database setup?
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 15, 2014, 06:30:51 AM
This idea would be good for more support, but are most pointshops used based around the same code/database setup?

What do you mean? The pointshop I use (by _Undefined) is completely contained in-game. Also, I am now hosting with NFO for my website, and they have been great so far.  :)
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 15, 2014, 06:51:50 AM
I'm pretty sure that's just one part of the whole "OpenID addon" that Wully seems to have used from a Third Party (as there are commented lines saying that it's released under MIT license, correct me if I'm wrong).
This idea would be good for more support, but are most pointshops used based around the same code/database setup?

Yes I use a few third party scripts, OpenID, RCon script, paypals IPN, other than that i'm just trying to get them to all work together to provide PUDS - as I originally made it for myself for my own server. I have stated my coding isn't brilliant, I'm not a programmer by profession or education, I do computer networking :P

What do you mean? The pointshop I use (by _Undefined) is completely contained in-game. Also, I am now hosting with NFO for my website, and they have been great so far.  :)

There is a console command for point shop to give points, I very much want to implement this, I would need to change how the IPN script works to do this just because each console command has different syntax and to be honest it was only built for ulx adduserid. But this can be changed easy enough.
Well yes I have one coder I got for free so he is not the best he can on repair some and stuff so yeah

Certainly he can contribute as well. I'm open to help.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 15, 2014, 08:17:39 AM
After I logon with steam (I have added the steam api) it go to this link http://dtrp.tk/donate/login.php?login&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Flogin&openid.claimed_id=http%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198043837993&openid.identity=http%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198043837993&openid.return_to=http%3A%2F%2Fdtrp.tk%2Fdonate%2Flogin.php%3Flogin&openid.response_nonce=2014-01-15T16%3A14%3A45ZwUzYgTzPyyxyorJYAi0PC0%2BXlIY%3D&openid.assoc_handle=1234567890&openid.signed=signed%2Cop_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=H9SOuevN0r8ILPllqTW4kdId63g%3D (http://dtrp.tk/donate/login.php?login&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Flogin&openid.claimed_id=http%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198043837993&openid.identity=http%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198043837993&openid.return_to=http%3A%2F%2Fdtrp.tk%2Fdonate%2Flogin.php%3Flogin&openid.response_nonce=2014-01-15T16%3A14%3A45ZwUzYgTzPyyxyorJYAi0PC0%2BXlIY%3D&openid.assoc_handle=1234567890&openid.signed=signed%2Cop_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=H9SOuevN0r8ILPllqTW4kdId63g%3D)     And then on the page I get this error

Forbidden

You don't have permission to access /donate/login.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Can anyone may help me???

Edit:

I used this link   mydomain/donate/logon.php

And I am not able to use   mydoamin/donate/install.php

because it say then it cant connect to the server if you don't belive me then try it out yourself here is a link   http://dtrp.tk/donate/install.php (http://dtrp.tk/donate/install.php)
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 15, 2014, 08:36:15 AM
First of all, do you even have all the files properly installed? I recommend deleting the whole /donate folder of your website and reuploading it.
404 errors means that the document/file by that name, filetype & directory doesn't exist.

EDIT: Actually. When I logged in through Steam on the index page, it redirected me to "donate/?login...", not even a domain/hostname.
Go into config.php and change:
Code: [Select]
$donationDir = 'donate';
To this:
Code: [Select]
$donationDir = 'http://dtrp.tk/donate';
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 15, 2014, 09:02:36 AM
First of all, do you even have all the files properly installed? I recommend deleting the whole /donate folder of your website and reuploading it.
404 errors means that the document/file by that name, filetype & directory doesn't exist.

EDIT: Actually. When I logged in through Steam on the index page, it redirected me to "donate/?login...", not even a domain/hostname.
Go into config.php and change:
Code: [Select]
$donationDir = 'donate';
To this:
Code: [Select]
$donationDir = 'http://dtrp.tk/donate';

I can't in the new update the config.php is emety
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 15, 2014, 09:12:05 AM
Go to http://dtrp.tk/donate/login.php (http://dtrp.tk/donate/login.php) and go through the installation.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 15, 2014, 09:31:33 AM
Go to http://dtrp.tk/donate/login.php (http://dtrp.tk/donate/login.php) and go through the installation.

Again I can't do that that is the problem after I login it says:

Forbidden

You don't have permission to access /donate/login.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Edit:

Just find out my error logs shows those errors:

[15-Jan-2014 16:14:11 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:14:11 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:14:16 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:15:40 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:21:31 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:35:08 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:35:08 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:35:11 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:35:11 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:35:30 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:37:43 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:37:43 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:37:45 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:37:45 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 17:11:08 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 17:11:08 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 17:11:12 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 17:11:15 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1

Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Decicus on January 15, 2014, 09:41:49 AM
Hmm.. I don't know then. Maybe Wully can help with that.
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: benjanmin112 on January 15, 2014, 09:47:30 AM
I hope so but thanks for trying
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: Wully616 on January 15, 2014, 11:35:53 AM
Again I can't do that that is the problem after I login it says:

Forbidden

You don't have permission to access /donate/login.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Edit:

Just find out my error logs shows those errors:

[15-Jan-2014 16:14:11 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:14:11 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:14:16 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:15:40 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:21:31 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:35:08 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:35:08 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:35:11 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:35:11 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:35:30 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 16:37:43 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:37:43 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 16:37:45 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 16:37:45 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 17:11:08 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/dtrptk/public_html/donate/index.php on line 57
[15-Jan-2014 17:11:08 UTC] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos[/url]]: Offset not contained in string in /home/dtrptk/public_html/donate/openid.php on line 84
[15-Jan-2014 17:11:12 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1
[15-Jan-2014 17:11:15 UTC] PHP Parse error:  syntax error, unexpected T_STRING in /home/dtrptk/public_html/donate/install.php on line 1

Benjamin, I've fixed this now and commited a new version, even though it works for some people and myself, when redirecting to the install.php/login.php/logout.php pages its giving you errors because its using relative directories. I've changed this so its absolute references.

The other errors in your error log are from viewing the yourdomain/donate page without having a valid config. I will make the donation page more robust so it gives meaningful error messages. :)

I've commited a new version fixing the issues your having.

I am also updating the installation tutorial:

https://github.com/Wully616/PUDS/wiki/Installation-Tutorial (https://github.com/Wully616/PUDS/wiki/Installation-Tutorial)
Title: Re: PUDS v0.2.6 - PayPal-ULX Donation System
Post by: pants on January 15, 2014, 12:06:11 PM
There is a console command for point shop to give points, I very much want to implement this, I would need to change how the IPN script works to do this just because each console command has different syntax and to be honest it was only built for ulx adduserid. But this can be changed easy enough.

If you go back a few pages I posted a workaround that works for now, when a player gets added into a certain group, the first time they are seen on the server as that rank it pops up and says "congrats you are a Donator_____ and you have recieved xxxxxx points!"

So it performs pretty much the same action
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 15, 2014, 12:45:41 PM
Thanks pants, this will work for now.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: 3PlayingGames on January 15, 2014, 09:24:46 PM
Not to keep throwing the same bugs at you but I was finally able to log and I still get this heart breaking error:
Parse error: syntax error, unexpected 'GetSteamNorm' (T_STRING) in /home/tttmadne/public_html/donate/install.php on line 1

Please fix Wully, so I can yell at people that keep complaining they have no way to donate D:
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Wully616 on January 16, 2014, 02:43:31 PM
Not to keep throwing the same bugs at you but I was finally able to log and I still get this heart breaking error:
Parse error: syntax error, unexpected 'GetSteamNorm' (T_STRING) in /home/tttmadne/public_html/donate/install.php on line 1

Please fix Wully, so I can yell at people that keep complaining they have no way to donate D:

Fixed, there was a redundant function from before I moved over to the new login system.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: 3PlayingGames on January 16, 2014, 03:59:58 PM
Thanks, i'll be sure to let you know if I find any more bugs :D
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 17, 2014, 06:59:29 AM
Actually Pants, that script is broken and it crashed my server. Maybe you should see what's wrong with it.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: pants on January 17, 2014, 10:28:12 AM
Actually Pants, that script is broken and it crashed my server. Maybe you should see what's wrong with it.

what error did you get? it works perfect on mine, i'm sure either cobalt or i can help
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 17, 2014, 12:08:19 PM
Let me try it again actually, I think TextEdit may have replaced some "straight" quotes with curvy ones, and those don't count as quotes in lua or any other programming language.

For configuring it, I just have to replace the group names in the listed groups and how many points, correct?
And can I remove groups or not? Like have 3 instead of 5 without it causing errors?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: pants on January 17, 2014, 01:57:13 PM
For configuring it, I just have to replace the group names in the listed groups and how many points, correct?
And can I remove groups or not? Like have 3 instead of 5 without it causing errors?

Yeah, to both of them, can add as well.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Wully616 on January 18, 2014, 08:40:20 AM
Yeah, to both of them, can add as well.
If you go back a few pages I posted a workaround that works for now, when a player gets added into a certain group, the first time they are seen on the server as that rank it pops up and says "congrats you are a Donator_____ and you have recieved xxxxxx points!"

So it performs pretty much the same action

Apologies guys, but could you open a new thread if its a new script? Just to keep this thread on topic.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: pants on January 18, 2014, 09:33:19 AM
Yeah, np, I just saw it as an addon to this one.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: merttoski on January 18, 2014, 11:25:44 AM
Problem over here When I try connect install.php
(http://i.imgur.com/RSqPdLK.jpg)

I already Login my steam
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Bytewave on January 18, 2014, 01:24:08 PM
Problem over here When I try connect install.php
(http://i.imgur.com/RSqPdLK.jpg)

I already Login my steam
I think this might be something to do with your files.
I examined the file in question over Github, and it comes up clean, lines separated.
Can you post your install.php contents over something like Pastebin?

Also, I don't work on the script, lol. I just know basic PHP. :P
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: TheSabreSlicer on January 18, 2014, 03:41:19 PM
Hey Wully,

It's been working great so far, but I have another suggestion:

If using a MySQL database, it discounts the price of people who have bought a less expensive rank by the amount their current rank is.

That would be nice.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: merttoski on January 19, 2014, 03:18:31 AM
I think this might be something to do with your files.
I examined the file in question over Github, and it comes up clean, lines separated.
Can you post your install.php contents over something like Pastebin?

Also, I don't work on the script, lol. I just know basic PHP. :P

Here
http://pastebin.com/DrdJLZKZ (http://pastebin.com/DrdJLZKZ)
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: merttoski on January 19, 2014, 06:34:22 AM
And I Also have problem At login.php.When I login my steam.I see same screen

Pic: (http://i.imgur.com/y5xtr8u.jpg)

Code of login.php:

http://pastebin.com/As36We0d (http://pastebin.com/As36We0d)
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Bytewave on January 19, 2014, 08:35:53 AM
Here
http://pastebin.com/DrdJLZKZ (http://pastebin.com/DrdJLZKZ)
And I Also have problem At login.php.When I login my steam.I see same screen

Pic: (http://i.imgur.com/y5xtr8u.jpg)

Code of login.php:

http://pastebin.com/As36We0d (http://pastebin.com/As36We0d)
Who might your webhost be?
Your files look fine. Hmm...
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Migueelx on January 19, 2014, 09:04:29 AM
And I Also have problem At login.php.When I login my steam.I see same screen

Pic: (http://i.imgur.com/y5xtr8u.jpg)

Code of login.php:

http://pastebin.com/As36We0d (http://pastebin.com/As36We0d)

Same problem here :(
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Bytewave on January 19, 2014, 11:49:34 AM
Same problem here :(
It looks like your install.php and login.php are reversed. That or install and index are... I don't know...
Wully, would you mind checking that out?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: merttoski on January 20, 2014, 06:35:57 AM
Who might your webhost be?
Your files look fine. Hmm...

My Host ?s very Good
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Bytewave on January 20, 2014, 06:53:39 AM
My Host ?s very Good
*facehoof*
What is the name of the company that hosts your website?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Wully616 on January 20, 2014, 07:55:09 AM
Problem over here When I try connect install.php
(http://i.imgur.com/RSqPdLK.jpg)

I already Login my steam

I believe your problem is your FTP client is uploading the files and removing line breaks, try setting its transfer mode to binary.

It looks like your install.php and login.php are reversed. That or install and index are... I don't know...
Wully, would you mind checking that out?

I'll check it when I'm home, in work right now, though I'm not quite sure what the problem is from these images  :-\
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Bytewave on January 20, 2014, 07:58:36 AM
I believe your problem is your FTP client is uploading the files and removing line breaks, try setting its transfer mode to binary.

I'll check it when I'm home, in work right now, though I'm not quite sure what the problem is from these images  :-\
He also posted his files over pastebin. :P
Install.php:
http://pastebin.com/DrdJLZKZ (http://pastebin.com/DrdJLZKZ)
Login.php:
http://pastebin.com/As36We0d (http://pastebin.com/As36We0d)
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: JDavies_8 on January 22, 2014, 08:04:32 PM
I'm getting that never-ending loop of login pages too :/
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: sydorowicz9 on January 22, 2014, 08:09:35 PM
jdaves add me on steam I have mine up and working fine and I will be able to help you out.
My steam name is BWW Happygoluckytoys
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: merttoski on January 23, 2014, 12:28:37 AM
*facehoof*
What is the name of the company that hosts your website?

http://www.hostinger.co.uk/ (http://www.hostinger.co.uk/)

Hostinger Host
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: syn. on January 23, 2014, 03:48:01 PM
Attempted to add this to my Website/server but I am experiencing the same problem. I get a loop of login.php pages forever. My web host is web.com.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Fisheater124 on January 23, 2014, 05:16:56 PM
The config.php on github is empty.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Wully616 on January 24, 2014, 01:53:40 PM
I'll need to investigate this constant login loop issue, I cant reproduce it on my host. Perhaps its part of some php config setting free hosts disable. Though unlikely it may be something to do with my code.

It looks like its generally happening on free hosts?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: syn. on January 24, 2014, 05:09:28 PM
web.com is a paid host. :o This would be awesome if I could get it to work, I hate to constantly give links to donate because the ones on my forum don't work
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: JDavies_8 on January 26, 2014, 09:23:14 AM
I'll need to investigate this constant login loop issue, I cant reproduce it on my host. Perhaps its part of some php config setting free hosts disable. Though unlikely it may be something to do with my code.

It looks like its generally happening on free hosts?

I'm on a paid host.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: willaume on January 26, 2014, 01:01:17 PM
I'm also on a paid host. Everythings works fine untill I use the login button on the install.php page. Seems to be a common bug?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: nogger on January 27, 2014, 09:20:01 PM
If i don't have SQL, can i still have "total donated", Like if they donate $5 then $5 so they get the $10 rank
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: JDavies_8 on February 02, 2014, 09:34:27 AM
Can anyone get around this login page loop?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: pernodpepper on February 03, 2014, 09:45:08 AM
the steam login button doesnt work (if im on the steam page and hit login nothing happend
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Pampour on February 03, 2014, 12:11:00 PM
I got PUDS to work after a bit of debugging:
- Make sure the admin.php file is writable! (chmod 777)
- A bit of functional code was commented in login.php (here's my login.php (http://pastebin.com/8MrzExhj), make sure to add your STEAMAPI key)

Also, for some reason the install.php file gets obfuscated when send through FTP. Not sure why that's happening.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: merttoski on February 04, 2014, 08:00:49 AM
Login page is not working
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Wully616 on February 04, 2014, 10:31:20 AM
I got PUDS to work after a bit of debugging:
- Make sure the admin.php file is writable! (chmod 777)
- A bit of functional code was commented in login.php (here's my login.php (http://pastebin.com/8MrzExhj), make sure to add your STEAMAPI key)

Also, for some reason the install.php file gets obfuscated when send through FTP. Not sure why that's happening.

Thanks Pampour, I see where the GetSteamNorm function was getting some parts commented out, woops!

I've uploaded this change so it should fix the login issues people were having.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: TeamEnternode on February 18, 2014, 08:04:42 AM
Take a look at the install.php file, it's all on one line and a lot of the code ended up commmented
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: DeadlyGamer5 on February 19, 2014, 12:26:47 AM
Whenever i try, all i get is a white screen on the install page, and when i try going to login.php all it says is "PayPay-ULX Donation System Config Installer" with a white page on everything else.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Avengera131 on February 19, 2014, 03:19:49 PM
I've been having some issues, whenever I head over to install.php, I log in and everything is looking good, but after the login it redirects me to a page generated by Mod_Security, that says: Not acceptable! An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

Now, as far as I know, everything from the github page is in /donate/ directory, and I even went to the host and asked that the /donate/ directory be whitelisted in the Mod_security rules file. Anyone with similar problems? Also, if I can't find a fix, I was wondering if you could walk me through manually typing up the config, which should allow us to skip the login part, since I can access the index page just fine.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: specificocean on February 21, 2014, 03:08:31 PM
Im having the same issue as deadlygamer, im using a paid host and whenever I try to navigate to my /donate/install.php I get a plain white page, when I click view source it shows nothing.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: JamminR on February 21, 2014, 09:42:50 PM
All of you getting white page, please see previous post - http://forums.ulyssesmod.net/index.php/topic,6524.msg35120.html#msg35120 (http://forums.ulyssesmod.net/index.php/topic,6524.msg35120.html#msg35120)
Until original author chimes in, may be only fix.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Avengera131 on February 22, 2014, 12:36:45 PM
I've been having some issues, whenever I head over to install.php, I log in and everything is looking good, but after the login it redirects me to a page generated by Mod_Security, that says: Not acceptable! An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

Now, as far as I know, everything from the github page is in /donate/ directory, and I even went to the host and asked that the /donate/ directory be whitelisted in the Mod_security rules file. Anyone with similar problems? Also, if I can't find a fix, I was wondering if you could walk me through manually typing up the config, which should allow us to skip the login part, since I can access the index page just fine.

Can anyone help? Please, I would really like this to work.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: ILIkeTrainZ on February 23, 2014, 12:14:03 AM
Can somone please help me with this?
i'm not really great with PHP and i get this error when i go to my site :
Parse error: syntax error, unexpected T_STRING in public_html/doneren/TTT/config.php on line 71
here are my lines around 71:
Code: [Select]
        if problems accour,(ex. you dont have your rank)
        please include a screenshot of this and Email
        The owner by sending this to --with a screenshot
        so we can set your rank manualy!
';

(This is line 71) $messageIPNFail = ' Hello, The donation has failed to be verified by PayPal IPN, however  payment may have been taken.
Please contact the owner of the server at : -- , make a screenshot of this messsage and send it to the server owner, if you pay'd already on paypal please include proof of that so we can set the rank manualy';

?>
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: pants on February 23, 2014, 01:49:32 AM
I am on one of the first few versions of PUDS

http://smdgamers.smdgamers.site.nfoservers.com/Donate/ (http://smdgamers.smdgamers.site.nfoservers.com/Donate/)

But everything works fine with the issues I've seen posted in here should I bother upgrading?

and someone should help me figure out how to make it not look so bland haha
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: EverCandy on February 25, 2014, 04:55:07 AM
Hi so I believe that this "addon" would work for me but my FTP website says that it uses a lot of CPU usage whenever I try to access mydomain.com/install.php. Is there by any chance you could lower that or maybe do it in an another way? My FTP is free so yea (FTPs aren't cheap, as you have to consider renting for the server at the same time.)

Thanks in advance~
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: pants on February 25, 2014, 07:53:06 PM
but.... ftps or "webhosting" rather is cheap? it's $2.50 - $3 a month.
https://www.nfoservers.com/order-webhosting.php (https://www.nfoservers.com/order-webhosting.php)
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: EverCandy on February 26, 2014, 02:25:37 AM
but.... ftps or "webhosting" rather is cheap? it's $2.50 - $3 a month.
https://www.nfoservers.com/order-webhosting.php (https://www.nfoservers.com/order-webhosting.php)

Dude I can't afford it. My parents will kill me if I pay this much every month using their credit card. Asking the author btw, not anyone's opinion.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Neku on February 26, 2014, 07:55:27 AM
Candy...I'm just gonna put this out there.

If you can't afford to pay $2.50 a month, I don't think you should be hosting a server.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: PAL-18 on March 20, 2014, 10:12:02 PM
My index.php page is displaying a PHP error (even to users who sign into steam).

Quote
   
Notice: Undefined variable: i in ****\www\donate\index.php on line 58

That specific line is:

Quote
$i++;

How do i fix this?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: deathrowdave on March 21, 2014, 09:33:22 PM
I'm having an issue on the install, It's as everyone else have been getting the same login loop. I'm using a payed website (Ipage)
Any help with this would be much appreciated.

Thanks in advance,
Dave
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Neku on March 22, 2014, 12:41:36 AM
Either paid or not, that won't make any difference.

It's the code at fault here.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: deathrowdave on March 22, 2014, 05:25:03 AM
Okay thank you, Is this mod still being worked on or has it stopped?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: baros on March 31, 2014, 06:45:16 AM
can someone help me to install it on my server for free pls?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Neku on March 31, 2014, 07:47:22 AM
can someone help me to install it on my server for free pls?

This doesn't even work.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: paddy4444 on May 17, 2014, 06:34:34 AM
Im just wondering, how do I remove the "this is a test donator page". I have finshed sandbox and have replaced the paypal email so it should be working right?
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: nzkfc on May 21, 2014, 08:27:29 PM
Anyone know if this in fact doesn't work currently?

There isn't any auto-group promotion addons around for ULX and I know people are keen to use one.

Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Lunar Wing on March 19, 2015, 09:50:30 PM
When I am installing this on to my website I get ot hte part in your tutorial where I have to login to configure Wullys PayPal-ULX Donation System. However when I click the button, it just refreshes the page. What do I do now?

It says
No OpenID Server found at http://steamcommunity.com/openid/?l=english (http://steamcommunity.com/openid/?l=english)
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: XxLMM13xX on March 28, 2015, 07:22:05 AM
Ok so on my server I want vip to only be for 1 month and then they get set back to user. Will this add on do it? I have Mr. Presidents temp add user add on and that's what I use. Could the addin do this or is there a simple runconsolecommand somewhere in the code that I would change.,. Let me know and thanks!
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: matt085 on March 28, 2015, 10:42:13 AM
help please

Fatal error: Call to undefined function phpob_start() in /home/a9047407/public_html/pubs/install.php on line 1
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Mornedil on May 01, 2015, 03:52:22 AM
.. What if I don't have a webhost?
I've been using dropbox for my loading URL and !motd page.  I'm pretty sure dropbox doesn't allow php files though.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Decicus on May 01, 2015, 04:42:11 AM
.. What if I don't have a webhost?
I've been using dropbox for my loading URL and !motd page.  I'm pretty sure dropbox doesn't allow php files though.
This requires a web server with PHP installed, since it has some serverside code that needs it. I assume your loading URL and motd is pure HTML with maybe some JavaScript, which are both clientside and doesn't require a web server to work.

Although, I think this is a bit outdated. Since it hasn't been updated in over a year and people seem to be having issues installing this or getting this working.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Bytewave on May 01, 2015, 05:39:23 AM
This requires a web server with PHP installed, since it has some serverside code that needs it. I assume your loading URL and motd is pure HTML with maybe some JavaScript, which are both clientside and doesn't require a web server to work.

Although, I think this is a bit outdated. Since it hasn't been updated in over a year and people seem to be having issues installing this or getting this working.
The entire script is a mess, and Wully hasn't been around since its release.
I would say move onto something like GMDonate (http://facepunch.com/showthread.php?t=1442905) (free) or Prometheus (https://scriptfodder.com/scripts/view/565) ($15 USD).

As acfoactually running oanytofthis, Dropbox is not an option. Period. You will need some sort of host—maybe 000webhost (http://www.000webhost.com/) or HelioHost (http://www.heliohost.org/). If you rent a server from Nuclear Fallout (http://nfoservers.com/[/url), they'll even provide you with webhosting with PHP and such for free.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Mornedil on May 01, 2015, 12:33:13 PM
Thank you.
I just created a free account with a webhost that has php support, but.. I'll try GMDonate instead, and if I'm having problem with it I'll consider paying for an automated donations system.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: Kameron Park on May 24, 2015, 06:53:36 PM
<clip>EDIT - JamminR - no need to quote entire first post <clip>

After logging myself in as admin to went to the install.php but it didnt work, I got an error? Help!
here is the error
Fatal error: Call to undefined function phpob_start() in /home/smhqqipc/public_html/donate/install.php on line 1
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: JamminR on May 24, 2015, 10:18:38 PM
After logging myself in as admin to went to the install.php but it didnt work, I got an error? Help!
here is the error
Fatal error: Call to undefined function phpob_start() in /home/smhqqipc/public_html/donate/install.php on line 1
Try using ASCII mode to transfer the files from your PC to the server.
If I use google to search for that error, the first page of responses pretty much deal with file corruption due to server not seeing EOL (End of line) statements, which usually get wiped out when transferring text files from PC to server using Binary ftp mode instead of ASCII mode.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: AfterShotzZHD on September 20, 2015, 11:35:15 AM
There is no "Instant Payment Notifications" on paypal anymore. Update your Installation tutorial.

https://github.com/Wully616/PUDS/wiki/Installation-Tutorial
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: JamminR on September 20, 2015, 12:31:00 PM
As of this post, Wully last active March 08, 2014, 11:48:25 AM
It's unlikely he'll ever see your sharp demand.
Title: Re: PUDS v0.2.7 - PayPal-ULX Donation System
Post by: JamminR on September 20, 2015, 12:36:24 PM
Moved to Release archives due to age/number of reports of not working/time since last visit of original author.
http://forums.ulyssesmod.net/index.php/topic,6634.0.html (http://forums.ulyssesmod.net/index.php/topic,6634.0.html)