]> git.mxchange.org Git - mailer.git/commitdiff
stripslashes() removed from obsolete places
authorRoland Häder <roland@mxchange.org>
Fri, 15 Feb 2008 21:29:05 +0000 (21:29 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 15 Feb 2008 21:29:05 +0000 (21:29 +0000)
12 files changed:
inc/functions.php
inc/modules/admin/what-chk_regs.php
inc/modules/admin/what-config_email.php
inc/modules/admin/what-edit_emails.php
inc/modules/admin/what-extensions.php
inc/modules/admin/what-list_norefs.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-lock_user.php
inc/modules/admin/what-refbanner.php
inc/modules/admin/what-send_newsletter.php
inc/modules/admin/what-theme_check.php
inc/mysql-manager.php

index 021edbe8793423f4caec6d95b793a1c39304244e..62c7b75a7fc5a4ca9018a20ffd1b15313f01e262 100644 (file)
@@ -101,7 +101,7 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) {
                        // That's why you don't need any \n at the end of your HTML code... :-)
                        if (_OB_CACHING == "on") {
                                // Output into PHP's internal buffer
-                               echo stripslashes($HTML);
+                               echo $HTML;
 
                                // That's why you don't need any \n at the end of your HTML code... :-)
                                if ($NEW_LINE) echo "\n";
@@ -119,7 +119,7 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) {
                        if ((!empty($OUTPUT)) && (_OB_CACHING != "on")) { echo $OUTPUT; $OUTPUT = ""; }
 
                        // The same as above... ^
-                       echo stripslashes($HTML);
+                       echo $HTML;
                        if ($NEW_LINE) echo "\n";
                        break;
 
@@ -146,7 +146,7 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) {
                }
 
                // Output code here, DO NOT REMOVE! ;-)
-               echo stripslashes($OUTPUT);
+               echo $OUTPUT;
                flush();
        } elseif ((OUTPUT_MODE == "render") && (!empty($OUTPUT))) {
                // Rewrite links when rewrite extension is active
@@ -161,7 +161,7 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) {
                }
 
                // Output code here, DO NOT REMOVE! ;-)
-               echo stripslashes($OUTPUT);
+               echo $OUTPUT;
                flush();
        }
 }
@@ -371,10 +371,10 @@ Message : ".$MSG."
                $TO = COMPILE_CODE($TO);
 
                // Send Mail away
-               SEND_RAW_EMAIL(stripslashes($TO), COMPILE_CODE($SUBJECT), stripslashes($MSG), $FROM);
+               SEND_RAW_EMAIL($TO, COMPILE_CODE($SUBJECT), COMPILE_CODE($MSG), $FROM);
        } elseif ($HTML == 'N') {
                // Problem found!
-               SEND_RAW_EMAIL(WEBMASTER, COMPILE_CODE($SUBJECT), stripslashes($MSG), $FROM);
+               SEND_RAW_EMAIL(WEBMASTER, COMPILE_CODE($SUBJECT), COMPILE_CODE($MSG), $FROM);
        }
 }
 
index 7f7df23637a1cd87a565ee054e5813b8c3db72e6..bbdf02305a70f6c1df30a29aaac9143af406353e 100644 (file)
@@ -58,7 +58,7 @@ if (SQL_NUMROWS($query) > 0)
                        'sex'   => TRANSLATE_SEX($sex),
                        'sname' => $sname,
                        'fname' => $fname,
-                       'email' => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".stripslashes($email)."</A>",
+                       'email' => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>",
                        'ip'    => $IP,
                        'ref'   => $ref,
                        'hash'  => $hash,
index e87d58d23389b5edd469b79e1e0f5024485a07d0..23ac9fe670b2811891d12c9017006ae24e07032c 100644 (file)
@@ -51,7 +51,7 @@ if (isset($_POST['add_max']))
        {
                // Add this value (including comment)
                $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_max_receive (value, comment) VALUES ('%s', '%s')",
-                array(bigintval($_POST['max']), stripslashes($_POST['comment'])),__FILE__, __LINE__);
+                array(bigintval($_POST['max']), $_POST['comment']),__FILE__, __LINE__);
                $content = "<SPAN class=\"admin_done\">".MAX_VALUE_SAVED."</SPAN>";
        }
         else
