You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
805 B
PHTML
44 lines
805 B
PHTML
13 years ago
|
<?php
|
||
|
if(!isset($_ANONNEWS)) { die(); } /* Protect from direct requests */
|
||
|
/* This module is a wrapper for all modules related to the 'external news' section. */
|
||
|
|
||
|
if($var_page == "")
|
||
|
{
|
||
|
header("Location: /ext/list");
|
||
|
}
|
||
|
elseif($var_page == "list")
|
||
|
{
|
||
|
require("module.ext.list.php");
|
||
|
}
|
||
|
elseif($var_page == "item")
|
||
|
{
|
||
|
if($var_subpage == "comments")
|
||
|
{
|
||
|
$var_post = (isset($parts[$var_start + 4])) ? $parts[$var_start + 4] : "";
|
||
|
|
||
|
if(!empty($var_post) && $var_post == "post")
|
||
|
{
|
||
|
require("module.comments.post.php");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
require("module.comments.php");
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
$var_code = ANONNEWS_ERROR_NOT_FOUND;
|
||
|
require("module.error.php");
|
||
|
}
|
||
|
}
|
||
|
elseif($var_page == "add")
|
||
|
{
|
||
|
require("module.ext.add.php");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
$var_code = ANONNEWS_ERROR_NOT_FOUND;
|
||
|
require("module.error.php");
|
||
|
}
|
||
|
?>
|