MicroMonkey:make sure to set all cache folders 777. If you add a new folder to cache, you need to set it as well to 777 to allow www-data to write to it.
Quote:not sure. here is my reqall.php file. It is set for php 7, so keep that in mind if you are using php5 or such
Database Error in reqall.php on line 1030: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' 43)' at line 1. Query was: INSERT INTO addedrequests (requestid,userid) VALUES(, 43).@SQL_Query_exec("INSERT INTO addedrequests (requestid,userid) VALUES($id, $CURUSER[id])"); Quote:can you add the mod to your file like the instructions say and then post that code so we can see what you are adding?
print("<td class=\"ttable_col$x\" nowrap=\"nowrap\">".(count($expandrows)?"<a href=\"javascript: klappe_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\" /></a>":"")." $bookmark <a title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&hit=1\">$dispname</a> $freeleech $new</td>");
case 'name':
$char1 = 75; //cut name length
$smallname = htmlspecialchars(CutName($row["name"], $char1));
$dispname = " ".$smallname." ";
$last_access = $CURUSER["last_browse"];
$time_now = gmtime();
if ($last_access > $time_now || !is_numeric($last_access))
$last_access = $time_now;
if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access)
//$dispname .= "";
$dispname .= " <span style=\"float:right\"><i class=\"flaticon-new\" style=\"color:red;font-size:18px;\"></i> </span>";
if ($row["comments"] >= 1)
$dispname .= "<span class=\"koment\" align=\"right\" style=\"float:right\"><i class=\"far fa-comment-dots\" style=\"color:green\"></i> " . number_format($row["comments"]) . "</span>";
if ($row["seeders"] >= 50)
$dispname .= "<span style=\"float:right\"><i class=\"flaticon-fire\" style=\"color:gold;font-size:18px;\"></i> </span>";
if ($row["freeleech"] == 1)
$dispname .= " <span style=\"float:right\"><i class=\"flaticon-peace\" style=\"color:gold;font-size:18px;\"></i> </span>";
if ($row["vip"] == "yes")
$dispname .= "<span style=\"float:right\"><img src=\"./images/vip.png\" width=\"30\" title=\"VIP torrent\"> </span>";
if ($row["webseed"] == 1)
$dispname .= " <span style=\"float:right\"><i class=\"flaticon-bulb\" style=\"color:gold;font-size:18px;\"></i> </span>";
if ($row["recommended"] == "yes")
$dispname .= " <span style=\"float:right\"><i class=\"flaticon-top\" style=\"color:gold;font-size:18px;\"></i> </span>";
if ($row["sticky"] == "yes")
$dispname .= " <span style=\"float:right\"><i class=\"flaticon-oscars\" style=\"color:gold;font-size:18px;\"></i> </span>";
//////////BALLOON TOOLTIP MOD///////////////////////////
$res7 = SQL_Query_exec("SELECT torrents.anon, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.url, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, torrentgenres.name AS genre_name, torrentgenres.image AS genre_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN torrentgenres ON torrents.torrentgenres = torrentgenres.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id");
$row = mysql_fetch_assoc($res7);
if (isset($row["lang_image"]) && $row["lang_image"] != "")
$bimg = @mysql_fetch_array(@SQL_Query_exec("SELECT image1 FROM torrents WHERE id=$id"));
$Limg = @mysql_fetch_array(@SQL_Query_exec("SELECT * FROM torrentlang WHERE id=$id"));
$Lbalon =($Limg["image"] ? "$site_config[SITEURL]/images/languages/" . htmlspecialchars($Limg["image"]) : "images/languages/unknown.png");
$balon =($bimg["image1"] ? "$site_config[SITEURL]/uploads/images/" . htmlspecialchars($bimg["image1"]) : "images/nocover.png");
$descr = "<table width=100% class=account align=center><tr><td class=css-right colspan=2 align=center>$smallname</td></tr><tr valign=top><td align=center class=css><img border=0 width=220 src=$balon class=poster></td><td class=css-right><div align=left class=torrent-category-detail clearfix><ul class=list><li><h4 align=center>Specifikacija</h4></li><li><b>Postavljeno : </b>" . date("d-m-Y", utc_to_tz_time($row["added"])) . "</li><li><b>Seedera : </b><font color=#0000ff>" . $row["seeders"] . "</font></li><li><b>Leechera : </b><font color=#ff0000>" . $row["leechers"] . "</font></li><li><b>Preuzeto : </b><font color=#00ff00>" . $row["times_completed"] . "</font></li><li><b>Subtitl : </b> <img border=\'0\' height=\'18px\' src=\' " . $site_config['SITEURL'] . "/images/languages/" . $row["lang_image"] . " \' alt=\' " . $row["lang_name"] . " \' /></li></ul><br><br></div></td></tr><tr><td class=css-right colspan=2 align=center> <img border=\'0\' src=\' " . $site_config['SITEURL'] . "/images/genre/" . $row["genre_image"] . " \' alt=\' " . $row["genre_name"] . " \' /> </td></tr></table>";
print("<td class=ttable_col$x nowrap>$reqname".(count($expandrows)?" <a href=\"javascript: klappe_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\"></a>":"")." <a href=\"torrents-details.php?id=$id&hit=1\" onmouseover=\"return overlib('$descr')\"; onmouseout=\"return nd()\">$dispname</a> </td>");
//print("<td class=ttable_col$x nowrap>$reqname".(count($expandrows)?" <a href=\"javascript: klappe_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\"></a>":"")." <div class=\"wrapper\"><a href=\"torrents-details.php?id=$id&hit=1\" onmouseover=\"return overlib('$descr')\"; onmouseout=\"return nd()\">$dispname</a></div></td>");
break;
//////////BALLOON TOOLTIP MOD///////////////////////////
case 'dl':
print("<td class='ttable_col$x' align='center'><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img src='" . $site_config['SITEURL'] . "/images/icon_download.gif' border='0' alt=\"Download .torrent\" /></a></td>");
break;
case 'uploader':
echo "<td class='ttable_col$x' align='center'>";
if (($row["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $row["owner"] && $CURUSER["edit_torrents"] != "yes")
echo "Anonymous";
elseif ($row["username"])
echo "<a href='account-details.php?id=$row[owner]'>".class_user($row[username])."</a>";
else
echo "Unknown";
echo "</td>";
break;
case 'comments':
print("<td class='ttable_col$x' align='center'><font size='1' face='Khand'><a href='comments.php?type=torrent&id=$id'>" . number_format($row["comments"]) . "</a></font></td>\n");
break;
case 'nfo':
if ($row["nfo"] == "yes")
print("<td class='ttable_col$x' align='center'><a href='nfo-view.php?id=$row[id]'><img src='" . $site_config['SITEURL'] . "/images/icon_nfo.gif' border='0' alt='View NFO' /></a></td>");
else
print("<td class='ttable_col$x' align='center'>-</td>");
break;
case 'size':
print("<td class='ttable_col$x' align='center'><button class='Tsiz'><i class=\"fas fa-database\"></i> ".mksize($row["size"])."</button></td>\n");
break;
case 'completed':
print("<td class='ttable_col$x' align='center'><button class='Tdl'><i class=\"fab fa-android\"></i> ".number_format($row["times_completed"])." </button></td>");
break;
case 'seeders':
print("<td class='ttable_col$x' align='center'><button class='Tsee'><i class=\"fas fa-angle-double-up\"></i> ".number_format($row["seeders"])."</button></td>\n");
break;
case 'leechers':
print("<td class='ttable_col$x' align='center'><button class='Tlee'><i class=\"fas fa-angle-double-down\"></i> " . number_format($row["leechers"]) . "</button></td>\n");
break;
case 'health':
print("<td class='ttable_col$x' align='center'><img src='".$site_config["SITEURL"]."/images/health/health_".health($row["leechers"], $row["seeders"]).".gif' alt='' /></td>\n");
break;
case 'external':
if ($site_config["ALLOWEXTERNAL"]){
if ($row["external"]=='yes')
print("<td class='ttable_col$x' align='center'>".T_("E")."</td>\n");
else
print("<td class='ttable_col$x' align='center'>".T_("L")."</td>\n");
}
break;
case 'added':
print("<td class='ttable_col$x' align='center'>".date("d-m-Y H:i:s", utc_to_tz_time($row['added']))."</td>");
break;
case 'speed':
if ($row["external"] != "yes" && $row["leechers"] >= 1){
$speedQ = SQL_Query_exec("SELECT (SUM(downloaded)) / (UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(started)) AS totalspeed FROM peers WHERE seeder = 'no' AND torrent = '$id' ORDER BY started ASC");
$a = mysql_fetch_assoc($speedQ);
$totalspeed = mksize($a["totalspeed"]) . "/s";
} else
$totalspeed = "--";
print("<td class='ttable_col$x' align='center'>$totalspeed</td>");
break;
Quote:Thanks @Botanicar i send tomorrow my online block code.
BTW your source code look awesome. Great job. This is unique ;)
$id = (int) $_GET["id"];
// sett torrent to today
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (!isset($_POST['setnow'])) {
SQL_Query_exec("UPDATE torrents SET added = '".get_date_time()."' WHERE id='".$id."' ");
}
}
// sett torrent to today
print ("<div><form method='POST' action='?setnow&id=$id'> <input type='submit' class='btn btn-block btn-success' value='".T_("M_TODAY")."' /> </form></div>");
Quote:oops, speak too fast, after more than 30 minutes around, my torrent is red and sharing, thank you for the help
no SQL error or the .torrent
--
-- Table structure for table `torrent_extension_groups`
--
CREATE TABLE IF NOT EXISTS `torrent_extension_groups` (
`group_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`group_name` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
`cat_id` tinyint(2) NOT NULL DEFAULT '0',
`allow_group` tinyint(1) unsigned NOT NULL DEFAULT '0',
`download_mode` tinyint(1) unsigned NOT NULL DEFAULT '1',
`upload_icon` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
`max_filesize` int(20) unsigned NOT NULL DEFAULT '0',
`allowed_forums` text COLLATE utf8_bin NOT NULL,
`allow_in_pm` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
INSERT INTO `extension_groups` (`group_id`, `group_name`, `cat_id`, `allow_group`, `download_mode`, `upload_icon`, `max_filesize`, `allowed_forums`, `allow_in_pm`) VALUES
(1, 'GROUP_IMAGES', 0, 0, 1, '', 0, '', 1),
(2, 'GROUP_ARCHIVES', 0, 0, 1, '', 0, '', 1),
(3, 'GROUP_PLAIN_TEXT', 0, 1, 1, '', 0, '', 1),
(4, 'GROUP_DOCUMENTS', 1, 1, 1, '', 0, '', 1),
(5, 'GROUP_REAL_MEDIA', 3, 0, 1, '', 0, '', 1),
(6, 'GROUP_WINDOWS_MEDIA', 2, 0, 1, '', 0, '', 1),
(7, 'GROUP_FLASH_FILES', 5, 0, 1, '', 0, '', 0),
(8, 'GROUP_QUICKTIME_MEDIA', 6, 0, 1, '', 0, '', 0),
(9, 'GROUP_DOWNLOADABLE_FILES', 0, 0, 1, '', 0, '', 0);
--
-- Table structure for table `torrent_extensions`
--
CREATE TABLE IF NOT EXISTS `torrent_extensions` (
`extension_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`group_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`extension` varchar(100) COLLATE utf8_bin NOT NULL DEFAULT '',
PRIMARY KEY (`extension_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
INSERT INTO `extensions` (`extension_id`, `group_id`, `extension`) VALUES
(1, 1, 'gif'),
(2, 1, 'png'),
(3, 1, 'jpeg'),
(4, 1, 'jpg'),
(5, 1, 'tif'),
(6, 1, 'tiff'),
(7, 1, 'tga'),
(8, 2, 'gtar'),
(9, 2, 'gz'),
(10, 2, 'tar'),
(11, 2, 'zip'),
(12, 2, 'rar'),
(13, 2, 'ace'),
(14, 2, 'torrent'),
(15, 2, 'tgz'),
(16, 2, 'bz2'),
(17, 2, '7z'),
(18, 3, 'txt'),
(19, 3, 'c'),
(20, 3, 'h'),
(21, 3, 'cpp'),
(22, 3, 'hpp'),
(23, 3, 'diz'),
(24, 3, 'csv'),
(25, 3, 'ini'),
(26, 3, 'log'),
(27, 3, 'js'),
(28, 3, 'xml'),
(29, 4, 'xls'),
(30, 4, 'xlsx'),
(31, 4, 'xlsm'),
(32, 4, 'xlsb'),
(33, 4, 'doc'),
(34, 4, 'docx'),
(35, 4, 'docm'),
(36, 4, 'dot'),
(37, 4, 'dotx'),
(38, 4, 'dotm'),
(39, 4, 'pdf'),
(40, 4, 'ai'),
(41, 4, 'ps'),
(42, 4, 'ppt'),
(43, 4, 'pptx'),
(44, 4, 'pptm'),
(45, 4, 'odg'),
(46, 4, 'odp'),
(47, 4, 'ods'),
(48, 4, 'odt'),
(49, 4, 'rtf'),
(50, 5, 'rm'),
(51, 5, 'ram'),
(52, 6, 'wma'),
(53, 6, 'wmv'),
(54, 7, 'swf'),
(55, 8, 'mov'),
(56, 8, 'm4v'),
(57, 8, 'm4a'),
(58, 8, 'mp4'),
(59, 8, '3gp'),
(60, 8, '3g2'),
(61, 8, 'qt'),
(62, 9, 'mpeg'),
(63, 9, 'mpg'),
(64, 9, 'mp3'),
(65, 9, 'ogg'),
(66, 9, 'ogm'),
(67, 9, 'php');

<script src="<?= $site_config["SITEURL"]; ?>/backend/ajaxonline.js" language="JavaScript" type="text/javascript"></script>
<script type="text/javascript" src="/scripts/overlib.js"></script>
<script type="text/javascript" src="scripts/ncode_imageresizer.js"></script>
<script type="text/javascript" src="scripts/crawler.js">
<script type="text/javascript" src="scripts/jquery.min.js">
<script src="scripts/jquery.min.js"></script>
<link rel="stylesheet" href="<?= $site_config["SITEURL"]; ?>/jquery/QapTcha.jquery.css" type="text/css" />