-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
81 lines (71 loc) · 3.03 KB
/
error.php
File metadata and controls
81 lines (71 loc) · 3.03 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
set_include_path(get_include_path().PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/includes/");
include "global.php";
$page_name = "An error occurred. - ".$site_name;
$page_keywords = "error a1 web consulting";
$page_description = "An error occurred on $site_name.";
$page_author = $site_author;
$emailaddress = "no-reply@".$site_domain;
$subject = "Error occurred.";
$emailmessage = "URL: ".$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI']."<br />"
."ipaddress: ".$_SERVER['REMOTE_ADDR']."<br />"
."browser: ".$_SERVER['HTTP_USER_AGENT']."<br />";
if( isset($_SERVER['HTTP_REFERER'])) {$emailmessage .= "referrer: ".$_SERVER['HTTP_REFERER']."<br />"; }
//$emailmessage .= var_dump($_REQUEST);//.var_dump($_SERVER);
// echo $emailmessage;
// die();
include('Mail.php');
$mail = Mail::factory("mail");
$headers = array(
"From" => $emailaddress,
"Subject" => $site_domain.": ".$subject,
"MIME-Version" => "1.0",
"Content-type" => "text/html; charset=iso-8859-1"
);
$send = $mail->send( "webmaster@a1webconsulting.com", $headers, $emailmessage );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $page_name ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<?php echo $page_keywords; ?>" />
<meta name="description" content="<?php echo $page_description; ?>" />
<meta name="author" content="<?php echo $site_author; ?>" />
<link rel="shortcut icon" href="<?php echo $site_favicon; ?>" type="image/x-icon" />
<link type="text/css" rel="Stylesheet" href="/assets/styles/<?php echo $site_key; ?>.css" />
</head>
<body id="contactpage">
<div id="wrapper_container">
<div id="wrapper">
<div id="header_container">
<?php include "header.php" ?>
</div>
<div id="content_container">
<div id="content">
<?php include "banner.php" ?>
<div id="breadcrumb">
<ul>
<li><a href="/" title="<?php echo $site_name; ?>"><?php echo $site_name; ?></a></li>
<li><a href="#" title="Error">Error Occured</a></li>
</ul>
</div>
<h1>An error has occurred.</h1>
<p><?php echo $site_name; ?> has been contacted.</p>
<h2>Search</h2>
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="31" maxlength="255" value="" />
<input type="submit" value="Search" />
<input type="hidden" name="sitesearch" value="<?php echo $site_domain; ?>" checked="checked" />
</form>
<img src="/assets/images/plane.gif" alt="" style="float: right; bottom: 0; right: 0;" />
<br class="clear" />
</div>
</div>
<div id="footer_container">
<?php include "footer.php" ?>
</div>
</div>
</div>
<?php include "google-analytics.php" ?>
</body></html>