Durchsuchen Button kommt nicht |
Broken Sword
Mitglied
Dabei seit: 18.06.04
Beiträge: 537
Forenversion: 2.3
|
|
Seh grad, dass der Autor wirklich schlampig war.
Ersetze ab Zeile 59 mit dem hier
code: |
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:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
|
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center">
<span class="grossschrift">
<b>Dateien hochladen</b>
</span>
</td></tr>
<tr><td width="100%" align="center">
<span class="grossschrift">
<br>
Die Datei darf nicht größer als <?php echo "$mb"; ?> MB sein.<br>
Wieviele Dateien sollen hochgeladen werden?<br>
<br>
<?php if($inhalt=="0"){ echo "<a href=\"index.php?action=inhalt\" class=\"grosslink\"><b>Inhalt des Uploadordners</b></a><br>";} ?>
<br>
</span>
<form action="index.php" method="post">
<select name="numfiles" class="select">
<?php
for ($i=1; $i<=$dateien; $i++) {
echo ("<option value=$i>$i</option>");
}
?>
</select>
<input type="Submit" value="Anzahl festlegen" name="up" class="button">
<br><br>
</form>
<form enctype="multipart/form-data" method="post" action="index.php">
<?php
if (isset($_POST['up'])){
echo "<span class=\"grossschrift\"><b>$numfiles</b> ";
echo $_POST['numfiles'] == '1' ? 'Datei kann' : 'Dateien können';
echo ' hochgeladen werden.</span><p>';
for ($i=1; $i<=$_POST['numfiles']; $i++){
echo "<input type=\"File\" name=\"myfile$i\" class=\"input\"><br>\n";}
if($upw=="1"){echo'<br><span class="grossschrift">Passwort</span> <input type="password" name="pwd" class="input">';}
echo '<br><br><input type="Submit" name="sendfiles" value="hochladen" class="button"><br><br><a href="http://www.arne-home.de" class="kleinlink" target="_blank">Upload v1.0.2 © by Arne</a>';}
if (isset($_POST['sendfiles'])){
$numsendfiles = count($HTTP_POST_FILES);
foreach($HTTP_POST_FILES as $strFieldName => $arrPostFiles){
if ($arrPostFiles['size'] > $b_min && $arrPostFiles['size'] < $b_max){
$strFileName = $arrPostFiles['name'];
$strFileTemp = $arrPostFiles['tmp_name'];
@copy ($strFileTemp, "$pfad/$strFileName");
echo "<br><span class=\"grossschrift\"><font color=green><b>Datei <u>$strFileName</u> erfolgreich hochgeladen.</b></font></span><br>";
}
else{
echo "<br><span class=\"grossschrift\"><font color=red><b>Die Datei muß größer als $b_min Bytes und kleiner als $mb MB sein!</b></font></span><br>";}
}
if ($upmail == 1) {
$ip = $_SERVER["REMOTE_ADDR"];
$subject = "Upload auf Homepage";
$body .= "Datum: ".date("d.m.Y, H:i:s")." Uhr\n";
$body .= "IP: $ip";
@mail($email, $subject, $body, "From: $email");
}
}
?>
<br>
</form>
</td></tr>
</table>
<?php include("footer.php");?>
|
|
|
|
05.08.06 15:43 |
WWW
Finden
Als Freund hinzufügen
|
|
Broken Sword
Mitglied
Dabei seit: 18.06.04
Beiträge: 537
Forenversion: 2.3
|
|
Probiere mal anstatt
code: |
1:
2:
3:
|
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"50%\"><tr><td><span class=\"grossschrift\"><li>$File</li></span></td></tr></table>";}
|
|
das hier
code: |
1:
2:
3:
|
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"50%\"><tr><td><span class=\"grossschrift\"><li><a href=\"up/".$File."\" target=\"_blank\">$File</a></li></span></td></tr></table>";}
|
|
|
|
05.08.06 16:17 |
WWW
Finden
Als Freund hinzufügen
|
|
|