-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
32 lines (31 loc) · 737 Bytes
/
error.php
File metadata and controls
32 lines (31 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
ob_start();
require_once (__DIR__.'/scripts/config.php');
if(!$user->isLoggedin())
{
$user->redirect('index.php');
}
$user_id = $_SESSION['user_session'];
$result = $DB_con->prepare("SELECT customerEmail as UserName FROM customer WHERE customerID=:user_id union select staffEmail as UserName from Staff where staffID=:user_id");
$result->execute(array(":user_id"=>$user_id));
$userRow=$result->fetchObject();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="site.css">
<style>
</style>
</head>
<body>
<h1>Error Processing Request</h1>
<?php
echo $_GET['error'];
?>
<?php
$page_Content=ob_get_contents();
ob_end_clean();
$pagetitle="Error Page";
include("master.php");
?>
</body>
</html>