<?php session_start(); require_once "lib/_classes.php"; require_once "lib/_functions.php"; require 'lib/db.php'; $eventID = $_GET["e"]; $capped = false; $cancelProcess = false; $full = false; if ($eventID == "" || !$eventID || checkEvent($eventID) == false) { $cancelProcess = true; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>BUMC Scrapbook Crop Registratrion</title> <link href="registration.css" rel="stylesheet" type="text/css" /> <script src="registration.js" type="text/javascript"></script> <link rel="shortcut icon" href="images/site.ico"> </head> <body<?php if (!$cancelProcess) { ?> onload="onLoadFunction();"<?php }
if (isset($_REQUEST['room']) && is_numeric($_REQUEST['room'])) { $_REQUEST['roomID'] = $_REQUEST['room']; } } // if js login, redirect to index.php if (isset($_REQUEST['uname']) && isset($_COOKIE['login'])) { // unset login setcookie($_COOKIE['login'], '', time() - 3600); header('Location: index.php'); } } /* * check events * */ $loginError = checkEvent(); if ($loginError) { include "templates/" . $CONFIG['template'] . "/login.php"; die; } /* * get transcripts * */ if (isset($_GET['transcripts']) && isset($_GET['roomID'])) { include "templates/" . $CONFIG['template'] . "/transcripts.php"; die; } /* * confirm email register *
creerSection($_POST['nom'], $_POST['couleur'], $_POST['image'], $_POST['desc']); } else { echo "<div class='error' >" . $error . "</div>"; } } if (isset($_POST['creerNews'])) { $error = checkNews(); $_POST['error'] = $error; if ($error == "NoError") { creerNews($_POST['nom'], $_POST['image'], $_POST['jeux'], $_POST['desc']); } else { echo "<div class='error' >" . $error . "</div>"; } } if (isset($_POST['creerEvent']) && !empty($_POST['creerEvent'])) { $error = checkEvent(); $_POST['error'] = $error; if ($error == "NoError") { creerEvent($_POST['nom'], $_POST['type'], $_POST['date'], $_POST['heure'], $_POST['localisation'], $_POST['image'], $_POST['jeux'], $_POST['desc']); echo "<div class='success' >Event ajoutée !</div>"; } else { echo "<div class='error' >" . $error . "</div>"; } } /******************************************************/ /* Edition */ /******************************************************/ if (isset($_GET['post'])) { $news = recupNews($_GET['post']); } if (isset($_POST['editerNews'])) {