ładować pliki na serwer, no ale wszystko niby działa tylko jak daje "załaduj plik" to nic się nie ładuje, katalog nadal pusty może ktoś mi pomóc?
oto kod:
plik: file-fusian
<?php require ('config.php'); # Include configuration file. require ('common.php'); # Include common file with functions in. ?> <html> <head><title>..:: File-Fusian v2.0.0 ::..</title> <?php ?> </head> <body> <!--- HTML Submission Form Section ---> <!--- Master Table Start ---> <table class="main-table"> <tr> <td class="main-table"> <table class="logo-table"> <tr> <td class="logo-table"> <?php ?> </tr> </td> </table> <table class="nav-table"> <tr> <td class="nav-table"> <span id="link" onclick="javascript: void(window.open('common.php?id=dirlist','','width=480,height=700,toolbar=no,menubar=no'));"> Directory Listing</span> :: <span id="link" onclick="javascript: void(window.open('http://www.efusian.co.uk/warehouse/bugtraq','','width=455,height=600,toolbar=no,menubar=no'));">Report Bug</span> :: <a href="http://www.efusian.co.uk/forum" target="_blank">FileFusian Forum</a> </td> </tr> </table> <table class="upform-table"> <tr> <td class="upform-table"> <!--- Actual Form ---> <input type="file" name="fupload"> <br><br> <input type="submit" value="Upload File"> <br> </form> <!--- End Form ---> </td> </tr> </table> <table class="base-table"> <tr> <td class="base-table"> <?php $fileaccept = ""; if($filetype1 != "NULL") { $fileaccept = $fileaccept . $filetype1; } if($filetype2 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype2; } if($filetype3 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype3; } if($filetype4 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype4; } if($filetype5 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype5; } $upload_size = $max_file_size/1024; echo ("Your Current IP Address Is: <font color='FF3300'> $REMOTE_ADDR </font><a href='$logfile' target='_blank'> (View Log)</a>"); ?> </td> </tr> </table> </td> </tr> </table> <!--- Master Table End ---> </body> </html>
plik: common
<?php require ('config.php'); # Include configuration file. require ('common.php'); # Include common file with functions in. ?> <html> <head><title>..:: File-Fusian v2.0.0 ::..</title> <?php ?> </head> <body> <!--- HTML Submission Form Section ---> <!--- Master Table Start ---> <table class="main-table"> <tr> <td class="main-table"> <table class="logo-table"> <tr> <td class="logo-table"> <?php ?> </tr> </td> </table> <table class="nav-table"> <tr> <td class="nav-table"> <span id="link" onclick="javascript: void(window.open('common.php?id=dirlist','','width=480,height=700,toolbar=no,menubar=no'));"> Directory Listing</span> :: <span id="link" onclick="javascript: void(window.open('http://www.efusian.co.uk/warehouse/bugtraq','','width=455,height=600,toolbar=no,menubar=no'));">Report Bug</span> :: <a href="http://www.efusian.co.uk/forum" target="_blank">FileFusian Forum</a> </td> </tr> </table> <table class="upform-table"> <tr> <td class="upform-table"> <!--- Actual Form ---> <input type="file" name="fupload"> <br><br> <input type="submit" value="Upload File"> <br> </form> <!--- End Form ---> </td> </tr> </table> <table class="base-table"> <tr> <td class="base-table"> <?php $fileaccept = ""; if($filetype1 != "NULL") { $fileaccept = $fileaccept . $filetype1; } if($filetype2 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype2; } if($filetype3 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype3; } if($filetype4 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype4; } if($filetype5 != "NULL") { $fileaccept = $fileaccept . ", " . $filetype5; } $upload_size = $max_file_size/1024; echo ("Your Current IP Address Is: <font color='FF3300'> $REMOTE_ADDR </font><a href='$logfile' target='_blank'> (View Log)</a>"); ?> </td> </tr> </table> </td> </tr> </table> <!--- Master Table End ---> </body> </html>
plik: config
<?php /* Configuration Section */ $file_dir = "co cię to?/uploads"; # This is the absolute path (no trailing slash). $file_url = "http://www.co cię to?/uploads"; # Full URL to the uploaded file. $logo_file = "http://www.efusian.co.uk/~filefusian/images/v2logo.gif"; # FileFusian logo location. $max_file_size = "102400"; # Max File Size Setting (In Bytes). $skin = "skins/white.css"; # Defines Skin to be used. $logfile = "logs/uplog.txt"; # Upload log file location, must be CHMOD 666. $logs_active = "1"; # Turn ip logging on/off 1=on 0=off. /* Directory Listing */ $listsize = 30; # Maximum Number oF Files To Be Returned. /* Upload Function */ # The following section allows upto 5 file types to be specified easily at start
up without delving into the code of FileFusian to much. # It is of paramount importance that something is filled in each of these filety
pes or someone will be able to remove the extension from # the file they are uploading and get past these checks. # If you only want a certain ammount of file types, eg 3, then fill the rest in
with the word NULL as the FileFusian code will not list this on the main page. $filetype1 = ".jpg"; $filetype2 = ".gif"; $filetype3 = ".jpeg"; $filetype4 = ".txt"; $filetype5 = "NULL"; ?>
plik: error
<?php if($_GET['id'] == "filetype") { } ?>
No w pliku config.php mam dane dobrze wpisane.