$fid
= escape(
$menu
->get(2),
'integer'
);
$erg
= db_query(
"SELECT xic_downloads.cat,ssurl,surl,url,hits,vote_klicks,vote_wertung,xic_downloads.name,version,creater,downs,descl,xic_downloads.id,DATE_FORMAT(time,'%d.%m.%Y') as datum FROM xic_downloads LEFT JOIN xic_downcats ON xic_downcats.id = xic_downloads.cat WHERE xic_downloads.id = "
.
$fid
.
" AND ("
.
$_SESSION
[
'authright'
].
" <= xic_downcats.recht OR (xic_downloads.cat = 0 AND xic_downcats.recht IS NULL))"
);
if
(
$row
[
'vote_wertung'
] == 10 ) {
echo
'<td><font color="00FF00">'
.
$row
[
'vote_wertung'
].
'</font></td>'
;
}
elseif
(
$row
[
'vote_wertung'
] >= 5 ) {
echo
'<td><font color="FFDD00">'
.
$row
[
'vote_wertung'
].
'</font></td>'
;
}
else
{
echo
'<td><font color="FF0000">'
.
$row
[
'vote_wertung'
].
'</font></td>'
;
}
if
(@db_num_rows(
$erg
) <> 1) {
$title
=
$allgAr
[
'title'
].
' :: Downloads '
;
$hmenu
=
'<a class="smalfont" href="?downloads">Downloads</a>'
;
$design
=
new
design (
$title
,
$hmenu
);
$design
->header();
echo
'Der Download wurde nicht gefunden'
;
$design
->footer(1);
}