Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/mm/uprtou1/
Upload File :
Current File : /var/www/html/mmishra/mm/uprtou1/uploads.php.bak

<?php
//checkadmin($role);
checkLogin($user);

if ($_POST["submit"] == 'UPLOAD') upload($webid);
$rdPath = relativePath($webid,'documents');
$riPath = relativePath($webid,'images');
$rgPath = relativePath($webid,'gallery');
$agPath = absolutePath($webid,'gallery');

if ($_REQUEST["addto_gallery"]) $flag = 'checked';
?>
<br>
Please select file to upload on server. Here image files will be uploaded in "<?php echo $riPath; ?>" folder
and other files will be uploaded in "<?php echo $rdPath; ?>" 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' $flag>
<br><br>
Only images can be added to the photo gallery. Please upload pdf/jpg/gif files to achieve better performance.<br>
Uploaded files can be referenced as "<?php echo $rdPath; ?>/filename" or "<?php echo $riPath; ?>/filename".
<br><br>
List of files in <a href='<?php echo $rdPath; ?>/' target='_blank'>documents</a> & 
<a href='<?php echo $riPath; ?>/' target='_blank'>images</a> folders.
<br><br>
<b>Photos in Gallery:</b><dir>
<?php
$dh  = opendir($agPath);
$i = 0;
while (false !== ($filename = readdir($dh))) {
        if (strlen($filename) > 2) {
                echo "[ <a href='$rgPath/$filename'>$filename</a> ]";
                $i++;
	}                
}
echo "</dir>Total: $i";
?>