<?php

$self = (isset($_SERVER['PHP_SELF']))?$_SERVER['PHP_SELF']:'';
if (stripos($self,'/api/')){
	header('Content-Type: application/json');	
	exit(json_encode(array('status'=>FALSE,'message'=>'API method not found')));
}


$fname = explode('/index.php',$self);

if (empty($fname)) {
	$fname = '';
}else{
	$fname = $fname[0];
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Marks Management System</title>
<link rel="stylesheet" href="<?php echo $fname ?>/assets/base/vendors/bootstrap/css/bootstrap.min.css?ver=10"/>
<link rel="stylesheet" href="<?php echo $fname ?>/assets/admin/css/sb-admin-2.css?ver=10"/>
<style>
	body{
		background-color: #00BCD4;
	}
</style>
</head>

<body>

    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-4">
                <div class="panel panel-warning" style="margin-top: 20px;">
                    
                    <div class="panel-body">
                        <div style="margin: 10px">
                        	<img  src="<?php echo $fname ?>/assets/images/msulogo.jpg "/>
                        	<h4 style="display: inline">MSU Elearning</h4>
                        </div>
                        <div class="alert alert-warning"><h4>The page you requested was not found</h4></div>
                            <a href="<?php echo $fname ?>/" class="btn btn-success">Go Home</a>
                        
                    </div>
                </div>
            </div>
        </div>
    </div>

   

</body>

</html>



<?php
return;
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404 Page Not Found</title>
<style type="text/css">

::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }

body {
	background-color: #fff;
	margin: 40px;
	font: 13px/20px normal Helvetica, Arial, sans-serif;
	color: #4F5155;
}

a {
	color: #003399;
	background-color: transparent;
	font-weight: normal;
}

h1 {
	color: #444;
	background-color: transparent;
	border-bottom: 1px solid #D0D0D0;
	font-size: 19px;
	font-weight: normal;
	margin: 0 0 14px 0;
	padding: 14px 15px 10px 15px;
}

code {
	font-family: Consolas, Monaco, Courier New, Courier, monospace;
	font-size: 12px;
	background-color: #f9f9f9;
	border: 1px solid #D0D0D0;
	color: #002166;
	display: block;
	margin: 14px 0 14px 0;
	padding: 12px 10px 12px 10px;
}

#container {
	margin: 10px;
	border: 1px solid #D0D0D0;
	box-shadow: 0 0 8px #D0D0D0;
}

p {
	margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
	<div id="container">
		<h1><?php echo $heading; ?></h1>
		<?php echo $message; ?>
	</div>
</body>
</html>