10th March 2015, 02:03
|
Banned
|
|
Join Date: Apr 2014
Posts: 160
|
|
Quote:
Originally Posted by mat22
Here is what I'm using.
upload.php
Code:
tr($tracker_lang['img_poster'], $tracker_lang['avialable_formats'].": .gif .jpg .png<br /><b><u>Paraugs:</u></b> http://www.filebitz.org/pic/smilies/yes.gif<br /><br /><input type=\"text\" name=\"poster\" size=\"80\">\n", 1);
takeupload.php
Code:
$poster = $_POST["poster"];
if ($poster) {
if (!preg_match('(gif|jpg|jpeg|png|JPG|PNG|GIF|JFIF|Exif|TIFF|RAW|BMP|PM|PGM|PBM|PNM)', $poster))
stderr("Wrong picture format!");
}
details.php
Code:
$poster = "<img width=\"212\" border='0' src='".$row['poster']."' />";
if (!empty($row["poster"])) {
tr($tracker_lang['img_poster'], $poster, 1);
}
Of course, you still need to add it in database and in queries in takeupload.php and details.php but I think you'll know how to do that. And since this is code for YSE you might need to modify it to work for Torrent Trader.
|
for a start your using axam code will not work look at it
$tracker_lang lol tr
|