Script PaymentWall
#65


I get this error all the time:

HTTP/1.0 404 Not Found
Content-type: text/html
Server: Microsoft-IIS/7.5
Date: Fri, 24 Aug 2012 20:37:32 GMT
Content-length: 1245
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>404 - File or directory not found.</h2>
<h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
</fieldset></div>
</div>
</body>
</html>

 

Now i found the problem, saved as wrong file..^^ now i saved it right but again error:

"Pingback wasn't successful. Reason: Response body does not match the expected pattern: OK"

 

HTTP/1.0 200 OK
Content-type: text/html
Server: Microsoft-IIS/7.5
X-powered-by: PHP/5.3.15
Date: Fri, 24 Aug 2012 20:44:15 GMT
Content-length: 10311
Connection: close

prepare( $query );

$dbh->execute( array( ':uid' => $uid ));

}

// Add the cash to the account.
// In case of a drawback or fraud paymentwall deletes the cash also
// But since they use a negative amount, this will work perfectly
function SetCash($uid, $amount)
{
global $dbs, $db;

$query = sprintf
("
UPDATE %s.bg_user
SET cash = cash + :amount
WHERE user_code = :uid

", $dbs['user_dbase'] );

$dbh = $db->prepare( $query );

$dbh->execute( array( ':amount' => $amount,
':uid' => $uid ));

}

// Function to check if the user exists
function CheckUserExist( $uid )
{
global $dbs, $db;

$query = sprintf
("
SELECT count(*)
FROM %s.bg_user
WHERE user_code = :uid

", $dbs['user_dbase'] );

$dbh = $db->prepare( $query );

$dbh->execute( array( ':uid' => $uid ));

$result = $dbh->fetch();

if( $result[0] == 1 )
return true;
else
return false;
}

$uid = $_GET['uid'];
$currency = $_GET['currency'];
$type = $_GET['type'];
$ref = $_GET['ref'];
$sig = $_GET['sig'];

// Check the incomming data
if( !ctype_digit( $uid ) )
echo 'UID: ' . htmlspecialchars( $uid ) . ' is not a number';

elseif( !is_numeric( $currency ) )
echo 'Currency: ' . htmlspecialchars( $currency ) . ' is not a number';

elseif( !ctype_digit( $type ) )
echo 'Type: ' . htmlspecialchars( $type ) . ' is not a number';

elseif( !ctype_alnum($ref) )
echo 'Reference: ' . htmlspecialchars( $ref ) . ' can only contain 0-9 a-Z';

elseif( !ctype_alnum($sig) )
echo 'Signature: ' . htmlspecialchars( $sig ) . ' can only contain 0-9 a-Z';

else
{

// See if the userid exists
if( CheckUserExist( $uid ) )
{

// Add the cash to the user
if( $type == 0 || $type == 1 )
{
SetCash($uid, $currency);
echo 'OK';
}

// Chargeback or Fraud
elseif( $type == 2 )
{

$reason = $_GET['reason'];

switch( $reason )
{
case 1:
BanUser($uid,'Chargeback');
break;
case 2:
BanUser($uid,'Credit Card fraud');
break;
case 3:
BanUser($uid,'Order fraud');
break;
case 4:
BanUser($uid,'Bad data entry');
break;
case 5:
BanUser($uid,'Fake / proxy user');
break;
case 6:
BanUser($uid,'Rejected by advertiser');
break;
case 7:
BanUser($uid,'Duplicate conversions');
break;
case 8:
BanUser($uid,'Goodwill credit taken back');
break;
case 9:
BanUser($uid,'Cancelled order');
break;
case 10:
BanUser($uid,'Partially reversed transaction');
break;

}

// Remove the cash
SetCash($uid, $currency);
echo 'OK';

}
else
echo 'Unknown type : ' . htmlspecialchars( $type );
}
else
echo 'Not found user : ' . htmlspecialchars($uid);
}
}
else
echo 'IP Unknown : ' . $ip;

?>

 

same here -.-'



Messages In This Thread
[No subject] - by Kotetsu - 07-13-2012, 06:57 PM
[No subject] - by Wizatek - 07-13-2012, 07:20 PM
[No subject] - by Kotetsu - 07-13-2012, 07:23 PM
[No subject] - by Kotetsu - 07-13-2012, 07:30 PM
[No subject] - by Wizatek - 07-13-2012, 07:57 PM
[No subject] - by Kotetsu - 07-13-2012, 08:10 PM
[No subject] - by Wizatek - 07-13-2012, 08:49 PM
[No subject] - by Sutz - 07-14-2012, 12:46 AM
[No subject] - by fonsy84 - 07-14-2012, 07:37 PM
[No subject] - by Dungedragon - 07-14-2012, 07:43 PM
[No subject] - by Wizatek - 07-14-2012, 08:01 PM
[No subject] - by fonsy84 - 07-14-2012, 08:21 PM
[No subject] - by fonsy84 - 07-14-2012, 08:48 PM
[No subject] - by Wizatek - 07-14-2012, 09:12 PM
[No subject] - by Wizatek - 07-14-2012, 09:19 PM
[No subject] - by Kotetsu - 07-14-2012, 09:25 PM
[No subject] - by Wizatek - 07-14-2012, 09:28 PM
[No subject] - by Kotetsu - 07-14-2012, 09:29 PM
[No subject] - by Wizatek - 07-14-2012, 09:34 PM
[No subject] - by Kotetsu - 07-14-2012, 09:35 PM
[No subject] - by fonsy84 - 07-14-2012, 09:41 PM
[No subject] - by fonsy84 - 07-14-2012, 09:44 PM
[No subject] - by Wizatek - 07-14-2012, 09:56 PM
[No subject] - by fonsy84 - 07-14-2012, 09:58 PM
[No subject] - by fonsy84 - 07-14-2012, 10:01 PM
[No subject] - by Wizatek - 07-14-2012, 10:47 PM
[No subject] - by fonsy84 - 07-14-2012, 11:59 PM
[No subject] - by barroso - 07-27-2012, 05:49 PM
[No subject] - by Wizatek - 07-27-2012, 05:57 PM
[No subject] - by barroso - 07-27-2012, 06:01 PM
[No subject] - by barroso - 07-27-2012, 06:13 PM
[No subject] - by Wizatek - 07-27-2012, 06:53 PM
[No subject] - by barroso - 07-27-2012, 07:16 PM
[No subject] - by barroso - 07-27-2012, 07:34 PM
[No subject] - by Wizatek - 07-27-2012, 10:16 PM
[No subject] - by barroso - 07-27-2012, 10:56 PM
[No subject] - by Wizatek - 07-27-2012, 11:04 PM
[No subject] - by barroso - 07-27-2012, 11:22 PM
[No subject] - by Wizatek - 07-28-2012, 12:14 AM
[No subject] - by barroso - 07-28-2012, 12:24 AM
[No subject] - by SibaN - 07-28-2012, 06:57 AM
[No subject] - by Wizatek - 07-28-2012, 01:12 PM
[No subject] - by barroso - 07-28-2012, 04:42 PM
[No subject] - by Wizatek - 07-28-2012, 05:17 PM
[No subject] - by barroso - 07-28-2012, 05:43 PM
[No subject] - by barroso - 07-28-2012, 05:50 PM
[No subject] - by Wizatek - 07-28-2012, 07:09 PM
[No subject] - by Creep - 07-28-2012, 07:42 PM
[No subject] - by barroso - 07-28-2012, 07:52 PM
[No subject] - by Wizatek - 07-28-2012, 10:18 PM
[No subject] - by barroso - 07-28-2012, 11:56 PM
[No subject] - by Wizatek - 07-29-2012, 01:40 AM
[No subject] - by barroso - 07-29-2012, 02:00 AM
[No subject] - by barroso - 08-02-2012, 11:56 PM
[No subject] - by Creep - 08-05-2012, 10:29 AM
[No subject] - by fonsy84 - 08-10-2012, 05:32 PM
[No subject] - by Creep - 08-12-2012, 06:03 PM
[No subject] - by olo3007 - 08-12-2012, 07:23 PM
[No subject] - by barroso - 08-21-2012, 04:06 PM
[No subject] - by Creep - 08-23-2012, 10:26 AM
[No subject] - by Creep - 08-24-2012, 11:59 AM
[No subject] - by Creep - 08-24-2012, 01:01 PM
[No subject] - by Nikolee - 08-24-2012, 08:38 PM
[No subject] - by blacknelly - 08-25-2012, 01:07 AM
[No subject] - by Creep - 08-25-2012, 06:11 PM
[No subject] - by Creep - 09-08-2012, 07:00 PM
[No subject] - by Bradox - 09-10-2012, 03:27 PM
[No subject] - by xNiceEinzx - 09-12-2012, 03:19 PM
[No subject] - by HalloKitty - 09-15-2012, 06:41 PM
[No subject] - by Black191 - 09-16-2012, 04:40 PM
[No subject] - by Creep - 09-21-2012, 03:02 PM
[No subject] - by Sutz - 10-03-2012, 06:52 PM
[No subject] - by Creep - 10-05-2012, 12:28 PM
[No subject] - by Creep - 10-15-2012, 06:17 PM
[No subject] - by TheQE - 02-21-2013, 05:45 PM
[No subject] - by SibaN - 08-17-2013, 05:31 PM
[No subject] - by Sutz - 08-17-2013, 08:39 PM
[No subject] - by SibaN - 08-18-2013, 02:31 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)