| Current Path : /var/www/html/mmishra/indem/iiita/ |
| Current File : /var/www/html/mmishra/indem/iiita/uploads.php |
<?php
//checkadmin($role);
checklogin($user);
$submit = $_POST["submit"];
$addto_gallery = $_REQUEST["addto_gallery"];
if ($submit == 'UPLOAD') upload_file();
?>
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'>
<br>
Add this image file to the Photo Gallery [
<input type='radio' name='addto_gallery' value='yes'
<?php
if ($addto_gallery == 'yes') echo " checked";
?>
> Yes
<input type='radio' name='addto_gallery' value='no'
<?php
if (!$addto_gallery || $addto_gallery == 'no') echo " checked";
?>
> No
]<br>
<input type='submit' name='submit' value='UPLOAD' style='width:80px'>
<br><br>
Only images can be added to the photo gallery.
Please upload pdf/jpg/gif files to achieve better performance.
<br>files List of files already uploaded on server:
<ul>
<li>List of files under <a href='documents/' target='_blank'>documents</a> folder</li>
<li>List of files under <a href='images/' target='_blank'>images</a> folder</li>
</ul>
<b>Photos in Gallery:</b><ol>
<?php
$fp = fopen ("gallery.inc", "r");
if ($fp) {
while (!feof($fp)) {
$line = fgets ($fp, 1024);
if ($line && $line != "\n") echo "<li>$line</li>";
}
}
fclose($fp);
?>
</ol>