-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
71 lines (71 loc) · 2.97 KB
/
index.php
File metadata and controls
71 lines (71 loc) · 2.97 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
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
69
70
71
<?php
//----------------------------------------------------------------------|
/***********************************************************************|
* Project: PHP Help Manager |
//----------------------------------------------------------------------|
* @link http://themearabia.net |
* @copyright 2015. |
* @author Eng Hossam Hamed <megatpl@gmail.com> <themearabia@gmail.com> |
* @package PHP Help Manager |
* @version 2.0 |
//----------------------------------------------------------------------|
************************************************************************/
//----------------------------------------------------------------------|
session_start();
ob_start();
define('IN_MEGATPL', true);
include('mega-system/mega.class.php');
$Megatpl->setup();
$display->global_vars();
//----------------------------------------------------------------------------------------| about
if(isset($_REQUEST['page']) and $_REQUEST['page'] == 'about')
{
$display->index_about();
}
//----------------------------------------------------------------------------------------| privacy
elseif(isset($_REQUEST['page']) and $_REQUEST['page'] == 'privacy')
{
$display->index_privacy();
}
//----------------------------------------------------------------------------------------| contact
elseif(isset($_REQUEST['page']) and $_REQUEST['page'] == 'contact')
{
$display->index_contact();
}
//----------------------------------------------------------------------------------------| knowledgebase
elseif(isset($_REQUEST['mode']) and $_REQUEST['mode'] == 'knowledgebase')
{
$display->index_knowledgebase();
}
//----------------------------------------------------------------------------------------| knowledgebase
elseif(isset($_REQUEST['mode']) and $_REQUEST['mode'] == 'news')
{
$display->index_news();
}
//----------------------------------------------------------------------------------------| faq
elseif(isset($_REQUEST['mode']) and $_REQUEST['mode'] == 'faq')
{
$display->index_faq();
}
//----------------------------------------------------------------------------------------| cat
elseif(isset($_GET['catid']) and is_numeric(intval($_GET['catid'])))
{
$display->index_cate();
}
//----------------------------------------------------------------------------------------| postid
elseif(isset($_GET['post_id']) and is_numeric($_GET['post_id']))
{
$display->index_single();
}
//----------------------------------------------------------------------------------------| search
elseif(isset($_GET['search']))
{
$display->index_search();
}
//----------------------------------------------------------------------------------------| home
else
{
$display->index_home();
}
//----------------------------------------------------------------------------------------| end
?>