Schon erledigt, der Name der Downloaddatei darf nicht zu lang sein,
Zuletzt modifiziert von Betatester am 13.05.2010 - 19:09:00
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <?php # Copyright by: DjGeCk0 # Support: www.djgecko.kilu.de und ilch-forum # Version: 1.0 # Getestet und Entwickelt für Ilch 1.1 Update M ################################################### # EINSTELLUNGEN # ################################################### # Trage hier die Anzahl der X meisten Downloads ein $xtopdowns = '3' ; ################################################### # ab hier bitte nichts mehr ändern # ################################################### # error_reporting (E_ALL); ini_set ( 'display_errors' , 1); defined ( 'main' ) or die ( 'no direct access' ); $tpl = new tpl ( 'topdowns.htm' , 0 ); ################################################### # START ABFRAGEN # ################################################### $mostdowns = db_query ( "SELECT * FROM prefix_downloads ORDER BY downs DESC LIMIT " . $xtopdowns . "" ); $posttopdowns = '' ; while ( $row = db_fetch_assoc ( $mostdowns )) { $posttopdowns .= ' <tr> <td><b>»</b> <a href= "index.php?downloads-show-'.$row['id'].'" > '.$row[' name '].' </a></td> <td> '.$row[' downs '].' </td> <td>| '.$row[' hits '].' </td> </tr>'; } #################################################### # TEMPLATE ERSTELLEN # #################################################### $tpl ->set( 'POSTBESTDOWNS' , $posttopdowns ); $tpl ->out(0); ?> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <?php # Copyright by: DjGeCk0 # Support: www.djgecko.kilu.de und ilch-forum # Version: 1.0 # Getestet und Entwickelt für Ilch 1.1 Update M ################################################### # EINSTELLUNGEN # ################################################### # Trage hier die Anzahl der X meisten Downloads ein $xtopdowns = '3' ; # Trage hier max. Zeichenanzahl des Titels ein $xanzzeich = '20' ; ################################################### # ab hier bitte nichts mehr ändern # ################################################### # error_reporting (E_ALL); ini_set ( 'display_errors' , 1); defined ( 'main' ) or die ( 'no direct access' ); $tpl = new tpl ( 'topdowns.htm' , 0 ); ################################################### # START ABFRAGEN # ################################################### $mostdowns = db_query ( "SELECT * FROM prefix_downloads ORDER BY downs DESC LIMIT " . $xtopdowns . "" ); $posttopdowns = '' ; while ( $row = db_fetch_assoc ( $mostdowns )) { $posttopdowns .= ' <tr> <td><b>»</b> <a href= "index.php?downloads-show-'.$row['id'].'" > '.((strlen($row[' name '])<$xanzzeich) ? $row[' name '] : substr($row[' name '],0,($xanzzeich-3)).' ... ').' </a></td> <td> '.$row[' downs '].' </td> <td>| '.$row[' hits '].' </td> </tr>'; } #################################################### # TEMPLATE ERSTELLEN # #################################################### $tpl ->set( 'POSTBESTDOWNS' , $posttopdowns ); $tpl ->out(0); ?> |
Geschlossen | ||
![]() |
Zurück zu Fehlersuche und Probleme |