<?php
/*
* ConPortal - Pomona College ITS scheduling appplication
* Copyright (C) 2005-2008 Pomona College & Bucknell University
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once('../standard.php');
//Generic function used for sending various sorts of email.
xhtml_header('Sending email...');
if (isset($_POST['source']))
{
if($_POST['source']=="quickpunch_notify")
{
$body = getNameForUser($_SESSION['pid']) . " has requested that the computer with IP address " .
$_SERVER['REMOTE_ADDR'] . " which he/she describes as " . $_POST['comp_description'] .
" should be added to the acceptable IP list set in Punch Editing & Tracking -> Manage what " .
"IP addresses can punch in and out.";
send_email($body, "Quickpunch location addition request", SUPERS);
echo "<br /><br /><center>Your supervisor has been notified.<br /><a href=\"" . BASE_URL . "index.php\">Click here to return
to the landing page.</a></center>";
}
//other cases go here.
}
else
{
error("Something wasn't filled out properly! Now I am sad! (Hint: Try using POST to reach this form)");
display_errors();
}
xhtml_footer();
?>