-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
89 lines (74 loc) · 2.36 KB
/
error.php
File metadata and controls
89 lines (74 loc) · 2.36 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
82
83
84
85
86
87
88
89
<?php
set_include_path(get_include_path().PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/includes/");
require "global.php";
$page->title = "An Error Occurred on ".$site->name;
$page->description = "An error occurred on $site->name.";
$page->id = "errorpage";
$page->keywords ="error a1 web consulting";
$page->add_stylesheet("/assets/styles/".$site->key.".css", "screen");
$msg = new a1_message;
$msg->from = "no-reply@a1webconsulting.com";
$msg->to = $site->emailaddress_webmaster;
$msg->subject = "Error occurred.";
if($_SERVER['REQUEST_METHOD'] == 'GET') {
if(sizeof($_GET) > 0){
$msg->add_key_value_pair("<b>GET</b>", "");
foreach($_GET as $key => $value){
$msg->add_key_value_pair($key, $value);
}
}
}
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$msg->add_key_value_pair("<b>POST</b>", "");
foreach($_POST as $key => $value){
$msg->add_key_value_pair($key, $value);
}
}
if(sizeof($_COOKIE) > 0){
// $msg->add_key_value_pair("<b>COOKIE</b>", "");
//} else {
$msg->add_key_value_pair("<b>COOKIE</b>", "");
foreach($_COOKIE as $key => $value){
$msg->add_key_value_pair($key, $value);
}
}
$msg->add_key_value_pair("<b>SERVER</b>", "");
foreach($_SERVER as $key => $value){
$msg->add_key_value_pair($key, $value);
}
$msg->send();
?>
<?php $page->prolog(); ?>
<div id="top"><p class="phone"><strong>Schedule a Free Consultation:</strong> <?php echo $site->phone; ?></p></div>
<div id="header_container">
<?php $page->header(); ?>
</div>
<div id="content_container" class="colmask leftmenu">
<div class="colright">
<div class="col1wrap">
<div id="content" class="col1">
<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>
<div class="breadcrumbs">
<ol>
<li><a href="/">Home</a> > </li>
<li>Error</li>
</ol>
</div>
</div>
</div>
<div class="col2">
<?php include "side-nav.php"; ?>
</div>
</div>
</div>
<div id="footer_container">
<?php include "footer.php"; ?>
</div>
<?php $page->epilog(); ?>