Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/old/indem/icdp/
Upload File :
Current File : /var/www/html/mmishra/indem/old/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";
?>