From f3ccb0a5ac747c8db584799b86baabc0934cafc3 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sat, 4 Aug 2018 14:54:06 -1000 Subject: [PATCH] initial commit everything i've done live on a web server accessible on my local LAN only --- adminlanding.php | 10 ++++++++++ connect.php-sample | 6 ++++++ footer.php | 1 + header.php | 22 +++++++++++++--------- index.php | 3 ++- 5 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 adminlanding.php create mode 100644 connect.php-sample diff --git a/adminlanding.php b/adminlanding.php new file mode 100644 index 0000000..81025d4 --- /dev/null +++ b/adminlanding.php @@ -0,0 +1,10 @@ +Welcome to the admin area!

'; +echo 'Title creator / editor here (work in progress)

'; +echo 'User editor here (not working yet)
'; +include_once ('footer.php'); +?> \ No newline at end of file diff --git a/connect.php-sample b/connect.php-sample new file mode 100644 index 0000000..7f6f27f --- /dev/null +++ b/connect.php-sample @@ -0,0 +1,6 @@ + diff --git a/footer.php b/footer.php index b1a0dbb..095b9bf 100644 --- a/footer.php +++ b/footer.php @@ -1,5 +1,6 @@
'; } diff --git a/header.php b/header.php index ffaad99..6f2e7d6 100644 --- a/header.php +++ b/header.php @@ -4,20 +4,24 @@ connect_errno){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } if (!$userid){ - echo 'Please login first'; - echo '
Username:
'; - echo 'Password:
'; - echo '
'; + echo 'Please login first
Aloha, and welcome to my Guild Wars stats tracker. Please login below.
'; + echo '
'; + echo '
Username:
Password:
'; + echo '


'; + echo 'If you haven\'t registered an account yet,
please click here to create one.
'; } else { - echo '' . $pagetitle . '
'; - echo '(Home) (SEARCH) (Logout ' . $uname . ')

'; + echo '' . $pagetitle . '
'; + echo '(Home) (Options) '; + if ($_SESSION['admin'] == 1){ + echo'(Administration) '; + } + echo '(Logout ' . $_SESSION['username'] . ')

'; } ?> \ No newline at end of file diff --git a/index.php b/index.php index a1bd06d..96579d6 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,4 @@ + here
'; } include_once ('footer.php'); -?> \ No newline at end of file +?>