function class_user($name) {
if ($classy["class"] == "4") {
$premium = "<img src='https://cdn1.iconfinder.com/data/icons/awards-trophies/512/medal_award_trophy_premium_win_first_place_11-256.png' width='32' height='32' title='This user is PREMIUM user'>";
}
else {
$premium = "";
}
return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."</font>");
return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."".$premium."</font>");

}
//==| Recommended torrent
$recommended = $_POST["recommended"];
if ($recommended == "yes") {
$recommended = "yes";
} else {
$recommended = "no";
}
$ret = SQL_Query_exec("INSERT INTO torrents
freeleech,
recommended,
'".$freeleech."',
'".$recommended."',
//==| Recommended torrent
?><tr><td align='left' class='css' valign='top'><?php echo T_("RECOMMENDED_TORRENT"); ?>:</td>
<td align='left' class='css-right' valign='top'><?php printf("<input name='recommended' value='yes' type='radio' ".($recommended ? " checked='checked'" : "")." /> ".T_("YES")."
<input name='recommended' value='no' type='radio' ".(!$recommended ? " checked='checked'" : "")." /> ".T_("NO").""); ?> <i><?php echo T_("RECOMMENDED_MSG");?></i></td></tr><?php
if ($row["freeleech"] == 1)
$dispname .= " <img src='images/free.gif' border='0' alt='' />";
if ($row["recommended"] == "yes")
$dispname .= " <span style=\"float:right !important;\"><img src=\"./images/rec.png\" width=\"32\" height=\"31\" style=\"margin-top:0px !important;\" title=\"Recommended\" alt=\"Recommedned\"></span>";

case 'name':
$char1 = 75; //cut name length
$smallname = htmlspecialchars(CutName($row["name"], $char1));
$dispname = "<b>".$smallname."</b>";
$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 .= "<b><font color='#ff0000'> - (".T_("NEW")."!)</font></b>";
if ($row["freeleech"] == 1)
$dispname .= " <img src='images/free.gif' border='0' alt='' />";
//////////BALLOON TOOLTIP MOD///////////////////////////
$preparing_descr = SQL_Query_exec("SELECT torrents.anon, torrents.views, torrents.hits, torrents.descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, 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.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, 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 users ON torrents.owner = users.id WHERE torrents.id = $id");
$descr = mysqli_fetch_array($preparing_descr);
$des = mysqli_real_escape_string($GLOBALS["DBconnector"], format_comment($descr['descr']));
//$des = mysqli_real_escape_string($GLOBALS["descr"], format_comment($descr['descr']));
$char5 = 400; //cut description length
if (($descr["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $descr["owner"] && $CURUSER["edit_torrents"] != "yes") {
$descr['username'] = "".T_("ANONYMOUS")."";
}else{
$descr['username'];
if (empty($descr["lang_name"]))
$descr["lang_name"] = "Unknown/NA";
$lang = "<b>" .T_("LANG"). " : </b>" . $descr["lang_name"] . "";
if (isset($descr["lang_image"]) && $descr["lang_image"] != "")
$flag = "<img src=$site_config[SITEURL]/images/languages/$descr[lang_image] border=0 alt=$descr[lang_name]>";
$bimg = @mysqli_fetch_array(@SQL_Query_exec("SELECT image1 FROM torrents WHERE id=$id"));
$balon =($bimg["image1"] ? "$site_config[SITEURL]/uploads/images/" . htmlspecialchars($bimg["image1"]) : "images/nocover.jpg");
}
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>":"")." <a href=\"torrents-details.php?id=$id&hit=1\" onMouseover=\"return overlib('<table width=\'100%\' class=\'table table_bordered2\' align=\'center\'><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'>$smallname</th></tr><tr valign=\'top\'><td align=\'center\' class=\'css\'><img border=\'0\' width=\'150\' src=\'".$balon."\' class=\'poster\'></td><td class=\'css-right\'><div align=\'left\' class=\'torrent-category-detail clearfix\'><ul class=\'list\'><li><h6 align=\'center\'>SPECIFICATION</h6></li><li><font color=\'gold\'>Uploaded : </font><font color=\'yellow\'>" . date("d-m-Y", utc_to_tz_time($row["added"])) . "</font></li><li><font color=\'gold\'>Uploaded by: </font><font color=\'yellow\'>" . $descr['username'] . "</font></li><li><font color=\'gold\'>Size : </font><font color=\'yellow\'> ". mksize($row["size"]) . "</font></li><li><font color=\'gold\'>Downloaded: </font><font color=\'yellow\'>" . $row["times_completed"] . " - x</font></li><li><font color=\'gold\'>Views: </font><font color=\'yellow\'>" . $descr["hits"] . " - x</font></li><li><font color=\'gold\'>Seeders : </font><font color=\'yellow\'>" . $row["seeders"] . "</font></li><li><font color=\'gold\'>Leechers : </font><font color=\'yellow\'>" . $row["leechers"] . "</font></li></ul></div></td></tr><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'><h3> ".T_("DESCRIPTION")." </h3></th></tr><tr><td class=\'css-right\' colspan=\'2\' align=\'left\'> " . CutName($des, $char5) . " </td></tr></table>', CENTER, HEIGHT, 300, WIDTH, 650)\"; onMouseout=\"return nd()\"> ".$smallname." </a></td>");
/// END BALONN MOD ///
//////////BALLOON TOOLTIP MOD///////////////////////////
//==| Description data
$preparing_descr = SQL_Query_exec("SELECT torrents.anon, torrents.views, torrents.hits, torrents.descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, 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.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, 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 users ON torrents.owner = users.id WHERE torrents.id = $id");
$descr = mysqli_fetch_array($preparing_descr);
$des = mysqli_real_escape_string($GLOBALS["DBconnector"], format_comment($descr['descr']));
$char5 = 180; //cut description length
if (($descr["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $descr["owner"] && $CURUSER["edit_torrents"] != "yes") {
$descr['username'] = "".T_("ANONYMOUS")."";
}else{
$descr['username'];
}
//==| Cover Image data
$nocover = "".$site_config['SITEURL']."/images/nocover.png";
$imga = @mysqli_fetch_array(@SQL_Query_exec("SELECT image1, image2 FROM torrents WHERE id=$id"));
$imgb = $imga["image1"];
$imgc = $imga["image2"];
if ($imgb) { $balloon = "<img src=uploads/images/".htmlspecialchars($imgb)." width=150 class=poster>"; }
if (!$imgb) { $balloon = "<table width=\'100%\' class=\'table table_bordered2\' align=\'center\'><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'>$smallname</th></tr><tr valign=\'top\'><td align=\'center\' class=\'css\'><img border=\'0\' width=\'150\' src=\'".$imgc."\' class=\'poster\'></td><td class=\'css-right\'><div align=\'left\' class=\'torrent-category-detail clearfix\'><ul class=\'list\'><li><h6 align=\'center\'>Specifikation</h6></li><li><font color=\'gold\'>Posted : </font><font color=\'yellow\'>" . date("d-m-Y", utc_to_tz_time($row["added"])) . "</font></li><li><font color=\'gold\'>Uploaded by: </font><font color=\'yellow\'>" . $descr['username'] . "</font></li><li><font color=\'gold\'>Size : </font><font color=\'yellow\'> ". mksize($row["size"]) . "</font></li><li><font color=\'gold\'>Downloaded: </font><font color=\'yellow\'>" . $row["times_completed"] . " - x</font></li><li><font color=\'gold\'>Views: </font><font color=\'yellow\'>" . $descr["hits"] . " - x</font></li><li><font color=\'gold\'>Seeders : </font><font color=\'yellow\'>" . $row["seeders"] . "</font></li><li><font color=\'gold\'>Leechers : </font><font color=\'yellow\'>" . $row["leechers"] . "</font></li></ul></div></td></tr><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'><h3> ".T_("DESCRIPTION")." </h3></th></tr><tr><td class=\'css-right\' colspan=\'2\' align=\'center\'><div class=\'info\'> " . CutName($des, $char5) . " </div></td></tr></table>"; }
if (!$imgb && !$imgc) { $balloon = "<img src=".$nocover." width=150 class=poster>"; }
//////////BALLOON TOOLTIP MOD///////////////////////////
if ($classy['warned'] == "yes") {
$warn = "<img src='" . $site_config[SITEURL] . "/images/warned.png' height='12' title='Warned' border='0'>";
} else {
$warn = "";
}
if ($classy['parked'] == "yes") {
$park = "<img src='" . $site_config[SITEURL] . "/images/parked.png' height='12' title='Parked' border='0'>";
} else {
$park = "";
}
return unesc("<font color='" . $gcolor . "'>" . $name . " " . $star . "" . $warn . "" .$disabled. "" . $rang . "</font>");
return unesc("<font color='" . $gcolor . "'>" . $name . " " . $star . "" . $warn . "" .$disabled. "" .$park. "" . $rang . "</font>");
Quote:
Quote:
Quote:
Quote:

$parked1 = sqlesc(get_date_time(gmtime() - 86400*92)); 

Apache version: Apache/2.4.56
PHP version: 7.4.9
MySQL version: 10.4.30-MariaDB