-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_include.php
More file actions
39 lines (36 loc) · 1.08 KB
/
index_include.php
File metadata and controls
39 lines (36 loc) · 1.08 KB
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
<?php
// This file must be included from within Zikula index.php
// $file, $type, $func are available from Zikula index.php
$pnadmin = FormUtil::getPassedValue('pnadmin', '', 'GETPOST');
if (empty($file)) {
$file = $func;
}
$includetype = true;
if ($type == 'admin') {
// standard module interface
$includetype = false;
}
if ($file == 'posting') {
$mode = FormUtil::getPassedValue('mode', '', 'GETPOST');
if ($mode == 'topicreview' || $mode == 'smilies' || $mode == 'rules' || $mode == 'postimages') {
$includetype = false;
}
}
if ($file == 'quick_reply') {
$qmode = FormUtil::getPassedValue('mode', '', 'GETPOST');
if ($qmode == 'smilies' || $qmode == 'postimages') {
$includetype = false;
}
}
if ($includetype) {
// direct file include
if (empty($file) || $file == 'main') {
$file = 'index';
}
$zview = Zikula_View_Theme::getInstance();
$phpbb_root_path = __DIR__.'/vendor/phpBB2/';
include $phpbb_root_path.'includezik.php';
include $phpbb_root_path.$file.'.php';
$zview->themefooter();
System::shutdown();
}