$stuff = ""; $categorywise = ""; $eventdetails = array(); $categories = array(); $events = array(); $count = array(); if (isset($_GET['eventid'])) { $eventdetails = getEventbyid(addslashes(htmlentities($_GET['eventid']))); if ($eventdetails && count($eventdetails)) { $stuff = "<div class='box'>\n\t\t\t\t\t<div class='box-head'>\n\t\t\t\t\t\t<h2 class='left'> " . $eventdetails[0]['event_name'] . ": </h2>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style='padding: 10px 10px 10px 20px;'><br>\n\t\t\t\t\t\t<h3><b><u>About: </u></b></h3><br>\n\t\t\t\t\t\t<p style='padding-bottom: 5px; font-size:14px; line-height:18px;'>" . stripslashes($eventdetails[0]['about']) . "</p><br>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style='padding: 10px 10px 10px 20px;'>\n\t\t\t\t\t\t<h3><b><u>Rules:</u> </b></h3><br>\n\t\t\t\t\t\t<p style='padding-bottom: 5px;font-size:14px; line-height:18px;'>" . stripslashes($eventdetails[0]['rules']) . "</p><br>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style='padding: 10px 10px 10px 20px;'>\n\t\t\t\t\t\t<h3><b><u>Contest Link:</u></b> </h3><br>\n\t\t\t\t\t\t<p style='padding-bottom: 5px;font-size:14px; line-height:18px;'><a href='" . stripslashes($eventdetails[0]['clink']) . "' target='new'>" . stripslashes($eventdetails[0]['clink']) . "</a></p><br>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style='padding: 10px 10px 10px 20px;'>\n\t\t\t\t\t\t<h3><b><u>Contact Details:</u> </b></h3><br>\n\t\t\t\t\t\t<p style='padding-bottom: 5px; font-size:14px; line-height:18px;'>" . stripslashes($eventdetails[0]['contacts']) . "</p><br>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t"; } } if (isset($_POST['register'])) { $regval = addslashes(htmlentities($_POST['regval'])); if (!alreadyRegistered($userid, $regval)) { if (isProfileComplete($user)) { registerEvent($regval, $userid, $user); $registerscs = "<p style='color:#74a446; font-size:15px;' > You have successfully registered to the Event! </p>"; } else { $registerscs = "<p style='color:red; font-size:15px;' > First you need to complete your profile information to apply for Events.<p>"; } } else { $registerscs = "<p style='color:#74a446; font-size:15px;' > You are already registered to the Event! </p>"; } $eventdetails = getEventbyid($regval); $stuff = "<div class='box'>\n\t\t\t\t<div class='box-head'>\n <h2 class='left'> " . $eventdetails[0]['event_name'] . ": </h2>\n </div>\n <div style='padding: 10px 10px 10px 20px;'><br>\n <h3><b><u>About: </u></b></h3><br>\n <p style='padding-bottom: 5px; font-size:14px; line-height:18px;'>" . stripslashes($eventdetails[0]['about']) . "</p><br>\n </div>\n <div style='padding: 10px 10px 10px 20px;'>\n <h3><b><u>Rules:</u> </b></h3><br>\n <p style='padding-bottom: 5px;font-size:14px; line-height:18px;'>" . stripslashes($eventdetails[0]['rules']) . "</p><br>\n </div>\n <div style='padding: 10px 10px 10px 20px;'>\n <h3><b><u>Contest Link:</u></b> </h3><br>\n\t\t\t\t\t\t<p style='padding-bottom: 5px;font-size:14px; line-height:18px;'><a href='" . stripslashes($eventdetails[0]['clink']) . "' target='new'>" . stripslashes($eventdetails[0]['clink']) . "</a></p><br>\n </div> \n <div style='padding: 10px 10px 10px 20px;'>\n <h3><b><u>Contact Details:</u> </b></h3><br>\n <p style='padding-bottom: 5px; font-size:14px; line-height:18px;'>" . stripslashes($eventdetails[0]['contacts']) . "</p><br>\n </div> \n\t\n\t\t\t</div>\n\t\t\t\t"; } ?> <!-- Container -->
} } } else { require_once 'includes/confirm_acc.php'; if ($nav == 'registration') { require_once 'includes/registration.php'; } else { if ($nav == 'dashboard') { require_once 'includes/dashboard.php'; } else { if ($nav == 'short') { require_once 'includes/short.php'; } else { if ($nav == 'profile') { require_once 'includes/profile.php'; } else { if (isProfileComplete($_SESSION['user'])) { require_once 'includes/dashboard.php'; } else { require_once 'includes/profile.php'; } } } } } } //footer require_once 'includes/site_footer.php'; flush(); ob_flush(); ob_end_clean();