-
Notifications
You must be signed in to change notification settings - Fork 1
/
portal.php
68 lines (53 loc) · 1.83 KB
/
portal.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/*
Viscacha - A bulletin board solution for easily managing your content
Copyright (C) 2004-2009 The Viscacha Project
Author: Matthias Mohr (et al.)
Publisher: The Viscacha Project, http://www.viscacha.org
Start Date: May 22, 2004
This program is free software; you can 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 should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
error_reporting(E_ALL);
define('SCRIPTNAME', 'portal');
if (!defined('VISCACHA_CORE')) {
define('VISCACHA_CORE', '1');
}
require_once("data/config.inc.php");
require_once("classes/function.viscacha_frontend.php");
if ($config['indexpage'] == SCRIPTNAME && !defined('IS_INCLUDED')) {
sendStatusCode(301, 'index.php'.SID2URL_1);
exit;
}
if ($plugins->countPlugins('portal') == 0) {
if ($config['indexpage'] == SCRIPTNAME) {
error($lang->phrase('docs_not_found'), 'forum.php'.SID2URL_1);
}
else {
$slog->updatelogged();
$db->close();
sendStatusCode(301, 'index.php');
exit;
}
}
$my->p = $slog->Permissions();
$my->pb = $slog->GlobalPermissions();
$breadcrumb->Add($lang->phrase('portal_title'));
echo $tpl->parse("header");
BBProfile($bbcode);
($code = $plugins->load('portal')) ? eval($code) : null;
$slog->updatelogged();
$zeitmessung = t2();
echo $tpl->parse("footer");
$phpdoc->Out();
$db->close();
?>