<?php $db = new DB("torrents"); $db->setSort("torrent_added DESC"); $db->setLimit("6"); $db->select("torrent_visible = '1'"); if ($db->numRows()) { ?> <table width="100%"> <?php while ($db->nextRecord()) { ?> <tr> <td> <a href="<?php echo page("torrent", "details", "", "", "", "id=" . $db->torrent_id); ?> "><?php echo trimstr($db->torrent_name, 37); ?> </a> </td> </tr> <?php } ?> </table> <?php } else { echo notice(_t("No Torrents found")); }
$stag[1] = $error_stag; $etag[1] = $error_etag; } $title = stripslashes(trimstr($_POST['title'])); if ($title == '') { $sub_failed = 1; $stag[2] = $error_stag; $etag[2] = $error_etag; } $speaker = stripslashes(trimstr($_POST['speaker'])); if ($speaker == '') { $sub_failed = 1; $stag[3] = $error_stag; $etag[3] = $error_etag; } $email = stripslashes(trimstr($_POST['email'])); if ($email == '') { $sub_failed = 1; $stag[4] = $error_stag; $etag[4] = $error_etag; } $session = $_POST['session']; if (!$session) { $sub_failed = 1; $stag[5] = $error_stag; $etag[5] = $error_etag; } else { $selected[$session] = "selected"; } $prestype = $_POST['prestype']; if ($prestype == 'poster') {