Bonjour
Je viens vous partager ma correction, je ne suis pas parfait, donc faite le moi savoir si besoin.
Amicalement
@Spiritblue
-----------------------
Good morning
I'm here to share my correction with you, I'm not perfect, so let me know if necessary.
Kind regards
@Spiritblue
Search forums.php for this line:
Chercher dans forums.php cette ligne :
Replace with :
Remplacer par :
* I'll give you the image, but you can put something else and don't forget to change the writing in French for English if necessary.
* Je vous remets l'image, mais vous pouvez mettre autre chose et oublié pas de changer l'écrit en français pour anglais si besoin.
Upadate, by djlive for more security
Je viens vous partager ma correction, je ne suis pas parfait, donc faite le moi savoir si besoin.
Amicalement
@Spiritblue
-----------------------
Good morning
I'm here to share my correction with you, I'm not perfect, so let me know if necessary.
Kind regards
@Spiritblue
Search forums.php for this line:
Chercher dans forums.php cette ligne :
$num = 0;
while ($a = mysqli_fetch_assoc($res)){
++$num;
print("<tr class='table_col2'><td align='center' class='ttable_col1' >$num</td><td class='ttable_col2' style='text-align: justify'><a href='".$site_config['SITEURL']."/account-details.php?id=$a[id]'><b>".class_user($a['username'])."</b></a></td><td align='center' class='ttable_col1'>$a[num]</td></tr>\n");
}Replace with :
Remplacer par :
// Update Top forum posts by spiritblue 2024
$num = 0;
while ($a = mysqli_fetch_assoc($res)){
++$num;
if ($a['username']) {
print("<tr class='table_col2'><td align='center' class='ttable_col1' >$num</td><td class='ttable_col2' style='text-align: justify'><a href='".$site_config['SITEURL']."/account-details.php?id=$a[id]'><b>".class_user($a['username'])."</b></a></td><td align='center' class='ttable_col1'>$a[num]</td></tr>\n");
}else{
print("<tr class='table_col2'><td align='center' class='ttable_col1'>$num</td><td class='ttable_col2' style='text-align: justify'><img src='images/inconnu.png' height='34' width='36' alt='Inconnu' title='Inconnu!' border='0'><i><b>Banmni / Inconnu</b></i></td><td align='center' class='ttable_col1'>$a[num]</td></tr>\n");
}
}* I'll give you the image, but you can put something else and don't forget to change the writing in French for English if necessary.
* Je vous remets l'image, mais vous pouvez mettre autre chose et oublié pas de changer l'écrit en français pour anglais si besoin.
Upadate, by djlive for more security
//Update Top forum posts by spiritblue 2024
//Update 2024 for more security by djlive
$num = 0;
while ($a = mysqli_fetch_assoc($res)) {
++$num;
$username = htmlspecialchars($a['username'], ENT_QUOTES, 'UTF-8');
$userId = (int)$a['id'];
$userNum = htmlspecialchars($a['num'], ENT_QUOTES, 'UTF-8');
$siteUrl = htmlspecialchars($site_config['SITEURL'], ENT_QUOTES, 'UTF-8');
if ($a['username']) {
echo "<tr class='table_col2'><td align='center' class='ttable_col1' >$num</td><td class='ttable_col2' style='text-align: justify'><a href='{$siteUrl}/account-details.php?id=$userId'><b>" . class_user($username) . "</b></a></td><td align='center' class='ttable_col1'>$userNum</td></tr>\n";
} else {
echo "<tr class='table_col2'><td align='center' class='ttable_col1'>$num</td><td class='ttable_col2' style='text-align: justify'><img src='images/inconnu.png' height='34' width='36' alt='Inconnu' title='Inconnu!' border='0'><i><b>Banmni / Inconnu</b></i></td><td align='center' class='ttable_col1'>$userNum</td></tr>\n";
}
}
Last edited by spiritblue on 2024-06-06 21:50:29
