]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_sponsor.php
A lot double-quotes rewritten to single-quotes, global fix for getMessage() calls
[mailer.git] / inc / modules / admin / what-lock_sponsor.php
index d16193365a7fc2caf512575a5f2d3deb1e352b37..e1daf83ea37fc365c6556a8987abac945a6525d7 100644 (file)
  * -------------------------------------------------------------------- *
  * 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!!!!!!            *
  * -------------------------------------------------------------------- *
 
 // 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', "<a href=\"mailto:".$email."\">{!__GENDER!} {!__SURNAME!} {!__FAMILY!}</a>");
+                               define('__EMAIL_LINK', '<a href="mailto:' . $email . '">{!__GENDER!} {!__SURNAME!} {!__FAMILY!}</a>');
 
                                // 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);
 }
 
 //