/** * Interface form for accepting/declining reservations * @author Nick Korbel <*****@*****.**> * @version 05-15-06 * @package phpScheduleIt * * Copyright (C) 2003 - 2007 phpScheduleIt * License: GPL, see LICENSE */ include_once 'lib/Template.class.php'; include_once 'lib/Reservation.class.php'; include_once 'lib/Resource.class.php'; $t = new Template(translate('Manage Invites')); if (Auth::is_logged_in() && (isset($_POST['y']) || isset($_POST['n']))) { CmnFns::redirect('ctrlpnl.php', 1, false); } $t->printHTMLHeader(); if (Auth::is_logged_in()) { $t->printWelcome(); } $t->startMain(); if (isset($_POST['y'])) { // Process the reservation if (isset($_GET['id']) && isset($_GET['memberid']) && isset($_GET['action'])) { global $conf; $memberid = $_GET['memberid']; $resid = $_GET['id']; $action = $_GET['action']; $accept_code = $_GET['accept_code']; // Get the user
/** * Prints a message telling the user to log in * @param boolean $kill whether to end the program or not */ function print_login_msg($kill = true) { CmnFns::redirect(CmnFns::getScriptURL() . '/index.php?auth=no&resume=' . urlencode($_SERVER['PHP_SELF']) . '?' . urlencode($_SERVER['QUERY_STRING'])); }