You've already forked OpenShorte.old
Website refactored
Prepared the website structure for the new layout
This commit is contained in:
33
lib/php/dashboard.php
Normal file
33
lib/php/dashboard.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {
|
||||
header ( "Location: " . $GLOBALS [ 'config' ] [ 'installation_path' ] . "/login" );
|
||||
}
|
||||
if ( isset ( $GLOBALS [ 'request_uri' ] [ 1 ] ) ) {
|
||||
switch ( $GLOBALS [ 'request_uri' ] [ 1 ] ) {
|
||||
case "manage":
|
||||
include ( 'lib/php/manage.php' );
|
||||
break;
|
||||
case "insert":
|
||||
include ( 'lib/php/insert.php' );
|
||||
break;
|
||||
default:
|
||||
http_response_code ( 404 );
|
||||
include ( 'errors/404.html' );
|
||||
die ( );
|
||||
}
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<title>Dashboard Home | <?=$GLOBALS['config']['website_name']?></title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="<?=$GLOBALS['config']['installation_path']?>/dashboard/manage">Open Management Console</a>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
}
|
Reference in New Issue
Block a user