clean up includes

This commit is contained in:
Ruan 2015-03-11 10:39:04 +02:00
parent d8bdfcec46
commit fa5d9b260c
6 changed files with 13 additions and 27 deletions

View File

@ -1,11 +1,8 @@
<?php include 'includes/head.php'; ?>
<?php include 'includes/header.php'; ?>
<head>
<title>Bans/Tempbans - <?php echo $name; ?></title>
<title>Tempbans - <?php echo $name; ?></title>
</head>
<?php
// <<-----------------mysql Database Connection------------>> //
require 'includes/data/database.php';
require 'includes/page.php';
$table = $table_bans;
$sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $table . '.uuid=' . $table_history . '.uuid ' . $active_query .
@ -14,11 +11,9 @@ $sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $t
if (!$result = $conn->query($sql)) {
die('Query error [' . $conn->error . ']');
}
?>
<body>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-lg-12">

View File

@ -1,6 +1,4 @@
<?php
include 'includes/data/settings.php';
?>
<?php require 'includes/data/settings.php'; ?>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

5
includes/page.php Normal file
View File

@ -0,0 +1,5 @@
<?php
require 'head.php';
require 'header.php';
require 'data/database.php';
?>

View File

@ -6,8 +6,6 @@
<body>
<div class="container">
<!-- Main Page -->
<div class="jumbotron">
<div style="text-align: center;"><h2>Welcome to <?php echo $name; ?>'s Ban List.</h2></div>
@ -15,7 +13,6 @@
</div>
</div>
<!-- /container -->
<?php
include 'includes/footer.php';
?>

View File

@ -1,11 +1,8 @@
<?php include 'includes/head.php'; ?>
<?php include 'includes/header.php'; ?>
<head>
<title>Mutes/TempMutes - <?php echo $name; ?></title>
<title>TempMutes - <?php echo $name; ?></title>
</head>
<?php
// <<-----------------mysql Database Connection------------>> //
require 'includes/data/database.php';
require 'includes/page.php';
$table = $table_mutes;
$sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $table . '.uuid=' . $table_history . '.uuid ' . $active_query .
@ -17,7 +14,6 @@ if (!$result = $conn->query($sql)) {
?>
<body>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-lg-12">

View File

@ -1,11 +1,8 @@
<?php include 'includes/head.php'; ?>
<?php include 'includes/header.php'; ?>
<head>
<title>Warnings - <?php echo $name; ?></title>
</head>
<?php
// <<-----------------mysql Database Connection------------>> //
require 'includes/data/database.php';
require 'includes/page.php';
$table = $table_warnings;
$sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $table . '.uuid=' . $table_history . '.uuid ' . $active_query .
@ -14,11 +11,9 @@ $sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $t
if (!$result = $conn->query($sql)) {
die('Query error [' . $conn->error . ']');
}
?>
<body>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-lg-12">