mirror of
https://github.com/EQMacEmu/magelo
synced 2026-08-21 00:26:05 -04:00
20 lines
No EOL
400 B
PHP
20 lines
No EOL
400 B
PHP
<?php
|
|
|
|
function debug($data){
|
|
print "<pre style='color:black;display:inline-block;'>";
|
|
print "Admin Debug Panel:\r\n";
|
|
print print_r($data);
|
|
print "</pre><br>";
|
|
}
|
|
function admindebug($content) {
|
|
if (isadmin()) {
|
|
debug($content);
|
|
}
|
|
}
|
|
function isadmin() {
|
|
global $adminIP;
|
|
if ($_SERVER['REMOTE_ADDR'] == $adminIP) {
|
|
return true;
|
|
}
|
|
return false;
|
|
} |