Ulysses Stuff > Ulysses Release Archives
PUDS v0.2.7 - PayPal-ULX Donation System
Decicus:
--- Quote from: 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.');
}
}
--- End quote ---
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).
--- Quote from: 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?
--- End quote ---
This idea would be good for more support, but are most pointshops used based around the same code/database setup?
TheSabreSlicer:
--- Quote from: Decicus on January 14, 2014, 10:52:33 PM ---This idea would be good for more support, but are most pointshops used based around the same code/database setup?
--- End quote ---
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. :)
Wully616:
--- Quote from: Decicus on January 14, 2014, 10:52:33 PM ---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?
--- End quote ---
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
--- Quote from: TheSabreSlicer on January 15, 2014, 06:30:51 AM ---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. :)
--- End quote ---
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.
--- Quote from: 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
--- End quote ---
Certainly he can contribute as well. I'm open to help.
benjanmin112:
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 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
Decicus:
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: ---$donationDir = 'donate';
--- End code ---
To this:
--- Code: ---$donationDir = 'http://dtrp.tk/donate';
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version