-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswitch_structure.php
More file actions
41 lines (37 loc) · 861 Bytes
/
Copy pathswitch_structure.php
File metadata and controls
41 lines (37 loc) · 861 Bytes
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
switch ($doc_type)
{
case 'content':
include_once('includes/functions/loader.inc');
if ($class == 'index')
{
if (!empty($si) && ($si->default_home_page == 'content'))
{
include_once THEME_DIR . '/home_page_template.php';
}
else if (!empty($si) && !empty(($si->default_home_page)))
{
include_once THEME_DIR . $si->default_home_page;
}
else
{
header('location: form.php?class_name=user_dashboard_v');
}
}
else
{
include_once 'content.php';
}
break;
case 'product':
include_once 'product.php';
break;
case 'form':
include_once 'form.php';
break;
case 'pform':
include_once __DIR__.'/public/public_form.php';
break;
default:
include_once 'content.php';
break;
}