mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
clean up includes
This commit is contained in:
parent
d8bdfcec46
commit
fa5d9b260c
9
bans.php
9
bans.php
@ -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">
|
||||
|
@ -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
5
includes/page.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
require 'head.php';
|
||||
require 'header.php';
|
||||
require 'data/database.php';
|
||||
?>
|
@ -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';
|
||||
?>
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user