One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
inc
/
Edit File:
template_start_200728.php
<?php /** * template_start.php * * Author: pixelcave * * The first block of code used in every page of the template * */ session_start(); // setcookie( 'ace.fontSize', 18 ); $GLOBALS['g_success'] = 0; if(isset($_SESSION['success'])){ setcookie('chk_success', 'ok'); if(isset($_COOKIE['chk_success'])){ $GLOBALS['g_success'] = (isset($_GET['success'])) ? $_GET['success'] : "b" ; unset($_SESSION['success']); } } include 'odbc.php'; if ($_SESSION['session']) $session=updateSession($_SESSION["session"]); else $session=''; // exit(); // print_r($_POST); // exit(); // $username=$_POST['uid']; // $password=$_POST['password']; // include("odbc.php"); // include ("sessions.php"); // $_SESSION["session"]=login($username,$password); /* Primary navigation array (the primary navigation will be created automatically based on this array, up to 3 levels deep) */ $user = get_user_full($_SESSION['session']); $roles = (int)$user['idRoles']; $primary_nav = array( array( 'name' => 'Dashboard', 'url' => 'index.php?page=dashboard', 'icon' => 'gi gi-home' ), array( 'url' => 'separator', ) ); if($roles !== 1){ array_push($primary_nav, array( 'name' => 'Site Visit', 'icon' => 'gi gi-bookmark', 'url' => 'index.php?page=edg/site' ) ); } array_push($primary_nav, array( 'name' => 'Application', 'icon' => 'gi gi-bookmark', 'url' => 'index.php?page=edg/main' ) ); $access_utility = array(4,5); if(in_array($roles, $access_utility)){ array_push($primary_nav, array( 'name' => 'Utility', 'icon' => 'fa fa-cog', 'sub' => array( array( 'name' => 'User Management', 'sub' => array( array( 'name' => 'Users', 'url' => 'index.php?page=utility/userList' ), array( 'name' => 'User Roles', 'url' => 'index.php?page=utility/userRole' ) ) ), array( 'name' => 'Landing Page', 'sub' => array( array( 'name' => 'News & Event', 'url' => 'index.php?page=utility/newsPage' ), array( 'name' => 'Needs For Declaration', 'url' => 'index.php?page=utility/declarationPage' ), array( 'name' => 'By Law/Regulations/Circulars', 'url' => 'index.php?page=utility/lawPage' ) ) ), array( 'name' => 'Master Codes', 'sub' => array( array( 'name' => 'Dangerous Goods', 'url' => 'index.php?page=kod/kodDG' ), array( 'name' => 'Countries', 'url' => 'index.php?page=kod/kodNegara' ), array( 'name' => 'Ports', 'url' => 'index.php?page=kod/kodPort' ), array( 'name' => 'Vessels', 'url' => 'index.php?page=kod/kodKapal' ), array( 'name' => 'Companies', 'url' => 'index.php?page=kod/kodSyarikat' ), array( 'name' => 'Company Types', 'url' => 'index.php?page=kod/kodJenisSyarikat' ), array( 'name' => 'Marine Facilties', 'url' => 'index.php?page=kod/kodMF' ), array( 'name' => 'Vessel Types', 'url' => 'index.php?page=kod/kodJenisKapal' ), array( 'name' => 'Operation Types', 'url' => 'index.php?page=kod/kodJenisOps' ), array( 'name' => 'Call Purposes', 'url' => 'index.php?page=kod/kodCP' ), array( 'name' => 'Packing Types', 'url' => 'index.php?page=kod/kodPacking' ), array( 'name' => 'CTU Types', 'url' => 'index.php?page=kod/kodCTU' ), array( 'name' => 'Dimensions', 'url' => 'index.php?page=kod/kodDimension' ), array( 'name' => 'Weight Units', 'url' => 'index.php?page=kod/kodWeight' ) ) ) ) ) ); } ?> <!DOCTYPE html> <!--[if IE 9]> <html class="no-js lt-ie10"> <![endif]--> <!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <title><?php echo $template['title'] ?></title> <meta name="description" content="<?php echo $template['description'] ?>"> <meta name="author" content="<?php echo $template['author'] ?>"> <meta name="robots" content="<?php echo $template['robots'] ?>"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0"> <!-- Icons --> <!-- The following icons can be replaced with your own, they are used by desktop and mobile browsers --> <link rel="shortcut icon" href="img/favicon.png"> <link rel="apple-touch-icon" href="img/icon57.png" sizes="57x57"> <link rel="apple-touch-icon" href="img/icon72.png" sizes="72x72"> <link rel="apple-touch-icon" href="img/icon76.png" sizes="76x76"> <link rel="apple-touch-icon" href="img/icon114.png" sizes="114x114"> <link rel="apple-touch-icon" href="img/icon120.png" sizes="120x120"> <link rel="apple-touch-icon" href="img/icon144.png" sizes="144x144"> <link rel="apple-touch-icon" href="img/icon152.png" sizes="152x152"> <link rel="apple-touch-icon" href="img/icon180.png" sizes="180x180"> <!-- END Icons --> <!-- Stylesheets --> <!-- Bootstrap is included in its original form, unaltered --> <link rel="stylesheet" href="css/bootstrap.min.css"> <!-- Related styles of various icon packs and plugins --> <link rel="stylesheet" href="css/plugins.css"> <!-- The main stylesheet of this template. All Bootstrap overwrites are defined in here --> <link rel="stylesheet" href="css/main.css"> <!-- Include a specific file here from css/themes/ folder to alter the default theme of the template --> <?php if ($template['theme']) { ?><link rel="stylesheet" href="css/themes/<?php echo $template['theme']; ?>.css" id="theme-link"><?php } ?> <!-- The themes stylesheet of this template (for using specific theme color in individual elements - must included last) --> <link rel="stylesheet" href="css/themes.css"> <!-- END Stylesheets --> <!-- My Own Custom Sheet --> <link rel="stylesheet" href="custom.css"> <!-- Modernizr (browser feature detection library) --> <script src="js/vendor/modernizr-2.8.3.min.js"></script> </head> <body>
Simpan