[Openupload-svn-update] SF.net SVN: openupload:[40] trunk
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-10-18 13:23:26
|
Revision: 40
http://openupload.svn.sourceforge.net/openupload/?rev=40&view=rev
Author: tsdogs
Date: 2008-10-18 13:23:17 +0000 (Sat, 18 Oct 2008)
Log Message:
-----------
Add default max file size basic handling
Modified Paths:
--------------
trunk/TODO
trunk/lib/main.inc.php
trunk/templates/default/modules/files/uploadForm.tpl
trunk/www/config.inc.php.example
Added Paths:
-----------
trunk/CHANGELOG
Added: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG (rev 0)
+++ trunk/CHANGELOG 2008-10-18 13:23:17 UTC (rev 40)
@@ -0,0 +1,35 @@
+Changelog before release (0.3?) (updated on 2008.10.18).
+
+* Registration
+ - Check for valid login name
+
+* Administration: mainly done needs a review in near future
+ - User administration
+ - Group administration
+ - File administration
+ - Plugin ACL administration
+ - Rights Administration
+ - Display of actual configuration
+
+* User
+ - Manage profile (password/Name/E-Mail change)
+
+* Database
+- Review DB module functions done 2008.10.17
+
+* Acl for modules and plugins
+
+* Translations
+ - gettext module
+ - array module
+ - initial Italian translation
+
+* Web site
+ - Created index page
+ - Addedd Screen shots
+ - Added mailing lists
+
+* SVN repository
+ - up and running :)
+ - added mailing list to track changes
+
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-10-18 13:21:09 UTC (rev 39)
+++ trunk/TODO 2008-10-18 13:23:17 UTC (rev 40)
@@ -1,77 +1,82 @@
TODO list not priority ordered.
-UPLOAD
-Display upload progress
+RELEASE: not until api and db are stable.
+******* MUST BE DONE BEFORE RELEASE *******
+Administration
+- Admin of banned IPs
-REGISTRATION
-Registration with e-mail activation
-Check for a valid login value
-Moderation of registrations by admin
+Registration
+- Enable registration moderation
+- Enable registration with e-mail confirmation
-USER
-Manage profile (password/Name/E-Mail change) done 2008.10.16
-Manage personal files (if allowed)
+Database
+- re-enable txt module
-DATABASE
-Review DB module functions done 2008.10.17
-Implement pgsql module
-Additional tables for txt module, needs a review 'cause of db api change.
+Translation
+- Update the translations
-AUTHENTICATION
-LDAP authentication (with OpenLdap and AD) mainly
+******* MIGHT BE IN RELEASE *******
+Registration
+- Enable registration moderation
-ADMIN (mainly done 2008.10.16, though it needs a major revision)
-User administration
-Group administration
-File administration and maintainence
-Plugin administration
+Authentication
+- LDAP authentication for Openldap and AD support
-ADMIN (missing)
-Config administration
-First setup script
-Banned IP amdinistration
-Rights switch mode (to switch from 1 mode to the other)
-Rights better admin tool.
-Language table admin.
-Plugin options
+Database
+- pgsql module
-ACL
-User/Group acl for modules and plugins: done 2008.10.16
+Upload
+- Display upload progress
-DOWNLOAD
-Fix double click on no blockings for download
+Administration
+- Rights switch mode (to switch from 1 mode to the other)
+- Rights better admin tool.
-PLUGINS
-Plugin configuration options
-banned ip probably is better in the main app and not as a plugin.
+Plugins
+- Upload different filesize limiting depending on group
-(Following are some ideas)
-Upload different filesize limiting depending on group
-Download bandwith limiting depending on group (of upload user probably better)
-Download wait time (is this really needed?)
-User additional fields for registration request.
-Antivirus on upload
-Deletion timeout (should it be a plugin? Maybe only for user interaction on it)
+******* OTHER THINGS/IDEAS *******
-TRANSLATIONS (gettext/array)
-Complete implementation: done 2008.10.14
-Translate to italian: in progress 2008.10
-Add a database translator? not until base isn't complete.
+General
+- enable modrewrite mode
-MAINTEINENCE
-Create a script to clean up the files/tmpfiles.
-Manage file deletion timeout probably better to be handled here.
+Users
+- manage personal files (if allowed)
-TEMPLATE
-Create a sample template.
+Administration
+- Review the general administration module
+- First setup script
+- Config administration
+- Language table admin.
+- Plugin options
-LOG
-Activity logging
+Download
+- Fix double click on no blockings for download
-TERMS OF USE
+Plugins
+- Plugin configuration options
+- banned ip probably is better in the main app and not as a plugin.
+- (Following are some ideas)
+ Download bandwith limiting depending on group (of upload user probably better)
+ Download wait time (is this really needed?)
+ User additional fields for registration request.
+ Antivirus on upload
+ Deletion timeout (should it be a plugin? Maybe only for user interaction on it)
-WEB SITE with Screen Shots. basic are up 2008.10
+Translation
+- Add a database translator? not until base isn't complete.
-SVN setup. done 2008.10
+Maintainence
+- Create a script to clean up the files/tmpfiles.
+- Manage file deletion timeout probably better to be handled here.
-RELEASE: not until api and db are not definitive.
+Template
+- Create a sample template.
+
+Documentation
+- All is missing :)
+- Document program api
+
+Others
+- Activity logging
+- Terms of Use for site and registration
Modified: trunk/lib/main.inc.php
===================================================================
--- trunk/lib/main.inc.php 2008-10-18 13:21:09 UTC (rev 39)
+++ trunk/lib/main.inc.php 2008-10-18 13:23:17 UTC (rev 40)
@@ -78,6 +78,12 @@
$this->tr->init();
$this->auth->init();
$this->user->init();
+//unset($_SESSION['user']);
+ if ($this->user->info('max_upload_size')==0)
+ $this->user->setInfo('max_upload_size',$this->config['max_upload_size']*1024*1024);
+ ini_set('max_upload_size',$this->user->info('max_upload_size'));
+ ini_set('post_max_size',$this->user->info('max_upload_size'));
+// TODO: should check if this value has been really set or if it was blocked by the PHP
$this->config['modules'][]='files';
$this->config['modules'][]='admin';
@@ -273,7 +279,6 @@
$this->tpl->assign('script',$_SERVER['PHP_SELF']);
$this->tpl->assign('page',$this->page);
-
/* depending on the acl some actions need authentication others don't */
if (!isset($this->actions[$this->action])) {
/* no module can handle this action */
Modified: trunk/templates/default/modules/files/uploadForm.tpl
===================================================================
--- trunk/templates/default/modules/files/uploadForm.tpl 2008-10-18 13:21:09 UTC (rev 39)
+++ trunk/templates/default/modules/files/uploadForm.tpl 2008-10-18 13:23:17 UTC (rev 40)
@@ -10,8 +10,14 @@
<form method="post" enctype='multipart/form-data' action="{$script}" name="uploadform">
<input type="hidden" name="action" value="{$action}">
<input type="hidden" name="step" value="{$nextstep}">
+{if isset($user.max_upload_size)}
+<input type="hidden" name="MAX_FILE_SIZE" value="{$user.max_upload_size}">
+{/if}
{tr}Select the file to be uploaded{/tr}<br>
<input type="file" class="file" size="50" name="upload" onchange="if (this.value!='') unhide();"><br>
+{if isset($user.max_upload_size)}
+<div id="msg">{tr}Maximum allowed upload size{/tr}: {$user.max_upload_size|fsize_format:"MB":0}</div>
+{/if}
{$plugins}
<div id="uploadbutton" style="visibility:hidden"><br>
<a href="{$script}" onclick="document.uploadform.submit();return false;">
Modified: trunk/www/config.inc.php.example
===================================================================
--- trunk/www/config.inc.php.example 2008-10-18 13:21:09 UTC (rev 39)
+++ trunk/www/config.inc.php.example 2008-10-18 13:23:17 UTC (rev 40)
@@ -50,6 +50,9 @@
$CONFIG['plugins'][] = 'password';
$CONFIG['plugins'][] = 'captcha';
+/* Set maximum default upload size in MB*/
+$CONFIG['max_upload_size']=100;
+
/* SITE TITLE */
$CONFIG['site']['title'] = 'Open Upload';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|