redirection of invalid or deleted mail orders improved, several code conventions...
authorRoland Häder <roland@mxchange.org>
Wed, 5 Mar 2008 21:00:24 +0000 (21:00 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 5 Mar 2008 21:00:24 +0000 (21:00 +0000)
55 files changed:
inc/config.php
inc/db/lib-mysql3.php
inc/doubler_send.php
inc/extensions.php
inc/extensions/ext-bonus.php
inc/extensions/ext-other.php
inc/extensions/ext-sql_patches.php
inc/footer.php
inc/functions.php
inc/gen_sql_patches.php
inc/install-inc.php
inc/language/de.php
inc/libs/output_functions.php
inc/libs/register_functions.php
inc/libs/security_functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-adminedit.php
inc/modules/admin/what-admins_contact.php
inc/modules/admin/what-autopurge.php
inc/modules/admin/what-config_admin.php
inc/modules/admin/what-config_autopurge.php
inc/modules/admin/what-config_beg.php
inc/modules/admin/what-config_birthday.php
inc/modules/admin/what-config_bonus.php
inc/modules/admin/what-config_cache.php
inc/modules/admin/what-config_doubler.php
inc/modules/admin/what-config_extensions.php
inc/modules/admin/what-config_holiday.php
inc/modules/admin/what-config_order.php
inc/modules/admin/what-config_other.php
inc/modules/admin/what-config_points.php
inc/modules/admin/what-config_rewrite.php
inc/modules/admin/what-guestedit.php
inc/modules/admin/what-memedit.php
inc/modules/admin/what-repair_amenu.php
inc/modules/admin/what-repair_amnu.php
inc/modules/admin/what-repair_gmenu.php
inc/modules/admin/what-repair_gmnu.php
inc/modules/admin/what-repair_mmenu.php
inc/modules/admin/what-repair_mmnu.php
inc/modules/guest/what-register.php
inc/modules/member/what-categories.php
inc/modules/member/what-html_mail.php
inc/modules/member/what-transfer.php
inc/phpmailer/class.phpmailer.php
inc/phpmailer/class.pop3.php
inc/phpmailer/examples/test1.php
inc/phpmailer/test/phpmailer_test.php
inc/phpmailer/test/phpunit.php
inc/rdf.class.php
inc/session.php
mailid.php
templates/de/html/admin/admin_config_other.tpl
templates/de/html/show_timings.tpl

index ace37e5d152d028281ea063624f41bfd3d54236f..8c7af1fbfba12fe745e39cbb5fa2a7247dce962d 100644 (file)
@@ -58,7 +58,7 @@ define('COPY', "&copy; 2003 - 2008, by <A href=\"http://www.mxchange.org\" targe
 @error_reporting(0);
 
 // CFG: REGISTER-GLOBALS
-@import_request_variables('');
+@import_request_variables("");
 
 // CFG: SITE-KEY
 define('SITE_KEY', "gg42ny8-4yng23498-mf423igum-mtu248utn42-mf4839gun43");
index 0cff40c6fc061fc5840336ba23c4ebd714e352b0..513137e8b437c9ec6c92964b5147eb6fbabf386b 100644 (file)
@@ -70,7 +70,7 @@ function SQL_QUERY($sql_string, $F, $L)
                        fwrite($fp, "Module=".$GLOBALS['module']."\n");
                        $OK = true;
                }
-               fwrite($fp, $F."(LINE=".$L."|NUM=".SQL_NUMROWS($result)."|AFFECTED=".SQL_AFFECTEDROWS()."): ".str_replace('\r', '', str_replace('\n', " ", $sql_string))."\n");
+               fwrite($fp, $F."(LINE=".$L."|NUM=".SQL_NUMROWS($result)."|AFFECTED=".SQL_AFFECTEDROWS()."): ".str_replace('\r', "", str_replace('\n', " ", $sql_string))."\n");
                fclose($fp);
        }
 
