$site_id = 1; // za Poker Party
include("inc/inc_db_ivan.php"); //conect db
$sql = 'SELECT * FROM '. $config['tables']['sites'] . " WHERE id=$site_id";
$q = mysql_query($sql);
$r = mysql_fetch_array($q, MYSQL_ASSOC);
// price without $ sign
$amount = ($r['price'][0] == '$')? substr($r['price'],1) : $r['price'];
// verify input data, if any
$msg = verify_form();
// if reffered_by answer is: OTHER, assign that to reff param
if(!$_POST['reff'] and $_POST['rother']) $_POST['reff'] = $_POST['rother'];
if($_POST['process'] && !$msg) {
$descr = 'Subscription to Poker Prophecy for Poker Party players';
//check for discount
$discount_codes = array('1234', '5678', '9101', '1112', '1314', '1516', '7181', '9202', '1222',
'3242', '5262', '7282', '9303', '1323', '3343', '5363', '7383', '9404', '1424', '3444', '5464',
'7484', '9505', '1525', '3545', '5565', '7585', '9606', '1626', '3646', '5666', '7686', '9707',
'1727', '3747', '5767', '7787', '9808', '1828', '3848', '5868', '7888', '9909', '1929', '3949',
'5969', '7989');
if( strtolower( trim( $_POST['discount'] ) ) == 'youoweme') {
$amount -= 10;
$descr .= ' (with a $10 discount)';
}elseif( in_array($_POST['discount'], $discount_codes) ) {
$amount -= 5;
$descr .= ' (with a $5 discount)';
}
unset($loginid, $txnkey); //protect data
// NOTE:.key script will check if $amount is set, if not it will exit;
//include('../.sim/.key_pokerparty.inc.php'); //transaction key
include('../.sim/.key_pokerparadise.inc.php');
include('inc/simlib.php'); //fingerprint functions
// create link to gateway
$pay_link = 'https://secure.authorize.net/gateway/transact.dll';
$pay_link .= '?x_login=' . urlencode($loginid);
$pay_link .= '&x_amount=' . urlencode($amount);
$pay_link .= '&x_show_form=PAYMENT_FORM';
$pay_link .= '&x_relay_response=True';
$pay_link .= '&x_relay_url=' . urlencode('https://www.pokerprophecy.com/confirm_pokerparty.php');
$pay_link .= '&x_duplicate_window=600'; // check next 10 minutes for duplicate transactions
$pay_link .= '&x_description='. urlencode($descr);
$pay_link .= '&x_cust_id=' . urlencode( $_POST['user'] );
$pay_link .= '&user=' . urlencode( $_POST['user'] );
$pay_link .= '&pass=' . urlencode( $_POST['pass'] );
$pay_link .= '&x_email=' . urlencode( $_POST['email'] );
$pay_link .= '&x_email_customer=FALSE';
$pay_link .= '&discount=' . urlencode( $_POST['discount'] );
$pay_link .= '&reff_by=' . urlencode( $_POST['reff'] );
$pay_link .= '&our_hostname=' . urlencode( $_SERVER['SERVER_NAME'] );
$sequence = md5(uniqid(rand(), TRUE));
$tstamp = time ();
$fp_hash = CalculateFP($loginid, $txnkey, $amount, $sequence, $tstamp);
$pay_link .= '&x_fp_sequence=' . $sequence;
$pay_link .= '&x_fp_timestamp=' . $tstamp;
$pay_link .= '&x_fp_hash=' . $fp_hash;
// redirect to the gateway
header('Location: ' . $pay_link);
exit;
}
function verify_form() {
global $config, $site_id;
if(!$_POST['process']) return ''; //if nothing submited;
if(!($_POST['user'] || $_POST['email'])) return 'Please enter either username or email.';
if(!$_POST['pass']) return 'Password is missing, please enter it.';
if($_POST['pass'] != $_POST['pass2']) return 'Passwords don\'t match';
if($_POST['email'] and !strpos($_POST['email'], '@')) return 'Email is invalid, please check it.';
if(!$_POST['agree']) return 'You have to check that you agree on EULA in order to proceed with registration.';
//all data is OK, lets check if user already exists
if($_POST['user']) $cond1 = 'username=\''. $_POST['user'] . '\'';
if($_POST['email']) $cond2 = 'email=\'' . $_POST['email'] . '\'';
if($_POST['user'] && $_POST['email']) $cond = $cond1 . ' OR '. $cond2;
else $cond = $cond1 . $cond2;
$sql = 'SELECT * FROM ' . $config['tables']['users'] . " WHERE $cond";
$q = mysql_query($sql);
if(!$q)
return 'Database request timed out, server is probably busy. Please try again, and if problem persists contact our support.';
if ($r = mysql_fetch_array($q, MYSQL_ASSOC)) { // if user exists
if($r['pword'] == $_POST['pass'] and $r['username'] == $_POST['user'] and $r['email'] == $_POST['email']) {
//lets check if there's already subscription
$sql = 'SELECT * FROM ' . $config['tables']['subscr'] . ' WHERE member_id=' . $r['id'] .
' AND site_id=' . $site_id;
$q = mysql_query($sql);
if(mysql_num_rows($q)>0) return 'You\'re already subscribed to this site, no need to subscribe again.';
return '';
}
if($r['username'] == $_POST['user']) {
return 'This username already exists in our system, but the rest of the data is not correct for this user.
If you already have an account on Poker Prophecy please re-enter the correct infomation for your account. Otherwise please choose another username to create a new account.';
}elseif($r['email'] == $_POST['email']) {
return 'This email is already registered in our system.
If you already have account on Poker Prophecy, please use that existing username and password. Otherwise please choose a different email to create a new account';
}
}
return '';
}
$title = "Poker Prophecy - Subscription to Poker Party players database";
include("header.php");
?>
The PokerProphecy® database will provide you with insider information that will increase your earnings immediately. Just by simply picking and choosing which players you go up against, you will greatly improve your chances. In game, you can use this information to decide if you will call, raise, or fold, depending on the Player's skill level. Increase your profit today by becoming a Poker Prophet!
This is a one time fee, you never have to pay another dime. All updates are free! With this purchase you will receive the a Username and Password which you can use for the web based searches, or for our new software Version 12 (the link above has screenshots of what you'll receive)! } ?>
BUY THE POKER PROPHECY® NOW !!!
Unlimited access to our database of PARTY POKER Players! We take Visa, Mastercard, Discover, and American Express.
$ (one time fee)
Please choose your username and password below:
If you need help making your decision, please try our "Free Sample Searches". You may also call or e-mail if you have additional questions.