Welcome guest! Please Login or Register.

Strip all the slashes from downloads
Author Message
c0rrupt Administrator


Posts: 265
Joined: Mar 2010
Post: #1
Strip all the slashes from downloads
0
0
by ddlshack on Thu Jun 25, 2009

Ok this minor modification will strip any excess slashes produced by crappy autosubmitters, or by magic quotes, before submitting them.

open funcs.php.
add:
function stripallslashes($string)
    {
        while(stripslashes($string) != $string)
          $string = stripslashes($string);
       return $string;
    }

above:
?>
find:
$titles = $_POST['title'];
          $urls = $_POST['url'];
          $types = $_POST['type'];
          $sname = $_POST['sname'];
          $surl = $_POST['surl'];
          $email = $_POST['email'];

replace with:

$titles = array_map("stripallslashes", $_POST['title']);
      $urls = array_map("stripallslashes", $_POST['url']);
      $types = array_map("stripallslashes", $_POST['type']);
      $sname = stripallslashes($_POST['sname']);
      $surl = stripallslashes($_POST['surl']);
      $email = stripallslashes($_POST['email']);
11-07-2010 06:26 AM
Website Find Reply


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Show the downloads for a specific site (WCDDL v2) c0rrupt 0 98 07-26-2012 04:35 PM
Last Post: c0rrupt
  Show site Downloads/Rank [module] c0rrupt 9 610 12-25-2011 01:41 AM
Last Post: WJManiaC
  Clean blank downloads (Automatically) immu 2 214 02-05-2011 06:20 PM
Last Post: c0rrupt
  Amount of Downloads in Graph c0rrupt 9 408 11-15-2010 01:34 PM
Last Post: nYXem
  Show Top 10 Downloads by Views [module] c0rrupt 0 134 11-07-2010 02:19 PM
Last Post: c0rrupt
  Full Speed Downloads c0rrupt 0 138 11-07-2010 02:12 PM
Last Post: c0rrupt
  Accept All Downloads By Site c0rrupt 1 270 05-28-2010 07:41 AM
Last Post: nirav5300



User(s) browsing this thread: 1 Guest(s)

WCDDL Skins and Mods Affiliates
PhazeDDL WarezUNION WarezOrder Free Full Downloads Free Full Downloads SuppaDDL Full Downloads CafeDDL-Serves Premium Downloads!
Click Here to Affiliate!

This forum uses Lukasz Tkacz MyBB addons.