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!)
I've just payed for one of these ;~; Only yesterday too D:
Hmm, I cant get it to work with my Database, but other than that it runs perfect.
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
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..
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.
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)
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)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....
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.
having a small issue after the paypal transaction is complete the donator gets this as an emailCode: [Select]Thank you for your purchase
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)
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.
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....
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
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.
$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
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
self:PS_GivePoints( xxx );
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?
hey uh wully for some reason firefox thinks the page you linked is malicious, just a heads up
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.
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
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?
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!
"can you use this without" is the best question
Requirements:
- MySQL Database
- Garrysmod Server
- ULX/ULIB SVNS
- Paypal account
- Web Server
- Some knowledge of HTML/PHP (to edit the scripts)
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
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 :)
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!
<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.
My webhost is the same, I will change the Allow_url_fopen is only needed for the steam login functionality.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.
I will change the steam login system when I have time after training.
Hey wully, any chance you could make it so it works with multiple servers?
Did anyone figure out how to add
self:PS_GivePoints( xxx );?
I'd like it to auto give points as well.
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)
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?
///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
How can I troubleshoot this without money to feed to paypal?Doesn't Paypal have a 'sandbox' that allows for such testing?
How can I troubleshoot this without money to feed to paypal?
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)
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.
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.
hostname "#1 Dev Server - Mr. Apple"
sv_kickerrornum 0
rcon_password "InsertPasswordHere"
sv_loadingurl "www.youtuberepeat.com/watch?v=7Sw9Fh6uk4Q"
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.
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
//////////////////////////////////
///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");
Ah, glad to see you're still alive and kicking.
Welcome back ^°^
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.
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?
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
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.
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
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
I don't see why he should do that you can just rename you rank really easilyThat'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)".
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.
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.
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.
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 :DWhat's your gameserver host? I know a few gameserver hosts have free web hosting for one domain too.
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.
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)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.
@Wully616 I got one of my coders to look at these errors in one of the files and he thinks you are doing drugs
Well yes I have one coder I got for free so he is not the best he can on repair someand stuff so yeah
Btw where did you even use this piece of code.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).
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.');
}
}
Just a few suggestions:This idea would be good for more support, but are most pointshops used based around the same code/database setup?
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?
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?
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. :)
Well yes I have one coder I got for free so he is not the best he can on repair someand stuff so yeah
$donationDir = 'donate';
To this:$donationDir = 'http://dtrp.tk/donate';
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';
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
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.
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:
Actually Pants, that script is broken and it crashed my server. Maybe you should see what's wrong with it.
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.
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
Problem over here When I try connect install.phpI think this might be something to do with your files.
(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
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 screenWho might your webhost be?
Pic: (http://i.imgur.com/y5xtr8u.jpg)
Code of login.php:
http://pastebin.com/As36We0d (http://pastebin.com/As36We0d)
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 :(It looks like your install.php and login.php are reversed. That or install and index are... I don't know...
Who might your webhost be?
Your files look fine. Hmm...
My Host ?s very Good*facehoof*
Problem over here When I try connect install.php
(http://i.imgur.com/RSqPdLK.jpg)
I already Login my steam
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 believe your problem is your FTP client is uploading the files and removing line breaks, try setting its transfer mode to binary.He also posted his files over pastebin. :P
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 :-\
*facehoof*
What is the name of the company that hosts your website?
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 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.
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.
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';
?>
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)
Notice: Undefined variable: i in ****\www\donate\index.php on line 58
$i++;
can someone help me to install it on my server for free pls?
.. What if I don't have a webhost?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.
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.The entire script is a mess, and Wully hasn't been around since its release.
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.
<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!Try using ASCII mode to transfer the files from your PC to the server.
here is the error
Fatal error: Call to undefined function phpob_start() in /home/smhqqipc/public_html/donate/install.php on line 1