<?php

/***************************************************************************

 m_newsrel.php
 --------------
 copyright : (C) 2002-2003 The ezContents Development Team

 ***************************************************************************/

/***************************************************************************
 The ezContents Development Team offers no warranties on this script.
 The owner/licensee of the script is solely responsible for any problems
 caused by installation of the script or use of the script.

 All copyright notices regarding ezContents must remain intact on the
 scripts and in the HTML for the scripts.

 For more info on ezContents,
 visit http://www.ezcontents.org/

/***************************************************************************

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the License which can be found within the
 *   zipped package.
 *
 ***************************************************************************/

$GLOBALS["ModuleName"] = 'links';
include("moduleref.php");

$GLOBALS["rootdp"] = '../../';
include ($GLOBALS["rootdp"]."include/config.php");
include ($GLOBALS["rootdp"]."include/db.php");
include ($GLOBALS["rootdp"]."include/session.php");
include ($GLOBALS["rootdp"]."include/access.php");
include ($GLOBALS["rootdp"]."include/functions.php");
include ($GLOBALS["rootdp"].$GLOBALS["modules_home"]."modfunctions.php");

$GLOBALS["form"] = 'subcontent';
$validaccess = VerifyAdminLogin();


if ($GLOBALS["canedit"] == False)
{
   Header("Location: ".BuildLink($GLOBALS["rootdp"].'login.php'));
}
else
{
   GetModuleData($GLOBALS["ModuleRef"]);
   ReleaseEntry('linksid',$HTTP_GET_VARS["LinkID"]);
   Header("Location: ".BuildLink('m_'.$GLOBALS["ModuleName"].'.php')."&page=".$HTTP_GET_VARS["page"]);
}

?>
