[Openupload-svn-update] SF.net SVN: openupload:[255] trunk
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2009-02-07 14:00:52
|
Revision: 255
http://openupload.svn.sourceforge.net/openupload/?rev=255&view=rev
Author: tsdogs
Date: 2009-02-07 14:00:49 +0000 (Sat, 07 Feb 2009)
Log Message:
-----------
handle public files (if anybody needs it)
Modified Paths:
--------------
trunk/lib/modules/default/files.inc.php
trunk/templates/default/modules/files/fileDetail.tpl
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2009-02-07 13:45:45 UTC (rev 254)
+++ trunk/lib/modules/default/files.inc.php 2009-02-07 14:00:49 UTC (rev 255)
@@ -31,6 +31,10 @@
var $menu;
function FilesModule() {
+ if (app()->user->info('login')!='')
+ $files = tr("My Files");
+ else
+ $files = tr("Public Files");
$this->page = array (
"u" => array (
"title" => tr("File upload"),
@@ -42,16 +46,15 @@
"title" => tr("File Removal"),
),
"l" => array (
- "title" => tr("My Files"),
+ "title" => $files,
),
);
$this->menu = array (
"u" => tr("File Upload"),
- "l" => tr("My Files"),
+ "l" => $files,
//"d" => tr("File Download"),
//"r" => tr("File Removal"),
);
-
}
function init() {
@@ -542,6 +545,9 @@
$this->nextStep(1);
}
$this->setupLinks($finfo);
+ if (app()->user->info('login')=='') {
+ unset($finfo[0]['removelink']);
+ }
$result = app()->pluginAction('fileDetail',$finfo,false);
if (!$result) {
$this->nextStep(1);
Modified: trunk/templates/default/modules/files/fileDetail.tpl
===================================================================
--- trunk/templates/default/modules/files/fileDetail.tpl 2009-02-07 13:45:45 UTC (rev 254)
+++ trunk/templates/default/modules/files/fileDetail.tpl 2009-02-07 14:00:49 UTC (rev 255)
@@ -15,6 +15,8 @@
<tr><td>{tr}Download link{/tr}:</td>
<td><a href="{$finfo.downloadlink}">{$finfo.downloadlink}</a>
</td></tr>
+{if $finfo.removalink!=''}
<tr><td>{tr}Remove link{/tr}:</td><td>
<a href="{$finfo.removelink}">{$finfo.removelink}</a></td></tr>
+{/if}
</table>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|