<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | Schooladmin -- Version 1.3 |
// +----------------------------------------------------------------------+
// | Copyright (C) 2004-2009 Aim4me N.V. (http://www.aim4me.info) |
// +----------------------------------------------------------------------+
// | This program is free software. You can redistribute in and/or |
// | modify it under the terms of the GNU General Public License Version |
// | 2 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., 675 Mass Ave, Cambridge, MA 02139, USA. |
// +----------------------------------------------------------------------+
// | Authors: Wilfred van Weert - hide@address.com |
// +----------------------------------------------------------------------+
//
session_start();
$login_qualify = 'A';
require_once("schooladminfunctions.php");
$uid = $_SESSION['uid'];
$CurrentUID = $uid;
$CurrentGroup = $_SESSION['CurrentGroup'];
$uid = intval($uid);
// Remove all existing entries
mysql_query("DELETE FROM subjectfiltergroups",$userlink);
echo(mysql_error());
foreach($HTTP_POST_VARS AS $pvx => $pvd)
{
if(substr($pvx,0,7) == "filtsel")
{
mysql_query("INSERT INTO subjectfiltergroups (`group`) VALUES(". substr($pvx,7). ")",$userlink);
echo(mysql_error());
}
}
header("Location: " . $livesite ."mansubjectpacks.php");
?>