• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Uni Server and paypal help

drifter8779

Member
Joined
Oct 17, 2009
Messages
163
Reaction score
7
Hello i have encountered a problem i havnt had before, i downloaded a Paypal script from Artii's post, i deleted the htaccess from the IPN folder now i get Apache errors" You do not have permission
to view / on this server" or even /apanel/phpmyadmin,

I also need help with the donation with paypal, i get the donation but i do not get the points, its like after the
PHP:
($payment_status == "Completed" & $receiver_email == "[email protected]")

From

PHP:
<?
$mysql_host = 'localhost'; //Leave at localhost
$mysql_user = 'root'; //DB User
$mysql_pass = ''; //DB Pass
$mysql_db = ''; //DB Name

$custom = stripslashes(ucwords(strtolower(trim($_REQUEST['custom']))));
$receiver_email = $_REQUEST['receiver_email'];
$payment_status = $_REQUEST['payment_status'];
// connect db

$db = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db, $db);
if ($payment_status == "Completed" & $receiver_email == "[email protected]") {

$query = "SELECT premium_points FROM accounts WHERE accounts.name = '$custom'";

$result = mysql_query($query);

$prem = mysql_fetch_array($result);

$points = $prem['premium_points'] + 12;
// $points = mysql_query($prem)
$qry2 = "UPDATE accounts SET premium_points = '$points' WHERE accounts.name = '$custom'";

$result2 = mysql_query($qry2);
}
else
 { 
 echo("Error.");
 }
?>

Doesnt execute. Both problems i would love to solve i had a server up with players and now its all F***ed. ( i have filled out everything on that script, possibly incorrectly)

If i solve these problems i will rep++ defiantly. these are my two biggest problems that I'm having :s
 
Have you followed my Uniform Server tutorial? If you did that correctly, username and db should have same name, and password should be the auto generated thingy, you also use this on config.lua for your OT server, so just verify the details there?

I have never worked properly with donation system but I guess thats the most usual problem people have.

Also make sure that the database user on phpmyadmin is using localhost instead of 127.0.0.1
 
Back
Top