Example #1
0
function print_nomatch()
{
    global $string1002;
    print_htmlbegin("standard");
    echo "<table>\n";
    echo "<tr><td align=\"justify\">";
    echo $string1002;
    echo "</td></tr>\n";
    echo "</table>\n";
    print_htmlend();
}
Example #2
0
         echo "<tr><td align=\"center\">\n";
         echo "<a href=\"browse.php?dir={$dir}/{$files[$i]}\">";
         echo $files[$i];
         echo "</a>";
         echo "</td></tr>\n";
     }
     // Gebe die Anzahl der gefunden Verzeichnisse/Files aus.
     echo "<tr><td align=\"center\"><hr></td></tr>\n";
     echo "<tr><td>" . count($dirs) . " {$string2}, " . count($files) . " {$string3}</td></tr>\n";
     echo "</table>\n<br>\n";
     // Gebe Suchfeld aus.
     echo "<form target=\"download\" action=\"browse.php\" method=\"GET\">\n";
     echo "<input size=\"15\" maxlength=\"50\" type=\"text\" name=\"suche\">&nbsp;&nbsp;&nbsp;";
     echo "<input type=\"submit\" name=\"submit\" value=\"" . $string5 . "\"><br>";
     echo "<input type=\"hidden\" name=\"dir\" hidden value=\"{$dir}\">";
     print_htmlend();
 } else {
     // Falls auf eine reguläre Datei geklickt wurde,
     // bestimme den Typ der Datei.
     $fp = popen("/usr/bin/file -bin {$dir}", 'r');
     if (!$fp) {
         $contentType = "application/octet-stream";
     } else {
         while ($string = fgets($fp, 1024)) {
             $contentType .= $string;
         }
         pclose($fp);
     }
     // Hier wird dem Skript mitgeteilt, dass die Session-Variable
     // in den folgende Zeilen nicht mehr geändert wird.
     // (Dies ist notwendig, um einen Client das gleichzeitige Downloaden
Example #3
0
function print_description()
{
    global $string3;
    print_htmlbegin("standard");
    echo "<table>\n";
    echo "<tr><td align=\"justify\">";
    echo $string3;
    echo "</td></tr>\n";
    echo "</table>\n";
    print_htmlend();
}