@@ -140,7 +140,7 @@ function SQL_FETCHARRAY($res=false, $nr=0, $remove_numerical=true)
                // Shall we remove numerical data here automatically?
                if ($remove_numerical)
                {
-                       // So let's remove all numerical elements to save memory!
+                                // So let's remove all numerical elements to save memory!
                        $max = count($row);
                        for ($idx = 0; $idx < ($max / 2); $idx++)
                        {
@@ -237,7 +237,7 @@ function SQL_QUERY_ESC($qstring, $data, $file, $line, $run=true, $strip=true)
        // Debugging
        //
        //$fp = fopen(PATH."escape_debug.log", 'a') or mxchange_die("Cannot write debug.log!");
-       //fwrite($fp, $file."(".$line."): ".str_replace('\r', '', str_replace('\n', " ", $eval))."\n");
+       //fwrite($fp, $file."(".$line."): ".str_replace('\r', "", str_replace('\n', " ", $eval))."\n");
        //fclose($fp);
        eval($eval);
        if ($run)
index e7ad280fcbfa836189f2e659ae72c99cc2c3f102..8aab915b5fae453da849a917739a0f9a832f68a4 100644 (file)
@@ -32,8 +32,7 @@
  ************************************************************************/
 
 // 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);
 }
@@ -43,8 +42,7 @@ $jackpot = "0"; $user = "0";
 
 // Get total points of the doubler itself
 $DOUBLER_POINTS = DOUBLER_GET_TOTAL_POINTS_LEFT();
-if ($DOUBLER_POINTS == 0)
-{
+if ($DOUBLER_POINTS == 0) {
        // Exit here to prevent some SQL errors (SQL_QUERY_ESC doen't insert zeros! We need to fix this...)
        return;
 }
@@ -143,7 +141,7 @@ if (((SQL_NUMROWS($result_total) > 0) && ($_CONFIG['doubler_sent_all'] == 'Y'))
                        if (($user > 0) && ($user >= $points) && (!$OK) && ($_CONFIG['doubler_uid'] > 0) && ($uid != $_CONFIG['doubler_uid']))
                        {
                                // Add points to used points
-                               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET used_points=used_points+%s WHERE userid='' LIMIT 1",
+                               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET used_points=used_points+%s WHERE userid='%d' LIMIT 1",
                                 array($points, $_CONFIG['doubler_uid']), __FILE__, __LINE__);
 
                                // Update mediadata as well
index ddb3cb813ed8bd688f9239b8089b9eaa8fe0e7b6..991742b34425e96c7ca0c2b7b3b30b3eb3ab34e0 100644 (file)
@@ -65,7 +65,7 @@ function EXTENSION_REGISTER($ext_name, $id, $dry_run=false)
                foreach ($EXT_VER_HISTORY as $EXT_VER)
                {
                        require($file);
-                       if (((GET_EXT_VERSION("sql_patches") != "") && ($_CONFIG['verbose_sql'] == 'Y')) || (!EXT_IS_ACTIVE("sql_patches")))
+                       if (((GET_EXT_VERSION("sql_patches") != '') && ($_CONFIG['verbose_sql'] == 'Y')) || (!EXT_IS_ACTIVE("sql_patches")))
                        {
                                if (!empty($UPDATE_NOTES))
                                {
index a03d7672f49253a8ad43957a21be44f2ef89e6a6..06e52585f0c21118298cf545026447381c43c0dc 100644 (file)
@@ -52,7 +52,7 @@ switch ($EXT_LOAD_MODE)
 case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
        // SQL commands to run
        $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu VALUES (NULL,'email','send_bonus','Bonusmail senden',5,'Versenden Sie hier Bonus-Mails an alle Mitglieder oder nur an alle aus einer Kategorie. Es spielt keine Rolle, wie viele Mails bereits versendet worden, Sie k&ouml;nnen hier immer senden.')";
-       $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu VALUES (NULL,'main','bonus','Bonuspunkte',7,'Y','Y','',0)";
+       $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu VALUES (NULL,'main','bonus','Bonuspunkte',7,'Y','Y', '', 0)";
        $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bonus";
        $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bonus (
 id bigint(20) NOT NULL auto_increment,
@@ -162,7 +162,7 @@ KEY userid (userid)
 
        case "0.2.3": // SQL queries for v0.2.3
                $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_member_menu WHERE action='main' AND what='bonus' LIMIT 1";
-               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu VALUES (NULL,'main','bonus','Aktiv-Rallye',7,'Y','Y','',0)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu VALUES (NULL,'main','bonus','Aktiv-Rallye',7,'Y','Y', '', 0)";
 
                // Update notes (these will be set as task text!)
                $UPDATE_NOTES = "Aktiv-Rallye mit Klick-Verg&uuml;tung hinzugef&uuml;gt.";
index 019523e693680d288869180622311fad2f09db43..01ad655b2cd8c6174f4256ed6911e5190db47b7f 100644 (file)
@@ -39,13 +39,13 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])))
 }
 
 // Version number
-$EXT_VERSION = "0.1.8";
+$EXT_VERSION = "0.1.9";
 
 // Auto-set extension version
 if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
 
 // Version history array (add more with , "0.1" and so on)
-$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8");
+$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9");
 
 switch ($EXT_LOAD_MODE)
 {
@@ -174,13 +174,21 @@ case "update": // Update an extension
                // Update notes (these will be set as task text!)
                $UPDATE_NOTES = "Die sonstigen Einstellungen lassen sich nun nur noch &auml;ndern, wenn die Erweiterung <strong>other</strong> auch installiert ist. Anderfalls gibt es einen SQL-Fehler beim Speichern und GROSS_GESCHRIEBENE Worte im Formular.";
                break;
+
+       case "0.1.9": // SQL queries for v0.1.9
+               $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD mailid_error_redirect ENUM('index', 'reject') NOT NULL DEFAULT 'index'";
+
+               // Update notes (these will be set as task text!)
+               $UPDATE_NOTES = "Bei fehlerhafter Mail w&auml;hrend der Best&auml;tigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.";
+               break;
        }
        break;
 
 default: // Do stuff when extension is loaded
        $dummy = LOAD_CONFIG();
-       $_CONFIG['max_comma']  = $dummy['max_comma'];  // Maximum numbers behind commata
-       $_CONFIG['reject_url'] = $dummy['reject_url']; // Default rejection URL
+       $_CONFIG['max_comma']                           = $dummy['max_comma'];  // Maximum numbers behind commata
+       $_CONFIG['reject_url']                          = $dummy['reject_url']; // Default rejection URL
+       $_CONFIG['mailid_error_redirect']       = $dummy['mailid_error_redirect']; // Default rejection URL
        define('__CURRENCY', $dummy['currency']);     // This is the currency for fees! They shall normally remain in real money currencies...
        unset($dummy);
        break;
index a4b5179c539057bbb149378c517aa65f8d919b06..08c7bf96d9609977634359ebf704cd890863704e 100644 (file)
@@ -532,7 +532,7 @@ default: // Do stuff when extension is loaded
        $dummy = LOAD_CONFIG();
 
        // When the sql_patches is not installed we cannot load it's configuration... *sigh*
-       if (GET_EXT_VERSION("sql_patches") != "") {
+       if (GET_EXT_VERSION("sql_patches") != '') {
                $_CONFIG['ext_autopurge']     = $dummy['ext_autopurge'];
                $_CONFIG['mails_page']        = $dummy['mails_page'];
                $_CONFIG['index_home']        = $dummy['index_home'];
index 85ebb5be438e37a5517ba945f8ed461532595638..e1edeabfd94108f20850500c5b5e8a9991db8d5b 100644 (file)
@@ -53,7 +53,7 @@ if (($footer != "1") && ($footer != "2") && ($CSS != "1")) {
        }
 
        // Shall we display the parsing time and number of queries?
-       if ((isset($_CONFIG['show_timings'])) && ($_CONFIG['show_timings'] == "Y")) {
+       if ((isset($_CONFIG['show_timings'])) && ($_CONFIG['show_timings'] == 'Y')) {
                // Then display it here
                DISPLAY_PARSING_TIME_FOOTER();
        }
index a1495ccf0d2e789300700edd62d3143451d74774..459c6962d510c5a59e978d2bebebc04823a1be77 100644 (file)
@@ -71,18 +71,15 @@ function OPEN_TABLE($PERCENT = "", $CLASS = "", $ALIGN="left", $VALIGN="", $td_o
 
        // Vertical align is given
        if (!empty($VALIGN))  $OUT .= " valign=\"".$VALIGN."\"";
-       $OUT .= ">
-<TR>
-  <TD";
+       $OUT .= ">\n<TR>\n<TD";
        if (!empty($ALIGN)) $OUT .=" align=\"".$ALIGN."\"";
        $OUT .= " class=\"".$CLASS."\">";
-       OUTPUT_HTML($OUT);
+       OUTPUT_HTML($OUT);
 }
 
 // Close a table (you may want to add some footer stuff here)
 function CLOSE_TABLE($ADD="") {
-       OUTPUT_HTML("  </TD>
-</TR>");
+       OUTPUT_HTML("  </TD>\n</TR>");
        if (!empty($ADD)) OUTPUT_HTML($ADD);
        OUTPUT_HTML("</TABLE>");
 }
@@ -140,9 +137,9 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) {
                }
 
                // Compile and run finished rendered HTML code
-               while (strpos($OUTPUT, "{!") > 0) {
+               while (strpos($OUTPUT, '{!') > 0) {
                        $eval = "\$OUTPUT = \"" . COMPILE_CODE(addslashes($OUTPUT)) . "\";";
-                       @eval($eval);
+                       eval($eval);
                }
 
                // Output code here, DO NOT REMOVE! ;-)
@@ -154,9 +151,9 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) {
                }
 
                // Compile and run finished rendered HTML code
-               while (strpos($OUTPUT, "{!") > 0) {
+               while (strpos($OUTPUT, '{!') > 0) {
                        $eval = "\$OUTPUT = \"" . COMPILE_CODE(addslashes($OUTPUT)) . "\";";
-                       @eval($eval);
+                       eval($eval);
                }
 
                // Output code here, DO NOT REMOVE! ;-)
@@ -179,8 +176,7 @@ function OUTPUT_RAW ($HTML) {
 }
 
 // Add a fatal error message to the queue array
-function ADD_FATAL ($message, $extra="")
-{
+function ADD_FATAL ($message, $extra="") {
        global $FATAL;
        if (empty($extra)) {
                // Regular text message to add to $FATAL
@@ -284,12 +280,12 @@ function LOAD_TEMPLATE($template, $return=false, $content="") {
                $tmpl_file = implode("", file($file));
 
                // Replace ' to our own chars to preventing them being quoted
-               while (strpos($tmpl_file, "\'") !== false) { $tmpl_file = str_replace("\'", "{QUOT}", $tmpl_file); }
+               while (strpos($tmpl_file, "\'") !== false) { $tmpl_file = str_replace("\'", '{QUOT}', $tmpl_file); }
 
                // Do we have to compile the code?
                if ((strpos($tmpl_file, "\$") !== false) || (strpos($tmpl_file, '{--') !== false) || (strpos($tmpl_file, '--}') > 0)) {
                        // Okay, compile it!
-                       $tmpl_file = "\$ret=\"".COMPILE_CODE(addslashes($tmpl_file))."\";";
+                       $tmpl_file = "\$ret=\"" . COMPILE_CODE(addslashes($tmpl_file)) . "\";";
                        eval($tmpl_file);
                } else {
                        // Simply return loaded code
@@ -329,7 +325,7 @@ function LOAD_TEMPLATE($template, $return=false, $content="") {
 // Send mail out to an email address
 function SEND_EMAIL($TO, $SUBJECT, $MSG, $HTML='N', $FROM="") {
        // Compile subject line (for POINTS constant etc.)
-       $eval = "\$SUBJECT = \"".COMPILE_CODE(addslashes($SUBJECT))."\";";
+       $eval = "\$SUBJECT = \"" . COMPILE_CODE(addslashes($SUBJECT)) . "\";";
        eval($eval);
        $SUBJECT = html_entity_decode($SUBJECT);
 
@@ -951,11 +947,11 @@ function COMPILE_CODE($code, $simple = false, $constants = true, $full = true) {
        if ($constants) {
                // BEFORE 0.2.1 : Language and data constants
                // WITH 0.2.1+  : Only language constants
-               $code = str_replace("{--", '".', str_replace("--}", '."', $code));
+               $code = str_replace('{--', '".', str_replace('--}', '."', $code));
 
                // BEFORE 0.2.1 : Not used
                // WITH 0.2.1+  : Data constants
-               $code = str_replace("{!", '".', str_replace("!}", '."', $code));
+               $code = str_replace('{!', '".', str_replace("!}", '."', $code));
        }
 
        // Compile QUOT and other non-HTML codes
@@ -965,7 +961,7 @@ function COMPILE_CODE($code, $simple = false, $constants = true, $full = true) {
        }
 
        // But shall I keep simple quotes for later use?
-       if ($simple) $code = str_replace("\'", "{QUOT}", $code);
+       if ($simple) $code = str_replace("\'", '{QUOT}', $code);
 
        // Find $content[bla][blub] entries
        @preg_match_all('/\$(content|DATA)((\[([a-zA-Z0-9-_]+)\])*)/', $code, $matches);
@@ -1152,7 +1148,7 @@ function ADD_SELECTION($type, $DEFAULT, $prefix="", $id="0")
                $OUT .= "      <OPTION value=\"Y\"";
                if ($DEFAULT == 'Y') $OUT .= " selected=\"selected\"";
                $OUT .= ">".YES."</OPTION>
-      <OPTION value=\"N\"";
+                       <OPTION value=\"N\"";
                if ($DEFAULT == 'N') $OUT .= " selected=\"selected\"";
                $OUT .= ">".NO."</OPTION>\n";
                break;
@@ -1210,7 +1206,7 @@ function GEN_RANDOM_CODE($length, $code, $uid, $DATA="")
        if ($len == 0) $len = 10;
 
        // Cut off requested counts of number
-       $return = substr(str_replace('.', '', $rcode), 0, $len);
+       $return = substr(str_replace('.', "", $rcode), 0, $len);
 
        // Done building code
        return $return;
@@ -1942,7 +1938,7 @@ function ADD_URL_DATA($URL)
                if ((!empty($_GET['refid'])) && (strpos($URL, "refid=") == 0)) {
                        // Cookie found in URL
                        $ADD .= $BIND."refid=".bigintval($_GET['refid']);
-               } elseif ((GET_EXT_VERSION("sql_patches") != "") && ($_CONFIG['def_refid'] > 0)) {
+               } elseif ((GET_EXT_VERSION("sql_patches") != '') && ($_CONFIG['def_refid'] > 0)) {
                        // Not found! So let's set default here
                        $ADD .= $BIND."refid=".$_CONFIG['def_refid'];
                }
@@ -2068,7 +2064,7 @@ function set_session ($var, $value) {
                //* DEBUG: */ echo "UNSET:".$var."=".get_session($var)."<br />\n";
                unset($_SESSION[$var]);
                return session_unregister($var);
-       } elseif (("".$value."" != "") && (!isSessionVariableSet($var))) {
+       } elseif (("".$value."" != '') && (!isSessionVariableSet($var))) {
                // Set session
                //* DEBUG: */ echo "SET:".$var."=".$value."<br />\n";
                $_SESSION[$var] =  $value;
index 1e402e0fa28c5366217d4d849b57599fdd23ec69..2e59c8da538be64c34d2e16e8f7cfc4c727628e7 100644 (file)
@@ -97,7 +97,7 @@ if (empty($_CONFIG['file_hash']))
 
                 //* DEBUG: */ unlink($file);
                 //* DEBUG: */ $test = hexdec(get_session('u_hash')) / hexdec($secretKey);
-                //* DEBUG: */ $test = generateHash(str_replace('.', '', $test));
+                //* DEBUG: */ $test = generateHash(str_replace('.', "", $test));
                 //* DEBUG: */ die("Secret-Key: ".$secretKey."<br>Cookie: ".get_session('u_hash')."<br>Test: ".$test);
 
                 // Write $file_hash to database
index 9d9f1c165ab948f7c993ba98882843644b9e625c..22205b1fc325f64994669bf012e80efb4b72f42f 100644 (file)
@@ -401,7 +401,7 @@ if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndT
                                        }
                                }
                        }
-                       if ((sizeof($FATAL) > 0) || ($FATAL[0] != ""))
+                       if ((sizeof($FATAL) > 0) || ($FATAL[0] != ''))
                        {
                                $OUT = "";
                                foreach ($FATAL as $value)
index e5ab9f4a3e340ee2a2c318fdc092747a86991ce0..fc034cec84013a3e2dfe52fbca80da8db559b017 100644 (file)
@@ -722,9 +722,7 @@ define('LATEST_PATCH_INSTALLED', "Es wurde bereits die Datenbank aktualisiert!")
 define('PATCH_LISTED', "Anbei eine Liste der noetigen Dateien:");
 define('NO_PATCHES_APPLIED', "Keine Patches wurden ausgef&uuml;hrt!");
 define('LOAD_URL_ERROR_1', "Konnte nicht weiterleiten, da bereits Kopfinformationen gesendet wurden! <A href=\"");
-define('LOAD_URL_ERROR_2', "\">Bitte klicken Sie hier</A>, um zur URL zu kommen.<br />
-<br />
-Danke.");
+define('LOAD_URL_ERROR_2', "\">Bitte klicken Sie hier</A>, um zur URL zu kommen.<br />\n<br />\nDanke.");
 define('GUEST_STATS', "Statistiken unseres {!MT_WORD2!}");
 define('GUEST_STATS_MONTHLY', "Mitgliederverteilung auf Kalendermonate");
 define('GUEST_STATS_CATS', "Mitgliederverteilung auf Mail-Kategorien");
@@ -827,9 +825,9 @@ define('MEMBER_ORDER_PAGE1_NOTE', "Geben Sie hier die ersten ein bis drei Stelle
 <br />
 Beispiele:
 <UL>
-  <LI><strong>1</strong> : Sendet nur an Mitglieder, deren Postleitzahl mit 1 anf&auml;ngt.</LI>
-  <LI><strong>12</strong> : Sendet nur an Mitglieder, deren Postleitzahl mit 12 anf&auml;ngt.</LI>
-  <LI><strong>123</strong> : Sendet nur an Mitglieder, deren Postleitzahl mit 123 anf&auml;ngt.</LI>
+       <LI><strong>1</strong> : Sendet nur an Mitglieder, deren Postleitzahl mit 1 anf&auml;ngt.</LI>
+       <LI><strong>12</strong> : Sendet nur an Mitglieder, deren Postleitzahl mit 12 anf&auml;ngt.</LI>
+       <LI><strong>123</strong> : Sendet nur an Mitglieder, deren Postleitzahl mit 123 anf&auml;ngt.</LI>
 </UL>
 <br />
 Oder geben Sie nichts ein, wenn Sie diese Option nicht w&uuml;nschen.");
@@ -1096,11 +1094,14 @@ define('CONTACT_USER', "Mitglied kontaktieren");
 define('ADMIN_USER_CONTACTED', "Das Mitglied wurde per EMail kontaktiert.");
 define('ADMIN_CONTACT_USER_SUBJECT', "Nachricht vom {!MT_WORD!} {!MAIN_TITLE!}");
 define('MEMBER_CANNOT_LOAD_PROFILE', "Fehler beim Laden des Mitgliederprofiles. Bitte Support benachrichten.");
-define('FOOTER_STATS_RUNTIME', "Laufzeit:");
-define('FOOTER_STATS_SQL_QUERIES', "SQL-Abfragen:");
-define('FOOTER_STATS_NUM_TEMPLATES', "Templates:");
-define('FOOTER_STATS_SECS', "Sek.");
-define('ADMIN_OPTION_FOOTER_STATS', "Skript-Statistiken im Seitenfuss einblenden (n&uuml;tzlich zum Debuggen)");
+define('SHOW_TIMINGS_RUNTIME', "Laufzeit:");
+define('SHOW_TIMINGS_SQL_QUERIES', "SQL-Abfragen:");
+define('SHOW_TIMINGS_NUM_TEMPLATES', "Templates:");
+define('SHOW_TIMINGS_SECS', "Sek.");
+define('ADMIN_OPTION_SHOW_TIMINGS', "Skript-Statistiken im Seitenfuss einblenden (n&uuml;tzlich zum Debuggen)");
+define('ADMIN_OPTION_MAILID_REDIRECT', "Soll bei fehlerhafter/gel&ouml;schter Mailbuchung beim Best&auml;tigen die Mail auf die Hauptseite oder Ablehnungsseite weitergleitet werden?");
+define('ADMIN_CONFIG_MAILID_REDIRECT_INDEX', "Auf Hauptseite weiterleiten.");
+define('ADMIN_CONFIG_MAILID_REDIRECT_REJECT', "Auf Ablehnungsseite umleiten.");
 
 //
 ?>
index 060927966717e3db8bd44fb4eb41cf748e44cbe1..ab24e8fb3e4d0b3972af97ba10248ba35c93d52a 100644 (file)
@@ -57,7 +57,7 @@ function compile_html($code, $simple=false)
        global $SEC_CHARS;
 
        // Compile constants
-       $code = str_replace("{--", '".', str_replace("--}", '."', $code));
+       $code = str_replace('{--', '".', str_replace('--}', '."', $code));
 
        // Compile QUOT and other non-HTML codes
        foreach ($SEC_CHARS['to'] as $k=>$from)
@@ -67,7 +67,7 @@ function compile_html($code, $simple=false)
        }
 
        // But keep simple quotes for later use
-       if ($simple) $code = str_replace("'", "{QUOT}", $code);
+       if ($simple) $code = str_replace("'", '{QUOT}', $code);
 
        // Return compiled code
        return $code;
@@ -146,7 +146,7 @@ function get_template ($template, $return=false, $content="")
        {
                // The local file does exists so we load it. :)
                $tmpl_file = implode("", file($file));
-               $tmpl_file = str_replace("'", "{QUOT}", $tmpl_file);
+               $tmpl_file = str_replace("'", '{QUOT}', $tmpl_file);
 
                // Compile and run code
                $ret = COMPILE_CODE(addslashes($tmpl_file), false, true);
index 4e6e52f4c43a57b553bd5ae67e7e38f839c3e85b..d64d8273b32e86895cc9060e0a6234d635e1f413 100644 (file)
@@ -136,11 +136,11 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
 
                        if (($_POST['cat'][$id] == 'Y') || (($_CONFIG['register_default'] == 'Y') && (empty($_POST['cat'][$id]))))
                        {
-                               $content['def_y'] = " checked";
+                               $content['def_y'] = ' checked';
                        }
                         else
                        {
-                               $content['def_n'] = " checked";
+                               $content['def_n'] = ' checked';
                        }
 
                        // Load template and switch color
index b46309ee9291bb8fe15e22141dcabedbb8131b39..190a369e5abebcde7f3e28004fbfb23aba3a7d41 100644 (file)
@@ -89,14 +89,14 @@ if (!isset($_COOKIE))
 global $SEC_CHARS, $URL_CHARS;
 $SEC_CHARS = array(
        // The chars we are looking for...
-       'from' => array("{", "}", "/", ".", "'", "$", "(", ")", "{--", "--}", "%", ";", "[", "]", ":", "--"),
+       'from' => array("{", "}", "/", ".", "'", "$", "(", ")", '{--', '--}', "%", ";", "[", "]", ":", "--"),
        // ... and we will replace to.
        'to'   => array(
                "{OPEN_ANCHOR2}",
                "{CLOSE_ANCHOR2}",
                "{SLASH}",
                "{DOT}",
-               "{QUOT}",
+               '{QUOT}',
                "{DOLLAR}",
                "{OPEN_ANCHOR}",
                "{CLOSE_ANCHOR}",
index 385f7375d9e220eae2883a071cf78b17ec2886e1..dd93fcee633ec8db69b8cc955b4fb49adeaa1347 100644 (file)
@@ -334,9 +334,9 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                        $menuDesription[$menu] = $descr;
                                }
                                $OUT .= "<TR>
-  <TD class=\"admin_menu\" colspan=\"2\">
-    <NOBR>&nbsp;<STRONG>&middot;</STRONG>&nbsp;";
-                               if (($menu == $act) && (empty($wht)))
+       <TD class=\"admin_menu\" colspan=\"2\">
+               <NOBR>&nbsp;<STRONG>&middot;</STRONG>&nbsp;";
+                                       if (($menu == $act) && (empty($wht)))
                                {
                                        $OUT .= "<STRONG>";
                                }
@@ -345,7 +345,7 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                        $OUT .= "[&nbsp;<A href=\"".URL."/modules.php?module=admin&amp;action=".$menu."\">";
                                }
                                $OUT .= $title;
-                               if (($menu == $act) && (empty($wht)))
+                                       if (($menu == $act) && (empty($wht)))
                                {
                                        $OUT .= "</STRONG>";
                                }
@@ -362,10 +362,10 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                        $menuDesription = array();
                                        $menuTitle = array(); $SUB = true;
                                        $OUT .= "<TR>
-  <TD width=\"10\" class=\"seperator\">&nbsp;</TD>
-  <TD class=\"admin_menu\">
-    <TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_menu_sub\">\n";
-                                       while (list($wht_sub, $title_what, $desc_what) = SQL_FETCHROW($result_what))
+       <TD width=\"10\" class=\"seperator\">&nbsp;</TD>
+       <TD class=\"admin_menu\">
+               <TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_menu_sub\">\n";
+                                               while (list($wht_sub, $title_what, $desc_what) = SQL_FETCHROW($result_what))
                                        {
                                                // Filename
                                                $INC = sprintf(PATH."inc/modules/admin/what-%s.php", $wht_sub);
@@ -385,8 +385,8 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                                        $menuTitle[$wht_sub]        = $title_what;
                                                        $menuDesription[$wht_sub] = $desc_what;
                                                        $OUT .= "<TR>
-  <TD class=\"admin_menu\" colspan=\"2\">
-    <NOBR>&nbsp;<STRONG>--&gt;</STRONG>&nbsp;";
+       <TD class=\"admin_menu\" colspan=\"2\">
+               <NOBR>&nbsp;<STRONG>--&gt;</STRONG>&nbsp;";
                                                        if ($readable)
                                                        {
                                                                if ($wht == $wht_sub)
@@ -426,7 +426,7 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                        // Free memory
                                        SQL_FREERESULT($result_what);
                                        $OUT .= "    </TABLE>
-  </TD>
+       </TD>
 </TR>\n";
                                }
                                $OUT .= "<TR><TD height=\"7\" colspan=\"2\"></TD></TR>\n";
@@ -473,8 +473,7 @@ function ADD_MEMBER_SELECTION_BOX($add_all = false, $return = false, $none = fal
        // Remeber options in constant
        define('_MEMBER_SELECTION', $OUT);
 
-       if (!$return)
-       {
+       if (!$return) {
                // Display selection box
                define('__LANG_VALUE', GET_LANGUAGE());
 
@@ -483,8 +482,7 @@ function ADD_MEMBER_SELECTION_BOX($add_all = false, $return = false, $none = fal
        }
 }
 //
-function ADMIN_MENU_SELECTION($MODE, $default="", $defid="")
-{
+function ADMIN_MENU_SELECTION($MODE, $default="", $defid="") {
        $wht = "what != ''";
        if ($MODE == "action") $wht = "what='' AND action !='login'";
        $result = SQL_QUERY_ESC("SELECT %s, title FROM "._MYSQL_PREFIX."_admin_menu WHERE ".$wht." ORDER BY sort",
@@ -495,7 +493,7 @@ function ADMIN_MENU_SELECTION($MODE, $default="", $defid="")
                $OUT = "<SELECT name=\"".$MODE."_menu";
                if ((!empty($defid)) || ($defid == "0")) $OUT .= "[".$defid."]";
                $OUT .= "\" size=\"1\" class=\"admin_select\">
-  <OPTION value=\"\">".SELECT_NONE."</OPTION>\n";
+       <OPTION value=\"\">".SELECT_NONE."</OPTION>\n";
                while (list($menu, $title) = SQL_FETCHROW($result))
                {
                        $OUT .= "  <OPTION value=\"".$menu."\"";
index 4ba25cae160f45e43764803d108fdd77752e3006..605f525a1b1acffc171de080f05fe625175a667e 100644 (file)
@@ -217,7 +217,7 @@ function OUTPUT_SELECTED_TASKS($_POST, $result_tasks)
                                $title = TASK_NO_TITLE;
 
                                // Shall I list SQL commands assigned to an extension installation or update task?
-                               if (((GET_EXT_VERSION("sql_patches") != "") && ($_CONFIG['verbose_sql'] == 'Y')) || (!EXT_IS_ACTIVE("sql_patches")))
+                               if (((GET_EXT_VERSION("sql_patches") != '') && ($_CONFIG['verbose_sql'] == 'Y')) || (!EXT_IS_ACTIVE("sql_patches")))
                                {
                                        $ext_name = substr($subj, 1, strpos($subj, ":") - 1);
                                        if ($type == "EXTENSION")
index 761e902496f60d9393053f69619076b3ea5911e4..ab9fa33a99fb3628b877247bf4a0d51399efa588 100644 (file)
@@ -41,7 +41,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 // Do we edit/delete/change main menus or sub menus?
-$AND = "what=''"; $SUB = "";
+$AND = "what = ''"; $SUB = "";
 if (!empty($_GET['sub']))
 {
        $AND = sprintf("action='%s'", SQL_ESCAPE($_GET['sub']));
index e7f29e181064873e657734adce3a80d497ae1bbc..a983e639cd003313a531d08748f060af42b7d5b7 100644 (file)
@@ -40,7 +40,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
-if (($_POST['ok'] != "") && ($_GET['admin'] != ""))
+if (($_POST['ok'] != '') && ($_GET['admin'] != ''))
 {
        // Send mail or message
        if ((EXT_IS_ACTIVE("msg")) && ($_POST['type'] == "msg"))
@@ -60,7 +60,7 @@ if (($_POST['ok'] != "") && ($_GET['admin'] != ""))
        // Mail / message dropped
        LOAD_TEMPLATE("admin_settings_saved", false, ADMINS_ADMIN_CONTACTED);
 }
- elseif ($_GET['admin'] != "")
+ elseif ($_GET['admin'] != '')
 {
        // Load contact form template
        define('__ADMIN', $_GET['admin']);
index 01c61e81ef351abe6bcc3232a19384a461f5e6da..3df1e785caaaa3fe3dfd2e23f0242bacaae7f473 100644 (file)
@@ -49,13 +49,13 @@ if (isset($_POST['ok']))
        // Setup constants for the template
        switch ($_CONFIG['ap_inactive'])
        {
-               case 'Y': define('__YES_IN', " checked"); define('__NO_IN', "");         break;
-               case 'N': define('__YES_IN', "");         define('__NO_IN', " checked"); break;
+               case 'Y': define('__YES_IN', ' checked'); define('__NO_IN', "");         break;
+               case 'N': define('__YES_IN', "");         define('__NO_IN', ' checked'); break;
        }
        switch ($_CONFIG['ap_unconfirmed'])
        {
-               case 'Y': define('__YES_UN', " checked"); define('__NO_UN', "");         break;
-               case 'N': define('__YES_UN', "");         define('__NO_UN', " checked"); break;
+               case 'Y': define('__YES_UN', ' checked'); define('__NO_UN', "");         break;
+               case 'N': define('__YES_UN', "");         define('__NO_UN', ' checked'); break;
        }
        define('__AP_IN_SINCE', $_CONFIG['ap_in_since']);
        define('__AP_IN_TIME' , $_CONFIG['ap_in_time']);
index 4dc5753bbdd7dc44547850a15c1775b16713ad3f..6f68bb052df6087f08533c072ac5c2ce84cb8831 100644 (file)
@@ -51,13 +51,13 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['admin_menu'])
        {
        case "NEW":
-               define('__ADMIN_MENU_NEW', " checked");
+               define('__ADMIN_MENU_NEW', ' checked');
                define('__ADMIN_MENU_OLD'   , "");
                break;
 
        case "OLD":
                define('__ADMIN_MENU_NEW', "");
-               define('__ADMIN_MENU_OLD'   , " checked");
+               define('__ADMIN_MENU_OLD'   , ' checked');
                break;
        }
 
index 83a0cd2565024b82ded73da64de84381b258a98c..9163d41c85e9988fe9c5f9d7316c6a049ce93788 100644 (file)
@@ -70,13 +70,13 @@ if (isset($_POST['ok']))
        define('_CFG_AUTO_PURGE', CREATE_TIME_SELECTIONS($_CONFIG['auto_purge'], "auto_purge", "MWD"));
        if ($_CONFIG['auto_purge_active'] == 'N')
        {
-               define('_CFG_AP_ACTIVE_N', " checked");
+               define('_CFG_AP_ACTIVE_N', ' checked');
                define('_CFG_AP_ACTIVE_Y', "");
        }
         else
        {
                define('_CFG_AP_ACTIVE_N', "");
-               define('_CFG_AP_ACTIVE_Y', " checked");
+               define('_CFG_AP_ACTIVE_Y', ' checked');
        }
 
        // Output template
index ede30105acb52fec6449d5176cbc7ef5e21fad8d..dcc8d4985311208a38f6856887772d2bd782eac8 100644 (file)
@@ -78,85 +78,85 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['beg_rallye'])
        {
        case 'Y':
-               define('__BEG_RALLYE_Y', " checked");
+               define('__BEG_RALLYE_Y', ' checked');
                define('__BEG_RALLYE_N', "");
                break;
 
        case 'N':
                define('__BEG_RALLYE_Y', "");
-               define('__BEG_RALLYE_N', " checked");
+               define('__BEG_RALLYE_N', ' checked');
                break;
        }
        switch ($_CONFIG['beg_active'])
        {
        case 'Y':
-               define('__BEG_ACTIVE_Y', " checked");
+               define('__BEG_ACTIVE_Y', ' checked');
                define('__BEG_ACTIVE_N', "");
                break;
 
        case 'N':
                define('__BEG_ACTIVE_Y', "");
-               define('__BEG_ACTIVE_N', " checked");
+               define('__BEG_ACTIVE_N', ' checked');
                break;
        }
        switch ($_CONFIG['beg_mode'])
        {
        case "DIRECT":
-               define('__BEG_MODE_DIRECT', " checked");
+               define('__BEG_MODE_DIRECT', ' checked');
                define('__BEG_MODE_REF'   , "");
                break;
 
        case "REF":
                define('__BEG_MODE_DIRECT', "");
-               define('__BEG_MODE_REF'   , " checked");
+               define('__BEG_MODE_REF'   , ' checked');
                break;
        }
        switch ($_CONFIG['beg_ral_en_notify'])
        {
        case 'Y':
-               define('__BEG_RAL_EN_NOTIFY_Y', " checked");
+               define('__BEG_RAL_EN_NOTIFY_Y', ' checked');
                define('__BEG_RAL_EN_NOTIFY_N', "");
                break;
 
        case 'N':
                define('__BEG_RAL_EN_NOTIFY_Y', "");
-               define('__BEG_RAL_EN_NOTIFY_N', " checked");
+               define('__BEG_RAL_EN_NOTIFY_N', ' checked');
                break;
        }
        switch ($_CONFIG['beg_ral_di_notify'])
        {
        case 'Y':
-               define('__BEG_RAL_DI_NOTIFY_Y', " checked");
+               define('__BEG_RAL_DI_NOTIFY_Y', ' checked');
                define('__BEG_RAL_DI_NOTIFY_N', "");
                break;
 
        case 'N':
                define('__BEG_RAL_DI_NOTIFY_Y', "");
-               define('__BEG_RAL_DI_NOTIFY_N', " checked");
+               define('__BEG_RAL_DI_NOTIFY_N', ' checked');
                break;
        }
        switch ($_CONFIG['beg_new_mem_notify'])
        {
        case 'Y':
-               define('__BEG_NEW_MEMBER_NOTIFY_Y', " checked");
+               define('__BEG_NEW_MEMBER_NOTIFY_Y', ' checked');
                define('__BEG_NEW_MEMBER_NOTIFY_N', "");
                break;
 
        case 'N':
                define('__BEG_NEW_MEMBER_NOTIFY_Y', "");
-               define('__BEG_NEW_MEMBER_NOTIFY_N', " checked");
+               define('__BEG_NEW_MEMBER_NOTIFY_N', ' checked');
                break;
        }
        switch ($_CONFIG['beg_include_own'])
        {
        case 'Y':
-               define('__BEG_INCLUDE_OWN_Y', " checked");
+               define('__BEG_INCLUDE_OWN_Y', ' checked');
                define('__BEG_INCLUDE_OWN_N', "");
                break;
 
        case 'N':
                define('__BEG_INCLUDE_OWN_Y', "");
-               define('__BEG_INCLUDE_OWN_N', " checked");
+               define('__BEG_INCLUDE_OWN_N', ' checked');
                break;
        }
 
index 34eb07ade041d0b41a5236f78c55bba110222189..c578d07f1452b0d3096da98554ebfaae1b2bc40b 100644 (file)
@@ -52,25 +52,25 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['birthday_active'])
        {
        case 'Y':
-               define('__BIRTHDAY_ACTIVE_Y', " checked");
+               define('__BIRTHDAY_ACTIVE_Y', ' checked');
                define('__BIRTHDAY_ACTIVE_N', "");
                break;
 
        case 'N':
                define('__BIRTHDAY_ACTIVE_Y', "");
-               define('__BIRTHDAY_ACTIVE_N', " checked");
+               define('__BIRTHDAY_ACTIVE_N', ' checked');
                break;
        }
        switch ($_CONFIG['birthday_mode'])
        {
        case "DIRECT":
-               define('__BIRTHDAY_MODE_DIRECT', " checked");
+               define('__BIRTHDAY_MODE_DIRECT', ' checked');
                define('__BIRTHDAY_MODE_REF'   , "");
                break;
 
        case "REF":
                define('__BIRTHDAY_MODE_DIRECT', "");
-               define('__BIRTHDAY_MODE_REF'   , " checked");
+               define('__BIRTHDAY_MODE_REF'   , ' checked');
                break;
        }
 
index b0b5bc1616d6ce25d9e6351fbbdfddf67af1eb58..70bf8e32b552e34818022b3774782dd673cc93cd 100644 (file)
@@ -122,122 +122,122 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['bonus_active'])
        {
        case 'Y':
-               define('__BONUS_ACTIVE_Y', " checked");
+               define('__BONUS_ACTIVE_Y', ' checked');
                define('__BONUS_ACTIVE_N', "");
                break;
 
        case 'N':
                define('__BONUS_ACTIVE_Y', "");
-               define('__BONUS_ACTIVE_N', " checked");
+               define('__BONUS_ACTIVE_N', ' checked');
                break;
        }
        // Other bonus to de-/activate
        switch ($_CONFIG['bonus_login_yn'])
        {
        case 'Y':
-               define('__BONUS_LOGIN_Y', " checked");
+               define('__BONUS_LOGIN_Y', ' checked');
                define('__BONUS_LOGIN_N', "");
                break;
 
        case 'N':
                define('__BONUS_LOGIN_Y', "");
-               define('__BONUS_LOGIN_N', " checked");
+               define('__BONUS_LOGIN_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_stats_yn'])
        {
        case 'Y':
-               define('__BONUS_STATS_Y', " checked");
+               define('__BONUS_STATS_Y', ' checked');
                define('__BONUS_STATS_N', "");
                break;
 
        case 'N':
                define('__BONUS_STATS_Y', "");
-               define('__BONUS_STATS_N', " checked");
+               define('__BONUS_STATS_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_order_yn'])
        {
        case 'Y':
-               define('__BONUS_ORDER_Y', " checked");
+               define('__BONUS_ORDER_Y', ' checked');
                define('__BONUS_ORDER_N', "");
                break;
 
        case 'N':
                define('__BONUS_ORDER_Y', "");
-               define('__BONUS_ORDER_N', " checked");
+               define('__BONUS_ORDER_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_ref_yn'])
        {
        case 'Y':
-               define('__BONUS_REF_Y', " checked");
+               define('__BONUS_REF_Y', ' checked');
                define('__BONUS_REF_N', "");
                break;
 
        case 'N':
                define('__BONUS_REF_Y', "");
-               define('__BONUS_REF_N', " checked");
+               define('__BONUS_REF_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_click_yn'])
        {
        case 'Y':
-               define('__BONUS_CLICK_Y', " checked");
+               define('__BONUS_CLICK_Y', ' checked');
                define('__BONUS_CLICK_N', "");
                break;
 
        case 'N':
                define('__BONUS_CLICK_Y', "");
-               define('__BONUS_CLICK_N', " checked");
+               define('__BONUS_CLICK_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_en_notify'])
        {
        case 'Y':
-               define('__BONUS_EN_NOTIFY_Y', " checked");
+               define('__BONUS_EN_NOTIFY_Y', ' checked');
                define('__BONUS_EN_NOTIFY_N', "");
                break;
 
        case 'N':
                define('__BONUS_EN_NOTIFY_Y', "");
-               define('__BONUS_EN_NOTIFY_N', " checked");
+               define('__BONUS_EN_NOTIFY_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_di_notify'])
        {
        case 'Y':
-               define('__BONUS_DI_NOTIFY_Y', " checked");
+               define('__BONUS_DI_NOTIFY_Y', ' checked');
                define('__BONUS_DI_NOTIFY_N', "");
                break;
 
        case 'N':
                define('__BONUS_DI_NOTIFY_Y', "");
-               define('__BONUS_DI_NOTIFY_N', " checked");
+               define('__BONUS_DI_NOTIFY_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_new_mem_notify'])
        {
        case 'Y':
-               define('__BONUS_NEW_MEMBER_NOTIFY_Y', " checked");
+               define('__BONUS_NEW_MEMBER_NOTIFY_Y', ' checked');
                define('__BONUS_NEW_MEMBER_NOTIFY_N', "");
                break;
 
        case 'N':
                define('__BONUS_NEW_MEMBER_NOTIFY_Y', "");
-               define('__BONUS_NEW_MEMBER_NOTIFY_N', " checked");
+               define('__BONUS_NEW_MEMBER_NOTIFY_N', ' checked');
                break;
        }
        switch ($_CONFIG['bonus_include_own'])
        {
        case 'Y':
-               define('__BONUS_INCLUDE_OWN_Y', " checked");
+               define('__BONUS_INCLUDE_OWN_Y', ' checked');
                define('__BONUS_INCLUDE_OWN_N', "");
                break;
 
        case 'N':
                define('__BONUS_INCLUDE_OWN_Y', "");
-               define('__BONUS_INCLUDE_OWN_N', " checked");
+               define('__BONUS_INCLUDE_OWN_N', ' checked');
                break;
        }
 
index 39c3a15f82160cd6e057cdea358ec2a6d0b81f93..0f5f86b65444840aa98971efac3c4a74f6849b3a 100644 (file)
@@ -90,38 +90,38 @@ if (isset($_POST['ok']))
        // Prepare data
        switch ($_CONFIG['cache_admins'])
        {
-               case 'Y': define('__ADMINS_Y', " checked"); define('__ADMINS_N', "");         break;
-               case 'N': define('__ADMINS_Y', "");         define('__ADMINS_N', " checked"); break;
+               case 'Y': define('__ADMINS_Y', ' checked'); define('__ADMINS_N', "");         break;
+               case 'N': define('__ADMINS_Y', "");         define('__ADMINS_N', ' checked'); break;
        }
        switch ($_CONFIG['cache_acls'])
        {
-               case 'Y': define('__ACLS_Y', " checked"); define('__ACLS_N', "");         break;
-               case 'N': define('__ACLS_Y', "");         define('__ACLS_N', " checked"); break;
+               case 'Y': define('__ACLS_Y', ' checked'); define('__ACLS_N', "");         break;
+               case 'N': define('__ACLS_Y', "");         define('__ACLS_N', ' checked'); break;
        }
        switch ($_CONFIG['cache_exts'])
        {
-               case 'Y': define('__EXTS_Y', " checked"); define('__EXTS_N', "");         break;
-               case 'N': define('__EXTS_Y', "");         define('__EXTS_N', " checked"); break;
+               case 'Y': define('__EXTS_Y', ' checked'); define('__EXTS_N', "");         break;
+               case 'N': define('__EXTS_Y', "");         define('__EXTS_N', ' checked'); break;
        }
        switch ($_CONFIG['cache_config'])
        {
-               case 'Y': define('__CONFIG_Y', " checked"); define('__CONFIG_N', "");         break;
-               case 'N': define('__CONFIG_Y', "");         define('__CONFIG_N', " checked"); break;
+               case 'Y': define('__CONFIG_Y', ' checked'); define('__CONFIG_N', "");         break;
+               case 'N': define('__CONFIG_Y', "");         define('__CONFIG_N', ' checked'); break;
        }
        switch ($_CONFIG['cache_modreg'])
        {
-               case 'Y': define('__MODREG_Y', " checked"); define('__MODREG_N', "");         break;
-               case 'N': define('__MODREG_Y', "");         define('__MODREG_N', " checked"); break;
+               case 'Y': define('__MODREG_Y', ' checked'); define('__MODREG_N', "");         break;
+               case 'N': define('__MODREG_Y', "");         define('__MODREG_N', ' checked'); break;
        }
        switch ($_CONFIG['cache_refdepth'])
        {
-               case 'Y': define('__REFDEPTH_Y', " checked"); define('__REFDEPTH_N', "");         break;
-               case 'N': define('__REFDEPTH_Y', "");         define('__REFDEPTH_N', " checked"); break;
+               case 'Y': define('__REFDEPTH_Y', ' checked'); define('__REFDEPTH_N', "");         break;
+               case 'N': define('__REFDEPTH_Y', "");         define('__REFDEPTH_N', ' checked'); break;
        }
        switch ($_CONFIG['cache_refsys'])
        {
-               case 'Y': define('__REFSYS_Y', " checked"); define('__REFSYS_N', "");         break;
-               case 'N': define('__REFSYS_Y', "");         define('__REFSYS_N', " checked"); break;
+               case 'Y': define('__REFSYS_Y', ' checked'); define('__REFSYS_N', "");         break;
+               case 'N': define('__REFSYS_Y', "");         define('__REFSYS_N', ' checked'); break;
        }
        define('__PATH', $_CONFIG['cache_path']);
 
index e835bbd9fefc164df16438e12b06fd08a49bb4c7..c6c659d66b77aa0b045b559a38d30771ebba32e9 100644 (file)
@@ -74,13 +74,13 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['doubler_jackpot'])
        {
        case 'Y':
-               define('__DOUBLER_JACKPOT_Y', " checked");
+               define('__DOUBLER_JACKPOT_Y', ' checked');
                define('__DOUBLER_JACKPOT_N', "");
                break;
 
        case 'N':
                define('__DOUBLER_JACKPOT_Y', "");
-               define('__DOUBLER_JACKPOT_N', " checked");
+               define('__DOUBLER_JACKPOT_N', ' checked');
                break;
        }
 
@@ -88,13 +88,13 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['doubler_own'])
        {
        case 'Y':
-               define('__DOUBLER_OWN_Y', " checked");
+               define('__DOUBLER_OWN_Y', ' checked');
                define('__DOUBLER_OWN_N', "");
                break;
 
        case 'N':
                define('__DOUBLER_OWN_Y', "");
-               define('__DOUBLER_OWN_N', " checked");
+               define('__DOUBLER_OWN_N', ' checked');
                break;
        }
 
@@ -102,13 +102,13 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['doubler_send_mode'])
        {
        case "DIRECT":
-               define('__DOUBLER_SEND_DIRECT', " checked");
+               define('__DOUBLER_SEND_DIRECT', ' checked');
                define('__DOUBLER_SEND_RESET' , "");
                break;
 
        case "RESET":
                define('__DOUBLER_SEND_DIRECT', "");
-               define('__DOUBLER_SEND_RESET' , " checked");
+               define('__DOUBLER_SEND_RESET' , ' checked');
                break;
        }
 
@@ -116,13 +116,13 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['doubler_sent_all'])
        {
        case 'Y':
-               define('__DOUBLER_SENT_ALL_Y', " checked");
+               define('__DOUBLER_SENT_ALL_Y', ' checked');
                define('__DOUBLER_SENT_ALL_N', "");
                break;
 
        case 'N':
                define('__DOUBLER_SENT_ALL_Y', "");
-               define('__DOUBLER_SENT_ALL_N', " checked");
+               define('__DOUBLER_SENT_ALL_N', ' checked');
                break;
        }
 
index c65d3d2eeeb08deffd2f4cd97be9c35fefb569b7..e8f26f98c1eff50f01996e43ddab287205716455 100644 (file)
@@ -50,8 +50,8 @@ if (isset($_POST['ok']))
        // Prepare data
        switch ($_CONFIG['verbose_sql'])
        {
-               case 'Y': define('__VERBOSE_Y', " checked"); define('__VERBOSE_N', "");         break;
-               case 'N': define('__VERBOSE_Y', "");         define('__VERBOSE_N', " checked"); break;
+               case 'Y': define('__VERBOSE_Y', ' checked'); define('__VERBOSE_N', "");         break;
+               case 'N': define('__VERBOSE_Y', "");         define('__VERBOSE_N', ' checked'); break;
        }
 
        // Load template
index b11db022dc4cc3774e5043db53fce332b1c5ac1a..e652e7b1ff8f260ecc84dc124df9e4693ea57995 100644 (file)
@@ -53,13 +53,13 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['holiday_mode'])
        {
        case "RESET":
-               define('__RESET_DEFAULT' , " checked");
+               define('__RESET_DEFAULT' , ' checked');
                define('__DIRECT_DEFAULT', "");
                break;
 
        case "DIRECT":
                define('__RESET_DEFAULT' , "");
-               define('__DIRECT_DEFAULT', " checked");
+               define('__DIRECT_DEFAULT', ' checked');
                break;
        }
 
index 239c30cc700e115eb49c7de0ba4c44b23bedf99d..25e67a9ed585124b093d40e1751efb7cc46bd413 100644 (file)
@@ -51,13 +51,13 @@ if (isset($_POST['ok']))
        switch ($_CONFIG['order_max'])
        {
        case "ORDER":
-               define('__ORDER_DEFAULT', " checked");
+               define('__ORDER_DEFAULT', ' checked');
                define('__MAX_DEFAULT'  , "");
                break;
 
        case "MAX":
                define('__ORDER_DEFAULT', "");
-               define('__MAX_DEFAULT'  , " checked");
+               define('__MAX_DEFAULT'  , ' checked');
                break;
        }
 
index 91ddaec216736315323b9c10daa8927c9be75b8b..15427baa3b2382ecf99c4ab295aee602fa8fa4a4 100644 (file)
@@ -114,111 +114,118 @@ if (isset($_POST['ok']))
 
        if ($_CONFIG['test_text'] == 'N')
        {
-               define('_CFG_TEST_TEXT_N', " checked");
+               define('_CFG_TEST_TEXT_N', ' checked');
                define('_CFG_TEST_TEXT_Y', "");
        }
         else
        {
                define('_CFG_TEST_TEXT_N', "");
-               define('_CFG_TEST_TEXT_Y', " checked");
+               define('_CFG_TEST_TEXT_Y', ' checked');
        }
        if ($_CONFIG['test_subj'] == 'N')
        {
-               define('_CFG_TEST_SUBJ_N', " checked");
+               define('_CFG_TEST_SUBJ_N', ' checked');
                define('_CFG_TEST_SUBJ_Y', "");
        }
         else
        {
                define('_CFG_TEST_SUBJ_N', "");
-               define('_CFG_TEST_SUBJ_Y', " checked");
+               define('_CFG_TEST_SUBJ_Y', ' checked');
        }
        if ($_CONFIG['url_blacklist'] == 'N')
        {
-               define('_CFG_URL_BLIST_N', " checked");
+               define('_CFG_URL_BLIST_N', ' checked');
                define('_CFG_URL_BLIST_Y', "");
        }
         else
        {
                define('_CFG_URL_BLIST_N', "");
-               define('_CFG_URL_BLIST_Y', " checked");
+               define('_CFG_URL_BLIST_Y', ' checked');
        }
        if ($_CONFIG['order_multi_page'] == 'N')
        {
-               define('_CFG_ORDER_MULTI_N', " checked");
+               define('_CFG_ORDER_MULTI_N', ' checked');
                define('_CFG_ORDER_MULTI_Y', "");
        }
         else
        {
                define('_CFG_ORDER_MULTI_N', "");
-               define('_CFG_ORDER_MULTI_Y', " checked");
+               define('_CFG_ORDER_MULTI_Y', ' checked');
        }
        if ($_CONFIG['autosend_active'] == 'N')
        {
-               define('_CFG_AUTOSEND_ACTIVE_N', " checked");
+               define('_CFG_AUTOSEND_ACTIVE_N', ' checked');
                define('_CFG_AUTOSEND_ACTIVE_Y', "");
        }
         else
        {
                define('_CFG_AUTOSEND_ACTIVE_N', "");
-               define('_CFG_AUTOSEND_ACTIVE_Y', " checked");
+               define('_CFG_AUTOSEND_ACTIVE_Y', ' checked');
        }
        if ($_CONFIG['send_prof_update'] == 'N')
        {
-               define('_CFG_SEND_UPDATE_N', " checked");
+               define('_CFG_SEND_UPDATE_N', ' checked');
                define('_CFG_SEND_UPDATE_Y', "");
        }
         else
        {
                define('_CFG_SEND_UPDATE_N', "");
-               define('_CFG_SEND_UPDATE_Y', " checked");
+               define('_CFG_SEND_UPDATE_Y', ' checked');
        }
        if ($_CONFIG['admin_notify'] == 'N')
        {
-               define('_CFG_ADMIN_NOTIFY_N', " checked");
+               define('_CFG_ADMIN_NOTIFY_N', ' checked');
                define('_CFG_ADMIN_NOTIFY_Y', "");
        }
         else
        {
                define('_CFG_ADMIN_NOTIFY_N', "");
-               define('_CFG_ADMIN_NOTIFY_Y', " checked");
+               define('_CFG_ADMIN_NOTIFY_Y', ' checked');
        }
        if ($_CONFIG['css_php'] == "DIRECT")
        {
-               define('_CFG_CSS_PHP_DIRECT', " checked");
+               define('_CFG_CSS_PHP_DIRECT', ' checked');
                define('_CFG_CSS_PHP_FILE', "");
        }
         else
        {
                define('_CFG_CSS_PHP_DIRECT', "");
-               define('_CFG_CSS_PHP_FILE', " checked");
+               define('_CFG_CSS_PHP_FILE', ' checked');
        }
        if ($_CONFIG['guest_menu'] == 'Y') {
-               define('_CFG_GUEST_MENU_ACTIVE', " checked");
+               define('_CFG_GUEST_MENU_ACTIVE', ' checked');
                define('_CFG_GUEST_MENU_INACTIVE', "");
        } else {
                define('_CFG_GUEST_MENU_ACTIVE', "");
-               define('_CFG_GUEST_MENU_INACTIVE', " checked");
+               define('_CFG_GUEST_MENU_INACTIVE', ' checked');
        }
        if ($_CONFIG['member_menu'] == 'Y') {
-               define('_CFG_MEMBER_MENU_ACTIVE', " checked");
+               define('_CFG_MEMBER_MENU_ACTIVE', ' checked');
                define('_CFG_MEMBER_MENU_INACTIVE', "");
        } else {
                define('_CFG_MEMBER_MENU_ACTIVE', "");
-               define('_CFG_MEMBER_MENU_INACTIVE', " checked");
+               define('_CFG_MEMBER_MENU_INACTIVE', ' checked');
        }
        if ($_CONFIG['youre_here'] == 'Y') {
-               define('_CFG_YOURE_HERE_ACTIVE', " checked");
+               define('_CFG_YOURE_HERE_ACTIVE', ' checked');
                define('_CFG_YOURE_HERE_INACTIVE', "");
        } else {
                define('_CFG_YOURE_HERE_ACTIVE', "");
-               define('_CFG_YOURE_HERE_INACTIVE', " checked");
+               define('_CFG_YOURE_HERE_INACTIVE', ' checked');
        }
        if ($_CONFIG['show_timings'] == 'Y') {
-               define('_CFG_FOOTER_STATS_Y', " checked");
-               define('_CFG_FOOTER_STATS_N', "");
+               define('_CFG_SHOW_TIMINGS_Y', ' checked');
+               define('_CFG_SHOW_TIMINGS_N', "");
        } else {
-               define('_CFG_FOOTER_STATS_Y', "");
-               define('_CFG_FOOTER_STATS_N', " checked");
+               define('_CFG_SHOW_TIMINGS_Y', "");
+               define('_CFG_SHOW_TIMINGS_N', ' checked');
+       }
+       if ($_CONFIG['mailid_error_redirect'] == 'index') {
+               define('_CFG_MAILID_REDIRECT_INDEX', ' checked');
+               define('_CFG_MAILID_REDIRECT_REJECT', "");
+       } else {
+               define('_CFG_MAILID_REDIRECT_INDEX', "");
+               define('_CFG_MAILID_REDIRECT_REJECT', ' checked');
        }
 
        for ($i = 0; $i <= 5; $i++)
index 7d4abc3768c17e0bb5116306257f436128e171e2..f9728a8ff2cc28f2c50620cc2a240f0dc0ac23ed 100644 (file)
@@ -188,21 +188,21 @@ WHERE mails_confirmed < %d", $REF, $REF);
        switch ($_CONFIG['allow_direct_pay'])
        {
        case 'Y':
-               define('__DIRECT_Y', " checked");
+               define('__DIRECT_Y', ' checked');
                define('__DIRECT_N', "");
                break;
 
        case 'N':
                define('__DIRECT_Y', "");
-               define('__DIRECT_N', " checked");
+               define('__DIRECT_N', ' checked');
                break;
        }
 
        // One-time referral bonus add-mode
        switch ($_CONFIG['reg_points_mode'])
        {
-               case "ref"   : define('__MODE_REF', " checked"); define('__MODE_DIRECT', "");         break;
-               case "direct": define('__MODE_REF', "");         define('__MODE_DIRECT', " checked"); break;
+               case "ref"   : define('__MODE_REF', ' checked'); define('__MODE_DIRECT', "");         break;
+               case "direct": define('__MODE_REF', "");         define('__MODE_DIRECT', ' checked'); break;
        }
 
        // Referral payout value
index 8fa8a3a52a4dd54e75ae4f01a9a3f72b6198abbb..b9276d55771dc5f665c6ec3e0fc07af43710bb87 100644 (file)
@@ -75,14 +75,14 @@ if (isset($_POST['ok']))
                if (ereg($mod, $_CONFIG['rewrite_skipped_mods']))
                {
                        // Found
-                       $y = " checked";
+                       $y = ' checked';
                        $n = "";
                }
                 else
                {
                        // Not found
                        $y = "";
-                       $n = " checked";
+                       $n = ' checked';
                }
 
                // Remember data in array for the dynamic row template
index da936792545dd7025ef45440fac94f03dbd17d51..a6565aead787d06c9651e913013f00dc4f103ffc 100644 (file)
@@ -41,7 +41,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 // Do we edit/delete/change main menus or sub menus?
-$AND = "what=''"; $SUB = "";
+$AND = "what = ''"; $SUB = "";
 
 if (!empty($_GET['sub']))
 {
index a29ac3692bc3b043683bfa1b800191836d2825e7..e8e635dbbf15f091d4553240b3b96cdc79a30be9 100644 (file)
@@ -41,7 +41,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 // Do we edit/delete/change main menus or sub menus?
-$AND = "what=''"; $SUB = "";
+$AND = "what = ''"; $SUB = "";
 
 if (!empty($_GET['sub']))
 {
@@ -198,7 +198,7 @@ if ((isset($_POST['edit'])) && ($chk > 0) && (!IS_DEMO()))
        // An act is done...
        foreach ($_POST['sel'] as $sel=>$menu)
        {
-               $AND = "what=''";
+               $AND = "what = ''";
                $sel = bigintval($sel);
                if (!empty($SUB)) $AND = "action='".$SUB."'";
                switch ($_POST['ok'])
index 9b6c69d37281813e2514443f9430a08ef04a46ff..5cc0294ff5cc99d2322c21b581e602961e1ab989 100644 (file)
@@ -42,7 +42,7 @@ ADD_DESCR("admin", basename(__FILE__));
 
 global $link;
 $ACTIONS = array();
-// First fix all main menus (what='')...
+// First fix all main menus (what="")...
 $result_fix = SQL_QUERY("SELECT id, action FROM "._MYSQL_PREFIX."_admin_menu WHERE what='' AND action != 'logout' ORDER BY sort ASC", __FILE__, __LINE__);
 $cnt = 0; $REP = 0;
 while(list($id, $act) = SQL_FETCHROW($result_fix))
index 639ddf2676cb73d578cb1378c0d4dd791c304fba..a9b1844ca1f20ae35bdc09486705da476efd43c2 100644 (file)
@@ -42,7 +42,7 @@ ADD_DESCR("admin", basename(__FILE__));
 
 global $link;
 $ACTIONs = array();
-// First fix all main menus (what='')...
+// First fix all main menus (what="")...
 $result_fix = SQL_QUERY("SELECT id, action FROM "._MYSQL_PREFIX."_admin_menu WHERE what='' AND action != 'logout' ORDER BY sort ASC", __FILE__, __LINE__);
 $cnt = 0; $REP = 0;
 while(list($id, $act) = SQL_FETCHROW($result_fix))
index 88f7b3ad73e41d19d88ee2d858aec24f75a7397c..b3dc3b729386984c0572d4b12d673c87438c64f4 100644 (file)
@@ -41,7 +41,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 $ACTIONS = array();
-// First fix all main menus (what='')...
+// First fix all main menus (what="")...
 $result_fix = SQL_QUERY("SELECT id, action FROM "._MYSQL_PREFIX."_guest_menu WHERE what='' AND action != 'logout' ORDER BY sort ASC", __FILE__, __LINE__);
 $cnt = 0; $REP = 0;
 while(list($id, $act) = SQL_FETCHROW($result_fix))
index e2cc8eeff4c30f9663d1fd2f469891bf1cb159a3..905e16d5a257d0983fbb1c3e1adbb34a0d25edf5 100644 (file)
@@ -41,7 +41,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 $ACTIONS = array();
-// First fix all main menus (what='')...
+// First fix all main menus (what="")...
 $result_fix = SQL_QUERY("SELECT id, action FROM "._MYSQL_PREFIX."_guest_menu WHERE what='' AND action != 'logout' ORDER BY sort ASC", __FILE__, __LINE__);
 $cnt = 0; $REP = 0;
 while(list($id, $act) = SQL_FETCHROW($result_fix))
index a7320f76e70033e44e29f75f04723e68c1ebf4d7..0bb45740ece012887e79a5f5db3bac82dfec6165 100644 (file)
@@ -41,7 +41,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 $ACTIONS = array();
-// First fix all main menus (what='')...
+// First fix all main menus (what="")...
 $result_fix = SQL_QUERY("SELECT id, action FROM "._MYSQL_PREFIX."_member_menu WHERE what='' AND action != 'logout' ORDER BY sort ASC", __FILE__, __LINE__);
 $cnt = 0; $REP = 0;
 while(list($id, $act) = SQL_FETCHROW($result_fix))
index 5de5a08d79f5a1e25ef079cbaa94bbbeadcd69da..e2eb30b1bd82c4f491020739c27320f1f2a04e25 100644 (file)
@@ -41,7 +41,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 $ACTIONS = array();
-// First fix all main menus (what='')...
+// First fix all main menus (what="")...
 $result_fix = SQL_QUERY("SELECT id, action FROM "._MYSQL_PREFIX."_member_menu WHERE what='' AND action != 'logout' ORDER BY sort ASC", __FILE__, __LINE__);
 $cnt = 0; $REP = 0;
 while(list($id, $act) = SQL_FETCHROW($result_fix))
index 114694c8b6dd51ab012f66f0a11d7a4893bcf828..03bd3a0e08a7a55b2ca5f0b3914cfc0d84c6eaa5 100644 (file)
@@ -428,7 +428,7 @@ array(
        // Is the nickname valid?
        if (!$nick) {
                // Nope, disable it
-               if (GET_EXT_VERSION("sql_patches") != "") {
+               if (GET_EXT_VERSION("sql_patches") != '') {
                        // Use default refid
                        $GLOBALS['refid'] = $_CONFIG['def_refid'];
                } else {
index 622735c3eea42430e2c50ae0103c7cab93f03999..ec2a5d45fd87b62504125010606842ed2fb8cf2e 100644 (file)
@@ -121,7 +121,7 @@ if ($cats > 0)
                while (list($id, $cat) = SQL_FETCHROW($result))
                {
                        // Default he has not joined
-                       $JOINED_N = " checked"; $JOINED_Y = "";
+                       $JOINED_N = ' checked'; $JOINED_Y = "";
 
                        // Check category selection
                        $result_user = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_user_cats WHERE userid=%d AND cat_id=%d LIMIT 1",
@@ -130,13 +130,13 @@ if ($cats > 0)
                        // When we found an entry don't read it, just change the JOINED_x variables
                        if (isset($_POST['cat']))
                        {
-                               if ($_POST['cat'][$id] =='Y') { $JOINED_Y = " checked"; $JOINED_N = ""; }
+                               if ($_POST['cat'][$id] =='Y') { $JOINED_Y = ' checked'; $JOINED_N = ""; }
                        }
                         else
                        {
                                if (SQL_NUMROWS($result_user) == 1)
                                {
-                                       $JOINED_Y = " checked"; $JOINED_N = "";
+                                       $JOINED_Y = ' checked'; $JOINED_N = "";
                                }
 
                                // Free memory
index 9aecde027ec5a934827206493f51ace451e7208b..0fe44b6a964cff0751d0ee4fdcd58e86eca71d23 100644 (file)
@@ -68,12 +68,12 @@ if (isset($_POST['ok']))
 
        if ($mode == 'Y')
        {
-               define('HTML_Y', " checked");
+               define('HTML_Y', ' checked');
                define('HTML_N', "");
        }
         else
        {
-               define('HTML_N', " checked");
+               define('HTML_N', ' checked');
                define('HTML_Y', "");
        }
        LOAD_TEMPLATE("member_html_mail_settings");
index 48ad51e059f06c6ff1049282f05d947733851d6d..7e65b6fadb5f852e8976dd115898beb4acccab54 100644 (file)
  ************************************************************************/
 
 // 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;
 }
@@ -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', "<A href=\"".URL."/modules.php?module=login&amp;what=transfer&amp;mode=new\">".TRANSFER_NOW_LINK."</A>");
                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;
        }
index 3ca9f7cc1d9d6327a584abe6ed27a2c7c8fc7b01..0879aff5e298b6bcfba2c23fe4d0c93d8505077e 100644 (file)
@@ -66,7 +66,7 @@ class PHPMailer {
    * Holds the most recent mailer error message.
    * @var string
    */
-  var $ErrorInfo         = '';
+  var $ErrorInfo         = "";
 
   /**
    * Sets the From email address for the message.
@@ -85,20 +85,20 @@ class PHPMailer {
    * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
    * @var string
    */
-  var $Sender            = '';
+  var $Sender            = "";
 
   /**
    * Sets the Subject of the message.
    * @var string
    */
-  var $Subject           = '';
+  var $Subject           = "";
 
   /**
    * Sets the Body of the message.  This can be either an HTML or text body.
    * If HTML then run IsHTML(true).
    * @var string
    */
-  var $Body              = '';
+  var $Body              = "";
 
   /**
    * Sets the text-only body of the message.  This automatically sets the
@@ -107,7 +107,7 @@ class PHPMailer {
    * that can read HTML will view the normal Body.
    * @var string
    */
-  var $AltBody           = '';
+  var $AltBody           = "";
 
   /**
    * Sets word wrapping on the body of the message to a given number of
@@ -133,7 +133,7 @@ class PHPMailer {
    * is in a different directory than the PHP include path.
    * @var string
    */
-  var $PluginDir         = '';
+  var $PluginDir         = "";
 
   /**
    * Holds PHPMailer version.
@@ -145,7 +145,7 @@ class PHPMailer {
    * Sets the email address that a reading confirmation will be sent.
    * @var string
    */
-  var $ConfirmReadingTo  = '';
+  var $ConfirmReadingTo  = "";
 
   /**
    * Sets the hostname to use in Message-Id and Received headers
@@ -153,7 +153,7 @@ class PHPMailer {
    * by SERVER_NAME is used or 'localhost.localdomain'.
    * @var string
    */
-  var $Hostname          = '';
+  var $Hostname          = "";
 
   /////////////////////////////////////////////////
   // PROPERTIES FOR SMTP
@@ -179,7 +179,7 @@ class PHPMailer {
    * Sets the SMTP HELO of the message (Default is $Hostname).
    * @var string
    */
-  var $Helo        = '';
+  var $Helo        = "";
 
   /**
    * Sets connection prefix.
@@ -198,13 +198,13 @@ class PHPMailer {
    * Sets SMTP username.
    * @var string
    */
-  var $Username     = '';
+  var $Username     = "";
 
   /**
    * Sets SMTP password.
    * @var string
    */
-  var $Password     = '';
+  var $Password     = "";
 
   /**
    * Sets the SMTP server timeout in seconds. This function will not
@@ -245,7 +245,7 @@ class PHPMailer {
   var $ReplyTo         = array();
   var $attachment      = array();
   var $CustomHeader    = array();
-  var $message_type    = '';
+  var $message_type    = "";
   var $boundary        = array();
   var $language        = array();
   var $error_count     = 0;
@@ -311,7 +311,7 @@ class PHPMailer {
    * @param string $name
    * @return void
    */
-  function AddAddress($address, $name = '') {
+  function AddAddress($address, $name = "") {
     $cur = count($this->to);
     $this->to[$cur][0] = trim($address);
     $this->to[$cur][1] = $name;
@@ -325,7 +325,7 @@ class PHPMailer {
    * @param string $name
    * @return void
    */
-  function AddCC($address, $name = '') {
+  function AddCC($address, $name = "") {
     $cur = count($this->cc);
     $this->cc[$cur][0] = trim($address);
     $this->cc[$cur][1] = $name;
@@ -339,7 +339,7 @@ class PHPMailer {
    * @param string $name
    * @return void
    */
-  function AddBCC($address, $name = '') {
+  function AddBCC($address, $name = "") {
     $cur = count($this->bcc);
     $this->bcc[$cur][0] = trim($address);
     $this->bcc[$cur][1] = $name;
@@ -351,7 +351,7 @@ class PHPMailer {
    * @param string $name
    * @return void
    */
-  function AddReplyTo($address, $name = '') {
+  function AddReplyTo($address, $name = "") {
     $cur = count($this->ReplyTo);
     $this->ReplyTo[$cur][0] = trim($address);
     $this->ReplyTo[$cur][1] = $name;
@@ -368,8 +368,8 @@ class PHPMailer {
    * @return bool
    */
   function Send() {
-    $header = '';
-    $body = '';
+    $header = "";
+    $body = "";
     $result = true;
 
     if((count($this->to) + count($this->cc) + count($this->bcc)) < 1) {
@@ -387,7 +387,7 @@ class PHPMailer {
     $header .= $this->CreateHeader();
     $body = $this->CreateBody();
 
-    if($body == '') {
+    if($body == "") {
       return false;
     }
 
@@ -449,7 +449,7 @@ class PHPMailer {
    */
   function MailSend($header, $body) {
 
-    $to = '';
+    $to = "";
     for($i = 0; $i < count($this->to); $i++) {
       if($i != 0) { $to .= ', '; }
       $to .= $this->AddrFormat($this->to[$i]);
@@ -499,14 +499,14 @@ class PHPMailer {
    */
   function SmtpSend($header, $body) {
     include_once($this->PluginDir . 'class.smtp.php');
-    $error = '';
+    $error = "";
     $bad_rcpt = array();
 
     if(!$this->SmtpConnect()) {
       return false;
     }
 
-    $smtp_from = ($this->Sender == '') ? $this->From : $this->Sender;
+    $smtp_from = ($this->Sender == "") ? $this->From : $this->Sender;
     if(!$this->smtp->Mail($smtp_from)) {
       $error = $this->Lang('from_failed') . $smtp_from;
       $this->SetError($error);
@@ -585,7 +585,7 @@ class PHPMailer {
         $port = $this->Port;
       }
 
-      if($this->smtp->Connect(((!empty($this->SMTPSecure))?$this->SMTPSecure.'://':'').$host, $port, $this->Timeout)) {
+      if($this->smtp->Connect(((!empty($this->SMTPSecure))?$this->SMTPSecure.'://':"").$host, $port, $this->Timeout)) {
         if ($this->Helo != '') {
           $this->smtp->Hello($this->Helo);
         } else {
@@ -699,10 +699,10 @@ class PHPMailer {
     }
 
     $line = explode($this->LE, $message);
-    $message = '';
+    $message = "";
     for ($i=0 ;$i < count($line); $i++) {
       $line_part = explode(' ', $line[$i]);
-      $buf = '';
+      $buf = "";
       for ($e = 0; $e<count($line_part); $e++) {
         $word = $line_part[$e];
         if ($qp_mode and (strlen($word) > $length)) {
@@ -722,7 +722,7 @@ class PHPMailer {
             } else {
               $message .= $buf . $soft_break;
             }
-            $buf = '';
+            $buf = "";
           }
           while (strlen($word) > 0) {
             $len = $length;
@@ -784,7 +784,7 @@ class PHPMailer {
    * @return string
    */
   function CreateHeader() {
-    $result = '';
+    $result = "";
 
     /* Set the boundaries */
     $uniq_id = md5(uniqid(time()));
@@ -792,7 +792,7 @@ class PHPMailer {
     $this->boundary[2] = 'b2_' . $uniq_id;
 
     $result .= $this->HeaderLine('Date', $this->RFCDate());
-    if($this->Sender == '') {
+    if($this->Sender == "") {
       $result .= $this->HeaderLine('Return-Path', trim($this->From));
     } else {
       $result .= $this->HeaderLine('Return-Path', trim($this->Sender));
@@ -882,16 +882,16 @@ class PHPMailer {
    * @return string
    */
   function CreateBody() {
-    $result = '';
+    $result = "";
 
     $this->SetWordWrap();
 
     switch($this->message_type) {
       case 'alt':
-        $result .= $this->GetBoundary($this->boundary[1], '', 'text/plain', '');
+        $result .= $this->GetBoundary($this->boundary[1], "", 'text/plain', "");
         $result .= $this->EncodeString($this->AltBody, $this->Encoding);
         $result .= $this->LE.$this->LE;
-        $result .= $this->GetBoundary($this->boundary[1], '', 'text/html', '');
+        $result .= $this->GetBoundary($this->boundary[1], "", 'text/html', "");
         $result .= $this->EncodeString($this->Body, $this->Encoding);
         $result .= $this->LE.$this->LE;
         $result .= $this->EndBoundary($this->boundary[1]);
@@ -900,7 +900,7 @@ class PHPMailer {
         $result .= $this->EncodeString($this->Body, $this->Encoding);
         break;
       case 'attachments':
-        $result .= $this->GetBoundary($this->boundary[1], '', '', '');
+        $result .= $this->GetBoundary($this->boundary[1], "", "", "");
         $result .= $this->EncodeString($this->Body, $this->Encoding);
         $result .= $this->LE;
         $result .= $this->AttachAll();
@@ -908,10 +908,10 @@ class PHPMailer {
       case 'alt_attachments':
         $result .= sprintf("--%s%s", $this->boundary[1], $this->LE);
         $result .= sprintf("Content-Type: %s;%s" . "\tboundary=\"%s\"%s", 'multipart/alternative', $this->LE, $this->boundary[2], $this->LE.$this->LE);
-        $result .= $this->GetBoundary($this->boundary[2], '', 'text/plain', '') . $this->LE; // Create text body
+        $result .= $this->GetBoundary($this->boundary[2], "", 'text/plain', "") . $this->LE; // Create text body
         $result .= $this->EncodeString($this->AltBody, $this->Encoding);
         $result .= $this->LE.$this->LE;
-        $result .= $this->GetBoundary($this->boundary[2], '', 'text/html', '') . $this->LE; // Create the HTML body
+        $result .= $this->GetBoundary($this->boundary[2], "", 'text/html', "") . $this->LE; // Create the HTML body
         $result .= $this->EncodeString($this->Body, $this->Encoding);
         $result .= $this->LE.$this->LE;
         $result .= $this->EndBoundary($this->boundary[2]);
@@ -919,7 +919,7 @@ class PHPMailer {
         break;
     }
     if($this->IsError()) {
-      $result = '';
+      $result = "";
     }
 
     return $result;
@@ -930,14 +930,14 @@ class PHPMailer {
    * @access private
    */
   function GetBoundary($boundary, $charSet, $contentType, $encoding) {
-    $result = '';
-    if($charSet == '') {
+    $result = "";
+    if($charSet == "") {
       $charSet = $this->CharSet;
     }
-    if($contentType == '') {
+    if($contentType == "") {
       $contentType = $this->ContentType;
     }
-    if($encoding == '') {
+    if($encoding == "") {
       $encoding = $this->Encoding;
     }
     $result .= $this->TextLine('--' . $boundary);
@@ -1009,14 +1009,14 @@ class PHPMailer {
    * @param string $type File extension (MIME) type.
    * @return bool
    */
-  function AddAttachment($path, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
+  function AddAttachment($path, $name = "", $encoding = 'base64', $type = 'application/octet-stream') {
     if(!@is_file($path)) {
       $this->SetError($this->Lang('file_access') . $path);
       return false;
     }
 
     $filename = basename($path);
-    if($name == '') {
+    if($name == "") {
       $name = $filename;
     }
 
@@ -1074,13 +1074,13 @@ class PHPMailer {
       if($bString) {
         $mime[] = $this->EncodeString($string, $encoding);
         if($this->IsError()) {
-          return '';
+          return "";
         }
         $mime[] = $this->LE.$this->LE;
       } else {
         $mime[] = $this->EncodeFile($path, $encoding);
         if($this->IsError()) {
-          return '';
+          return "";
         }
         $mime[] = $this->LE.$this->LE;
       }
@@ -1088,7 +1088,7 @@ class PHPMailer {
 
     $mime[] = sprintf("--%s--%s", $this->boundary[1], $this->LE);
 
-    return join('', $mime);
+    return join("", $mime);
   }
 
   /**
@@ -1100,7 +1100,7 @@ class PHPMailer {
   function EncodeFile ($path, $encoding = 'base64') {
     if(!@$fd = fopen($path, 'rb')) {
       $this->SetError($this->Lang('file_open') . $path);
-      return '';
+      return "";
     }
     $magic_quotes = get_magic_quotes_runtime();
     set_magic_quotes_runtime(0);
@@ -1119,7 +1119,7 @@ class PHPMailer {
    * @return string
    */
   function EncodeString ($str, $encoding = 'base64') {
-    $encoded = '';
+    $encoded = "";
     switch(strtolower($encoding)) {
       case 'base64':
         /* chunk_split is found in PHP >= 3.0.6 */
@@ -1203,15 +1203,15 @@ class PHPMailer {
    * @access private
    * @return string
    */
-  function EncodeQP( $input = '', $line_max = 76, $space_conv = false ) {
+  function EncodeQP( $input = "", $line_max = 76, $space_conv = false ) {
     $hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
     $lines = preg_split('/(?:\r\n|\r|\n)/', $input);
     $eol = "\r\n";
     $escape = '=';
-    $output = '';
+    $output = "";
     while( list(, $line) = each($lines) ) {
       $linlen = strlen($line);
-      $newline = '';
+      $newline = "";
       for($i = 0; $i < $linlen; $i++) {
         $c = substr( $line, $i, 1 );
         $dec = ord( $c );
@@ -1231,7 +1231,7 @@ class PHPMailer {
         }
         if ( (strlen($newline) + strlen($c)) >= $line_max ) { // CRLF is not counted
           $output .= $newline.$escape.$eol; //  soft line break; " =\r\n" is okay
-          $newline = '';
+          $newline = "";
           // check if newline first character will be point or not
           if ( $dec == 46 ) {
             $c = '=2E';
@@ -1251,7 +1251,7 @@ class PHPMailer {
    */
   function EncodeQ ($str, $position = 'text') {
     /* There should not be any EOL in the string */
-    $encoded = preg_replace("[\r\n]", '', $str);
+    $encoded = preg_replace("[\r\n]", "", $str);
 
     switch (strtolower($position)) {
       case 'phrase':
@@ -1309,7 +1309,7 @@ class PHPMailer {
    * @param string $type File extension (MIME) type.
    * @return bool
    */
-  function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
+  function AddEmbeddedImage($path, $cid, $name = "", $encoding = 'base64', $type = 'application/octet-stream') {
 
     if(!@is_file($path)) {
       $this->SetError($this->Lang('file_access') . $path);
@@ -1317,7 +1317,7 @@ class PHPMailer {
     }
 
     $filename = basename($path);
-    if($name == '') {
+    if($name == "") {
       $name = $filename;
     }
 
@@ -1467,7 +1467,7 @@ class PHPMailer {
     if(isset($_SERVER[$varName])) {
       return $_SERVER[$varName];
     } else {
-      return '';
+      return "";
     }
   }
 
@@ -1568,7 +1568,7 @@ class PHPMailer {
    * @access private
    * @return mime type of ext
    */
-  function _mime_types($ext = '') {
+  function _mime_types($ext = "") {
     $mimes = array(
       'hqx'  =>  'application/mac-binhex40',
       'cpt'   =>  'application/mac-compactpro',
@@ -1672,7 +1672,7 @@ class PHPMailer {
    * @param mixed $value Parameter Value
    * NOTE: will not work with arrays, there are no arrays to set/reset
    */
-  function set ( $name, $value = '' ) {
+  function set ( $name, $value = "" ) {
     if ( isset($this->$name) ) {
       $this->$name = $value;
     } else {
@@ -1688,7 +1688,7 @@ class PHPMailer {
    * @param string $filename Parameter File Name
    */
   function getFile($filename) {
-    $return = '';
+    $return = "";
     if ($fp = fopen($filename, 'rb')) {
       while (!feof($fp)) {
         $return .= fread($fp, 1024);
index af1e63b406b4c5edecce217603703b73cb5c8b86..901a174119c332aa409b6fd69f9b827e2747b4ef 100644 (file)
@@ -275,7 +275,7 @@ class POP3
      * @param string $password
      * @return boolean
      */
-    function Login ($username = '', $password = '')
+    function Login ($username = "", $password = "")
     {
       if ($this->connected == false)
       {
@@ -382,7 +382,7 @@ class POP3
         $this->error = array(
           'error' => "Server reported an error: $string",
           'errno' => 0,
-          'errstr' => ''
+          'errstr' => ""
         );
 
         if ($this->do_debug >= 1)
index 809382894fa9ef5b43c7f3a73b6cd39c961b92ed..f0ce594fd91c3890cf4a736d057a32229de74dac 100644 (file)
@@ -6,7 +6,7 @@ $mail    = new PHPMailer();
 
 $body    = $mail->getFile('contents.html');
 
-$body    = eregi_replace("[\]",'',$body);
+$body    = eregi_replace("[\]","",$body);
 
 $mail->From     = "name@yourdomain.com";
 $mail->FromName = "First Last";
index ffbe4bd42982c853d728a979f09b70b9aa6bc322..63743ea8c22afbb31ae5fa6712ed995aafbe4cb0 100644 (file)
@@ -199,7 +199,7 @@ class phpmailerTest extends TestCase
             $this->AddChange("Encoding", $this->Mail->Encoding);
         if($this->Mail->CharSet != "iso-8859-1")
             $this->AddChange("CharSet", $this->Mail->CharSet);
-        if($this->Mail->Sender != "")
+        if($this->Mail->Sender != '')
             $this->AddChange("Sender", $this->Mail->Sender);
         if($this->Mail->WordWrap != 0)
             $this->AddChange("WordWrap", $this->Mail->WordWrap);
index 305bbac33bed224275d57ee2ad52865ac246e6f5..33447690cb6d9633e372274b3ee676c3480978c8 100644 (file)
@@ -77,7 +77,7 @@ class Assert {
 
   function failNotEquals($expected, $actual, $expected_label, $message=0) {
     // Private function for reporting failure to match.
-    $str = $message ? ($message . ' ') : '';
+    $str = $message ? ($message . ' ') : "";
     $str .= "($expected_label/actual)<br>";
     $htmlExpected = htmlspecialchars($expected);
     $htmlActual = htmlspecialchars($actual);
@@ -144,7 +144,7 @@ class TestCase extends Assert /* implements Test */ {
   }
 
   function fail($message=0) {
-    //printf("TestCase::fail(%s)<br>\n", ($message) ? $message : '');
+    //printf("TestCase::fail(%s)<br>\n", ($message) ? $message : "");
     /* JUnit throws AssertionFailedError here.  We just record the
        failure and carry on */
     $this->fExceptions[] = new Exception(&$message);
@@ -329,8 +329,8 @@ class TextTestResult extends TestResult {
     /* report result of test run */
     $nRun = $this->countTests();
     $nFailures = $this->countFailures();
-    printf("<p>%s test%s run<br>", $nRun, ($nRun == 1) ? '' : 's');
-    printf("%s failure%s.<br>\n", $nFailures, ($nFailures == 1) ? '' : 's');
+    printf("<p>%s test%s run<br>", $nRun, ($nRun == 1) ? "" : 's');
+    printf("%s failure%s.<br>\n", $nFailures, ($nFailures == 1) ? "" : 's');
     if ($nFailures == 0)
       return;
 
index c39c1717c003c159f96cdde377438b236a907049..f0efb0c91aabb1fb786df278db77f66a30eebafd 100644 (file)
@@ -212,14 +212,14 @@ class fase4_rdf {
     * @var    array
     */
     var $_display_opt = array(
-               'build' => '',
-               'image' => '',
-               'channel' => '',
-               'textinput' => '',
-               'cache_update' => '',
-               'sitelink' => '',
-               'refid' => '',
-               'reflink' => '',
+               'build' => "",
+               'image' => "",
+               'channel' => "",
+               'textinput' => "",
+               'cache_update' => "",
+               'sitelink' => "",
+               'refid' => "",
+               'reflink' => "",
     );
 
     /**
@@ -550,8 +550,8 @@ class fase4_rdf {
             'language'=>"",
             'pubDate'=>"",
             'lastBuildDate'=>"",
-            'width'=>'',
-            'height'=>''
+            'width'=>"",
+            'height'=>""
         );
     }
     /**
@@ -760,7 +760,7 @@ class fase4_rdf {
 
             break;
             case "channel":
-                if(isset($this->_display_opt["channel"]) AND $this->_display_opt["channel"] != "hidden" AND $this->_item["title"] != "") {
+                if(isset($this->_display_opt["channel"]) AND $this->_display_opt["channel"] != "hidden" AND $this->_item["title"] != '') {
                     $this->_output .= "<tr><td>\n";
                     $this->_output .= '<table border="0" width="100%" class="fase4_rdf_meta" cellspacing="5" cellpadding="2">'."\n";
                     $this->_output .= "<tr><td class=\"fase4_rdf\"><div class=\"fase4_rdf_title\">".htmlspecialchars($this->_item["title"])."</div></td></tr>\n";
@@ -1205,10 +1205,10 @@ class fase4_rdf {
     {
      $this->_use_proxy = true;
 
-     if ($phost != "")
+     if ($phost != '')
         $this->_phost = $phost;
 
-     if ($pport != "")
+     if ($pport != '')
         $this->_pport = $pport;
     }
 
@@ -1224,10 +1224,10 @@ class fase4_rdf {
     {
      $this->_use_proxy_auth = true;
 
-     if ($pname != "")
+     if ($pname != '')
         $this->_pname = $pname;
 
-     if ($ppasswd != "")
+     if ($ppasswd != '')
         $this->_ppasswd = $ppasswd;
     }
 
index 306fd1cbf75cde5b984701552861d04977fd9885..b8143d261719da51ea8037746008c6150b2bff81 100644 (file)
@@ -70,7 +70,7 @@ if (!empty($_POST['refid'])) {
 } elseif (isSessionVariableSet('refid')) {
        // Set session refid als global
        $GLOBALS['refid'] = bigintval(get_session('refid'));
-} elseif (GET_EXT_VERSION("sql_patches") != "") {
+} elseif (GET_EXT_VERSION("sql_patches") != '') {
        // Set default refid as refid in URL
        $GLOBALS['refid'] = bigintval($_CONFIG['def_refid']);
 } else {
index 9b4c5786e653e99ff8e05a98447a70861781ba63..42280ee7afc3f17781790664262f2a341e269d97 100644 (file)
@@ -66,30 +66,24 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
        //* DEBUG: */ die("*".$url_uid."/".$url_bid."/".$url_mid."*<pre>".print_r($FATAL, true)."</pre>");
 
        // 01        1        12            3    32           21    1     2      2     10
-       if (($url_uid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (count($FATAL) == 0))
-       {
+       if (($url_uid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (count($FATAL) == 0)) {
                // Maybe he wants to confirm an email?
-               if ($url_mid > 0)
-               {
+               if ($url_mid > 0) {
                        // Normal-Mails
                        $result = SQL_QUERY_ESC("SELECT link_type FROM "._MYSQL_PREFIX."_user_links WHERE stats_id=%d AND userid=%d LIMIT 1",
                         array($url_mid, $url_uid), __FILE__, __LINE__);
                        $type = "mailid"; $DATA = $url_mid;
-               }
-                elseif ($url_bid > 0)
-               {
+               } elseif ($url_bid > 0) {
                        // Bonus-Mail
                        $result = SQL_QUERY_ESC("SELECT link_type FROM "._MYSQL_PREFIX."_user_links WHERE bonus_id=%d AND userid=%d LIMIT 1",
                         array($url_bid, $url_uid), __FILE__, __LINE__);
                        $type = "bonusid"; $DATA = $url_bid;
-               }
-                else
-               {
+               } else {
                        // Problem: No ID entered
                        LOAD_URL("index.php");
                }
-               if (SQL_NUMROWS($result) == 1)
-               {
+
+               if (SQL_NUMROWS($result) == 1) {
                        // Load the entry
                        list($ltype) = SQL_FETCHROW($result);
 
@@ -110,8 +104,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                break;
                        }
 
-                       if (SQL_NUMROWS($result) == 1)
-                       {
+                       if (SQL_NUMROWS($result) == 1) {
                                // Load data
                                list($pool, $URL) = SQL_FETCHROW($result);
                                SQL_FREERESULT($result);
@@ -119,12 +112,10 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                // Is the user's ID unlocked?
                                $result = SQL_QUERY_ESC("SELECT status, sex, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%d LIMIT 1",
                                 array($url_uid), __FILE__, __LINE__);
-                               if (SQL_NUMROWS($result) == 1)
-                               {
+                               if (SQL_NUMROWS($result) == 1) {
                                        list($status, $sex, $sname, $fname) = SQL_FETCHROW($result);
                                        SQL_FREERESULT($result);
-                                       if ($status == "CONFIRMED")
-                                       {
+                                       if ($status == "CONFIRMED") {
                                                // User has confirmed his account so we can procede...
                                                switch ($ltype)
                                                {
@@ -158,8 +149,8 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                                        break;
                                                }
 
-                                               if ($VALID)
-                                               {
+                                               // Was that mail a valid one?
+                                               if ($VALID) {
                                                        // If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
                                                        if (($time == "0") && ($payment > 0)) { $URL = URL; $time = "1"; }
                                                        if (($time > 0) && (($payment > 0) || ($points > 0))) {
@@ -200,18 +191,28 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
 
        // Error code is set?
        if (!empty($msg)) {
-               LOAD_URL("modules.php?module=index&msg=".$msg);
-       }
+               switch ($_CONFIG['mailid_error_redirect']) {
+                       case "index": // Redirect to index page
+                               LOAD_URL("modules.php?module=index&msg=".$msg);
+                               break;
 
-       require_once(PATH."inc/footer.php");
-}
- else
-{
+                       case "reject": // Redirect to rejection page
+                               LOAD_URL($_CONFIG['reject_url']);
+                               break;
+               }
+       } else {
+               // Include footer
+               require_once(PATH."inc/footer.php");
+       }
+} else {
        // You have to configure first!
        LOAD_URL("install.php");
 }
-// Really all done here... ;-)
-die();
+
+// Shutdown database link
+if (is_resource($link)) {
+       SQL_CLOSE($link, __FILE__, __LINE__);
+}
 
 //
 ?>
index 3ab3598d2cda977ae9cfcec3ee7d62929baad0e7..e7911848830d1e227fad77dd53d77b95e1f73738 100644 (file)
 
        <TR>
                <TD width="10" class="seperator">&nbsp;</TD>
-               <TD align="right">{--ADMIN_OPTION_FOOTER_STATS--}:</TD>
+               <TD align="right">{--ADMIN_OPTION_SHOW_TIMINGS--}:</TD>
                <TD width="10" class="seperator">&nbsp;</TD>
                <TD><SPAN class="nobr"> <INPUT type="radio"
-                       name="show_timings" value="Y"{--_CFG_FOOTER_STATS_Y--}>&nbsp;{--YES--}<BR>
-               <INPUT type="radio" name="show_timings" value="N"{--_CFG_FOOTER_STATS_N--}>&nbsp;{--NO--}
+                       name="mailid_error_redirect" value="Y"{--_CFG_SHOW_TIMINGS_Y--}>&nbsp;{--YES--}<BR>
+               <INPUT type="radio" name="mailid_error_redirect" value="N"{--_CFG_SHOW_TIMINGS_N--}>&nbsp;{--NO--}
+               </SPAN></TD>
+               <TD width="10" class="seperator">&nbsp;</TD>
+       </TR>
+
+       <TR>
+               <TD colspan="5" height="7" class="seperator">&nbsp;</TD>
+       </TR>
+
+       <TR>
+               <TD width="10" class="seperator">&nbsp;</TD>
+               <TD align="right">{--ADMIN_OPTION_MAILID_REDIRECT--}:</TD>
+               <TD width="10" class="seperator">&nbsp;</TD>
+               <TD><SPAN class="nobr"> <INPUT type="radio"
+                       name="mailid_error_redirect" value="index"{--_CFG_MAILID_REDIRECT_INDEX--}>&nbsp;{--ADMIN_CONFIG_MAILID_REDIRECT_INDEX--}<BR>
+               <INPUT type="radio" name="mailid_error_redirect" value="reject"{--_CFG_MAILID_REDIRECT_REJECT--}>&nbsp;{--ADMIN_CONFIG_MAILID_REDIRECT_REJECT--}
                </SPAN></TD>
                <TD width="10" class="seperator">&nbsp;</TD>
        </TR>
index 4f42d4111e87c7b83acc03b3383f4cebbae3de8e..8c28de7d4520804b9dfdec6c67c1c3009eee3e5a 100644 (file)
@@ -1,13 +1,13 @@
 <DIV align="center">
        <DIV id="show_timings_block">
                <DIV class="show_timings_column" style="float:right; margin-right: 2px">
-                       {--FOOTER_STATS_NUM_TEMPLATES--}&nbsp;<SPAN class="show_timings_data">$content[numTemplates]</SPAN>
+                       {--SHOW_TIMINGS_NUM_TEMPLATES--}&nbsp;<SPAN class="show_timings_data">$content[numTemplates]</SPAN>
                </DIV>
                <DIV class="show_timings_column" style="float: left; margin-left: 2px">
-                       {--FOOTER_STATS_RUNTIME--}&nbsp;<SPAN class="show_timings_data">$content[runtime]</SPAN>&nbsp;{--FOOTER_STATS_SECS--}
+                       {--SHOW_TIMINGS_RUNTIME--}&nbsp;<SPAN class="show_timings_data">$content[runtime]</SPAN>&nbsp;{--SHOW_TIMINGS_SECS--}
                </DIV>
                <DIV class="show_timings_column" align="center">
-                       {--FOOTER_STATS_SQL_QUERIES--}&nbsp;<SPAN class="show_timings_data">$content[numSQLs]</SPAN>
+                       {--SHOW_TIMINGS_SQL_QUERIES--}&nbsp;<SPAN class="show_timings_data">$content[numSQLs]</SPAN>
                </DIV>
        </DIV>
 </DIV>