Just a very simple edit to make it so that you dont just have green and red as the colors in your SEED and LEECH column on the index page. I just noticed it, and didnt like it much.
In backend/functions.php
In backend/functions.php
case 'seeders':
if ($row["seeders"] == "0")
print("<td class='ttable_col$x' align='center'><font size ='2' color='red'><b>".number_format($row["seeders"])."</b></font></td>\n");
else
print("<td class='ttable_col$x' align='center'><font size ='2' color='green'><b>".number_format($row["seeders"])."</b></font></td>\n");
break;
case 'leechers':
if ($row["leechers"] > "0")
print("<td class='ttable_col$x' align='center'><font size ='2' color='blue'><b>" . number_format($row["leechers"]) . "</b></font></td>\n");
else
print("<td class='ttable_col$x' align='center'><font size ='2' color='red'><b>" . number_format($row["leechers"]) . "</b></font></td>\n");
break;
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-01-28 02:48:30
