Added server request vars, mostly to include the referer. Added timestamps and tweaked formatting slightly.
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@804 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -32,6 +32,10 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
function server_request_var($var) {
|
||||||
|
return (preg_match("/^HTTP/", $var));
|
||||||
|
}
|
||||||
|
|
||||||
function INTERNAL_ERROR($message, $exit = true, $drop = 0) {
|
function INTERNAL_ERROR($message, $exit = true, $drop = 0) {
|
||||||
echo '<DIV class="internal-error" style="color:#000; background:#c22; padding:0.5em 1.5em 0.5em 1.5em;">' . "\n";
|
echo '<DIV class="internal-error" style="color:#000; background:#c22; padding:0.5em 1.5em 0.5em 1.5em;">' . "\n";
|
||||||
echo '<H1 style="color:#000; margin-bottom:0.2em; font-size:2em;">INTERNAL ERROR:</H1>' . "\n";
|
echo '<H1 style="color:#000; margin-bottom:0.2em; font-size:2em;">INTERNAL ERROR:</H1>' . "\n";
|
||||||
@@ -62,9 +66,18 @@ function INTERNAL_ERROR($message, $exit = true, $drop = 0) {
|
|||||||
echo "</OL>\n";
|
echo "</OL>\n";
|
||||||
|
|
||||||
echo '<HR style="margin-top:1.0em; margin-bottom:0.5em;">' . "\nHTTP Request:\n";
|
echo '<HR style="margin-top:1.0em; margin-bottom:0.5em;">' . "\nHTTP Request:\n";
|
||||||
echo '<P><PRE style="color:#000; background:#c22;">' . "\n";
|
echo '<P><PRE style="color:#000; background:#c22; padding:0.5em 0 0 0;">' . "\n";
|
||||||
print_r($_REQUEST);
|
print_r($_REQUEST);
|
||||||
echo "\n</PRE>\n";
|
echo "</PRE>\n";
|
||||||
|
|
||||||
|
echo '<HR style="margin-top:1.0em; margin-bottom:0.5em;">' . "\nServer:\n";
|
||||||
|
echo '<P><PRE style="color:#000; background:#c22; padding:0.5em 0 0 0;">' . "\n";
|
||||||
|
print_r(array_intersect_key($_SERVER, array_flip(array_filter(array_keys($_SERVER), 'server_request_var'))));
|
||||||
|
echo "</PRE>\n";
|
||||||
|
|
||||||
|
echo '<HR style="margin-top:1.0em; margin-bottom:0.5em;">' . "\n";
|
||||||
|
echo 'Started: ' . date('c', $_SERVER['REQUEST_TIME']) . "<BR>\n";
|
||||||
|
echo 'Current: ' . date('c') . "<BR>\n";
|
||||||
|
|
||||||
echo '</DIV>';
|
echo '</DIV>';
|
||||||
if ($exit)
|
if ($exit)
|
||||||
|
|||||||
Reference in New Issue
Block a user