diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-01-30 21:36:28 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-01-30 21:36:28 +0000 |
commit | fbab09fee302574e578e4f0d1b6082cdae4defb4 (patch) | |
tree | 2e89197b88b8a883c56aef7a5d0d89dc5d374850 /net/torrentflux/files/patch-html+dir.php | |
parent | Upgrade to 1.63.0. (diff) |
Populate newly create net-p2p category with these ports:
ftp/jigdo
net/amule1
net/amule2
net/apollon
net/azureus
net/bnbt
net/btpeer
net/btqueue
net/cdonkey
net/ctorrent
net/dcd
net/dclib
net/dctc
net/dctc-gui
net/dctc-gui-qt
net/edonkey-gui-gtk
net/edonkey-gui-gtk-urlslave
net/fcptools
net/fidelio
net/freenet
net/frost
net/giftcurs
net/giftoxic
net/giftui
net/gift
net/gift-fasttrack
net/gift-gnutella
net/gift-openft
net/gkrellm-gift
net/gnewtellium
net/gnome-btdownload
net/gnunet
net/gtkhx
net/gtk-gnutella
net/gtorrentviewer
net/hagelslag
net/hx
net/i2p
net/javadc
net/kmldonkey
net/ktorrent
net/libbt
net/liberator
net/libfreenet
net/libpdtp
net/libtorrent
net/limewire
net/linux-agsatellite
net/linux-edonkey-core
net/linux-edonkey-server
net/linux-jigdo
net/linux-overnet-core
net/minder
net/mldonkey
net/mldonkey-core
net/mldonkey-core-devel
net/mldonkey-devel
net/mldonkey-gui
net/mldonkey-gui-devel
net/mldonkey-perlreactor
net/mldonkey-sancho
net/mldonkey-serverspy
net/mldonkey-urlslave
net/mutella
net/mute-net
net/mute-net-gui
net/mute-net-text
net/napshare
net/nicotine
net/opendchub
net/peercast
net/phex
net/pyslsk
net/py-bittornado
net/py-bittornado-core
net/py-bittorrent
net/py-bittorrent-core
net/py-bittorrent-core-devel
net/py-bittorrent-devel
net/py-fngrab
net/py-kenosis
net/py-kenosis-bittorrent
net/py-py2play
net/p5-pdonkey
net/qtella
net/qtorrent
net/rtorrent
net/squall
net/torrentflux
net/torrentsniff
net/trackerbt
net/transmission
net/valknut
net/verlihub
net/verlihub-plugins
net/xmule
net/xnap
misc/ed2k
misc/edonkey-tool-hash
misc/linux-edonkey-tool-recovermet
Repocopies by: marcus
Diffstat (limited to 'net/torrentflux/files/patch-html+dir.php')
-rw-r--r-- | net/torrentflux/files/patch-html+dir.php | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/net/torrentflux/files/patch-html+dir.php b/net/torrentflux/files/patch-html+dir.php deleted file mode 100644 index 52ffb7572ec3..000000000000 --- a/net/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> </td>"; -- echo "<td> </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> </td>"; -+ echo "<td> </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); - } - } - |