File: /home/barbeatleanalyti/public_html/baris.beatleanalytics.com/error_handle.php
<?php
# Fetch value from POST or GET Fields
if ($_SERVER['HTTP_HOST'] == '192.168.2.103') {
define ('ROOT_PATH','http://'.$_SERVER['HTTP_HOST'].'/Freelance');
} else {
define ('ROOT_PATH','http://'.$_SERVER['HTTP_HOST']);
}
$error = $_REQUEST["err"];
$msg = $_REQUEST["msg"];
$p = $_REQUEST["p"];
$ret_msg = $_REQUEST["ret_msg"];
$ret_msg = base64_decode(str_replace(" ","+",$_REQUEST["ret_msg"]));
if($msg != "" && $error > 0) { ?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>eWiz: Oops there is an error!</title>
<style type="text/css">
body {font-size:13px; font-family:Arial, Helvetica, sans-serif; color:#C9242A; background: url('<?php echo ROOT_PATH?>/theme/error_hand_images/error_pg_bg.jpg') repeat 0 0;margin:0; padding:0;}
.content-row2 {margin-top:100px;width:100%;height:250px;float:left;}
.hidden_err {height:30px;line-height:30px;font-weight:bold;}
h2 {font-family:Arial, Helvetica, sans-serif; font-size:25px; color:#C9242A;}
a {text-decoration: none;color:#444;font-size:16px;font-weight:bold;float:right;padding:5px 10px;}
a:hover {text-decoration:underline; color:#C9242A;}
</style>
</head>
<body>
<div class="hidden_err"><p style="display:none;"><?php echo $ret_msg?></p></div>
<div class="content-row2" align="center">
<div style="margin:0 auto;width:500px;height:250px;">
<?php if ($error=="1" && strlen($msg)>0) { ?>
<div style="float:left;padding:12px 0; width:200px;"><img src="<?=ROOT_PATH?>/theme/error_hand_images/warning_black.png" align="absmiddle"></div>
<div align="left" style="margin-left:10px;line-height:25px;font-size:14px;float:left;">
<h2>Oops!</h2>
<p><b><?=$msg?></b></p>
<!--<p><b>Please contact to administrator.</b></p> -->
</div>
<div style="float:left;margin:0px 15%;width:70%;height:3px;border-bottom:3px groove #eee;"> </div>
<div style="float:left;padding:12px 0;width:100%">
<div style="width:200px;">
<img src="<?=ROOT_PATH?>/theme/error_hand_images/gohome.png" align="absmiddle" alt="Home" title="Home">
<a href="<?=ROOT_PATH?>/index.php" style="text-decoration:underline;">Go to Home Page</a></div>
</div>
<?php }?>
</div>
</div>
</body>
</html>
<? } ?>