-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
56 lines (49 loc) · 1.66 KB
/
index.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
<?php
// THE FOLLOWING CODE IS FOR USER SESSION INFORMATION ONLY \\
define('CWROOT', __DIR__);
$IndexUse = "1";
require_once("config/ini.php");
require_once("config/session.php");
// INCLUDE DEFAULT WEBSITE CONFIGURATION \\
require_once("config/api.php");
require_once("config/default.php");
require_once("config/settings.php");
if($_GET['url'] == "Process" OR $_GET['url'] == "process"){
include("forms/main.php");
}else{
if($Website_Offline == "0"){
if($View_site == "1"){
if($CwPack == 1){
require_once("cwpack.php");
}else{
$time_end_Top = microtime_float();
require_once("template.php");
}
}else{
// SETS THE OFFLINE ARTICLE INFO \\
#$Offline_Article_Id = $Array['siteinfo']['other']['article'];
$Offline_Article_Id = "3";
$row = Cw_Fetch("SELECT * FROM articles WHERE id='$Offline_Article_Id'",$Array);
$Offline_Article = $row;
$Structure_Type = $OfflineTheme;
$THEME = "theme/$Structure_Type";
$Offline_Media_Code = $row['content']['code'];
$time_end_Top = microtime_float();
if($CwFail == "1"){
SiteOffline($Array);
}else{
if($OfflineTheme != ""){
include("theme/$OfflineTheme/layout.php");
}else{
include("theme/cwdefault/offline.php");
}
}
}
require_once("config/footer.php");
#include_once("config/online.php");
include_once("config/tracker.php");
}else{
SiteOffline($Array);
}
}
?>