************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
if (isBooleanConstantAndTrue('mxchange_installing')) {
// While we are installing ouput other header than while it is installed... :-)
$OUT = "";
- foreach ($FATAL as $key=>$value) {
+ foreach ($FATAL as $key => $value) {
// Prepare content for the template
$content = array(
'key' => ($key + 1),
} elseif (isBooleanConstantAndTrue('mxchange_installed')) {
// Display all runtime fatal errors
$OUT = "";
- foreach ($FATAL as $key=>$value) {
+ foreach ($FATAL as $key => $value) {
// Prepare content for the template
$content = array(
'key' => ($key + 1),