sx.team_gaming
Dieses alte Script funktioniert in neuen PHP Content Systemen nicht mehr.
Ich hatte bereits
in
ausgetauscht - aber offensichtlich fehlt noch etwas.
Wenn jemand etwas entdeckt... Danke!
Ich hatte bereits
PHP:
db
PHP:
SQL
Wenn jemand etwas entdeckt... Danke!
PHP:
$title = $DB->fetch_assoc(
$SQL->query("SELECT
forumthread_title
FROM
".pkSQLPREFIX."_forumthread
WHERE
forumthread_id = '".intval($threadid)."'
"));
if($fluke == 1) {
$fluke = 'ORDER BY RAND()';
}else{
$fluke = '';
}
$threads_query = $SQL->query("SELECT
forumthread_id,
forumthread_catid,
forumthread_lastreply_time,
forumthread_lastreply_autor,
forumthread_title,
forumthread_autor
FROM
".pkSQLPREFIX."_forumthread
WHERE
MATCH (forumthread_title)
AGAINST ('%".$title['forumthread_title']."%') && forumthread_id != '".intval($threadid)."'
".$fluke."
");
$num = $SQL->num_rows($threads_query);
if($num == '') {
eval ("\$threads_like_the_same_row.= \"".pkTpl("forum/threads_like_the_same_no")."\";");
}else{
$count = 0;
while($threads_res = $SQL->fetch_assoc($threads_query)) {
if($count < $limit) {
$cat_res = $SQL->fetch_assoc(
$SQL->query("SELECT
forumcat_id,
forumcat_name,
forumcat_rrights
FROM
".pkSQLPREFIX."_forumcat
WHERE
forumcat_id = '".$threads_res['forumthread_catid']."'
"));
if(!getrights($cat_res['forumcat_rrights'])) {
$threads_like_the_same_row.= '';
}else{
$img_open_array = getimagesize("images/open.gif");
$width_height_open_gif = $img_open_array[3];
$img_dir_array = getimagesize("images/dir.gif");
$width_height_dir_gif = $img_dir_array[3];
$img_notice_array = getimagesize("images/icons/notice.gif");
$width_height_notice_gif = $img_notice_array[3];
$row_class = rowcolor($row_class);
$thread_title = pkStringCut($threads_res['forumthread_title'], 50);
$create_date = date("d.m.y - H:i", $threads_res['forumthread_lastreply_time']);
eval ("\$threads_like_the_same_row.= \"".pkTpl("forum/threads_like_the_same_row")."\";");
$count++;
}
}
}
}
?>