From 1dd25bf2c0249308e2f5806d38deeeeda7b29aba Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 7 Apr 2021 13:45:29 +0300 Subject: Add base url config --- config.php | 3 +++ templates/footer.php | 4 ++-- templates/header.php | 2 +- templates/panel.php | 14 ++++++-------- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/config.php b/config.php index 7555eee..eaaa132 100644 --- a/config.php +++ b/config.php @@ -5,6 +5,9 @@ $config = array( 'dsn' => 'pgsql:dbname=bugtracker;host=localhost;port=5432', 'username' => 'red', 'password' => 'red' + ), + 'urls' => array( + 'base' => 'http://localhost:8080' ) ); diff --git a/templates/footer.php b/templates/footer.php index 38ed8a6..72bd200 100644 --- a/templates/footer.php +++ b/templates/footer.php @@ -1,5 +1,5 @@
-

index

-

AGPL 3.0; Dobromir Petrov

+

'>index

+

/license/agpl-3.0-standalone.html'>AGPL 3.0; Dobromir Petrov

diff --git a/templates/header.php b/templates/header.php index 3a228e1..71bcbcc 100644 --- a/templates/header.php +++ b/templates/header.php @@ -4,7 +4,7 @@ localhost: ~red - + /style.css'> diff --git a/templates/panel.php b/templates/panel.php index b670442..c7fc578 100644 --- a/templates/panel.php +++ b/templates/panel.php @@ -3,16 +3,14 @@ session_start(); if (isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") { - echo "Welcome, $_SESSION[user_name] logout"; + echo "Welcome, $_SESSION[user_name] logout"; echo "

Create | View new issues | View active issues

"; } else { -?> -
- - - -
-"; +echo " "; +echo " "; +echo " "; +echo ""; } ?> -- cgit v1.2.1