so sieht es jetzt aus:
Alles anzeigen
aber scheint mir nicht in ordnung zu sein schau es dir mal an:
heisse-russen.de/vote/upload.php
PHP-Quellcode
- <?php
- include ("header.php");
- include ("login_check.php");
- error_reporting(E_ALL);
- include_once('functions.php');
- $path = '/vote/admin/img/';
- $img_path_up = '/srv/www/htdocs/web11/html/vote/admin/img/';
- $groessemax = 10000;
- $length = 25;
- if (!isset($_GET["loechen"])) $_GET["loechen"] = "";
- if (!isset($_GET["file"])) $_GET["file"] = "";
- ?>
- <html>
- <head>
- <title>Datei Upload</title>
- <style type="text/css">
- <!--
- body, table{
- color: #000;
- font: 11px Verdana, Tahoma, Arial, Helvetica, sans-serif;
- }
- div{
- margin:0;
- padding:0;
- }
- td{ align:center;
- }
- -->
- </style>
- </head>
- <body>
- <table border="1" width="100%" style="border-collapse: collapse">
- <tr>
- <td class="Klasse1" colspan="4" ><a class="St">Russisch</a></td>
- </tr>
- <tr bgcolor="Gainsboro" style="font-weight:bold">
- <td><SPAN class="Klasse2">File</SPAN></td>
- <td><SPAN class="Klasse2">Größe</SPAN></td>
- <td><SPAN class="Klasse2">Datum</SPAN></td>
- </tr>
- <?
- $page = isset($_GET['page']) ? $_GET['page'] : 0;
- $offset = 0;
- $offset = $page * $length;
- $verzeichnis_daten[] = array(filemtime($img_path_up.$file), $file);
- $fp = opendir ($img_path_up);
- while (false !== ($file = readdir($fp))) {
- if (filetype($img_path_up.$file)!="dir"){
- $verzeichnis_daten[] = $file;
- }
- }
- closedir($fp);
- usort($verzeichnis_daten, create_function('$a, $b', 'if ($a[0] == $b[0]) return 0; else return $a[0]>$b[0]? +1 : -1;'));
- for ($i = $offset; $i < $offset+$length AND $i < count($verzeichnis_daten); $i++) {
- echo '<tr bgcolor="Gainsboro">';
- echo ' <td class="Klasse3"><a href="http://'.htmlspecialchars($_SERVER['HTTP_HOST']).$path.$verzeichnis_daten[$i][1].'" target="_blank">'.$verzeichnis_daten[$i][1].'</a></td>';
- echo ' <td class="Klasse3">'.fs_convert($img_path_up.$verzeichnis_daten[$i][1],2).'</td>';
- echo ' <td class="Klasse3">'.date("d.m.Y", last_change($img_path_up.$verzeichnis_daten[$i][1])).'</td>';
- echo '</tr>';
- }
- if(count($verzeichnis_daten)==0){
- echo '<tr bgcolor="Gainsboro">';
- echo ' <td colspan="4">Es ist noch keine Musik im Angebot.</td>';
- echo '</tr>';
- }
- echo '</table>';
- if ($page > 0 AND count($verzeichnis_daten)!=0) {
- echo '<a href="'.htmlspecialchars($_SERVER['PHP_SELF']).'?page='.($page-1).'">«</a> ';
- }
- if (( count($verzeichnis_daten)/$length ) > ($page+1) AND count($verzeichnis_daten)!=0 ) {
- echo '<a href="'.htmlspecialchars($_SERVER['PHP_SELF']).'?page='.($page+1).'">»</a> ';
- }
- ?>
- </body>
- </html>
- <?
- include ("footer.php");
- ?>
aber scheint mir nicht in ordnung zu sein schau es dir mal an:
heisse-russen.de/vote/upload.php