// 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.pokerprophecy.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 Poker Prophecy.';
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 Poker Prophecy 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 Poker Prophecy, 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 = "Poker Prophecy - Subscription to $site_name 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!
With this purchase you will also receive Version 12. Version 12 will auto-search the table for you as well as allow you to conduct individual player searches right from the program!
} ?>BUY THE POKER PROPHECY® NOW !!!
if($msg) { ?>Error:
} ?>
Unlimited access to our database of Players!
We take Visa, Discover, American Express, and Mastercard.
$
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.
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 |