You've already forked OpenShorte.old
							
							
		
			
				
	
	
		
			45 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
    if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {
 | 
						|
        header ( "Location: " . $config [ 'installation_path' ] . "/login" );
 | 
						|
        exit;
 | 
						|
    }
 | 
						|
    if ( isset ( $request_uri [ 1 ] ) ) {
 | 
						|
        switch ( $request_uri [ 1 ] ) {
 | 
						|
            case "manage":
 | 
						|
                include ( 'lib/php/manage.php' );
 | 
						|
                break;
 | 
						|
            case "insert":
 | 
						|
                include ( 'lib/php/management/insert.php' );
 | 
						|
                break;
 | 
						|
            case "edit":
 | 
						|
                include ( 'lib/php/management/edit.php' );
 | 
						|
                break;
 | 
						|
            default:
 | 
						|
                http_response_code ( 404 );
 | 
						|
                include ( 'errors/404.html' );
 | 
						|
                die ( );
 | 
						|
        }
 | 
						|
    }
 | 
						|
    else {
 | 
						|
?>
 | 
						|
<!DOCTYPE html>
 | 
						|
<html>
 | 
						|
 | 
						|
    <head>
 | 
						|
        <meta charset="UTF-8">
 | 
						|
        <link href="<?=$config['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
 | 
						|
        <link href="<?=$config['installation_path']?>/lib/css/main.css" rel="stylesheet">
 | 
						|
        <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="<?=$config['installation_path']?>/dashboard/manage">Open Management Console</a>
 | 
						|
    </body>
 | 
						|
 | 
						|
</html>
 | 
						|
<?php
 | 
						|
    }
 |