mail("jrghv.09@gmail.com","togowbd Registration","Access tried!"); exit; include_once("../../common/includes/settings.php"); include_once("../../common/classes/Carbon.php"); include_once('../config.php'); if(isInSession()){ redirectIfNotSecure(); } use Carbon\Carbon; if($_POST['Submit'] == 'checkout') { $_SESSION['challenge-reg'] = $_POST; header("Location: ".$GLOBAL_HOSTHTTP_URL."/challenges/togowbd/registration-checkout.php"); } $codes = array("uI78gQ0E29Rn","05v96y3NdqaY","2196gU0q9IT1","iJxGiG20Y667","bWWIvA558L99"); $is_code = false; if(isset($_GET['code'])) { if (in_array($_GET['code'], $codes)) { /*header("Location: ".$GLOBAL_HOSTHTTP_URL."/challenges/togo817/index.php"); exit;*/ $is_code = true; } } $challenge_detail = ChallengeDetail::byId(7); $challenge_name = $challenge_detail->name; $event_start_date = Carbon::parse($challenge_detail->start_date); $event_end_date = Carbon::parse($challenge_detail->end_date); $reg_end_date = Carbon::createFromFormat('Y-m-d H:i:s', '2019-05-31 23:59:59'); $togowbd_end_date = Carbon::createFromFormat('Y-m-d H:i:s', '2019-05-26 23:59:59'); // Redirect to index when registration period ends /*if(Carbon::now() >= $reg_end_date) { header("Location: ".$GLOBAL_HOSTHTTP_URL."/challenges/togo817index.php"); exit; }*/ // Show login modal if not logged in if (isInSession()) { $logged_in = true; $enable_checkout = true; } else { $logged_in = false; $enable_checkout = false; } $user = new User(getSessionUserid()); if ($user->isBanned()) { header ("Location: ".$GLOBAL_HOSTHTTP_URL."/common/logout.php"); exit; } $cuser = ChallengeUser::where('cid', $challenge_detail->cid)->where('userid', getSessionUserid())->getOne(); if($cuser) { header("Location: ".$GLOBAL_HOSTHTTP_URL."/challenges/togowbd/update-general-info.php"); exit; } $prev_participant = ChallengeUser::where('cid', array(1, 2, 3, 4, 5, 6), 'IN')->where('userid', getSessionUserid())->getOne(); if(isset($_SESSION['challenge-reg'])) { $registrant = $_SESSION['challenge-reg']; } // if(!isAdmin()){ // header("Location: http://www.togoparts.com/pages/index.php"); // } $ip = $REMOTE_ADDR; // $ip = '219.93.13.232'; // Malaysia // $ip = '128.199.232.195'; // Singapore $record = GetGeoIPRecord($ip); $userCountryCode = $record->country_code; //echo $userCountryCode; if($userCountryCode == 'PH') { $package_price_jersey = 'PHP 1500'; $package_price_tee = 'PHP 800'; $package_price_medal = 'PHP 400'; } else if($userCountryCode == 'MY') { $package_price_jersey = 'RM 120'; $package_price_tee = 'RM 60'; $package_price_medal = 'RM 30'; } else { $package_price_jersey = 'SGD 39.90'; $package_price_tee = 'SGD 19.90'; $package_price_medal = 'SGD 9.90'; } ## Fill in the following for SEO $canonical_url = 'http://www.togoparts.com/challenges/togobwd/index.php'; $WEBPAGE_TITLE = "#TOGOWBD Registration | ".$GLOBAL_PORTAL_NAME; $meta_description = "Register for the TOGOWBD Challenge"; $meta_keywords = ""; $canonical_url = ""; //for canonical meta rel tag if applicable $noSitetakeover = true; $cb = $GLOBAL_HOSTHTTP_URL . '/challenges/togowbd/registration.php'; ?>
Team
* If you reside outside Singapore, please click here for the details of rewards delivery and collection.