<?php
/****************************************************************************************/
/* ACollab */
/****************************************************************************************/
/* Copyright (c) 2002-2004 Adaptive Technology Resource Centre / University of Toronto */
/* */
/* http://atutor.ca/acollab */
/* */
/* This program is free software. You may redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 of the License, */
/* or (at your option) any later version. */
/* */
/* 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 may access the GNU General Public License at: */
/* http://www.opensource.org/licenses/gpl-license.php */
/* */
/* You may contact the Adaptive Technology Resource Centre at */
/* Robarts Library, University of Toronto */
/* 130 St. George Street, Toronto, Ontario, Canada M5S 1A5 */
/* Further contact information is available at http://www.utoronto.ca/atrc/ */
/****************************************************************************************/
/* Programmer: */
/* Joel Kronenberg - ATRC */
/****************************************************************************************/
// $Id: user_create.php 116 2004-03-31 20:44:00Z joel $
exit('no longer used');
define('AC_INCLUDE_PATH', '../include/');
require(AC_INCLUDE_PATH.'vitals.inc.php');
authenticate(USER_GROUP_ADMIN);
$_SECTION[0][0] = _AC('home');
$_SECTION[0][1] = 'home.php';
$_SECTION[1][0] = _AC('administration');
$_SECTION[1][1] = 'group_admin/';
$_SECTION[2][0] = _AC('user_management');
$_SECTION[2][1] = 'group_admin/users.php';
$_SECTION[3][0] = _AC('create_member_account');
$_SECTION[3][1] = 'admin/user_create.php';
$admin = '';
/* add this user to this group instead of creating it */
if (isset($_GET['mid'])) {
$mid = intval($_GET['mid']);
$sql = "INSERT INTO ".TABLE_PREFIX."groups_members VALUES ($_SESSION[group_id], $mid, 0)";
mysql_query($sql, $db);
header('Location: users.php?f='.F_USER_group_ADDED);
exit;
}
require(AC_INCLUDE_PATH.'html/user_create.inc.php');
require(AC_INCLUDE_PATH.'admin/footer.inc.php');
?>