X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=e1daf83ea37fc365c6556a8987abac945a6525d7;hb=2f0357c7ac9da6c17d361b8e7cb0b1ad09eb85f6;hp=d16193365a7fc2caf512575a5f2d3deb1e352b37;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index d16193365a..e1daf83ea3 100644 --- a/inc/modules/admin/what-lock_sponsor.php +++ b/inc/modules/admin/what-lock_sponsor.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Sponsorenaccount aendern * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -38,13 +38,13 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } // Add description as navigation point -ADD_DESCR("admin", __FILE__); -$MSG = ""; +ADD_DESCR('admin', __FILE__); +$message = ''; if (REQUEST_ISSET_GET(('id'))) { // Check for selected sponsor @@ -87,10 +87,10 @@ if (REQUEST_ISSET_GET(('id'))) { array(bigintval(REQUEST_GET('id'))), __FILE__, __LINE__); } elseif (REQUEST_ISSET_POST(('no'))) { // No don't lock / unlock now! - LOAD_URL("modules.php?module=admin&what=list_sponsor&id=".bigintval(REQUEST_GET('id'))); + LOAD_URL('modules.php?module=admin&what=list_sponsor&id='.bigintval(REQUEST_GET('id'))); } else { // Create header and text messages - if ($status == "CONFIRMED") { + if ($status == 'CONFIRMED') { // Messages when sponsor's account is confirmed define('__HEADER_MESSAGE', getMessage('SPONSOR_LOCK_SPONSOR_HEADER')); define('__TEXT_MESSAGE' , getMessage('SPONSOR_LOCK_SPONSOR_TEXT')); @@ -101,27 +101,27 @@ if (REQUEST_ISSET_GET(('id'))) { } // Create email link - define('__EMAIL_LINK', "{!__GENDER!} {!__SURNAME!} {!__FAMILY!}"); + define('__EMAIL_LINK', '{!__GENDER!} {!__SURNAME!} {!__FAMILY!}'); // Display form - LOAD_TEMPLATE("admin_lock_sponsor"); + LOAD_TEMPLATE('admin_lock_sponsor'); } } else { // Cannot change status on unconfirmed or pending accounts! - $MSG = getMessage('ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS'); + $message = getMessage('ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS'); } } else { // Sponsor not found! - $MSG = sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval(REQUEST_GET('id'))); + $message = sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval(REQUEST_GET('id'))); } } else { // Not called by what-list_sponsor.php - $MSG = getMessage('ADMIN_CALL_NOT_DIRECTLY'); + $message = getMessage('ADMIN_CALL_NOT_DIRECTLY'); } -if (!empty($MSG)) { +if (!empty($message)) { // Output message - LOAD_TEMPLATE("admin_settings_saved", false, $MSG); + LOAD_TEMPLATE('admin_settings_saved', false, $message); } //