//== Start of Main Cleanup
function autoclean() {
global $site_config;
require_once("cleanup.php");
$now = gmtime();
$res = SQL_Query_exec("SELECT last_time FROM tasks WHERE task='cleanup'");
$row = mysqli_fetch_row($res);
if (!$row) {
SQL_Query_exec("INSERT INTO tasks (task, last_time) VALUES ('cleanup',$now)");
return;
}
$ts = $row[0];
if ($ts + $site_config["autoclean_interval"] > $now)
return;
SQL_Query_exec("UPDATE tasks SET last_time=$now WHERE task='cleanup' AND last_time = $ts");
if (!mysqli_affected_rows($GLOBALS["DBconnector"]))
return;
do_cleanup();
}
//== End of Main Cleanup
if ($row["banned"] == "yes")
{
print ("<center><b>" .T_("DOWNLOAD"). ": </b>".T_("BANNED")."!</center>");
}
global $CURUSER;
if ($CURUSER["class"] <= "4" && $row["vip"] == "yes"){
show_error_msg("Sorry !!", "<img src='https://cdn0.iconfinder.com/data/icons/city-elements-flaticon/64/stop-stop_sign-traffic_sign-architecture_and_city-stopping-circulation-signaling-256.png' width='150'><h3 style='color:gold !important;'>Your account is temporarily unable to download this torrent.</h3><br /><div class='torrent-detail-2 shadow-2'> You must be a VIP user to download it!<br /><br /><button class='btn btn-dark' onclick='history.back()'>Go Back</button></div>", 1);
}

Fatal error: Uncaught ArgumentCountError: Too few arguments to function viponly(), 0 passed in /home/exyusub/public_html/torrents-details.php on line 18 and exactly 1 expected in public_html/backend/functions.php:2180 Stack trace: #0 public_html/torrents-details.php(18): viponly() #1 {main} thrown in public_html/backend/functions.php on line 2180
function viponly() {
global $CURUSER;
if ($CURUSER["class"] <= 4 || $row["vip"]== yes)
show_error_msg("Sorry !!", "<img src='https://cdn0.iconfinder.com/data/icons/city-elements-flaticon/64/stop-stop_sign-traffic_sign-architecture_and_city-stopping-circulation-signaling-256.png' width='150'><h3 style='color:gold !important;'>Your account is temporarily unable to download this torrent.</h3><br /><div class='torrent-detail-2 shadow-2'> You must be a VIP user to download it!</div>", 1);
}
function viponly() {
global $CURUSER;
if ($CURUSER["class"] <= "4" && $row["vip"] == "yes")
show_error_msg("Sorry !!", "<img src='https://cdn0.iconfinder.com/data/icons/city-elements-flaticon/64/stop-stop_sign-traffic_sign-architecture_and_city-stopping-circulation-signaling-256.png' width='150'><h3 style='color:gold !important;'>Your account is temporarily unable to download this torrent.</h3><br /><div class='torrent-detail-2 shadow-2'> You must be a VIP user to download it!</div>", 1);
}
INSERT INTO tmdb (id_torrent, id_tmdb, titre, tagline, duree, producteur, genre, resume, acteur, saison, episodes, statut, ba, date, image, backdrop, casts, review)INSERT INTO tmdb (id_torrent, id_tmdb, titre, duree, producteur, genre, resume, acteur, saison, episodes, statut, ba, date, image, casts, review)
tagline,
backdrop,
#======================================================================#
# Start class_user function
#======================================================================#
function class_user($name)
{
global $site_config;
$a = "SELECT u.class, u.donated, u.warned, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
//echo "Query a".$a."<br />";
$res = SQL_Query_exec($a);
$classy = @mysqli_fetch_array($res);
$gcolor = $classy['Color'];
if ($classy['donated'] > 0) {
$star = "<img src='" . $site_config['SITEURL'] . "/images/donor.png' alt='fait_un_don' border='0' width='32' height='32'>";
} else {
$star = "";
}
if ($classy['warned'] == "yes") {
$warn = "
<img src='" . $site_config['SITEURL'] . "/images/warned.gif' alt='Averti' border='0'>";
} else {
$warn = "";
}
//== Premium badge
if ($classy["class"] == "2") {
$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 = "";
}
//== End of premium badge
return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "".$premium."</font>");
}
#======================================================================#
# End Start class_user function
#======================================================================#