[Openupload-svn-update] SF.net SVN: openupload:[239] trunk/plugins/password.inc.php
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2009-02-06 19:21:30
|
Revision: 239
http://openupload.svn.sourceforge.net/openupload/?rev=239&view=rev
Author: tsdogs
Date: 2009-02-06 19:21:27 +0000 (Fri, 06 Feb 2009)
Log Message:
-----------
Add preliminary Personal file listing
check if email plugin is enabled
Modified Paths:
--------------
trunk/plugins/password.inc.php
Modified: trunk/plugins/password.inc.php
===================================================================
--- trunk/plugins/password.inc.php 2009-02-06 19:20:56 UTC (rev 238)
+++ trunk/plugins/password.inc.php 2009-02-06 19:21:27 UTC (rev 239)
@@ -9,6 +9,13 @@
function uploadOptions(&$finfo,$acl) {
if ($acl!='enable') return true;
+ if (isset(app()->plugins['email']) and
+ isset(app()->pluginAcl['email']) and
+ app()->pluginAcl['email']['access']=='enable') {
+ app()->tpl->assign('emailplugin',true);
+ } else {
+ app()->tpl->assign('emailplugin',false);
+ }
$this->display('uploadOptions');
return true;
}
@@ -49,6 +56,11 @@
return true;
}
}
+ function fileDetail(&$finfo,$acl) {
+ if (($finfo[0]['password']!='') and ($finfo[0]['password']!=crypt("",$finfo[0]['password'])) )
+ $this->display('fileDetail');
+ return true;
+ }
}
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|