🚚 Move lib and cookies to a kernel folder
This commit is contained in:
parent
ec5372573b
commit
f0a169f306
15 changed files with 16 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php // admin.php :: primary administration script.
|
||||
|
||||
include('lib.php');
|
||||
include('cookies.php');
|
||||
include('kernel/lib.php');
|
||||
include('kernel/cookies.php');
|
||||
$link = opendb();
|
||||
$userrow = checkcookies();
|
||||
if ($userrow == false) { die("Please log in to the <a href=\"../login.php?do=login\">game</a> before using the control panel."); }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php // forum.php :: Internal forums script for the game.
|
||||
|
||||
include('lib.php');
|
||||
include('cookies.php');
|
||||
include('kernel/lib.php');
|
||||
include('kernel/cookies.php');
|
||||
$link = opendb();
|
||||
$userrow = checkcookies();
|
||||
if ($userrow == false) { display("The forum is for registered players only.", "Forum"); die(); }
|
||||
|
|
2
help.php
2
help.php
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
|
||||
$controlrow = mysqli_fetch_array($controlquery);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
|
||||
$controlrow = mysqli_fetch_array($controlquery);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
|
||||
$controlrow = mysqli_fetch_array($controlquery);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
|
||||
$controlrow = mysqli_fetch_array($controlquery);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
|
||||
$controlrow = mysqli_fetch_array($controlquery);
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php // index.php :: Primary program script, evil alien overlord, you decide.
|
||||
|
||||
if (file_exists('install.php')) { die("Please delete <b>install.php</b> from your Dragon Knight directory before continuing."); }
|
||||
include('lib.php');
|
||||
include('cookies.php');
|
||||
include('kernel/lib.php');
|
||||
include('kernel/cookies.php');
|
||||
$link = opendb();
|
||||
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
|
||||
$controlrow = mysqli_fetch_array($controlquery);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php // install.php :: creates/populates database tables on a new installation.
|
||||
|
||||
include('config.php');
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$start = getmicrotime();
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php // login.php :: Handles logins and cookies.
|
||||
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
if (isset($_GET["do"])) {
|
||||
if ($_GET["do"] == "login") { login(); }
|
||||
elseif ($_GET["do"] == "logout") { logout(); }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?
|
||||
|
||||
include('config.php');
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$prefix = $dbsettings["prefix"];
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?
|
||||
|
||||
include('config.php');
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
$prefix = $dbsettings["prefix"];
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php // users.php :: Handles user account functions.
|
||||
|
||||
include('lib.php');
|
||||
include('kernel/lib.php');
|
||||
$link = opendb();
|
||||
|
||||
if (isset($_GET["do"])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue