initial commit of file from CVS for smeserver-webshare on Sat Sep 7 21:15:27 AEST 2024
This commit is contained in:
30
root/opt/webshare-tools/phpfm/incl/download.inc.php
Normal file
30
root/opt/webshare-tools/phpfm/incl/download.inc.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
if (!@include_once("./incl/auth.inc.php"))
|
||||
include_once("../incl/auth.inc.php");
|
||||
|
||||
if ($AllowDownload)
|
||||
{
|
||||
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
|
||||
print "<tr>";
|
||||
print "<td class='iheadline' height=21>";
|
||||
print "<font class='iheadline'> $StrDownload \"".htmlentities($filename)."\"</font>";
|
||||
print "</td>";
|
||||
print "<td class='iheadline' align='right' height=21>";
|
||||
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||
print "</td>";
|
||||
print "</tr>";
|
||||
print "<tr>";
|
||||
print "<td valign='top' colspan=2>";
|
||||
print "<center><br />";
|
||||
print "$StrDownloadClickLink<br /><br />";
|
||||
print "<a href='incl/libfile.php?".SID."&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($filename))."&action=download'>$StrDownloadClickHere <i>\"".htmlentities($filename)."\"</i></a>";
|
||||
print "<br /><br /></center>";
|
||||
print "</td>";
|
||||
print "</tr>";
|
||||
print "</table>";
|
||||
}
|
||||
else
|
||||
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||
|
||||
?>
|
Reference in New Issue
Block a user