For example change: $a[username] with: ".class_user($a[username])." and so far...
".class_user($arr[username])."
$subject = $_POST["subject"];
$debut ="."/forums.php?action=viewtopic&topicid=".$topicid."&page=last']".$subject."Nouveau topic par";
$fin = "."/account-details.php?id=".$CURUSER['id']."]".$CURUSER['username']."";
$post_text = sqlesc($debut." ".$_POST["subject"]."".$fin);
SQL_Query_exec("INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES ('', 'Le Forum', $post_text, '".get_date_time()."', '0')");
"phoenix75, post: 90727":[url="https://www.torrenttrader.org/topic/16496-annonce-forumsphp-et-ajshoutbox/"]ICI / HERE[/url]
hello Tiloup where put this code?
bonjour Tiloup ou mettre les lignes de code?quel fichiƩ?
i want testing :)
j'aimerais tester :)
$new_ajmsg = "New Torrent: ."/torrents-details.php?id=".$id."]".$torrent." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "";
".class_user_bbcode($CURUSER['username'])."
// latest torrents^M
begin_frame(T_("LATEST_TORRENTS"));^M
^M
print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");^M
^M
if ($site_config["MEMBERSONLY"] && !$CURUSER) {^M
echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";^M
if($CURUSER["downloadbanned"]=="yes")
show_error_msg("Error","Your download rights have been taken away. If you feel this was an error then please PM staff.",1);
} else {^M
$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent, users.username, users.privacy, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 25";^M
$res = SQL_Query_exec($query);^M
if (mysql_num_rows($res)) {^M
torrenttable($res);^M
}else {^M
^M
print("<div class='f-border'>");^M
print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");^M
print("<div>");^M
print T_("NO_UPLOADS");^M
print("</div>");^M
print("</div>");^M
^M
}^M
if ($CURUSER)^M
SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");^M
^M
}^M
end_frame();
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;
return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."</font>"); if ($classy[0]==7)
return unesc('<span style="color:'.$col.'; text-shadow: 1px #3520fd;>"'.$name.'</span>'.$star.''.$warn.''.$disabled.'');
elseif ($classy[0]==6)
return unesc('<span style="color:'.$col.'; text-shadow: 1px #3520fd;>"'.$name.'</span>'.$star.''.$warn.''.$disabled.'');
else
return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."</font>");
No users online
Torrents
Members
Online