-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
45 lines (40 loc) · 2.01 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
<?php
require("functions.php");
if (file_exists("./install/index.php"))
{
header("Location: ./install");
die();
}
else
include("inc/connect.php");
$notheme = mysqli_fetch_array(mysqli_query($con, "SELECT `theme` FROM `settings` WHERE 1"))['theme'] == null;
$json = getThemeData($notheme ? "Modern" : mysqli_fetch_array(mysqli_query($con, "SELECT `theme` FROM `settings` WHERE 1"))['theme'], 'json');
?>
<html>
<title><?php echo mysqli_fetch_array(mysqli_query($con, "SELECT `title` FROM `settings` WHERE 1"))['title'] ?></title>
<style><?php echo getThemeData(mysqli_fetch_array(mysqli_query($con, "SELECT `theme` FROM `settings` WHERE 1"))['theme'], 'css') ?></style>
<script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<body>
<!--HEADER START-->
<?php
include (getLayoutData(mysqli_fetch_array(mysqli_query($con, "SELECT `layout` FROM `settings` WHERE 1"))['layout'], 'header', 'include'));
$adfly = mysqli_query($con, "SELECT `Adfly` FROM `settings` WHERE 1");
$adlink = mysqli_fetch_array($adfly);
?>
</div>
<!--HEADER END-->
<!--BODY START-->
<?php
include (getLayoutData(mysqli_fetch_array(mysqli_query($con, "SELECT `layout` FROM `settings` WHERE 1"))['layout'], 'body', 'include'));
echo "<br>";
echo "<br>";
echo "<br>";
echo mysqli_fetch_array(mysqli_query($con, "SELECT `footer` FROM `settings` WHERE 1"))['footer'] . " | MyMods © iLexiconn & TheGeekyGuy101";
echo "<br>";
echo "<br>";
$donation = mysqli_fetch_array(mysqli_query($con, "SELECT `donations` FROM `settings` WHERE 1"))['donations'];
if ($donation != null)
echo "<a href='$donation'><img src='https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif'/></a>"
?>
</body>
</html>