View Single Post
  #7  
Old 21st November 2010, 17:37
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
here is the edit part
open edit.php and find
Code:
                else $owner = $original_owner;
and add after
Code:
if(isset($post_img) && $post_img != ''){
        if (!preg_match('#^(https?://).*?\.(gif|jpg|jpeg|png)$#i', $post_img, $match))
        {
             $errmsg[] ='The URL you specified For Poster is invalid.';
        }
        elseif (empty($match[2]))
        {
             $errmsg[] ='The URL you specified is not a (gif|jpg|jpeg|png).';
        }
        else
        $post_img = "'" . addslashes($post_img) . "'";
}
else
$post_img = "NULL";
if(isset($screensa) && $screensa != ''){
        if (!preg_match('#^(https?://).*?\.(gif|jpg|jpeg|png)$#i', $screensa, $match))
        {
             $errmsg[] ='The URL you specified For Screenshot1 is invalid.';
        }
        elseif (empty($match[2]))
        {
             $errmsg[] ='The URL you specified is not a (gif|jpg|jpeg|png).';
        }
        else
        $screensa = "'" . addslashes($screensa) . "'";
}
else
$screensa = "NULL";
if(isset($screensb) && $screensb != ''){
        if (!preg_match('#^(https?://).*?\.(gif|jpg|jpeg|png)$#i', $screensb, $match))
        {
             $errmsg[] ='The URL you specified For Screenshot2 is invalid.';
        }
        elseif (empty($match[2]))
        {
             $errmsg[] ='The URL you specified is not a (gif|jpg|jpeg|png).';
        }
        else
        $screensb = "'" . addslashes($screensb) . "'";
}
else
$screensb = "NULL";
if(isset($screensc) && $screensc != ''){
        if (!preg_match('#^(https?://).*?\.(gif|jpg|jpeg|png)$#i', $screensc, $match))
        {
             $errmsg[] ='The URL you specified For Screenshot3 is invalid.';
        }
        elseif (empty($match[2]))
        {
             $errmsg[] ='The URL you specified is not a (gif|jpg|jpeg|png).';
        }
        else
        $screensc = "'" . addslashes($screensc) . "'";
}
else
$screensc = "NULL";
if(isset($screensd) && $screensd != ''){
        if (!preg_match('#^(https?://).*?\.(gif|jpg|jpeg|png)$#i', $screensd, $match))
        {
             $errmsg[] ='The URL you specified For Screenshot4 is invalid.';
        }
        elseif (empty($match[2]))
        {
             $errmsg[] ='The URL you specified is not a (gif|jpg|jpeg|png).';
        }
        else
        $screensd = "'" . addslashes($screensd) . "'";
}
else
$screensd = "NULL";
now find
Code:
               $sql = "UPDATE ".$db_prefix."_torrents SET name = '".$namex."', exeem = '".$exeem."', descr = '".$descr."', category = '".$torrent_category."', ownertype = '".$ownertype."', owner = '".$owner."', password = ".$password.", banned = '".$banned."', nuked = '".$nuked."', ratiobuild = '".$build."', nukereason='".$nukereason."', evidence = '".$evidence."', imdb = '".$imdblink."' WHERE id = '".$id."';";
and make it
Code:
               $sql = "UPDATE ".$db_prefix."_torrents SET
               name = '".$namex."',
               exeem = '".$exeem."',
               descr = '".$descr."',
               post_img = ".$post_img.",
               screan1 = ".$screensa.",
               screan2 = ".$screensb.",
               screan3 = ".$screensc.",
               screan4 = ".$screensd.",
               category = '".$torrent_category."',
               ownertype = '".$ownertype."',
               owner = '".$owner."',
               password = ".$password.",
               banned = '".$banned."',
               nuked = '".$nuked."',
               ratiobuild = '".$build."',
               imdb = '".$imdblink."',  
               nukereason='".$nukereason."',
               evidence = '".$evidence."' WHERE id = '".$id."';";
Now find
Code:
                echo "<tr><td><p>IMDB Link<p></td><td><p><input type=\"text\" name=\"imdblink\" value=\"".$row['imdb']."\" size=\"80\"></p>\n</td></tr>\n";
and add after
Code:
                echo "<tr><td><p>"._bt_poster." :<p></td><td><p><input type=\"text\" name=\"post_img\" value=\"".$row['post_img']."\" size=\"80\"></p>\n</td></tr>\n";
                echo "<tr><td><p>"._bt_screensa."<p></td><td><p><input type=\"text\" name=\"screensa\" value=\"".$row['screan1']."\" size=\"80\"></p>\n</td></tr>\n";
                echo "<tr><td><p>"._bt_screensb."<p></td><td><p><input type=\"text\" name=\"screensb\" value=\"".$row['screan2']."\" size=\"80\"></p>\n</td></tr>\n";
                echo "<tr><td><p>"._bt_screensc."<p></td><td><p><input type=\"text\" name=\"screensc\" value=\"".$row['screan3']."\" size=\"80\"></p>\n</td></tr>\n";
                echo "<tr><td><p>"._bt_screensd."<p></td><td><p><input type=\"text\" name=\"screensd\" value=\"".$row['screan4']."\" size=\"80\"></p>\n</td></tr>\n";
Reply With Quote
The Following 2 Users Say Thank You to joeroberts For This Useful Post:
daffy (22nd November 2010), Phogo (13th February 2012)