X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-transfer.php;h=a3193b89b3462adac78641d3b30ce634058659ca;hp=ced8ed41a73b029df98c597c74f914ba5cca5a19;hb=61bddb167e29e7275f5a1c9fa8cb80431fa5ee6f;hpb=60494e212a67fe360bfbb481eb4928480a6f379b diff --git a/inc/modules/member/what-transfer.php b/inc/modules/member/what-transfer.php index ced8ed41a7..a3193b89b3 100644 --- a/inc/modules/member/what-transfer.php +++ b/inc/modules/member/what-transfer.php @@ -32,17 +32,12 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) -{ +if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} - elseif (!IS_LOGGED_IN()) -{ +} elseif (!IS_LOGGED_IN()) { LOAD_URL("modules.php?module=index"); -} - elseif ((!EXT_IS_ACTIVE("transfer")) && (!IS_ADMIN())) -{ +} elseif ((!EXT_IS_ACTIVE("transfer")) && (!IS_ADMIN())) { ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "transfer"); return; } @@ -62,7 +57,7 @@ $MODE = ""; if (!empty($_GET['mode'])) $MODE = $_GET['mode']; // Check for "faker" -if (($opt_in == 'N') && ($MODE == "new")) $MODE = ""; +if (($opt_in == "N") && ($MODE == "new")) $MODE = ""; switch ($MODE) { @@ -431,7 +426,7 @@ case "list_out": // List only outgoing transactions break; case "list_all": // List all transactions - // We fill a temporay table with data from both tables. This is much easier + // We fill a temporary table with data from both tables. This is much easier // to code and unstand by you as sub-SELECT queries. I know this is not the // fastest way but it shall be fine for now. // @@ -530,7 +525,7 @@ array($GLOBALS['userid'], $_CONFIG['transfer_max']), __FILE__, __LINE__); // Load final template LOAD_TEMPLATE("member_transfer_list"); - // At the end we don't need a temporay table in memory + // At the end we don't need a temporary table in memory $result = SQL_QUERY("DROP TABLE IF EXISTS "._MYSQL_PREFIX."_transfers_tmp", __FILE__, __LINE__); // Free some memory... @@ -593,14 +588,14 @@ case "": // Overview page switch ($opt_in) { case 'Y': - define('__TRANSFER_ALLOW_Y', " checked"); + define('__TRANSFER_ALLOW_Y', ' checked'); define('__TRANSFER_ALLOW_N', ""); define('__TRANSFER_NEW_LINK', "".TRANSFER_NOW_LINK.""); break; case 'N': define('__TRANSFER_ALLOW_Y', ""); - define('__TRANSFER_ALLOW_N', " checked"); + define('__TRANSFER_ALLOW_N', ' checked'); define('__TRANSFER_NEW_LINK', TRANSFER_PLEASE_ALLOW_OPT_IN); break; }