SQL
In torrents-details.php find:
Images:
torrents-upload.php

torrents-details.php

torrents-edit.php
ALTER TABLE `torrents` ADD `timages` TEXT NOT NULL;In torrents-details.php find:
., ., ., ., ., ., torrents.freeleech,
Add
torrents.timages,
example
., ., ., ., ., ., torrents.freeleech, torrents.timages,
Find
" . format_comment($row['descr']) . "
Add after:
print ("<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"6\"><tr>
<td class=table_col2 colspan=\"2\">
<center>".format_comment($row['timages'])."</center>
</td>
</tr>");
In torrents-upload.php find:
, anon and add timages
example: , anon, timages
Find:
, $anon and add $timages
example: , $anon, $timages
Find:
$category = "<select name=\"type\">\n<option value=\"0\">" . CHOOSE_ONE . "</option>\n";
Add above:
print ("<tr><td align=right>Images: </td><td align=left><textarea name=\"timages\" rows=\"4\" cols=\"80\">[img=image] [img=image]
[img=image] [img=image] </textarea><br></td></tr>");
In torrents-edit.php find:
$updateset[] = "category = " . (0 + $type);
After add
$updateset[] = "timages = " . sqlesc($timages);
Find
$updateset[] = "visible = '" . ($_POST["visible"] ? "yes" : "no") . "'";
if (!empty($_POST['tube']))
$tube = unesc($_POST['tube']);
$updateset[] = "tube = " . sqlesc($tube);
After add:
$timages = $_POST["timages"];
if ($timages) {
if (!preg_match('(gif|jpg|jpeg|png|JPG|PNG|GIF)', $timages))
stderr("Bad format");
}
Find:
echo "<tr><td align=right width=60><B>Name: </b></TD><TD><input type=\"text\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" size=\"55\" /></td></tr>";
After add:
echo "<tr><td align=right><B>Images: </b></td><td><textarea name=\"timages\" rows=\"4\" cols=\"80\">".$row['timages']."</textarea></td></tr>";Images:
torrents-upload.php

torrents-details.php

torrents-edit.php