You've already forked OpenShorte.old
Moved all configurations away from $GLOBALS to independent variables
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user