X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_other.php;h=d3df62edf920823a30d3c4763d9e9f11345efbc1;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=72e13eab9a90145875e63dfec4ae6828e32b5f8a;hpb=49c081caf258b57714b44904bb10f2deb851c508;p=mailer.git
diff --git a/inc/modules/admin/what-config_other.php b/inc/modules/admin/what-config_other.php
index 72e13eab9a..d3df62edf9 100644
--- a/inc/modules/admin/what-config_other.php
+++ b/inc/modules/admin/what-config_other.php
@@ -32,7 +32,7 @@
************************************************************************/
// 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") == "")) {
@@ -42,7 +42,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) {
}
// Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
// Stop saving data if one input field is !isset
if (isset($_POST['ok'])) {
@@ -56,7 +56,7 @@ if (isset($_POST['ok'])) {
}
// Online-Timeout shall be > 0 or your database will crow and crow and crow...
- if (!isset($_POST['online_timeout'])) { unset($_POST['ok']); }
+ if (!isset($_POST['online_timeout'])) { unset($_POST['ok']); }
// Chedck other timestamps (which can be zero!)
if (!isset($_POST['profile_lock'])) { unset($_POST['ok']); }
@@ -66,8 +66,6 @@ if (isset($_POST['ok'])) {
// Check other settings
if (!isset($_POST['max_send'])) { unset($_POST['ok']); }
- if (!isset($_POST['max_tlength'])) { unset($_POST['ok']); }
- if (!isset($_POST['unconfirmed'])) { unset($_POST['ok']); }
if (!isset($_POST['code_length'])) { unset($_POST['ok']); }
if (!isset($_POST['reject_url'])) { unset($_POST['ok']); }
}
@@ -92,91 +90,99 @@ if (isset($_POST['ok'])) {
define('_CFG_PROF_REUPDATE' , CREATE_TIME_SELECTIONS($_CONFIG['resend_profile_update'] , "resend_profile_update", "MWD"));
} else {
// Normal input boxes
- define('_CFG_ONLINE_TIMEOUT', " (".SECS.")");
- define('_CFG_URL_TLOCK' , " (".SECS.")");
- define('_CFG_PROFILE_LOCK' , " (".SECS.")");
- define('_CFG_PROFILE_UPDATE', " (".SECS.")");
- define('_CFG_PROF_REUPDATE' , " (".SECS.")");
+ define('_CFG_ONLINE_TIMEOUT', " ("._SECONDS.")");
+ define('_CFG_URL_TLOCK' , " ("._SECONDS.")");
+ define('_CFG_PROFILE_LOCK' , " ("._SECONDS.")");
+ define('_CFG_PROFILE_UPDATE', " ("._SECONDS.")");
+ define('_CFG_PROF_REUPDATE' , " ("._SECONDS.")");
}
- if ($_CONFIG['order_multi_page'] == 'N') {
- define('_CFG_ORDER_MULTI_N', ' checked');
+ if ($_CONFIG['order_multi_page'] == "N") {
+ define('_CFG_ORDER_MULTI_N', " checked=\"checked\"");
define('_CFG_ORDER_MULTI_Y', "");
} else {
define('_CFG_ORDER_MULTI_N', "");
- define('_CFG_ORDER_MULTI_Y', ' checked');
+ define('_CFG_ORDER_MULTI_Y', " checked=\"checked\"");
}
- if ($_CONFIG['autosend_active'] == 'N') {
- define('_CFG_AUTOSEND_ACTIVE_N', ' checked');
+ if ($_CONFIG['autosend_active'] == "N") {
+ define('_CFG_AUTOSEND_ACTIVE_N', " checked=\"checked\"");
define('_CFG_AUTOSEND_ACTIVE_Y', "");
} else {
define('_CFG_AUTOSEND_ACTIVE_N', "");
- define('_CFG_AUTOSEND_ACTIVE_Y', ' checked');
+ define('_CFG_AUTOSEND_ACTIVE_Y', " checked=\"checked\"");
}
- if ($_CONFIG['send_prof_update'] == 'N') {
- define('_CFG_SEND_UPDATE_N', ' checked');
+ if ($_CONFIG['send_prof_update'] == "N") {
+ define('_CFG_SEND_UPDATE_N', " checked=\"checked\"");
define('_CFG_SEND_UPDATE_Y', "");
} else {
define('_CFG_SEND_UPDATE_N', "");
- define('_CFG_SEND_UPDATE_Y', ' checked');
+ define('_CFG_SEND_UPDATE_Y', " checked=\"checked\"");
}
- if ($_CONFIG['admin_notify'] == 'N') {
- define('_CFG_ADMIN_NOTIFY_N', ' checked');
+ if ($_CONFIG['admin_notify'] == "N") {
+ define('_CFG_ADMIN_NOTIFY_N', " checked=\"checked\"");
define('_CFG_ADMIN_NOTIFY_Y', "");
} else {
define('_CFG_ADMIN_NOTIFY_N', "");
- define('_CFG_ADMIN_NOTIFY_Y', ' checked');
+ define('_CFG_ADMIN_NOTIFY_Y', " checked=\"checked\"");
}
if ($_CONFIG['css_php'] == "DIRECT") {
- define('_CFG_CSS_PHP_DIRECT', ' checked');
+ define('_CFG_CSS_PHP_DIRECT', " checked=\"checked\"");
define('_CFG_CSS_PHP_FILE', "");
} else {
define('_CFG_CSS_PHP_DIRECT', "");
- define('_CFG_CSS_PHP_FILE', ' checked');
+ define('_CFG_CSS_PHP_FILE', " checked=\"checked\"");
}
- if ($_CONFIG['guest_menu'] == 'Y') {
- define('_CFG_GUEST_MENU_ACTIVE', ' checked');
+ if ($_CONFIG['guest_menu'] == "Y") {
+ define('_CFG_GUEST_MENU_ACTIVE', " checked=\"checked\"");
define('_CFG_GUEST_MENU_INACTIVE', "");
} else {
define('_CFG_GUEST_MENU_ACTIVE', "");
- define('_CFG_GUEST_MENU_INACTIVE', ' checked');
+ define('_CFG_GUEST_MENU_INACTIVE', " checked=\"checked\"");
}
- if ($_CONFIG['member_menu'] == 'Y') {
- define('_CFG_MEMBER_MENU_ACTIVE', ' checked');
+ if ($_CONFIG['member_menu'] == "Y") {
+ define('_CFG_MEMBER_MENU_ACTIVE', " checked=\"checked\"");
define('_CFG_MEMBER_MENU_INACTIVE', "");
} else {
define('_CFG_MEMBER_MENU_ACTIVE', "");
- define('_CFG_MEMBER_MENU_INACTIVE', ' checked');
+ define('_CFG_MEMBER_MENU_INACTIVE', " checked=\"checked\"");
}
- if ($_CONFIG['youre_here'] == 'Y') {
- define('_CFG_YOURE_HERE_ACTIVE', ' checked');
+ if ($_CONFIG['youre_here'] == "Y") {
+ define('_CFG_YOURE_HERE_ACTIVE', " checked=\"checked\"");
define('_CFG_YOURE_HERE_INACTIVE', "");
} else {
define('_CFG_YOURE_HERE_ACTIVE', "");
- define('_CFG_YOURE_HERE_INACTIVE', ' checked');
+ define('_CFG_YOURE_HERE_INACTIVE', " checked=\"checked\"");
}
- if ($_CONFIG['show_timings'] == 'Y') {
- define('_CFG_SHOW_TIMINGS_Y', ' checked');
+ if ($_CONFIG['show_timings'] == "Y") {
+ define('_CFG_SHOW_TIMINGS_Y', " checked=\"checked\"");
define('_CFG_SHOW_TIMINGS_N', "");
} else {
define('_CFG_SHOW_TIMINGS_Y', "");
- define('_CFG_SHOW_TIMINGS_N', ' checked');
+ define('_CFG_SHOW_TIMINGS_N', " checked=\"checked\"");
+ }
+
+ if ($_CONFIG['show_points_unconfirmed'] == "Y") {
+ define('_CFG_SHOW_POINTS_UNCONFIRMED_Y', " checked=\"checked\"");
+ define('_CFG_SHOW_POINTS_UNCONFIRMED_N', "");
+ } else {
+ define('_CFG_SHOW_POINTS_UNCONFIRMED_Y', "");
+ define('_CFG_SHOW_POINTS_UNCONFIRMED_N', " checked=\"checked\"");
}
if ($_CONFIG['mailid_error_redirect'] == 'INDEX') {
- define('_CFG_MAILID_REDIRECT_INDEX', ' checked');
+ define('_CFG_MAILID_REDIRECT_INDEX', " checked=\"checked\"");
define('_CFG_MAILID_REDIRECT_REJECT', "");
} else {
define('_CFG_MAILID_REDIRECT_INDEX', "");
- define('_CFG_MAILID_REDIRECT_REJECT', ' checked');
+ define('_CFG_MAILID_REDIRECT_REJECT', " checked=\"checked\"");
}
for ($i = 0; $i <= 5; $i++) {