-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
82 lines (74 loc) · 2.53 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?PHP
ob_start();
session_start();
header("Cache-control: private");
header("Cache-control: max-age=3600");
@date_default_timezone_set('Europe/Helsinki');
$_SESSION[TimeStart] = gettimeofday();
require("config.php");
include("includes/banned.php");
include("includes/sql_check.php");
include("includes/xss_check.php");
include("includes/mmw-func.php");
include("includes/engine.php");
// To Look After All
if($mmw[look_after_all] == 'yes') {
writelog("look_after_all","<b>".urldecode('http://'.$_SERVER["SERVER_ADDR"].$_SERVER["REQUEST_URI"])."</b>");
}
// Check For Installed
if(is_file("includes/installed.php")) {
include("includes/installed.php");
}
else {
header('Location: install.php');
}
// Start Header
if(is_file("$mmw[theme_dir]/header.php")) {
include("$mmw[theme_dir]/header.php");
}
else {
die("$sql_die_start ErroR Theme!<br>Cant find <b>$mmw[theme_dir]/header.php</b>! $sql_die_end");
}
// Start Body
if(isset($_GET[news])) {
include("modules/news_full.php");
}
elseif(isset($_GET[forum])) {
include("modules/forum_full.php");
}
elseif(isset($_GET[op])) {
$op = preg_replace("/[^a-zA-Z0-9_-]/",'',$_GET[op]);
if(is_file("modules/$op.php")) {include("modules/$op.php");}
elseif(is_file("modules/$op.mmw")) {mmw("modules/$op.mmw");}
else {echo "$die_start Request is False!<br><a href=' http://geoiptool.com/en/?ip=$_SERVER[REMOTE_ADDR]'>Now we have your IP Address!</a> $die_end";}
}
else {
if(is_file("modules/$mmw[home_page].php")) {include("modules/$mmw[home_page].php");}
elseif(is_file("modules/$mmw[home_page].mmw")) {mmw("modules/$mmw[home_page].mmw");}
}
// Start Pop Under
if($mmw[popunder]=='yes' && $mmw[popunder_check]=='yes' && empty($_SESSION[user])) {
mmw("includes/popunder.mmw");
}
elseif($mmw[popunder]=='yes' && $mmw[popunder_check]!='yes') {
mmw("includes/popunder.mmw");
}
else {
echo "<!-- MyMuWeb PopUnder Turn Off -->";
}
// ADS by Vaflan
if($mmw['thm_name']!='Default' && $mmw['thm_version']!='2.0' && $mmw['thm_creator']!='Vaflan') {
echo '<div style="text-align:center;padding:2px;">';
echo '<script type="text/javascript">google_ad_client="pub-4674738152966972"; google_ad_slot="4128955460"; google_ad_width=468; google_ad_height=60;</script>';
echo '<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
echo '</div>';}
// Start Footer
if(is_file("$mmw[theme_dir]/footer.php")) {
include("$mmw[theme_dir]/footer.php");
}
else {
die("$sql_die_start ErroR Theme!<br>Cant find <b>$mmw[theme_dir]/footer.php</b>! $sql_die_end");
}
mssql_close($mssql_connect);
ob_end_flush();
?>