0
0

Moved all configurations away from $GLOBALS to independent variables

This commit is contained in:
Bryan Pedini
2019-07-18 11:38:03 +02:00
parent f2a56c2abc
commit 68884270f3
9 changed files with 44 additions and 44 deletions

View File

@@ -1,10 +1,10 @@
<?php
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {
header ( "Location: " . $GLOBALS [ 'config' ] [ 'installation_path' ] . "/login" );
header ( "Location: " . $config [ 'installation_path' ] . "/login" );
exit;
}
if ( isset ( $GLOBALS [ 'request_uri' ] [ 1 ] ) ) {
switch ( $GLOBALS [ 'request_uri' ] [ 1 ] ) {
if ( isset ( $request_uri [ 1 ] ) ) {
switch ( $request_uri [ 1 ] ) {
case "manage":
include ( 'lib/php/manage.php' );
break;
@@ -27,15 +27,15 @@
<head>
<meta charset="UTF-8">
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
<link href="<?=$GLOBALS['config']['installation_path']?>/lib/css/manage.css" rel="stylesheet">
<title>Dashboard Home | <?=$GLOBALS['config']['website_name']?></title>
<link href="<?=$config['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
<link href="<?=$config['installation_path']?>/lib/css/manage.css" rel="stylesheet">
<title>Dashboard Home | <?=$config['website_name']?></title>
</head>
<body>
<div class="userbar">
</div>
<a href="<?=$GLOBALS['config']['installation_path']?>/dashboard/manage">Open Management Console</a>
<a href="<?=$config['installation_path']?>/dashboard/manage">Open Management Console</a>
</body>
</html>