summaryrefslogtreecommitdiff
path: root/net-p2p/torrentflux/files/patch-html+dir.php
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2011-09-30 09:12:36 +0000
committerDoug Barton <dougb@FreeBSD.org>2011-09-30 09:12:36 +0000
commit9766a65fd0afeee48b78ea6bda3a90fa11014f9e (patch)
tree9f0601049fddfc73cec41ed94307f3abadf1b46b /net-p2p/torrentflux/files/patch-html+dir.php
parent- s,net/py-zopeInterface,devel/py-zopeInterface, (diff)
As previously advertised, delete ports that have
vulnerabilities listed in portaudit, and those that depend on them - part 1 math/mupad Relies on xpm, vulnerable since 2004-09-15 net-p2p/torrentflux Vulnerable since 2006-10-07 net/tptest Vulnerable since 2009-12-17 security/pgp6 Vulnerable since 2005-07-31 www/p5-RTx-RightsMatrix Only works with www/rt36, which is FORBIDDEN www/p5-RTx-Shredder Only works with www/rt36, which is FORBIDDEN www/p5-RTx-Statistics Only works with www/rt36, which is FORBIDDEN www/plone Vulnerable since 2011-02-10 www/pyblosxom Vulnerable since 2009-02-11 www/rt36 Vulnerable since 2009-12-09 www/zope-archetypes Depends on www/plone, which is FORBIDDEN www/zope-calendaring Depends on www/plone, which is FORBIDDEN www/zope-coreblog2 Depends on www/plone, which is FORBIDDEN www/zope-i18nlayer Depends on www/plone, which is FORBIDDEN www/zope-plonelanguagetool Depends on www/plone, which is FORBIDDEN www/zope-simpleblog Depends on www/plone, which is FORBIDDEN
Notes
Notes: svn path=/head/; revision=282655
Diffstat (limited to 'net-p2p/torrentflux/files/patch-html+dir.php')
-rw-r--r--net-p2p/torrentflux/files/patch-html+dir.php76
1 files changed, 0 insertions, 76 deletions
diff --git a/net-p2p/torrentflux/files/patch-html+dir.php b/net-p2p/torrentflux/files/patch-html+dir.php
deleted file mode 100644
index 52ffb7572ec3..000000000000
--- a/net-p2p/torrentflux/files/patch-html+dir.php
+++ /dev/null
@@ -1,76 +0,0 @@
---- html/dir.php.orig Tue Oct 4 01:39:38 2005
-+++ html/dir.php Tue Oct 4 01:51:36 2005
-@@ -104,15 +104,26 @@
-
- if (file_exists($path))
- {
-+ $fileSize = exec("stat -Lnqf %z ".escapeshellarg($path));
-+
-+ AuditAction($cfg["constants"]["fm_download"], $down."<br>Size:".$fileSize);
-+
- header("Content-type: application/octet-stream\n");
- header("Content-disposition: attachment; filename=\"".$file."\"\n");
- header("Content-transfer-encoding: binary\n");
-- header("Content-length: " . filesize($path) . "\n");
-+ header("Content-length: " . $fileSize . "\n");
-+
-+ while (ob_get_level() > 0) {
-+ ob_end_flush();
-+ }
-
- $fp = fopen($path, "r");
-- fpassthru($fp);
-+ while(!feof($fp)) {
-+ set_time_limit(60);
-+ print(fread($fp, 1024*8));
-+ ob_flush();
-+ }
-
-- AuditAction($cfg["constants"]["fm_download"], $down);
- exit();
- }
- else
-@@ -283,8 +294,19 @@
- if (@is_dir($dirName.$entry))
- {
- echo "<tr bgcolor=\"".$bg."\"><td><a href=\"dir.php?dir=".urlencode($dir.$entry)."\"><img src=\"images/folder2.gif\" width=\"16\" height=\"16\" title=\"".$entry."\" border=\"0\" align=\"absmiddle\">".$entry."</a></td>";
-- echo "<td>&nbsp;</td>";
-- echo "<td>&nbsp;</td>";
-+ if ($cfg["show_directory_size"])
-+ {
-+ $timeStamp = filectime($dirName.$entry);
-+ $arFileSize = explode("\t", exec("du -sk ".escapeshellarg($dirName.$entry)));
-+ $fileSize = $arFileSize[0];
-+ echo "<td align=\"right\">".$fileSize." KB</td>";
-+ echo "<td>".date("m-d-Y g:i a", $timeStamp)."</td>";
-+ }
-+ else
-+ {
-+ echo "<td>&nbsp;</td>";
-+ echo "<td>&nbsp;</td>";
-+ }
- echo "<td align=\"right\">";
-
- if ($cfg["enable_file_download"])
-@@ -340,9 +362,9 @@
- }
- else
- {
-- $arStat = @lstat($dirName.$entry);
-- $timeStamp = $arStat[10];
-- $fileSize = number_format(($arStat[7])/1024);
-+ $timeStamp = filectime($dirName.$entry);
-+ $arFileSize = explode("\t", exec("du -sk ".escapeshellarg($dirName.$entry)));
-+ $fileSize = $arFileSize[0];
- // Code added by Remko Jantzen to assign an icon per file-type. But when not
- // available all stays the same.
- $image="images/time.gif";
-@@ -423,7 +445,7 @@
- if (!is_dir($cfg["path"].$cfg["user"]))
- {
- //Then create it
-- mkdir($cfg["path"].$cfg["user"], 0777);
-+ mkdir($cfg["path"].$cfg["user"], 0755);
- }
- }
-