index bf98dad7c04761ebe40a2c9bb0805d5537b21220..431c51881925f55357fa7742604b125cab03919d 100644 (file)
@@ -59,9 +59,9 @@ if (SQL_NUMROWS($result) > 0)
                list($subj, $text, $url) = SQL_FETCHROW($result);
                SQL_FREERESULT($result);
                define('__ID_VALUE'  , $_POST['id']);
-               define('__URL_VALUE' , stripslashes($url));
-               define('__SUBJ_VALUE', stripslashes($subj));
-               define('__TEXT_VALUE', stripslashes($text));
+               define('__URL_VALUE' , $url);
+               define('__SUBJ_VALUE', $subj);
+               define('__TEXT_VALUE', $text);
 
                // Load template
                LOAD_TEMPLATE("admin_edit_email");
index bfad063c37f26a8020a7f7db92c79be101ab2946..bd283a93da5e4955d2f0eaccf2e815f4a24a6e8f 100644 (file)
@@ -422,7 +422,7 @@ case "search": // Search for new extensions on our server
                                        'link'    => $LINK,
                                        'last'    => MAKE_DATETIME($EXT_SEARCH['fctime'][$id], "2"),
                                        'size'    => TRANSLATE_COMMA(round($EXT_SEARCH['fsize'][$id] / 1.024) / 1000),
-                                       'info'    => stripslashes($EXT_SEARCH['infos'][$id]),
+                                       'info'    => $EXT_SEARCH['infos'][$id],
                                );
 
                                // Load row template add current size to total size and switch color
index 313ccfc2481236b8747809ea84ed75597995b516..e034b3bf5051f58c7aa9da24f696f8beb9af9af5 100644 (file)
@@ -130,7 +130,7 @@ if (SQL_NUMROWS($result_master) > 0)
                        'sex'    => TRANSLATE_SEX($sex),
                        'sname'  => $sname,
                        'fname'  => $fname,
-                       'email'  => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".stripslashes($email)."</A>",
+                       'email'  => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>",
                        'addr'   => $IP,
                        'ref'    => $ref,
                        'status' => TRANSLATE_STATUS($status),
index 0ab0267cdbce1fd9957d61ff5b9b875ca6d7a9cd..f964aef935a529966e0e12221893f914542a715b 100644 (file)
@@ -214,7 +214,7 @@ WHERE userid=%d LIMIT 1",
                                'sex'    => TRANSLATE_SEX($sex),
                                'sname'  => $sname,
                                'fname'  => $fname,
-                               'email'  => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".stripslashes($email)."</A>",
+                               'email'  => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>",
                                'addr'   => $IP,
                                'ref'    => $ref,
                                'status' => TRANSLATE_STATUS($status),
