// set site id
$site_id = $_REQUEST['site_id'];
if(!is_numeric($site_id)) $site_id = 2; //2 is for poker paradise
//$site_id = 3; // za Poker Stars
//$site_id = 4; // za Fulltilt
//$site_id = 5; // za UltimateBet
include("inc/inc_db_ivan.php"); //conect db
//get site data
$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'];
$site_name = $r['name'];
// if reffered_by answer is: OTHER, assign that to reff param
if(!$_POST['reff'] and $_POST['rother']) $_POST['reff'] = $_POST['rother'];
// verify input data, if any
$msg = verify_form();
if($_POST['process'] && !$msg) {
// create link to form page
$pay_link = 'https://www.statsforpoker.com/form_poker.php';
$pay_link .= '?user=' . urlencode($_POST['user']);
$pay_link .= '&pass=' . urlencode($_POST['pass']);
$pay_link .= '&email=' . urlencode($_POST['email']);
$pay_link .= '&discount=' . urlencode($_POST['discount']);
$pay_link .= '&site_id=' . urlencode($_POST['site_id']);
if(!empty($_COOKIE['aff_domain']))
$pay_link .= '&affil=' . urlencode($_COOKIE['aff_domain']);
$pay_link .= '&reff_by=' . urlencode($_POST['reff']);
$pay_link .= '&period=' . urlencode($_POST['period']);
$pay_link .= '&process=true';
// 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['period']) return 'Please select subscription package.';
if(!($_POST['user'] || $_POST['email'])) return 'Please enter username and 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['email'] != $_POST['email2']) return 'Emails don\'t match';
//if(!$_POST['reff']) return 'Please select how you\'ve found out about Stats For Poker.';
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 ($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 .' AND valid_until> DATE_ADD(NOW(), INTERVAL 1 MONTH)';
$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 Stats For Poker please re-enter the correct infomation for your account, or if not, 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 Stats For Poker, please use that existing username and password, otherwise please choose a different email to create a new account';
}
}
return '';
}
function get_date($period) {
return date('F jS, Y', mktime (0,0,0, date("m")+$period, date("d"), date("Y")) );
}
$title = "Stats For Poker - Subscription to $site_name players database";
include("header.php");
?>
The StatsForPoker® database will provide you with the knowledge you need to increase your earnings immediately. Either of its two main functions will increase your winnings today.
First, you can use the software to scan tables and decide which tables you want to play on. Sure you can beat the best, but why not take the easy money?
Secondly, you will be able to identify the winning and losing players so that you can focus on obtaining the losing player's chips, while being somewhat less aggressive initially versus the winning players. The end result is a huge upswing in profits for you.
This purchase also includes our cutting edge software. The software will scan an entire table for you at the touch of a button, and if you choose, provide an overlay of the statistics on the poker table.
} ?>BUY Stats For Poker® NOW !!!
if($msg) { ?>Error:
} ?>
The prices below include complete and unlimited access to our database,
our software, technical support, and free updates.!
We take Visa, Discover, American Express, and Mastercard.
$
If you need help making your decision, please try our "Free Sample Searches". You may also e-mail if you have additional questions.
We will return your money within 30 days of purchase if you are unhappy for any reason.
if($site_id == 6) { ?>
PLEASE NOTE: Prima Poker includes the following skins:
Royal Vegas Poker | bet365poker |
The Gaming Club Poker Room | NordicBet Poker |
Bet Hold`em | Poker Metro |
StansPoker.com | Crazy Poker |
BetonUSA Poker | Aztec Riches Poker |
7 Sultans Poker | Lucky Nugget Poker |
32Red Poker | Golden Tiger Poker |
River Belle Poker | Code Poker |
Wild Jack Poker | Purple Lounge |
Golden Riviera Poker | Captain Cook`s Poker |
Poker333 | Colosseum Poker |
Grand Bay Poker | Spin Palace Poker |
Virtual City Poker | Trident Poker |
Roxy Poker | Thunderluck Poker |
Big Dollar Poker | Boylepoker |
24Poker | betED Poker |
Poker Rewards | DreamPoker |
Unibet | All In Poker |
PokerTime | 5 Dogs Poker |