************************************************************************/
// Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) {
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
} elseif ((!EXT_IS_ACTIVE("other")) || (GET_EXT_VERSION("other") == "")) {
}
if ($_CONFIG['order_multi_page'] == "N") {
- define('_CFG_ORDER_MULTI_N', ' checked');
+ define('_CFG_ORDER_MULTI_N', " checked");
define('_CFG_ORDER_MULTI_Y', "");
} else {
define('_CFG_ORDER_MULTI_N', "");
- define('_CFG_ORDER_MULTI_Y', ' checked');
+ define('_CFG_ORDER_MULTI_Y', " checked");
}
if ($_CONFIG['autosend_active'] == "N") {
- define('_CFG_AUTOSEND_ACTIVE_N', ' checked');
+ define('_CFG_AUTOSEND_ACTIVE_N', " checked");
define('_CFG_AUTOSEND_ACTIVE_Y', "");
} else {
define('_CFG_AUTOSEND_ACTIVE_N', "");
- define('_CFG_AUTOSEND_ACTIVE_Y', ' checked');
+ define('_CFG_AUTOSEND_ACTIVE_Y', " checked");
}
if ($_CONFIG['send_prof_update'] == "N") {
- define('_CFG_SEND_UPDATE_N', ' checked');
+ define('_CFG_SEND_UPDATE_N', " checked");
define('_CFG_SEND_UPDATE_Y', "");
} else {
define('_CFG_SEND_UPDATE_N', "");
- define('_CFG_SEND_UPDATE_Y', ' checked');
+ define('_CFG_SEND_UPDATE_Y', " checked");
}
if ($_CONFIG['admin_notify'] == "N") {
- define('_CFG_ADMIN_NOTIFY_N', ' checked');
+ define('_CFG_ADMIN_NOTIFY_N', " checked");
define('_CFG_ADMIN_NOTIFY_Y', "");
} else {
define('_CFG_ADMIN_NOTIFY_N', "");
- define('_CFG_ADMIN_NOTIFY_Y', ' checked');
+ define('_CFG_ADMIN_NOTIFY_Y', " checked");
}
if ($_CONFIG['css_php'] == "DIRECT") {
- define('_CFG_CSS_PHP_DIRECT', ' checked');
+ define('_CFG_CSS_PHP_DIRECT', " checked");
define('_CFG_CSS_PHP_FILE', "");
} else {
define('_CFG_CSS_PHP_DIRECT', "");
- define('_CFG_CSS_PHP_FILE', ' checked');
+ define('_CFG_CSS_PHP_FILE', " checked");
}
if ($_CONFIG['guest_menu'] == "Y") {
- define('_CFG_GUEST_MENU_ACTIVE', ' checked');
+ define('_CFG_GUEST_MENU_ACTIVE', " checked");
define('_CFG_GUEST_MENU_INACTIVE', "");
} else {
define('_CFG_GUEST_MENU_ACTIVE', "");
- define('_CFG_GUEST_MENU_INACTIVE', ' checked');
+ define('_CFG_GUEST_MENU_INACTIVE', " checked");
}
if ($_CONFIG['member_menu'] == "Y") {
- define('_CFG_MEMBER_MENU_ACTIVE', ' checked');
+ define('_CFG_MEMBER_MENU_ACTIVE', " checked");
define('_CFG_MEMBER_MENU_INACTIVE', "");
} else {
define('_CFG_MEMBER_MENU_ACTIVE', "");
- define('_CFG_MEMBER_MENU_INACTIVE', ' checked');
+ define('_CFG_MEMBER_MENU_INACTIVE', " checked");
}
if ($_CONFIG['youre_here'] == "Y") {
- define('_CFG_YOURE_HERE_ACTIVE', ' checked');
+ define('_CFG_YOURE_HERE_ACTIVE', " checked");
define('_CFG_YOURE_HERE_INACTIVE', "");
} else {
define('_CFG_YOURE_HERE_ACTIVE', "");
- define('_CFG_YOURE_HERE_INACTIVE', ' checked');
+ define('_CFG_YOURE_HERE_INACTIVE', " checked");
}
if ($_CONFIG['show_timings'] == "Y") {
- define('_CFG_SHOW_TIMINGS_Y', ' checked');
+ define('_CFG_SHOW_TIMINGS_Y', " checked");
define('_CFG_SHOW_TIMINGS_N', "");
} else {
define('_CFG_SHOW_TIMINGS_Y', "");
- define('_CFG_SHOW_TIMINGS_N', ' checked');
+ define('_CFG_SHOW_TIMINGS_N', " checked");
}
if ($_CONFIG['mailid_error_redirect'] == 'INDEX') {
- define('_CFG_MAILID_REDIRECT_INDEX', ' checked');
+ define('_CFG_MAILID_REDIRECT_INDEX', " checked");
define('_CFG_MAILID_REDIRECT_REJECT', "");
} else {
define('_CFG_MAILID_REDIRECT_INDEX', "");
- define('_CFG_MAILID_REDIRECT_REJECT', ' checked');
+ define('_CFG_MAILID_REDIRECT_REJECT', " checked");
}
for ($i = 0; $i <= 5; $i++) {