mail("jrghv.09@gmail.com","togondc 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/togondc/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(8); $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-08-09 23:59:59'); $togondc_end_date = Carbon::createFromFormat('Y-m-d H:i:s', '2019-08-18 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/togondc/update-general-info.php"); exit; } $prev_participant = ChallengeUser::where('cid', array(1, 2, 3, 4, 5, 6,7), 'IN')->where('userid', getSessionUserid())->getOne(); $userreg = new User( $_SESSION['session_userid'] ); 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; $package_price_jersey = 'SGD 39.90'; $package_price_medal = 'SGD 9.90'; ## Fill in the following for SEO $canonical_url = 'http://www.togoparts.com/challenges/togondc/index.php'; $WEBPAGE_TITLE = "#TOGONDC Registration | ".$GLOBAL_PORTAL_NAME; $meta_description = "Register for the TOGONDC Challenge"; $meta_keywords = ""; $canonical_url = ""; //for canonical meta rel tag if applicable $noSitetakeover = true; $cb = $GLOBAL_HOSTHTTP_URL . '/challenges/togondc/registration.php'; //$cb = 'https://www.togoparts.regress/challenges/togondc/registration.php'; ?>
Team
* If you reside outside Singapore, please click here for the details of rewards delivery and collection.