Example #1
0
that the session data directory exists.

EOM;
        } else {
            $msg = 'Unknown Error';
        }
    }
}
/**
 * Make sure that the next time an error occurs, we reset
 * these error data.
 */
unset($_SESSION['exception']);
unset($_SESSION['errstr']);
$time_start = explode(' ', PAGE_PARSE_START_TIME);
$page = new htmlmotor("BEERFEED");
$page->Header('BEERFEED');
?>

<table bgcolor="white" width="100%">
<tr>
<td>
<h2 align='center'>Unexpected Error</h2>
<p align='center'>
  We are very sorry, but an unexpected error has occurred in
  the application.  This occurs either because a page was
  used improperly and visited directly instead of through the
  web site or because of a system error in the application.
  The website administrators have been
  notified and will look into the problem as soon as possible.
  We apologise for the inconvenience and kindly ask you to try
Example #2
0
 * Author: Lars Jacobsen
 * 
 *
 **/
ob_start();
ini_set('date.timezone', 'Europe/Copenhagen');
define('PAGE_PARSE_START_TIME', microtime());
error_reporting(E_ALL & ~E_NOTICE);
require_once 'fnc/session.fnc.php';
require_once 'phpqrcode/qrlib.php';
require_once 'fnc/solo.inc.php';
require_once 'fnc/error_handler.inc.php';
require_once 'fnc/dbhandler.fnc.php';
require_once 'fnc/user_manager.inc.php';
require_once 'fnc/htmlmotor.inc.php';
$usermgr = new UserManager();
$userid = $usermgr->sessionLoggedIn(session_id());
$time_start = explode(' ', PAGE_PARSE_START_TIME);
$body_html = isset($_REQUEST['page']) ? $_REQUEST['page'] : "front.php";
$page = new htmlmotor("BrewFeed");
$page->Header();
if ($userid === -1) {
    $page->MenuOutNot();
} else {
    $page->MenuOut();
}
require_once "mod/" . $body_html;
$time_end = explode(' ', microtime());
$parse_time = number_format($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0]), 3);
$page->Footer($parse_time);
ob_end_flush();
Example #3
0
that the session data directory exists.

EOM;
        } else {
            $msg = 'Unknown Error';
        }
    }
}
/**
 * Make sure that the next time an error occurs, we reset
 * these error data.
 */
unset($_SESSION['exception']);
unset($_SESSION['errstr']);
$time_start = explode(' ', PAGE_PARSE_START_TIME);
$page = new htmlmotor("BrewFeed");
$page->Header();
if ($userid === -1) {
    $page->MenuOutNot();
} else {
    $page->MenuOut();
}
echo <<<HTML_OUT

<table align="center" bgcolor="white" height="700px" width="100%" border="0">
  <tr>
    <td>

<form id="login" action="index.php?page=liusco.php" method="post">
    <h1>BEERFEED</h1>
    <h3>{$msg}</h3>