index c257d797f6ffca55e40a41b66cb08666b810046e..021adfaf4bf4d78a1824aa2ad3968603750064e0 100644 (file)
@@ -56,16 +56,14 @@ if (!empty($_GET['u_id']))
                {
                        // Output selection form with all confirmed user accounts listed
                        ADD_MEMBER_SELECTION_BOX();
-               }
-                elseif (!empty($_POST['lock']))
-               {
+               } elseif (!empty($_POST['lock'])) {
                        // Ok, lock the account!
                        $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='LOCKED' WHERE userid=%d LIMIT 1",
                         array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
                        if (SQL_AFFECTEDROWS($link, __FILE__, __LINE__) == 1)
                        {
                                // Send an email to the user! In later version you can optionally switch this feature off
-                               $msg = LOAD_EMAIL_TEMPLATE("lock-user", stripslashes($_POST['reason']), $_GET['u_id']);
+                               $msg = LOAD_EMAIL_TEMPLATE("lock-user", $_POST['reason'], bigintval($_GET['u_id']));
 
                                // Send away...
                                SEND_EMAIL($email, ADMIN_LOCKED_SUBJ, $msg);
@@ -74,16 +72,14 @@ if (!empty($_GET['u_id']))
                        // Prepare message
                        $MSG = USER_ACCOUNT_LOCKED_1.$_GET['u_id'].USER_ACCOUNT_LOCKED_2;
                        $ACT = true;
-               }
-                elseif (!empty($_POST['unlock']))
-               {
+               } elseif (!empty($_POST['unlock'])) {
                        // Ok, unlock the account!
                        $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='CONFIRMED' WHERE userid=%d LIMIT 1",
                         array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
                        if (SQL_AFFECTEDROWS($link, __FILE__, __LINE__) == 1)
                        {
                                // Send an email to the user! In later version you can optionally switch this feature off
-                               $msg = LOAD_EMAIL_TEMPLATE("unlock-user", stripslashes($_POST['reason']), $_GET['u_id']);
+                               $msg = LOAD_EMAIL_TEMPLATE("unlock-user", $_POST['reason'], bigintval($_GET['u_id']));
 
                                // Send away...
                                SEND_EMAIL($email, ADMIN_UNLOCKED_SUBJ, $msg);
index 9b0b8fa371691e43f970a78ab755bf9fd4776f5c..c52ab321cd6985eef84c98239ecf32a7c42d12a8 100644 (file)
@@ -83,7 +83,7 @@ VALUES ('%s', '%s', '%s')",
 
                        // Update entry
                        $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_refbanner SET url='%s', alternate='%s', visible='%s' WHERE id=%d LIMIT 1",
-                        array(stripslashes($_POST['url'][$id]), $_POST['alternate'][$id], $_POST['visible'], $id), __FILE__, __LINE__);
+                        array($_POST['url'][$id], $_POST['alternate'][$id], $_POST['visible'], $id), __FILE__, __LINE__);
                }
                break;
        }
index 8f85d134b969370c01cc3657a70d0d026bdb4896..9a4377833fc953976f36a94e5fdb466153539182 100644 (file)
@@ -65,7 +65,7 @@ if (isset($_POST['ok']))
                        }
 
                        // Compile message
-                       $_POST['text'] = stripslashes(COMPILE_CODE($_POST['text']));
+                       $_POST['text'] = COMPILE_CODE($_POST['text']);
 
                        // Load template
                        $msg = LOAD_EMAIL_TEMPLATE($template, $_POST['text'], $id);
index 83aac95704784b0e5722b7e3166d8dc424249f5e..04caa4616b17d34a45a320d7c31527ebc78a9cf5 100644 (file)
@@ -139,7 +139,7 @@ if (($response[sizeof($response) - 1] == "[EOF]") && ($response[0] != "[EOF]"))
 <TR>
   <TD class=\"switch_sw".$SW." bottom2\">&nbsp;</TD>
   <TD colspan=\"4\" class=\"switch_sw".$SW." bottom2\">
-    <FONT class=\"tiny\">".stripslashes($THEMES['infos'][$idx])."</FONT>
+    <FONT class=\"tiny\">".$THEMES['infos'][$idx]."</FONT>
   </TD>
 </TR>\n";
                        $TSIZE += $THEMES['fsize'][$idx];
index ad4a3bdb69e99b36e9b42a7b503324ac344921ac..ac4ee4c582985e9c022310aea8215a78d6d11b83 100644 (file)
@@ -1451,7 +1451,7 @@ WHERE p.userid=%d", array(bigintval($uid)), __FILE__, __LINE__);
        }
 
        // Now a mail to the user and that's all...
-       $msg = LOAD_EMAIL_TEMPLATE("del-user", stripslashes($reason), $uid);
+       $msg = LOAD_EMAIL_TEMPLATE("del-user", $reason, $uid);
        SEND_EMAIL($uid, ADMIN_DEL_ACCOUNT, $msg);
 
        // Ok, delete the account!