<?php
/********************************************************/
/* NSN Groups                                           */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright  2000-2005 by NukeScripts Network         */
/********************************************************/
if (!defined('ADMIN_ALLOW') && !defined('ADMIN_MAX')) {
	die ("Access Denied");
}

$datenew = $newyear."-".$newmonth."-".$newday." ".$newhour.":".$newmin.":00";
if ($datenew == "0000-00-00 00:00:00") { $newdate = "0"; } else { $newdate = strtotime($datenew); }
$GLOBALS['db']->sql_query("UPDATE `".TABLE_NSNGR_USERS."` SET `edate`='$newdate', `notice`='0' WHERE `gid`='$gid' AND `uid`='$chng_uid'");
redirect_url("".$admin_file.".php?op=NSNGroupsUsersView&gid=$gid");