-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
executable file
·38 lines (34 loc) · 1.38 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
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.
*/
/**
* News header file
* Manage content page
*
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @author Hossein Azizabadi (AKA Voltan)
* @version $Id$
*/
if (!defined('XOOPS_ROOT_PATH')) {
include_once '../../mainfile.php';
}
require_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php';
require_once XOOPS_ROOT_PATH . '/modules/news/class/perm.php';
require_once XOOPS_ROOT_PATH . '/modules/news/class/utils.php';
require_once XOOPS_ROOT_PATH . '/class/template.php';
require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
// Initialize content handler
$story_handler = xoops_getmodulehandler('story', 'news');
$topic_handler = xoops_getmodulehandler('topic', 'news');
$file_handler = xoops_getmodulehandler('file', 'news');
$rate_handler = xoops_getmodulehandler('rate', 'news');
$handler = new NewsPermission;
$perm_handler = $handler->getHandler();
?>