}
elseif (!IS_LOGGED_IN())
{
- LOAD_URL(URL."/modules.php?module=index");
+ LOAD_URL("modules.php?module=index");
}
elseif ((!EXT_IS_ACTIVE("newsletter")) && (!IS_ADMIN()))
{
SQL_FREERESULT($result);
// Remember charge value
-define('__CHARGE_VALUE', TRANSLATE_COMMA($CONFIG['nl_charge']));
+define('__CHARGE_VALUE', TRANSLATE_COMMA($_CONFIG['nl_charge']));
-if ((isset($_POST['ok'])) && ($status == "Y") && ($span == "0"))
+if ((isset($_POST['ok'])) && ($status == 'Y') && ($span == "0"))
{
// Save request
$result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET nl_timespan='".(ONE_DAY * 30)."' WHERE userid=%d LIMIT 1",
// Set status message and submit button
switch ($status)
{
- case "Y": // Receives the newsletter
+ case 'Y': // Receives the newsletter
define('__STATUS_VALUE', NL_MEMBER_ON);
define('__UNTIL_VALUE', "");
define('NL_SUBMIT', NL_MEMBER_SUBMIT_OFF);
break;
- case "N": // Does not receive the newsletter
+ case 'N': // Does not receive the newsletter
define('__STATUS_VALUE', NL_MEMBER_OFF);
define('__UNTIL_VALUE', MAKE_DATETIME($until, "2"));
define('NL_SUBMIT', NL_MEMBER_SUBMIT_ON);