diff --git a/src/bb-library/Box/Tools.php b/src/bb-library/Box/Tools.php index 9d88f0d43..de2dcf34a 100644 --- a/src/bb-library/Box/Tools.php +++ b/src/bb-library/Box/Tools.php @@ -117,29 +117,6 @@ class Box_Tools require_once $file; return new $class(); } - - /** - * Get client IP - * @return string - */ - public function getIpv4() - { - $ip = NULL; - if (isset($_SERVER) ) { - if (isset($_SERVER['REMOTE_ADDR']) ) { - $ip = $_SERVER['REMOTE_ADDR']; - } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) { - $ip = $_SERVER['HTTP_CLIENT_IP']; - } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { - $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; - $iplist = explode(',', $ip); - if(is_array($iplist)) { - $ip = trim(array_pop($iplist)); - } - } - } - return $ip; - } public function checkPerms($path, $perm = '0777') { diff --git a/src/bb-load.php b/src/bb-load.php index 48df4b187..b4f7160cf 100644 --- a/src/bb-load.php +++ b/src/bb-load.php @@ -54,160 +54,170 @@ function handler_exception($e) return false; } - $page = " - - -
- - - - - -%s
', $e->getMessage()); + + print sprintf('Powered by BoxBilling
%s
', $e->getMessage()); - - if(defined('BB_DEBUG') && BB_DEBUG) { - print sprintf('%s
Class: "%s"
', get_class($e)); - print sprintf('File: "%s"
', $e->getFile()); - print sprintf('Line: "%s"
', $e->getLine()); - print sprintf('Trace:%s', $e->getTraceAsString());
- }
- print sprintf('Powered by BoxBilling