Thread: [Openupload-svn-update] SF.net SVN: openupload:[152] trunk (Page 2)
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-11-17 18:10:36
|
Revision: 152
http://openupload.svn.sourceforge.net/openupload/?rev=152&view=rev
Author: tsdogs
Date: 2008-11-17 18:10:34 +0000 (Mon, 17 Nov 2008)
Log Message:
-----------
update with French translation
Modified Paths:
--------------
trunk/sql/mysql/2_base.sql
trunk/sql/pgsql/2_base.sql
trunk/sql/txt/langs.txt
trunk/www/setup.inc.php
Modified: trunk/sql/mysql/2_base.sql
===================================================================
--- trunk/sql/mysql/2_base.sql 2008-11-17 18:09:06 UTC (rev 151)
+++ trunk/sql/mysql/2_base.sql 2008-11-17 18:10:34 UTC (rev 152)
@@ -34,6 +34,7 @@
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('en', 'English', 'en_EN', '[en];[en-EN]', 'iso-8559-1', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1);
+INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1);
--
-- Dump dei dati per la tabella `users`
Modified: trunk/sql/pgsql/2_base.sql
===================================================================
--- trunk/sql/pgsql/2_base.sql 2008-11-17 18:09:06 UTC (rev 151)
+++ trunk/sql/pgsql/2_base.sql 2008-11-17 18:10:34 UTC (rev 152)
@@ -84,6 +84,7 @@
INSERT INTO langs VALUES ('en', 'English', 'en_EN', '[en];[en-EN]', 'iso-8559-1', 1);
INSERT INTO langs VALUES ('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1);
+INSERT INTO langs VALUES ('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1);
--
Modified: trunk/sql/txt/langs.txt
===================================================================
--- trunk/sql/txt/langs.txt 2008-11-17 18:09:06 UTC (rev 151)
+++ trunk/sql/txt/langs.txt 2008-11-17 18:10:34 UTC (rev 152)
@@ -1,3 +1,4 @@
id|name|locale|browser|charset|active
en|English|en_EN|[en];[en-EN]|iso-8559-1|1
it|Italiano|it_IT.utf8|[it];[it-IT]|utf8|1
+fr|Français|fr_FR.utf8|[fr];[fr-FR]|utf8|1
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-11-17 18:09:06 UTC (rev 151)
+++ trunk/www/setup.inc.php 2008-11-17 18:10:34 UTC (rev 152)
@@ -146,6 +146,7 @@
"INSERT INTO `%0groups` (`name`, `description`) VALUES('%5', 'Unregistered users')",
"INSERT INTO `%0langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('en', 'English', 'en_EN', '[en];[en-EN]', 'iso-8559-1', 1)",
"INSERT INTO `%0langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1)",
+ "INSERT INTO `%0langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1)",
"INSERT INTO `%0users` (`id`, `login`, `password`, `name`, `group_name`, `email`, `lang`, `reg_date`, `regid`, `active`) VALUES(1, '%1', '%2', 'Administrator', '%3', '%6', 'en', now(), '', 1)",
"INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(1, '*', '*', '%3', 'allow')",
"INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(2, 'admin', '*', '%3', 'allow')",
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-11-19 17:41:52
|
Revision: 157
http://openupload.svn.sourceforge.net/openupload/?rev=157&view=rev
Author: tsdogs
Date: 2008-11-19 17:41:46 +0000 (Wed, 19 Nov 2008)
Log Message:
-----------
Add basic upload progress indicator support
Modified Paths:
--------------
trunk/lib/main.inc.php
trunk/lib/modules/default/files.inc.php
trunk/templates/default/index.tpl
trunk/templates/default/modules/files/uploadForm.tpl
Added Paths:
-----------
trunk/templates/default/modules/files/uploadProgress.tpl
trunk/www/templates/default/img/wait.gif
trunk/www/templates/default/js/
trunk/www/templates/default/js/index.html
trunk/www/templates/default/js/prototype.js
Modified: trunk/lib/main.inc.php
===================================================================
--- trunk/lib/main.inc.php 2008-11-19 17:37:14 UTC (rev 156)
+++ trunk/lib/main.inc.php 2008-11-19 17:41:46 UTC (rev 157)
@@ -351,6 +351,7 @@
function run($action = '',$step = 0) {
global $_SERVER;
global $_SESSION;
+ global $_GET;
$this->mainPage = 'index';
@@ -435,6 +436,8 @@
$this->tpl->assign('user',$_SESSION['user']);
$m->$fun();
+ if ($_GET['type']=='ajax') return;
+
/* now display the final page */
$this->tpl->assign('user',$this->user->info());
$this->tpl->assign('langs',$this->langs);
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2008-11-19 17:37:14 UTC (rev 156)
+++ trunk/lib/modules/default/files.inc.php 2008-11-19 17:41:46 UTC (rev 157)
@@ -7,6 +7,7 @@
2 => "uploadOptions",
3 => "uploadConfirm",
4 => "uploadFileInfo",
+ 99 => "uploadProgress",
),
"d" => array (
1 => "downloadForm",
@@ -55,9 +56,60 @@
global $_SESSION;
unset($_SESSION['user']['u']);
+ $_SESSION['user']['identifier']=randomName(40,40);
+ switch (app()->config['progress']) {
+ case 'uploadprogress':
+ $this->tpl->assign('identifiername','UPLOAD_IDENTIFIER');
+ break;
+ case 'apc':
+ $this->tpl->assign('identifiername',ini_get('apc.rfc1867_name'));
+ break;
+ default:
+ $this->tpl->assign('identifiername','UPLOAD_IDENTIFIER');
+ break;
+ }
+ app()->tpl->assign('identifier',$_SESSION['user']['identifier']);
$result = app()->pluginAction('uploadForm',$finfo);
}
+ function uploadProgress() {
+ global $_SESSION;
+
+ if (isset($_SESSION['user']['identifier'])) {
+ ob_clean();
+ header("Cache-Control: no-cache, must-revalidate");
+ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+
+ $progress = array('complete' => 0, 'total' => 0, 'percentage' => 0, 'files' => 0);
+ switch (app()->config['progress']) {
+ case 'uploadprogress':
+ $res = uploadprogress_get_info($_SESSION['user']['identifier']);
+ if (isset($res['bytes_uploaded'])) {
+ $progress['complete'] = $res['bytes_uploaded'];
+ if ($res['bytes_total']>0)
+ $progress['total'] = $res['bytes_total'];
+ $progress['percentage'] = floor(($res['bytes_uploaded'] / $res['bytes_total'])*100);
+ $progress['files'] = $res['files_uploaded'];
+ }
+ break;
+ case 'apc':
+ $res = apc_fetch(ini_get('apc.rfc1867_prefix').$_SESSION['user']['identifier']);
+ if ($res) {
+ $progress['complete'] = $res['current'];
+ $progress['total'] = $res['total'];
+ if ($res['total']>0)
+ $progress['percentage'] = floor(($res['current'] / $res['total'])*100);
+ $progress['files'] = 0;
+ }
+ break;
+ }
+ app()->tpl->assign('progress',$progress);
+ app()->display('modules/files/uploadProgress');
+ exit;
+ }
+ exit;
+ }
+
function uploadOptions() {
global $_SESSION;
global $_FILES;
Modified: trunk/templates/default/index.tpl
===================================================================
--- trunk/templates/default/index.tpl 2008-11-19 17:37:14 UTC (rev 156)
+++ trunk/templates/default/index.tpl 2008-11-19 17:41:46 UTC (rev 157)
@@ -2,6 +2,7 @@
<head>
<title>{$site.title} - {tr}{$page.title}{/tr}</title>
<link rel="stylesheet" type="text/css" href="{tpl file=/main.css}">
+<script language="javascript" type="text/javascript" src="{tpl file=/js/prototype.js}"></script>
</head>
<body>
<!-- header -->
Modified: trunk/templates/default/modules/files/uploadForm.tpl
===================================================================
--- trunk/templates/default/modules/files/uploadForm.tpl 2008-11-19 17:37:14 UTC (rev 156)
+++ trunk/templates/default/modules/files/uploadForm.tpl 2008-11-19 17:41:46 UTC (rev 157)
@@ -8,14 +8,30 @@
if (obj)
obj.style.visibility = 'visible';
}
+
+function uploadProgress() {
+ obj = document.getElementById('upload');
+ if (obj) {
+ var ajax = new Ajax.Updater(
+ {success: 'upload'},
+ 'index.php',
+ {method: 'get', parameters: 'action=u&step=99&type=ajax', onFailure: reportError});
+ setTimeout('uploadProgress()',1000);
+ }
+}
+function reportError(request) {
+ $F('upload') = "Errore...";
+}
+
</script>
-{/literal}
+{/literal}<br>
<div id="upload">
<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}">
+<input type="hidden" id="file_id" name="{$identifiername}" value="{$identifier}">
{/if}
{tr}Select the file to be uploaded{/tr}<br>
<input type="file" class="file" size="60" name="upload" onchange="if (this.value!='') unhide(1);"><br>
@@ -34,7 +50,7 @@
{/if}
{$plugins}
<div id="uploadbutton" style="visibility:hidden"><br>
- <a href="{$script}" onclick="document.uploadform.submit();return false;">
+ <a href="{$script}" onclick="setTimeout('uploadProgress()',1000); document.uploadform.submit(); return false;">
<img src="{tpl file=/img/upload.png}" border="0"><br>
{tr}Upload{/tr}</a>
</div>
Added: trunk/templates/default/modules/files/uploadProgress.tpl
===================================================================
--- trunk/templates/default/modules/files/uploadProgress.tpl (rev 0)
+++ trunk/templates/default/modules/files/uploadProgress.tpl 2008-11-19 17:41:46 UTC (rev 157)
@@ -0,0 +1,5 @@
+<center><img src="{tpl file=/img/wait.gif}"> {tr}Uploading{/tr}:
+{if $progress.complete>0}{$progress.complete|fsize_format} of {$progress.total|fsize_format} <b>({$progress.percentage}%)</b>
+{else}
+{tr}please wait ...{/tr}
+{/if}</center>
\ No newline at end of file
Added: trunk/www/templates/default/img/wait.gif
===================================================================
(Binary files differ)
Property changes on: trunk/www/templates/default/img/wait.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/www/templates/default/js/index.html
===================================================================
--- trunk/www/templates/default/js/index.html (rev 0)
+++ trunk/www/templates/default/js/index.html 2008-11-19 17:41:46 UTC (rev 157)
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+<title>NO ACCESS</title>
+<meta http-equiv="REFRESH" content="0;url=../../../"></HEAD>
+<BODY>
+No direct access is allowed on this folder.
+</BODY>
+</HTML>
\ No newline at end of file
Added: trunk/www/templates/default/js/prototype.js
===================================================================
--- trunk/www/templates/default/js/prototype.js (rev 0)
+++ trunk/www/templates/default/js/prototype.js 2008-11-19 17:41:46 UTC (rev 157)
@@ -0,0 +1,4320 @@
+/* Prototype JavaScript framework, version 1.6.0.3
+ * (c) 2005-2008 Sam Stephenson
+ *
+ * Prototype is freely distributable under the terms of an MIT-style license.
+ * For details, see the Prototype web site: http://www.prototypejs.org/
+ *
+ *--------------------------------------------------------------------------*/
+
+var Prototype = {
+ Version: '1.6.0.3',
+
+ Browser: {
+ IE: !!(window.attachEvent &&
+ navigator.userAgent.indexOf('Opera') === -1),
+ Opera: navigator.userAgent.indexOf('Opera') > -1,
+ WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
+ Gecko: navigator.userAgent.indexOf('Gecko') > -1 &&
+ navigator.userAgent.indexOf('KHTML') === -1,
+ MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
+ },
+
+ BrowserFeatures: {
+ XPath: !!document.evaluate,
+ SelectorsAPI: !!document.querySelector,
+ ElementExtensions: !!window.HTMLElement,
+ SpecificElementExtensions:
+ document.createElement('div')['__proto__'] &&
+ document.createElement('div')['__proto__'] !==
+ document.createElement('form')['__proto__']
+ },
+
+ ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
+ JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,
+
+ emptyFunction: function() { },
+ K: function(x) { return x }
+};
+
+if (Prototype.Browser.MobileSafari)
+ Prototype.BrowserFeatures.SpecificElementExtensions = false;
+
+
+/* Based on Alex Arnell's inheritance implementation. */
+var Class = {
+ create: function() {
+ var parent = null, properties = $A(arguments);
+ if (Object.isFunction(properties[0]))
+ parent = properties.shift();
+
+ function klass() {
+ this.initialize.apply(this, arguments);
+ }
+
+ Object.extend(klass, Class.Methods);
+ klass.superclass = parent;
+ klass.subclasses = [];
+
+ if (parent) {
+ var subclass = function() { };
+ subclass.prototype = parent.prototype;
+ klass.prototype = new subclass;
+ parent.subclasses.push(klass);
+ }
+
+ for (var i = 0; i < properties.length; i++)
+ klass.addMethods(properties[i]);
+
+ if (!klass.prototype.initialize)
+ klass.prototype.initialize = Prototype.emptyFunction;
+
+ klass.prototype.constructor = klass;
+
+ return klass;
+ }
+};
+
+Class.Methods = {
+ addMethods: function(source) {
+ var ancestor = this.superclass && this.superclass.prototype;
+ var properties = Object.keys(source);
+
+ if (!Object.keys({ toString: true }).length)
+ properties.push("toString", "valueOf");
+
+ for (var i = 0, length = properties.length; i < length; i++) {
+ var property = properties[i], value = source[property];
+ if (ancestor && Object.isFunction(value) &&
+ value.argumentNames().first() == "$super") {
+ var method = value;
+ value = (function(m) {
+ return function() { return ancestor[m].apply(this, arguments) };
+ })(property).wrap(method);
+
+ value.valueOf = method.valueOf.bind(method);
+ value.toString = method.toString.bind(method);
+ }
+ this.prototype[property] = value;
+ }
+
+ return this;
+ }
+};
+
+var Abstract = { };
+
+Object.extend = function(destination, source) {
+ for (var property in source)
+ destination[property] = source[property];
+ return destination;
+};
+
+Object.extend(Object, {
+ inspect: function(object) {
+ try {
+ if (Object.isUndefined(object)) return 'undefined';
+ if (object === null) return 'null';
+ return object.inspect ? object.inspect() : String(object);
+ } catch (e) {
+ if (e instanceof RangeError) return '...';
+ throw e;
+ }
+ },
+
+ toJSON: function(object) {
+ var type = typeof object;
+ switch (type) {
+ case 'undefined':
+ case 'function':
+ case 'unknown': return;
+ case 'boolean': return object.toString();
+ }
+
+ if (object === null) return 'null';
+ if (object.toJSON) return object.toJSON();
+ if (Object.isElement(object)) return;
+
+ var results = [];
+ for (var property in object) {
+ var value = Object.toJSON(object[property]);
+ if (!Object.isUndefined(value))
+ results.push(property.toJSON() + ': ' + value);
+ }
+
+ return '{' + results.join(', ') + '}';
+ },
+
+ toQueryString: function(object) {
+ return $H(object).toQueryString();
+ },
+
+ toHTML: function(object) {
+ return object && object.toHTML ? object.toHTML() : String.interpret(object);
+ },
+
+ keys: function(object) {
+ var keys = [];
+ for (var property in object)
+ keys.push(property);
+ return keys;
+ },
+
+ values: function(object) {
+ var values = [];
+ for (var property in object)
+ values.push(object[property]);
+ return values;
+ },
+
+ clone: function(object) {
+ return Object.extend({ }, object);
+ },
+
+ isElement: function(object) {
+ return !!(object && object.nodeType == 1);
+ },
+
+ isArray: function(object) {
+ return object != null && typeof object == "object" &&
+ 'splice' in object && 'join' in object;
+ },
+
+ isHash: function(object) {
+ return object instanceof Hash;
+ },
+
+ isFunction: function(object) {
+ return typeof object == "function";
+ },
+
+ isString: function(object) {
+ return typeof object == "string";
+ },
+
+ isNumber: function(object) {
+ return typeof object == "number";
+ },
+
+ isUndefined: function(object) {
+ return typeof object == "undefined";
+ }
+});
+
+Object.extend(Function.prototype, {
+ argumentNames: function() {
+ var names = this.toString().match(/^[\s\(]*function[^(]*\(([^\)]*)\)/)[1]
+ .replace(/\s+/g, '').split(',');
+ return names.length == 1 && !names[0] ? [] : names;
+ },
+
+ bind: function() {
+ if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this;
+ var __method = this, args = $A(arguments), object = args.shift();
+ return function() {
+ return __method.apply(object, args.concat($A(arguments)));
+ }
+ },
+
+ bindAsEventListener: function() {
+ var __method = this, args = $A(arguments), object = args.shift();
+ return function(event) {
+ return __method.apply(object, [event || window.event].concat(args));
+ }
+ },
+
+ curry: function() {
+ if (!arguments.length) return this;
+ var __method = this, args = $A(arguments);
+ return function() {
+ return __method.apply(this, args.concat($A(arguments)));
+ }
+ },
+
+ delay: function() {
+ var __method = this, args = $A(arguments), timeout = args.shift() * 1000;
+ return window.setTimeout(function() {
+ return __method.apply(__method, args);
+ }, timeout);
+ },
+
+ defer: function() {
+ var args = [0.01].concat($A(arguments));
+ return this.delay.apply(this, args);
+ },
+
+ wrap: function(wrapper) {
+ var __method = this;
+ return function() {
+ return wrapper.apply(this, [__method.bind(this)].concat($A(arguments)));
+ }
+ },
+
+ methodize: function() {
+ if (this._methodized) return this._methodized;
+ var __method = this;
+ return this._methodized = function() {
+ return __method.apply(null, [this].concat($A(arguments)));
+ };
+ }
+});
+
+Date.prototype.toJSON = function() {
+ return '"' + this.getUTCFullYear() + '-' +
+ (this.getUTCMonth() + 1).toPaddedString(2) + '-' +
+ this.getUTCDate().toPaddedString(2) + 'T' +
+ this.getUTCHours().toPaddedString(2) + ':' +
+ this.getUTCMinutes().toPaddedString(2) + ':' +
+ this.getUTCSeconds().toPaddedString(2) + 'Z"';
+};
+
+var Try = {
+ these: function() {
+ var returnValue;
+
+ for (var i = 0, length = arguments.length; i < length; i++) {
+ var lambda = arguments[i];
+ try {
+ returnValue = lambda();
+ break;
+ } catch (e) { }
+ }
+
+ return returnValue;
+ }
+};
+
+RegExp.prototype.match = RegExp.prototype.test;
+
+RegExp.escape = function(str) {
+ return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
+};
+
+/*--------------------------------------------------------------------------*/
+
+var PeriodicalExecuter = Class.create({
+ initialize: function(callback, frequency) {
+ this.callback = callback;
+ this.frequency = frequency;
+ this.currentlyExecuting = false;
+
+ this.registerCallback();
+ },
+
+ registerCallback: function() {
+ this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);
+ },
+
+ execute: function() {
+ this.callback(this);
+ },
+
+ stop: function() {
+ if (!this.timer) return;
+ clearInterval(this.timer);
+ this.timer = null;
+ },
+
+ onTimerEvent: function() {
+ if (!this.currentlyExecuting) {
+ try {
+ this.currentlyExecuting = true;
+ this.execute();
+ } finally {
+ this.currentlyExecuting = false;
+ }
+ }
+ }
+});
+Object.extend(String, {
+ interpret: function(value) {
+ return value == null ? '' : String(value);
+ },
+ specialChar: {
+ '\b': '\\b',
+ '\t': '\\t',
+ '\n': '\\n',
+ '\f': '\\f',
+ '\r': '\\r',
+ '\\': '\\\\'
+ }
+});
+
+Object.extend(String.prototype, {
+ gsub: function(pattern, replacement) {
+ var result = '', source = this, match;
+ replacement = arguments.callee.prepareReplacement(replacement);
+
+ while (source.length > 0) {
+ if (match = source.match(pattern)) {
+ result += source.slice(0, match.index);
+ result += String.interpret(replacement(match));
+ source = source.slice(match.index + match[0].length);
+ } else {
+ result += source, source = '';
+ }
+ }
+ return result;
+ },
+
+ sub: function(pattern, replacement, count) {
+ replacement = this.gsub.prepareReplacement(replacement);
+ count = Object.isUndefined(count) ? 1 : count;
+
+ return this.gsub(pattern, function(match) {
+ if (--count < 0) return match[0];
+ return replacement(match);
+ });
+ },
+
+ scan: function(pattern, iterator) {
+ this.gsub(pattern, iterator);
+ return String(this);
+ },
+
+ truncate: function(length, truncation) {
+ length = length || 30;
+ truncation = Object.isUndefined(truncation) ? '...' : truncation;
+ return this.length > length ?
+ this.slice(0, length - truncation.length) + truncation : String(this);
+ },
+
+ strip: function() {
+ return this.replace(/^\s+/, '').replace(/\s+$/, '');
+ },
+
+ stripTags: function() {
+ return this.replace(/<\/?[^>]+>/gi, '');
+ },
+
+ stripScripts: function() {
+ return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');
+ },
+
+ extractScripts: function() {
+ var matchAll = new RegExp(Prototype.ScriptFragment, 'img');
+ var matchOne = new RegExp(Prototype.ScriptFragment, 'im');
+ return (this.match(matchAll) || []).map(function(scriptTag) {
+ return (scriptTag.match(matchOne) || ['', ''])[1];
+ });
+ },
+
+ evalScripts: function() {
+ return this.extractScripts().map(function(script) { return eval(script) });
+ },
+
+ escapeHTML: function() {
+ var self = arguments.callee;
+ self.text.data = this;
+ return self.div.innerHTML;
+ },
+
+ unescapeHTML: function() {
+ var div = new Element('div');
+ div.innerHTML = this.stripTags();
+ return div.childNodes[0] ? (div.childNodes.length > 1 ?
+ $A(div.childNodes).inject('', function(memo, node) { return memo+node.nodeValue }) :
+ div.childNodes[0].nodeValue) : '';
+ },
+
+ toQueryParams: function(separator) {
+ var match = this.strip().match(/([^?#]*)(#.*)?$/);
+ if (!match) return { };
+
+ return match[1].split(separator || '&').inject({ }, function(hash, pair) {
+ if ((pair = pair.split('='))[0]) {
+ var key = decodeURIComponent(pair.shift());
+ var value = pair.length > 1 ? pair.join('=') : pair[0];
+ if (value != undefined) value = decodeURIComponent(value);
+
+ if (key in hash) {
+ if (!Object.isArray(hash[key])) hash[key] = [hash[key]];
+ hash[key].push(value);
+ }
+ else hash[key] = value;
+ }
+ return hash;
+ });
+ },
+
+ toArray: function() {
+ return this.split('');
+ },
+
+ succ: function() {
+ return this.slice(0, this.length - 1) +
+ String.fromCharCode(this.charCodeAt(this.length - 1) + 1);
+ },
+
+ times: function(count) {
+ return count < 1 ? '' : new Array(count + 1).join(this);
+ },
+
+ camelize: function() {
+ var parts = this.split('-'), len = parts.length;
+ if (len == 1) return parts[0];
+
+ var camelized = this.charAt(0) == '-'
+ ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)
+ : parts[0];
+
+ for (var i = 1; i < len; i++)
+ camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1);
+
+ return camelized;
+ },
+
+ capitalize: function() {
+ return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
+ },
+
+ underscore: function() {
+ return this.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase();
+ },
+
+ dasherize: function() {
+ return this.gsub(/_/,'-');
+ },
+
+ inspect: function(useDoubleQuotes) {
+ var escapedString = this.gsub(/[\x00-\x1f\\]/, function(match) {
+ var character = String.specialChar[match[0]];
+ return character ? character : '\\u00' + match[0].charCodeAt().toPaddedString(2, 16);
+ });
+ if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') + '"';
+ return "'" + escapedString.replace(/'/g, '\\\'') + "'";
+ },
+
+ toJSON: function() {
+ return this.inspect(true);
+ },
+
+ unfilterJSON: function(filter) {
+ return this.sub(filter || Prototype.JSONFilter, '#{1}');
+ },
+
+ isJSON: function() {
+ var str = this;
+ if (str.blank()) return false;
+ str = this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, '');
+ return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
+ },
+
+ evalJSON: function(sanitize) {
+ var json = this.unfilterJSON();
+ try {
+ if (!sanitize || json.isJSON()) return eval('(' + json + ')');
+ } catch (e) { }
+ throw new SyntaxError('Badly formed JSON string: ' + this.inspect());
+ },
+
+ include: function(pattern) {
+ return this.indexOf(pattern) > -1;
+ },
+
+ startsWith: function(pattern) {
+ return this.indexOf(pattern) === 0;
+ },
+
+ endsWith: function(pattern) {
+ var d = this.length - pattern.length;
+ return d >= 0 && this.lastIndexOf(pattern) === d;
+ },
+
+ empty: function() {
+ return this == '';
+ },
+
+ blank: function() {
+ return /^\s*$/.test(this);
+ },
+
+ interpolate: function(object, pattern) {
+ return new Template(this, pattern).evaluate(object);
+ }
+});
+
+if (Prototype.Browser.WebKit || Prototype.Browser.IE) Object.extend(String.prototype, {
+ escapeHTML: function() {
+ return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ },
+ unescapeHTML: function() {
+ return this.stripTags().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ }
+});
+
+String.prototype.gsub.prepareReplacement = function(replacement) {
+ if (Object.isFunction(replacement)) return replacement;
+ var template = new Template(replacement);
+ return function(match) { return template.evaluate(match) };
+};
+
+String.prototype.parseQuery = String.prototype.toQueryParams;
+
+Object.extend(String.prototype.escapeHTML, {
+ div: document.createElement('div'),
+ text: document.createTextNode('')
+});
+
+String.prototype.escapeHTML.div.appendChild(String.prototype.escapeHTML.text);
+
+var Template = Class.create({
+ initialize: function(template, pattern) {
+ this.template = template.toString();
+ this.pattern = pattern || Template.Pattern;
+ },
+
+ evaluate: function(object) {
+ if (Object.isFunction(object.toTemplateReplacements))
+ object = object.toTemplateReplacements();
+
+ return this.template.gsub(this.pattern, function(match) {
+ if (object == null) return '';
+
+ var before = match[1] || '';
+ if (before == '\\') return match[2];
+
+ var ctx = object, expr = match[3];
+ var pattern = /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;
+ match = pattern.exec(expr);
+ if (match == null) return before;
+
+ while (match != null) {
+ var comp = match[1].startsWith('[') ? match[2].gsub('\\\\]', ']') : match[1];
+ ctx = ctx[comp];
+ if (null == ctx || '' == match[3]) break;
+ expr = expr.substring('[' == match[3] ? match[1].length : match[0].length);
+ match = pattern.exec(expr);
+ }
+
+ return before + String.interpret(ctx);
+ });
+ }
+});
+Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/;
+
+var $break = { };
+
+var Enumerable = {
+ each: function(iterator, context) {
+ var index = 0;
+ try {
+ this._each(function(value) {
+ iterator.call(context, value, index++);
+ });
+ } catch (e) {
+ if (e != $break) throw e;
+ }
+ return this;
+ },
+
+ eachSlice: function(number, iterator, context) {
+ var index = -number, slices = [], array = this.toArray();
+ if (number < 1) return array;
+ while ((index += number) < array.length)
+ slices.push(array.slice(index, index+number));
+ return slices.collect(iterator, context);
+ },
+
+ all: function(iterator, context) {
+ iterator = iterator || Prototype.K;
+ var result = true;
+ this.each(function(value, index) {
+ result = result && !!iterator.call(context, value, index);
+ if (!result) throw $break;
+ });
+ return result;
+ },
+
+ any: function(iterator, context) {
+ iterator = iterator || Prototype.K;
+ var result = false;
+ this.each(function(value, index) {
+ if (result = !!iterator.call(context, value, index))
+ throw $break;
+ });
+ return result;
+ },
+
+ collect: function(iterator, context) {
+ iterator = iterator || Prototype.K;
+ var results = [];
+ this.each(function(value, index) {
+ results.push(iterator.call(context, value, index));
+ });
+ return results;
+ },
+
+ detect: function(iterator, context) {
+ var result;
+ this.each(function(value, index) {
+ if (iterator.call(context, value, index)) {
+ result = value;
+ throw $break;
+ }
+ });
+ return result;
+ },
+
+ findAll: function(iterator, context) {
+ var results = [];
+ this.each(function(value, index) {
+ if (iterator.call(context, value, index))
+ results.push(value);
+ });
+ return results;
+ },
+
+ grep: function(filter, iterator, context) {
+ iterator = iterator || Prototype.K;
+ var results = [];
+
+ if (Object.isString(filter))
+ filter = new RegExp(filter);
+
+ this.each(function(value, index) {
+ if (filter.match(value))
+ results.push(iterator.call(context, value, index));
+ });
+ return results;
+ },
+
+ include: function(object) {
+ if (Object.isFunction(this.indexOf))
+ if (this.indexOf(object) != -1) return true;
+
+ var found = false;
+ this.each(function(value) {
+ if (value == object) {
+ found = true;
+ throw $break;
+ }
+ });
+ return found;
+ },
+
+ inGroupsOf: function(number, fillWith) {
+ fillWith = Object.isUndefined(fillWith) ? null : fillWith;
+ return this.eachSlice(number, function(slice) {
+ while(slice.length < number) slice.push(fillWith);
+ return slice;
+ });
+ },
+
+ inject: function(memo, iterator, context) {
+ this.each(function(value, index) {
+ memo = iterator.call(context, memo, value, index);
+ });
+ return memo;
+ },
+
+ invoke: function(method) {
+ var args = $A(arguments).slice(1);
+ return this.map(function(value) {
+ return value[method].apply(value, args);
+ });
+ },
+
+ max: function(iterator, context) {
+ iterator = iterator || Prototype.K;
+ var result;
+ this.each(function(value, index) {
+ value = iterator.call(context, value, index);
+ if (result == null || value >= result)
+ result = value;
+ });
+ return result;
+ },
+
+ min: function(iterator, context) {
+ iterator = iterator || Prototype.K;
+ var result;
+ this.each(function(value, index) {
+ value = iterator.call(context, value, index);
+ if (result == null || value < result)
+ result = value;
+ });
+ return result;
+ },
+
+ partition: function(iterator, context) {
+ iterator = iterator || Prototype.K;
+ var trues = [], falses = [];
+ this.each(function(value, index) {
+ (iterator.call(context, value, index) ?
+ trues : falses).push(value);
+ });
+ return [trues, falses];
+ },
+
+ pluck: function(property) {
+ var results = [];
+ this.each(function(value) {
+ results.push(value[property]);
+ });
+ return results;
+ },
+
+ reject: function(iterator, context) {
+ var results = [];
+ this.each(function(value, index) {
+ if (!iterator.call(context, value, index))
+ results.push(value);
+ });
+ return results;
+ },
+
+ sortBy: function(iterator, context) {
+ return this.map(function(value, index) {
+ return {
+ value: value,
+ criteria: iterator.call(context, value, index)
+ };
+ }).sort(function(left, right) {
+ var a = left.criteria, b = right.criteria;
+ return a < b ? -1 : a > b ? 1 : 0;
+ }).pluck('value');
+ },
+
+ toArray: function() {
+ return this.map();
+ },
+
+ zip: function() {
+ var iterator = Prototype.K, args = $A(arguments);
+ if (Object.isFunction(args.last()))
+ iterator = args.pop();
+
+ var collections = [this].concat(args).map($A);
+ return this.map(function(value, index) {
+ return iterator(collections.pluck(index));
+ });
+ },
+
+ size: function() {
+ return this.toArray().length;
+ },
+
+ inspect: function() {
+ return '#<Enumerable:' + this.toArray().inspect() + '>';
+ }
+};
+
+Object.extend(Enumerable, {
+ map: Enumerable.collect,
+ find: Enumerable.detect,
+ select: Enumerable.findAll,
+ filter: Enumerable.findAll,
+ member: Enumerable.include,
+ entries...
[truncated message content] |
|
From: <ts...@us...> - 2008-11-21 17:01:30
|
Revision: 167
http://openupload.svn.sourceforge.net/openupload/?rev=167&view=rev
Author: tsdogs
Date: 2008-11-21 17:01:26 +0000 (Fri, 21 Nov 2008)
Log Message:
-----------
Enable activity logging, fix setup script db structure.
Modified Paths:
--------------
trunk/lib/main.inc.php
trunk/lib/modules/default/auth.inc.php
trunk/lib/modules/default/files.inc.php
trunk/lib/user.inc.php
trunk/www/setup.inc.php
Modified: trunk/lib/main.inc.php
===================================================================
--- trunk/lib/main.inc.php 2008-11-21 15:56:22 UTC (rev 166)
+++ trunk/lib/main.inc.php 2008-11-21 17:01:26 UTC (rev 167)
@@ -89,6 +89,13 @@
$this->loadACL();
$this->initModules();
+
+ $this->loglevels['error'] = array('id' => 1, 'syslog' => LOG_ERR );
+ $this->loglevels['security'] = array('id' => 2, 'syslog' => LOG_WARNING );
+ $this->loglevels['warning'] = array('id' => 3, 'syslog' => LOG_WARNING );
+ $this->loglevels['notice'] = array('id' => 4, 'syslog' => LOG_NOTICE );
+ $this->loglevels['info'] = array('id' => 5, 'syslog' => LOG_INFO );
+ $this->loglevels['debug'] = array('id' => 9, 'syslog' => LOG_DEBUG );
}
function getBrowserLang() {
@@ -135,13 +142,51 @@
function message($msg) {
global $_SESSION;
$_SESSION['user']['messages'][] = $msg;
+ $this->log('info','','','MESSAGE',$msg);
}
function error($msg) {
global $_SESSION;
$_SESSION['user']['errors'][] = $msg;
+ $this->log('info','','','ERROR',$msg);
}
+ function log($level,$realaction,$plugin,$result,$moreinfo) {
+ global $_SERVER;
+
+ // log: datetime, ip, user, module, action, realaction, plugin, resulting code, additional info
+ if (isset($this->config['logging'])) {
+ if ($this->config['logging']['enabled']=='yes') {
+ $ip = $_SERVER['REMOTE_ADDR'];
+ $login = $this->user->info('login');
+ $module = $this->actions[$this->action];
+ $action = $this->action;
+ if ($this->config['logging']['db_level']>=$this->loglevels[$level]['id']) {
+ if (is_object($this->db)) {
+ $this->db->insert('activitylog',
+ array('level' => $level,
+ 'log_time' => date('Y-m-d H:i:s'),
+ 'ip' => $ip,
+ 'user_login' => $login,
+ 'module' => $module,
+ 'action' => $action,
+ 'realaction' => $realaction,
+ 'plugin' => $plugin,
+ 'result' => $result,
+ 'moreinfo' => $moreinfo
+ ) );
+ }
+ }
+ if ($this->config['logging']['syslog_level']>=$this->loglevels[$level]['id']) {
+ $msg = '[openupload] IP='.$ip.' LOGIN='.$this->user->info('login').
+ ' MODULE='.$module.' ACTION='.$action.' REALACTION='.$realaction.
+ ' PLUGIN='.$plugin.' RESULT='.$result.' MSG='.$moreinfo;
+ syslog($this->loglevels[$level]['syslog'],$msg);
+ }
+ }
+ }
+ }
+
function initModules() {
/* initialize configured modules */
foreach ($this->config['modules'] as $module) {
@@ -213,7 +258,11 @@
$acl = $this->pluginAcl[$plugin->name]['access'];
}
if (!$plugin->$action($finfo,$acl)) {
- if ($stop) return false;
+ if ($stop) {
+ app()->log('security',$action,$plugin->name,'DENY','');
+ return false;
+ }
+ app()->log('info',$action,$plugin->name,'DENY','non blocking');
$result = false;
}
$this->pluginHTML .= $plugin->pluginHTML;
@@ -270,7 +319,7 @@
$result = $this->checkSingleACL($group,$module,$action);
}
- if ($this->config['debug_acl'] and $result == 'deny') {
+ if (isset($this->config['debug_acl']) and $this->config['debug_acl'] and $result == 'deny') {
echo '<pre>ACL: '.$result.' - group: '.$group.', module: '.$module.', action: '.$action."\n";
print_r($this->acl);
echo '</pre>';
@@ -377,6 +426,7 @@
}
/* check for banned IP */
if ($this->banned() != 'allow') {
+ $this->log('security','banned','','DENY','');
$this->page['content'] = $this->fetch('banned');
$this->page['title']= tr('IP Banned');
$this->tpl->assign('page',app()->page);
@@ -387,6 +437,7 @@
/* depending on the acl some actions need authentication others don't */
if (!isset($this->actions[$this->action])) {
/* no module can handle this action */
+ $this->log('error','none','','NOT FOUND','');
redirect();
}
/* get the handling module */
@@ -400,6 +451,7 @@
/* check if login is allowed (it should always be */
if ($this->checkACL($group,'auth','login')!='allow') {
/* Login is not allowed there is an error, display the default page with a warning */
+ $this->log('error','checkACL','','DENY','default action not allowed!!!');
$this->tpl->assign('user',$this->user->info());
$this->tpl->assign('langs',$this->langs);
unset($_SESSION['user']['messages']);
@@ -447,6 +499,7 @@
$this->page['content']=$this->fetch('modules/'.$m->name.'/'.$fun);
$this->tpl->assign('page',$this->page);
$this->display($this->mainPage);
+ $this->log('info',$fun,'','ALLOW','');
$this->db->free();
}
}
Modified: trunk/lib/modules/default/auth.inc.php
===================================================================
--- trunk/lib/modules/default/auth.inc.php 2008-11-21 15:56:22 UTC (rev 166)
+++ trunk/lib/modules/default/auth.inc.php 2008-11-21 17:01:26 UTC (rev 167)
@@ -89,6 +89,7 @@
global $_POST;
if (app()->auth->features['useradmin']!='yes') {
+ app()->log('error','registerForm','','ERROR','Registration not supporte by Auth Module');
app()->error(tr('Registration is not supported by Auth Module'));
redirect();
}
@@ -209,6 +210,7 @@
$user['active']=1;
$user['regid']=''; /* disable possibility to reactivate it if disabled by the admin */
app()->db->update('users',$user,array('id' => $user['id']),array('active','regid'));
+ app()->log('notice','registerEnable','','OK',$user['login']);
}
}
}
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2008-11-21 15:56:22 UTC (rev 166)
+++ trunk/lib/modules/default/files.inc.php 2008-11-21 17:01:26 UTC (rev 167)
@@ -118,18 +118,21 @@
if (isset($_FILES['upload'])) {
if ($_FILES['upload']['error']>0) {
switch ($_FILES['upload']['error']) { /* taken from here: http://it.php.net/manual/en/features.file-upload.errors.php */
- case 1: app()->error(tr('Maximum upload size for site wide configuration reached')); break;
- case 2: app()->error(tr('Maximum file size exceeded!')); break;
- case 3: app()->error(tr('Partial file transfer error!')); break;
- case 4: app()->error(tr('No file was uploaded!')); break;
- case 6: app()->error(tr('Missing temporary directory')); break;
- case 7: app()->error(tr('Can\'t write to temporary diretory!')); break;
- case 8: app()->error(tr('Upload blocked by extension!')); break;
+ case 1: $msg = 'Maximum upload size for site wide configuration reached'; break;
+ case 2: $msg = 'Maximum file size exceeded!'; break;
+ case 3: $msg = 'Partial file transfer error!'; break;
+ case 4: $msg = 'No file was uploaded!'; break;
+ case 6: $msg = 'Missing temporary directory'; break;
+ case 7: $msg = 'Can\'t write to temporary diretory!'; break;
+ case 8: $msg = 'Upload blocked by extension!'; break;
default:
- app()->error(tr('Upload failed for Unknown error code: %1',$_FILES['upload']['error'])); break;
+ $msg = tr('Upload failed for Unknown error code: %1',$_FILES['upload']['error']); break;
}
+ app()->log('warning','uploadOptions','','FAIL','Upload error: '.$msg);
+ app()->error(tr($msg));
$this->nextStep(1);
} else if ($_FILES['upload']['size']>app()->user->info('max_upload_size')) {
+ app()->log('warning','uploadOptions','','DENY','Maximum file size exceeded!');
app()->error(tr('Maximum file size exceeded!'));
break;
} else {
@@ -221,6 +224,7 @@
}
rename($_SESSION['user']['u'][$i]['tmp'],app()->config['DATA_PATH'].'/'.$finfo['id']);
$_SESSION['user']['u'][$i]=$finfo;
+ app()->log('notice','uploadConfirm','','OK',$finfo['id']);
}
$this->nextStep();
}
@@ -285,6 +289,7 @@
if ($id != '') {
$finfo = $this->loadFile($id);
if ($finfo[0]['id']!=$id) {
+ app()->log('warning','downloadRequest','','DENY','File does not exist: ID:'.$id);
app()->error(tr('Requested file does not exist!'));
$this->prevStep();
} else {
@@ -293,6 +298,7 @@
$this->tpl->assign('files',$finfo);
$result = app()->pluginAction('downloadRequest',$finfo[0],false);
if ($result) {
+ app()->log('info','downloadRequest','','ALLOW',$id);
$this->nextStep();
}
}
@@ -353,6 +359,7 @@
} else {
set_time_limit(7200); /* 2 hours should be enough */
}
+ app()->log('notice','serveFile','','ALLOW',$finfo[$num]['id']);
/* disable and clean output buffer so it won't reach memory limit */
ob_end_clean();
header('Content-Type: '.$finfo[$num]['mime']);
@@ -400,7 +407,7 @@
function removeConfirm() {
$finfo = $_SESSION['user']['r'];
-
+//TODO: Remove all the files...
/* here we do the actual download of the file */
if (!isset($_SESSION['user']['r'])) {
redirect();
@@ -415,6 +422,7 @@
app()->db->delete('file_options',array('file_id' => $finfo['id']));
$file = app()->config['DATA_PATH'].'/'.$finfo['id'];
unlink($file);
+ app()->log('notice','removeConfirm','','REMOVED',$finfo['id']);
/* display removal confirmation */
$this->nextStep();
}
Modified: trunk/lib/user.inc.php
===================================================================
--- trunk/lib/user.inc.php 2008-11-21 15:56:22 UTC (rev 166)
+++ trunk/lib/user.inc.php 2008-11-21 17:01:26 UTC (rev 167)
@@ -15,6 +15,7 @@
$messages = $_SESSION['user']['messages'];
$errors = $_SESSION['user']['errors'];
+ app()->log('security','authenticate','','ALLOW','User logged out');
unset($_SESSION['user']);
$_SESSION['user']['messages'] = $messages;
$_SESSION['user']['errors'] = $errors;
@@ -81,10 +82,12 @@
/* retrieve user info */
$_SESSION['user'] = $this->auth->userinfo($username);
/* make the post not be resent on refresh */
+ app()->log('security','authenticate','','ALLOW','User logged in');
return true;
} else {
// set the error message for the login
app()->error(tr('Login incorrect!'));
+ app()->log('security','authenticate','','DENY','Login failed: '.$username);
}
}
return false;
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-11-21 15:56:22 UTC (rev 166)
+++ trunk/www/setup.inc.php 2008-11-21 17:01:26 UTC (rev 167)
@@ -115,13 +115,10 @@
'module' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
'name' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
'value' => array ( 'type' => 'char', 'size' => 200, 'extra' => '', 'null' => 'NOT NULL', ),
- 'user_login' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
- 'ip' => array ( 'type' => 'char', 'size' => 40, 'extra' => '', 'null' => 'NOT NULL', ),
- 'upload_date' => array ( 'type' => 'datetime', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
),
'keys' => array (
'id' => array ( 'primary' => true, 'fields' => array ('id'), ),
- 'file_id' => array ( 'primary' => false, 'unique' => 'false', 'fields' => array('file_id') ),
+ 'file_id' => array ( 'primary' => false, 'unique' => false, 'fields' => array('file_id') ),
),
),
'groups' => array (
@@ -187,6 +184,24 @@
'login' => array ( 'primary' => false, 'unique' => true, 'fields' => array('id'), ),
),
),
+ 'activitylog' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'int', 'size' => 20, 'extra' => 'auto_increment', 'null' => 'NOT NULL', ),
+ 'level' => array ( 'type' => 'char', 'size' => 20, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'log_time' => array ( 'type' => 'datetime', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'ip' => array ( 'type' => 'char', 'size' => 20, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'user_login' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'module' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'action' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'realaction' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => '', ),
+ 'plugin' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => '', ),
+ 'result' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => '', ),
+ 'moreinfo' => array ( 'type' => 'text', 'size' => 0, 'extra' => '', 'null' => '', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array('id'), ),
+ ),
+ ),
);
@@ -680,6 +695,9 @@
$CONFIG['max_download_time']=$_POST['max_download_time'];
$CONFIG['multiupload']=$_POST['multiupload'];
$CONFIG['progress']=$_POST['progress'];
+ $CONFIG['logging']['enabled']=isset($_POST['logging'])?'yes':'no';
+ $CONFIG['logging']['db_level']=$_POST['log_db_level'];
+ $CONFIG['logging']['syslog_level']=$_POST['log_syslog_level'];
if ($CONFIG['translator']=='') {
$error = true;
@@ -730,6 +748,9 @@
$CONFIG['max_download_time']=120;
$CONFIG['multiupload']=1;
$CONFIG['progress']=$_SESSION['progress_values'][count($_SESSION['progress_values'])-1];
+ $CONFIG['logging']['enabled']='yes';
+ $CONFIG['logging']['db_level']=4;
+ $CONFIG['logging']['syslog_level']=0;
}
?>
<form method="POST" action="index.php">
@@ -781,6 +802,25 @@
}
?>
</select></td></tr>
+<tr><td>Enable activity logging?:</td><td><input type="checkbox" name="logging" value="yes" <?php if ($CONFIG['logging']['enabled']=='yes') echo 'checked'; ?> ></td></tr>
+
+<tr><td>Database logging level:</td><td><select name="log_db_level">
+<?php
+ $loglevels = array ( 'Disabled', 'Errors', 'Security', 'Warnings', 'Statistics', 'Info');
+ foreach ($loglevels as $k => $l) {
+ $sel = $CONFIG['logging']['db_level']==$k?'selected':'';
+ echo '<option value="'.$k.'" '.$sel.'>'.$l.'</option>';
+ }
+?>
+</select></td></tr>
+<tr><td>Syslog logging level:</td><td><select name="log_syslog_level">
+<?php
+ foreach ($loglevels as $k => $l) {
+ $sel = $CONFIG['logging']['syslog_level']==$k?'selected':'';
+ echo '<option value="'.$k.'" '.$sel.'>'.$l.'</option>';
+ }
+?>
+</select></td></tr>
<TR><TD colspan="2"><input type="submit" value="Next >>"></TD></TR>
</table>
</form>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-11-21 17:26:10
|
Revision: 168
http://openupload.svn.sourceforge.net/openupload/?rev=168&view=rev
Author: tsdogs
Date: 2008-11-21 17:26:05 +0000 (Fri, 21 Nov 2008)
Log Message:
-----------
enable multiple files removal, and change default e-mail not to include file name/size
Modified Paths:
--------------
trunk/lib/modules/default/files.inc.php
trunk/templates/default/modules/files/removeRequest.tpl
trunk/templates/default/modules/files/removeResult.tpl
trunk/templates/default/plugins/email/notify.tpl
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2008-11-21 17:01:26 UTC (rev 167)
+++ trunk/lib/modules/default/files.inc.php 2008-11-21 17:26:05 UTC (rev 168)
@@ -379,22 +379,23 @@
$id = '';
if (isset($_GET['id'])) {
$id = $_GET['id'];
- } else if (isset($_SESSION['user']['r']['id'])) {
- $id = $_SESSION['user']['r']['id'];
+ } else if (isset($_SESSION['user']['r'][0]['id'])) {
+ $id = $_SESSION['user']['r'][0]['id'];
}
/* check if download exists, and what are the properties */
if ($id != '') {
$finfo = $this->loadFile($id);
- if ($finfo['id']!=$id) {
+ if ($finfo[0]['id']!=$id) {
app()->error(tr('Wrong file id!'));
redirect();
- } else if ($_GET['removeid']!=$finfo['remove']) {
+ } else if ($_GET['removeid']!=$finfo[0]['remove']) {
app()->error(tr('Wrong file id!')); /* don't give the user much info on this */
redirect();
} else {
$_SESSION['user']['r']=$finfo;
- $this->tpl->assign('finfo',$finfo);
- $result = app()->pluginAction('removeRequest',$finfo,false);
+ $this->tpl->assign('files',$finfo);
+ $this->tpl->assign('finfo',$finfo[0]);
+ $result = app()->pluginAction('removeRequest',$finfo[0],false);
if (!$result) {
redirect();
}
@@ -407,7 +408,7 @@
function removeConfirm() {
$finfo = $_SESSION['user']['r'];
-//TODO: Remove all the files...
+
/* here we do the actual download of the file */
if (!isset($_SESSION['user']['r'])) {
redirect();
@@ -418,11 +419,13 @@
if (!$result)
$this->prevStep();
/* now we can remove the file */
- app()->db->delete('files',array('id' => $finfo['id']));
- app()->db->delete('file_options',array('file_id' => $finfo['id']));
- $file = app()->config['DATA_PATH'].'/'.$finfo['id'];
- unlink($file);
- app()->log('notice','removeConfirm','','REMOVED',$finfo['id']);
+ foreach ($finfo as $f) {
+ app()->db->delete('files',array('id' => $f['id']));
+ app()->db->delete('file_options',array('file_id' => $f['id']));
+ $file = app()->config['DATA_PATH'].'/'.$f['id'];
+ unlink($file);
+ }
+ app()->log('notice','removeConfirm','','REMOVED',$finfo[0]['id']);
/* display removal confirmation */
$this->nextStep();
}
@@ -434,7 +437,8 @@
} else {
$finfo = $_SESSION['user']['r'];
$result = app()->pluginAction('removeResult',$finfo,false);
- $this->tpl->assign('finfo',$finfo);
+ $this->tpl->assign('files',$finfo);
+ $this->tpl->assign('finfo',$finfo[0]);
unset($_SESSION['user']['r']); /* remove any file reference */
}
}
Modified: trunk/templates/default/modules/files/removeRequest.tpl
===================================================================
--- trunk/templates/default/modules/files/removeRequest.tpl 2008-11-21 17:01:26 UTC (rev 167)
+++ trunk/templates/default/modules/files/removeRequest.tpl 2008-11-21 17:26:05 UTC (rev 168)
@@ -4,8 +4,10 @@
<input type="hidden" name="step" value="{$nextstep}">
<table border="0">
<tr><td>{tr}File description{/tr}:</td><td><b>{$finfo.description}</b></td></tr>
-<tr><td>{tr}File name{/tr}:</td><td><b>{$finfo.name}</b></td></tr>
-<tr><td>{tr}File size{/tr}:</td><td><b>{$finfo.size}</b></td></tr>
+{foreach from=$files item=f}
+<tr><td>{tr}File name{/tr}:</td><td><b>{$f.name}</b></td></tr>
+<tr><td>{tr}File size{/tr}:</td><td>{$f.size|fsize_format}</td></tr>
+{/foreach}
<tr><td>{tr}Uploaded on{/tr}:</td><td><b>{$finfo.upload_date}</b></td></tr>
{$plugins}
<tr><td colspan="2" align="right"><input class="submit" type="submit" value="{tr}Confirm removal{/tr}">
Modified: trunk/templates/default/modules/files/removeResult.tpl
===================================================================
--- trunk/templates/default/modules/files/removeResult.tpl 2008-11-21 17:01:26 UTC (rev 167)
+++ trunk/templates/default/modules/files/removeResult.tpl 2008-11-21 17:26:05 UTC (rev 168)
@@ -1,8 +1,6 @@
{tr}FILE HAS BEEN SUCCESSFULLY REMOVED{/tr}:<br>
<table border="0">
<tr><td>{tr}File description{/tr}:</td><td><b>{$finfo.description}</b></td></tr>
-<tr><td>{tr}File name{/tr}:</td><td><b>{$finfo.name}</b></td></tr>
-<tr><td>{tr}File size{/tr}:</td><td><b>{$finfo.size}</b></td></tr>
<tr><td>{tr}Uploaded on{/tr}:</td><td><b>{$finfo.upload_date}</b></td></tr>
{$plugins}
</table>
Modified: trunk/templates/default/plugins/email/notify.tpl
===================================================================
--- trunk/templates/default/plugins/email/notify.tpl 2008-11-21 17:01:26 UTC (rev 167)
+++ trunk/templates/default/plugins/email/notify.tpl 2008-11-21 17:26:05 UTC (rev 168)
@@ -6,9 +6,6 @@
{tr}You are receiving this message because someone uploaded a file on our OpenUpload server for you.{/tr}
-{tr}File ID{/tr}: {$finfo.id}
-{tr}File name{/tr}: {$finfo.name}
-{tr}File size{/tr}: {$finfo.size|fsize_format}
{tr}Description{/tr}: {$finfo.description}
{if $finfo.plainpassword!=''}
{tr}Password{/tr}: {$finfo.plainpassword}
@@ -88,9 +85,6 @@
<p>{tr}You are receiving this message because someone uploaded a file on our OpenUpload server for you.{/tr}</p>
<table border="0">
-<tr><td>{tr}File ID{/tr}:</td><td>{$finfo.id}</td></tr>
-<tr><td>{tr}File name{/tr}:</td><td>{$finfo.name}</td></tr>
-<tr><td>{tr}File size{/tr}:</td><td>{$finfo.size|fsize_format}</td></tr>
<tr><td>{tr}Description{/tr}:</td><td>{$finfo.description}</td></tr>
{if $finfo.plainpassword!=''}
<tr><td>{tr}Password{/tr}:</td><td>{$finfo.plainpassword}</td></tr>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-11-21 19:02:48
|
Revision: 169
http://openupload.svn.sourceforge.net/openupload/?rev=169&view=rev
Author: tsdogs
Date: 2008-11-21 19:02:43 +0000 (Fri, 21 Nov 2008)
Log Message:
-----------
Updated to better handle multiuploaded files
Fixed double click bug on non protected files.
Modified Paths:
--------------
trunk/lib/modules/default/files.inc.php
trunk/plugins/captcha.inc.php
trunk/plugins/email.inc.php
trunk/plugins/mimetypes.inc.php
trunk/plugins/password.inc.php
trunk/templates/default/plugins/email/notify.tpl
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2008-11-21 17:26:05 UTC (rev 168)
+++ trunk/lib/modules/default/files.inc.php 2008-11-21 19:02:43 UTC (rev 169)
@@ -153,20 +153,20 @@
$_SESSION['user']['u'][$i]['size']=$_FILES[$u]['size'];
$_SESSION['user']['u'][$i]['ip']=$_SERVER['REMOTE_ADDR'];
$_SESSION['user']['u'][$i]['user_login']=app()->user->info('login');
- $result = app()->pluginAction('uploadComplete',$_SESSION['user']['u'][$i]);
- if (!$result) { /* some plugin blocked the upload */
- /* remove the file */
- unset($_SESSION['user']['u']);
- redirect();
- }
}
}
+ $result = app()->pluginAction('uploadComplete',$_SESSION['user']['u']);
+ if (!$result) { /* some plugin blocked the upload */
+ /* remove the file */
+ unset($_SESSION['user']['u']);
+ redirect();
+ }
$this->nextStep(app()->step);
}
} else if (!isset($_SESSION['user']['u'][0])) {
redirect();
}
- $result = app()->pluginAction('uploadOptions',$_SESSION['user']['u'][0]);
+ $result = app()->pluginAction('uploadOptions',$_SESSION['user']['u']);
if (!$result) { /* some plugin blocked the upload */
/* remove the files */
unset($_SESSION['user']['u']);
@@ -185,23 +185,24 @@
/* send an e-mail if requested */
/* display the information on the upload */
if (isset($_POST['description'])) {
- /* move the file to the actual location */
+ /* now check plugins and if ok add file otherwise redirect */
+ $result = app()->pluginAction('uploadConfirm',$_SESSION['user']['u']);
+ if (!$result)
+ $this->prevStep();
for ($i = 0; $i<count($_SESSION['user']['u']); $i++) {
$finfo = $_SESSION['user']['u'][$i];
$finfo['description'] = $_POST['description'];
- /* now check plugins and if ok add file otherwise redirect */
if ($i==0) {
- $result = app()->pluginAction('uploadConfirm',$finfo);
- if (!$result)
- $this->prevStep();
$finfo['id']= app()->db->newRandomId('files','id');
$mainid = $finfo['id'];
+ $remove = app()->db->newRandomId('files','remove');
+ $date = date('Y-m-d H:i:s');
} else {
$finfo['id']=$mainid.'_'.$i;
}
/* everything ok then add the file */
- $finfo['remove']= app()->db->newRandomId('files','remove');
- $finfo['upload_date'] = date('Y-m-d H:i:s');
+ $finfo['remove']= $remove;
+ $finfo['upload_date'] = $date;
app()->db->insert('files',$finfo,array('id','name','mime','description','size','remove','user_login','ip','upload_date'));
if ($i==0) {
foreach (app()->plugins as $plugin) {
@@ -222,22 +223,24 @@
$pinfo['value']=$mainid;
app()->db->insert('file_options',$pinfo,array('file_id','module','name','value'));
}
+ /* move the file to the actual location */
rename($_SESSION['user']['u'][$i]['tmp'],app()->config['DATA_PATH'].'/'.$finfo['id']);
$_SESSION['user']['u'][$i]=$finfo;
- app()->log('notice','uploadConfirm','','OK',$finfo['id']);
}
+ app()->log('notice','uploadConfirm','','OK',$mainid);
$this->nextStep();
}
}
function uploadFileInfo() {
if (isset($_SESSION['user']['u'][0]['id'])) {
- $finfo = $_SESSION['user']['u'][0];
+ $finfo = $_SESSION['user']['u'];
/* get the file info */
- $finfo['downloadlink']= app()->config['WWW_SERVER'].app()->config['WWW_ROOT'].'/?action=d&id='.$finfo['id'];
- $finfo['removelink']= app()->config['WWW_SERVER'].app()->config['WWW_ROOT'].'/?action=r&id='.$finfo['id'].'&removeid='.$finfo['remove'];
+ $finfo[0]['downloadlink']= app()->config['WWW_SERVER'].app()->config['WWW_ROOT'].'/?action=d&id='.$finfo[0]['id'];
+ $finfo[0]['removelink']= app()->config['WWW_SERVER'].app()->config['WWW_ROOT'].'/?action=r&id='.$finfo[0]['id'].'&removeid='.$finfo[0]['remove'];
$result = app()->pluginAction('uploadFileInfo',$finfo,false);
- $this->tpl->assign('finfo',$finfo);
+ $this->tpl->assign('finfo',$finfo[0]);
+ $this->tpl->assign('files',$finfo);
$this->tpl->assign('webbase',app()->config['WWW_SERVER'].app()->config['WWW_ROOT']);
} else {
redirect();
@@ -294,11 +297,13 @@
$this->prevStep();
} else {
$_SESSION['user']['d']=$finfo;
+ $_SESSION['user']['d'][0]['protected'] = true;
$this->tpl->assign('finfo',$finfo[0]);
$this->tpl->assign('files',$finfo);
- $result = app()->pluginAction('downloadRequest',$finfo[0],false);
+ $result = app()->pluginAction('downloadRequest',$finfo,false);
if ($result) {
app()->log('info','downloadRequest','','ALLOW',$id);
+ $_SESSION['user']['d'][0]['protected']=false;
$this->nextStep();
}
}
@@ -318,7 +323,7 @@
} else {
$finfo = $_SESSION['user']['d'];
/* check wether the plugins are ok */
- $result = app()->pluginAction('downloadConfirm',$finfo[0]);
+ $result = app()->pluginAction('downloadConfirm',$finfo);
if (!$result)
$this->prevStep();
for ($i = 0; $i<count($finfo); $i++)
@@ -346,10 +351,10 @@
} else {
$finfo = $_SESSION['user']['d'];
/* check wether the plugins are ok */
- $result = app()->pluginAction('serveFile',$finfo[$num]);
+ $result = app()->pluginAction('serveFile',$finfo);
if (!$result)
$this->nextStep(3,'d');
- $_SESSION['user']['d'][$num]['candownload']='ok';
+ //$_SESSION['user']['d'][$num]['candownload']='ok';
/* if we got this far the download should begin serving */
$file = app()->config['DATA_PATH'].'/'.$finfo[$num]['id'];
$filesize = filesize($file);
@@ -367,7 +372,10 @@
header('Content-Disposition: attachment; filename="'.$finfo[$num]['name'].'"');
readfile($file);
/* file should have been sent now let's reset the download info */
- $_SESSION['user']['d'][$num]['candownload']='ko';
+ if (!$_SESSION['user']['d'][0]['protected'])
+ $_SESSION['user']['d'][$num]['candownload']='ok';
+ else
+ $_SESSION['user']['d'][$num]['candownload']='ko';
exit(0);
}
}
@@ -395,7 +403,7 @@
$_SESSION['user']['r']=$finfo;
$this->tpl->assign('files',$finfo);
$this->tpl->assign('finfo',$finfo[0]);
- $result = app()->pluginAction('removeRequest',$finfo[0],false);
+ $result = app()->pluginAction('removeRequest',$finfo,false);
if (!$result) {
redirect();
}
Modified: trunk/plugins/captcha.inc.php
===================================================================
--- trunk/plugins/captcha.inc.php 2008-11-21 17:26:05 UTC (rev 168)
+++ trunk/plugins/captcha.inc.php 2008-11-21 19:02:43 UTC (rev 169)
@@ -17,12 +17,12 @@
global $_POST;
if ($acl!='enable') return true;
- $finfo['captcha'] = $_POST['captcha'];
+ $finfo[0]['captcha'] = $_POST['captcha'];
return true;
}
function downloadRequest($finfo,$acl) {
- if ($finfo['captcha']==1) {
+ if ($finfo[0]['captcha']==1) {
$this->assign('captcha_img',app()->config['WWW_ROOT'].'/plugins/captcha.php');
$this->display('downloadRequest');
return false;
@@ -33,7 +33,7 @@
function downloadConfirm($finfo,$acl) {
global $_POST;
- if ($finfo['captcha']==1) {
+ if ($finfo[0]['captcha']==1) {
require_once(app()->config['INSTALL_ROOT'].'/plugins/securimage/securimage.php');
$securimage = new Securimage();
$result = $securimage->check($_POST['captcha_code']);
Modified: trunk/plugins/email.inc.php
===================================================================
--- trunk/plugins/email.inc.php 2008-11-21 17:26:05 UTC (rev 168)
+++ trunk/plugins/email.inc.php 2008-11-21 19:02:43 UTC (rev 169)
@@ -17,25 +17,25 @@
if ($acl!='enable') return true;
/* do e-mail checking and so */
/* $this->display('upload'); */
- $finfo['emailme']=$_POST['emailme'];
- $finfo['emailfrom']=app()->config['site']['email'];
- $finfo['emailto']=$_POST['emailto'];
- $finfo['email_removelink']=$_POST['removelink'];
- $finfo['subject']=$_POST['subject'];
- $finfo['message']=$_POST['message'];
- if ($finfo['emailme']=="yes") {
+ $finfo[0]['emailme']=$_POST['emailme'];
+ $finfo[0]['emailfrom']=app()->config['site']['email'];
+ $finfo[0]['emailto']=$_POST['emailto'];
+ $finfo[0]['email_removelink']=$_POST['removelink'];
+ $finfo[0]['subject']=$_POST['subject'];
+ $finfo[0]['message']=$_POST['message'];
+ if ($finfo[0]['emailme']=="yes") {
if ($_SESSION['user']['email']=='') {
/* check valid e-mail */
if (!validEmail($_POST['email'])) {
app()->error(tr('Your e-mail address isn\'t valid!'));
return false;
}
- $finfo['emailfrom']=$_POST['email'];
+ $finfo[0]['emailfrom']=$_POST['email'];
} else {
- $finfo['emailfrom']=$_SESSION['user']['name'].' <'.$_SESSION['user']['email'].'>';
+ $finfo[0]['emailfrom']=$_SESSION['user']['name'].' <'.$_SESSION['user']['email'].'>';
}
}
- if ($finfo['emailto']!='') {
+ if ($finfo[0]['emailto']!='') {
if (!validEmail($_POST['emailto'])) {
app()->error(tr('Destination e-mail address isn\'t valid!'));
return false;
@@ -51,21 +51,20 @@
if ($acl!='enable') return true;
/* send the e-mails */
app()->tpl->assign('finfo',$finfo);
- if ($finfo['emailme']=="yes") {
+ if ($finfo[0]['emailme']=="yes") {
app()->tpl->assign('remove','yes');
- $subject = app()->config['site']['title'].': '.tr("Information about your uploaded file: %1",$finfo['name']);
- sendMail(app()->config['site']['email'],'noreply',$finfo['emailfrom'],$subject,'plugins/email/notify');
+ $subject = app()->config['site']['title'].': '.tr("Information about your uploaded file: %1",$finfo[0]['description']);
+ sendMail(app()->config['site']['email'],'noreply',$finfo[0]['emailfrom'],$subject,'plugins/email/notify');
}
- if ($finfo['emailto']!='') {
- $subject = $finfo['subject']!=''?$finfo['subject']:tr("An upload was delivered to you");
+ if ($finfo[0]['emailto']!='') {
+ $subject = $finfo[0]['subject']!=''?$finfo[0]['subject']:tr("An upload was delivered to you");
$subject = app()->config['site']['title'].': '.$subject;
- app()->tpl->assign('remove',$finfo['email_removelink']);
- sendMail($finfo['emailfrom'],$finfo['emailfrom'],$finfo['emailto'],$subject,'plugins/email/notify');
+ app()->tpl->assign('remove',$finfo[0]['email_removelink']);
+ sendMail($finfo[0]['emailfrom'],$finfo[0]['emailfrom'],$finfo[0]['emailto'],$subject,'plugins/email/notify');
}
/* don't send it twice */
- $finfo['emailme']=='';
- $finfo['emailto']=='';
-//exit();
+ $finfo[0]['emailme']=='';
+ $finfo[0]['emailto']=='';
return true;
}
}
\ No newline at end of file
Modified: trunk/plugins/mimetypes.inc.php
===================================================================
--- trunk/plugins/mimetypes.inc.php 2008-11-21 17:26:05 UTC (rev 168)
+++ trunk/plugins/mimetypes.inc.php 2008-11-21 19:02:43 UTC (rev 169)
@@ -46,9 +46,15 @@
$group = $this->getGroup();
if (count($this->config['allowed'][$group])==0) {
app()->error(tr('WARNING: no mime types defined. Plugin has been disabled!'));
- } else if (array_search($finfo['mime'],$this->config['allowed'][$group])===FALSE) {
- app()->error(tr('This file type (%1) is not allowed on this site!',$finfo['mime']));
- return false;
+ } else {
+ $result = true;
+ foreach ($finfo as $f) {
+ if (array_search($f['mime'],$this->config['allowed'][$group])===FALSE) {
+ app()->error(tr('This file type (%1) is not allowed on this site!',$f['mime']));
+ $result = false;
+ }
+ }
+ return $result;
}
return true;
}
Modified: trunk/plugins/password.inc.php
===================================================================
--- trunk/plugins/password.inc.php 2008-11-21 17:26:05 UTC (rev 168)
+++ trunk/plugins/password.inc.php 2008-11-21 19:02:43 UTC (rev 169)
@@ -17,17 +17,17 @@
global $_POST;
if (isset($_POST['protect']) and $acl=='enable') {
- $finfo['plainpassword'] = $_POST['protect'];
- $finfo['password'] = crypt($_POST['protect']);
+ $finfo[0]['plainpassword'] = $_POST['protect'];
+ $finfo[0]['password'] = crypt($_POST['protect']);
} else {
- $finfo['password'] = crypt("");
- $finfo['plainpassword'] = "";
+ $finfo[0]['password'] = crypt("");
+ $finfo[0]['plainpassword'] = "";
}
return true;
}
function downloadRequest($finfo,$acl) {
- if (($finfo['password']!='') and ($finfo['password']!=crypt("",$finfo['password'])) ) {
+ if (($finfo[0]['password']!='') and ($finfo[0]['password']!=crypt("",$finfo[0]['password'])) ) {
$this->display('downloadRequest');
return false;
}
@@ -37,8 +37,8 @@
function downloadConfirm($finfo,$acl) {
global $_POST;
- if (($finfo['password']!='') and ($finfo['password']!=crypt("",$finfo['password'])) ) {
- $result = $finfo['password']==crypt($_POST['protect'],$finfo['password']);
+ if (($finfo[0]['password']!='') and ($finfo[0]['password']!=crypt("",$finfo[0]['password'])) ) {
+ $result = $finfo[0]['password']==crypt($_POST['protect'],$finfo[0]['password']);
if (!$result) app()->error(tr('Wrong password!'));
return $result;
} else {
Modified: trunk/templates/default/plugins/email/notify.tpl
===================================================================
--- trunk/templates/default/plugins/email/notify.tpl 2008-11-21 17:26:05 UTC (rev 168)
+++ trunk/templates/default/plugins/email/notify.tpl 2008-11-21 19:02:43 UTC (rev 169)
@@ -6,23 +6,23 @@
{tr}You are receiving this message because someone uploaded a file on our OpenUpload server for you.{/tr}
-{tr}Description{/tr}: {$finfo.description}
-{if $finfo.plainpassword!=''}
-{tr}Password{/tr}: {$finfo.plainpassword}
+{tr}Description{/tr}: {$finfo[0].description}
+{if $finfo[0].plainpassword!=''}
+{tr}Password{/tr}: {$finfo[0].plainpassword}
{/if}
-{if ($finfo.message!="")}
+{if ($finfo[0].message!="")}
{tr}User message{/tr}:
-{$finfo.message}
+{$finfo[0].message}
{/if}
{tr}To download the file open the following link in a browser{/tr}
-{$finfo.downloadlink}
+{$finfo[0].downloadlink}
{if isset($remove)}
{tr}To remove the file from our server open the following link in a browser{/tr}
-{$finfo.removelink}
+{$finfo[0].removelink}
{/if}
{if isset($adminemail)}
@@ -85,30 +85,29 @@
<p>{tr}You are receiving this message because someone uploaded a file on our OpenUpload server for you.{/tr}</p>
<table border="0">
-<tr><td>{tr}Description{/tr}:</td><td>{$finfo.description}</td></tr>
-{if $finfo.plainpassword!=''}
-<tr><td>{tr}Password{/tr}:</td><td>{$finfo.plainpassword}</td></tr>
+<tr><td>{tr}Description{/tr}:</td><td>{$finfo[0].description}</td></tr>
+{if $finfo[0].plainpassword!=''}
+<tr><td>{tr}Password{/tr}:</td><td>{$finfo[0].plainpassword}</td></tr>
{/if}
</table>
-{if ($finfo.message!="")}
+{if ($finfo[0].message!="")}
<p>{tr}User message{/tr}<br>:
-{$finfo.message}
+{$finfo[0].message}
</p>
{/if}
<p>{tr}To download the file open the following link in a browser{/tr}<br>
-<a href="{$finfo.downloadlink}">{$finfo.downloadlink}</a></p>
+<a href="{$finfo[0].downloadlink}">{$finfo[0].downloadlink}</a></p>
{if isset($remove)}
<p>{tr}To remove the file from our server open the following link in a browser{/tr}<br>
-<a href="{$finfo.removelink}">{$finfo.removelink}</a>
+<a href="{$finfo[0].removelink}">{$finfo[0].removelink}</a>
{/if}
{if isset($adminemail)}
<p>{tr}For complains please send an email to{/tr}: <a href="mailto:{$adminemail}">{$adminemail}</a></p>
{/if}
-<div id="footer">OpenUpload © by Alessandro Briosi
-<a href="http://openupload.sourceforge.net>http://openupload.sourceforge.net</a></div>
+<div id="footer"><a href="http://openupload.sourceforge.net>OpenUpload</a> © by Alessandro Briosi</div>
</body>
</html>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-11-25 19:16:04
|
Revision: 170
http://openupload.svn.sourceforge.net/openupload/?rev=170&view=rev
Author: tsdogs
Date: 2008-11-25 19:15:58 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
logging, settings and docs
Modified Paths:
--------------
trunk/CHANGELOG
trunk/TODO
trunk/lib/modules/default/admin.inc.php
trunk/lib/modules/default/files.inc.php
trunk/templates/default/modules/admin/admin.tpl
trunk/templates/default/modules/admin/adminmenu.tpl
trunk/templates/default/modules/admin/settings.tpl
trunk/templates/default/modules/files/uploadForm.tpl
trunk/www/setup.inc.php
Added Paths:
-----------
trunk/templates/default/modules/admin/logs.tpl
trunk/templates/default/modules/admin/options.tpl
trunk/templates/default/modules/admin/settingsmenu.tpl
trunk/www/templates/default/img/admin/log.png
Modified: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/CHANGELOG 2008-11-25 19:15:58 UTC (rev 170)
@@ -1,5 +1,8 @@
Changelog from release 0.3b to 0.4
+* General
+ Reviewed the logo
+
* Fixed BUGS
- Registration wasn't working 'cause of a api rename bug
@@ -13,6 +16,9 @@
- New rights editing interface.
- Plugin options
+* Logs
+ - Createed logs which can be used for statistics.
+
* Upload
- Display upload progress, requires either uploadprogress / apc pecl extensions
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/TODO 2008-11-25 19:15:58 UTC (rev 170)
@@ -1,9 +1,8 @@
TODO list not priority ordered.
******* MUST BE DONE BEFORE RELEASE 0.4 *******
-General
-- Review the logo. (in progress...)
+
Bugs
- Fix all bugs I find in 0.3 (I hope somebody else will report some if they exsist)
@@ -12,6 +11,7 @@
Plugins
- Upload different filesize limiting depending on group
+- Plugin defualt option for groups.
Maintainence
- Create a script to clean up the files/tmpfiles.
@@ -20,9 +20,6 @@
- Add setup script (almost ready)
- Config administration
-Logs
-- Create logs which can then create statistics.
-
Administration
- Enable multiple table operations (deletion mainly)
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/lib/modules/default/admin.inc.php 2008-11-25 19:15:58 UTC (rev 170)
@@ -7,6 +7,7 @@
),
"adminsettings" => array (
1 => "settings",
+ 2 => "options",
),
"adminplugins" => array (
1 => "plugins",
@@ -59,6 +60,9 @@
4 => "langdel",
5 => "langtoggle",
),
+ "adminlogs" => array (
+ 1 => "logs",
+ ),
);
var $page;
@@ -578,6 +582,60 @@
$this->tpl->assign('config',app()->config);
}
+ function database() {
+ }
+
+function listModules($path,$ext = 'inc.php') {
+ /* now list the available database types */
+ $dir = opendir($path);
+ $result = array();
+ while ($d = readdir($dir)) {
+ if ($ext != '') {
+ $n = explode('.',$d,2);
+ if ($n[1]==$ext)
+ $result[] = $n[0];
+ } else {
+ $result[] = $d;
+ }
+ }
+ closedir($dir);
+ return $result;
+}
+
+ function options() {
+ $loglevels = array ( 'Disabled', 'Errors', 'Security', 'Warnings', 'Statistics', 'Info');
+ $tr = $this->listModules(app()->config['INSTALL_ROOT'].'/lib/modules/tr');
+ $auth = $this->listModules(app()->config['INSTALL_ROOT'].'/lib/modules/auth');
+ $tmp = $this->listModules(app()->config['INSTALL_ROOT'].'/templates','');
+ foreach ($tmp as $t) {
+ if ($t != '..' and $t != '.' and strpos($t,'.')!==0) {
+ $templates[]=$t;
+ }
+ }
+ $progress_values = array('none');
+ if (function_exists('uploadprogress_get_info')) {
+ $progress_values[]='uploadprogress';
+ }
+ if (function_exists('apc_fetch')) {
+ if (ini_get('apc.enabled')) {
+ if (ini_get('apc.rfc1867')) {
+ $progress_values[]='apc';
+ }
+ }
+ }
+ if (isset($_POST['save'])) {
+ } else if (isset($_POST['download'])) {
+ } else {
+ $this->tpl->assign('config',app()->config);
+ }
+
+ $this->tpl->assign('auth',$auth);
+ $this->tpl->assign('tr',$tr);
+ $this->tpl->assign('progress',$progress_values);
+ $this->tpl->assign('templates',$templates);
+ $this->tpl->assign('loglevels',$loglevels);
+ }
+
function banned() {
$NUM = 50;
@@ -761,5 +819,31 @@
}
$this->nextStep(1);
}
+
+ function logs() {
+ global $_GET;
+
+ $NUM = 50;
+
+ $page = 1;
+ if (isset($_GET['page'])) {
+ $page=$_GET['page'];
+ }
+ $filter = array();
+ if (isset($_GET['level'])) {
+ if ($_GET['level']!='') {
+ $filter = array('level' => $_GET['level']);
+ }
+ }
+ $limit = ($NUM*($page-1)).','.$NUM;
+ $count = app()->db->count('activitylog',$filter);
+ $this->tpl->assign('pages',ceil($count / $NUM)+1);
+ $this->tpl->assign('pagen',$page);
+ $this->tpl->assign('level',$_GET['level']);
+ $logs = app()->db->read('activitylog',$filter,array('log_time desc'),$limit);
+ $this->tpl->assign('logs',$logs);
+
+ }
+
}
?>
\ No newline at end of file
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/lib/modules/default/files.inc.php 2008-11-25 19:15:58 UTC (rev 170)
@@ -128,7 +128,7 @@
default:
$msg = tr('Upload failed for Unknown error code: %1',$_FILES['upload']['error']); break;
}
- app()->log('warning','uploadOptions','','FAIL','Upload error: '.$msg);
+ app()->log('warning','uploadOptions','','DENY','Upload error: '.$msg);
app()->error(tr($msg));
$this->nextStep(1);
} else if ($_FILES['upload']['size']>app()->user->info('max_upload_size')) {
@@ -227,7 +227,7 @@
rename($_SESSION['user']['u'][$i]['tmp'],app()->config['DATA_PATH'].'/'.$finfo['id']);
$_SESSION['user']['u'][$i]=$finfo;
}
- app()->log('notice','uploadConfirm','','OK',$mainid);
+ app()->log('notice','uploadConfirm','','ALLOW',$mainid);
$this->nextStep();
}
}
@@ -433,7 +433,7 @@
$file = app()->config['DATA_PATH'].'/'.$f['id'];
unlink($file);
}
- app()->log('notice','removeConfirm','','REMOVED',$finfo[0]['id']);
+ app()->log('notice','removeConfirm','','ALLOW',$finfo[0]['id']);
/* display removal confirmation */
$this->nextStep();
}
Modified: trunk/templates/default/modules/admin/admin.tpl
===================================================================
--- trunk/templates/default/modules/admin/admin.tpl 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/templates/default/modules/admin/admin.tpl 2008-11-25 19:15:58 UTC (rev 170)
@@ -13,7 +13,7 @@
<tr>
<td align="center"><a href="{$script}?action=adminlangs"><img src="{tpl file=/img/admin/langs.png}" border="0" ><br>{tr}Languages{/tr}</a></td>
<td align="center"><a href="{$script}?action=adminbanned"><img src="{tpl file=/img/admin/banned.png}" border="0" ><br>{tr}Banned IPs{/tr}</a></td>
- <td align="center"> </td>
+ <td align="center"><a href="{$script}?action=adminlogs"><img src="{tpl file=/img/admin/log.png}" border="0" ><br>{tr}Logs / Statistics{/tr}</td>
</tr>
{$plugins}
</table>
\ No newline at end of file
Modified: trunk/templates/default/modules/admin/adminmenu.tpl
===================================================================
--- trunk/templates/default/modules/admin/adminmenu.tpl 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/templates/default/modules/admin/adminmenu.tpl 2008-11-25 19:15:58 UTC (rev 170)
@@ -7,7 +7,8 @@
<li><a href="{$script}?action=admingroups">{tr}Groups{/tr}</a></li>
<li><a href="{$script}?action=adminrights">{tr}Rights{/tr}</a></li>
<li><a href="{$script}?action=adminlangs">{tr}Languages{/tr}</a></li>
- <li style="border-right: 0px;"><a href="{$script}?action=adminbanned">{tr}Banned{/tr}</a></li>
+ <li><a href="{$script}?action=adminbanned">{tr}Banned{/tr}</a></li>
+ <li style="border-right: 0px;"><a href="{$script}?action=adminlogs">{tr}Logs{/tr}</a></li>
</ul>
</div>
<br>
\ No newline at end of file
Added: trunk/templates/default/modules/admin/logs.tpl
===================================================================
--- trunk/templates/default/modules/admin/logs.tpl (rev 0)
+++ trunk/templates/default/modules/admin/logs.tpl 2008-11-25 19:15:58 UTC (rev 170)
@@ -0,0 +1,54 @@
+{include file="default/modules/admin/adminmenu.tpl"}
+<br>
+<div id="filter">
+<form action="index.php" id="filterform" method="GET">
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="{$step}">
+<input type="hidden" name="page" value="1">
+{tr}Filter{/tr}:<select name="level" onchange="document.getElementById('filterform').submit()">
+<option value="" {if $level==""}selected{/if}>-- {tr}All{/tr} --</option>
+<option value="error" {if $level=="error"}selected{/if}>{tr}Errors{/tr}</option>
+<option value="security" {if $level=="security"}selected{/if}>{tr}Security{/tr}</option>
+<option value="warning" {if $level=="warning"}selected{/if}>{tr}Warnings{/tr}</option>
+<option value="notice" {if $level=="notice"}selected{/if}>{tr}Notice{/tr}</option>
+<option value="info" {if $level=="info"}selected{/if}>{tr}Info{/tr}</option>
+</select>
+</form>
+{if $pages>2}
+<center>{section name=page loop=$pages start=1 max=20}
+{if $pagen==$smarty.section.page.index}
+<b style="font-size: 12pt">{$smarty.section.page.index}</b>
+{else}
+<a style="font-size: 12pt" href="{$script}?action={$action}&page={$smarty.section.page.index}">{$smarty.section.page.index}</a>
+{/if}
+
+{/section} </center>
+{/if}
+<br>
+<table border="0" id="dbtable">
+<tr>
+ <th width="100">{tr}Date{/tr}</th>
+ <th width="100">{tr}Type{/tr}</th>
+ <th width="100">{tr}User{/tr}</th>
+ <th width="100">{tr}Module{/tr}</th>
+ <th width="100">{tr}Action{/tr}</th>
+ <th width="100">{tr}Real Action{/tr}</th>
+ <th width="100">{tr}Plugin{/tr}</th>
+ <th width="100">{tr}Result{/tr}</th>
+ <th width="200">{tr}Additional Info{/tr}</th>
+</tr>
+{foreach from=$logs item=l}
+{cycle values="row1,row2" advance=true assign=rid}
+<tr>
+ <td id="{$rid}">{$l.log_time}</td>
+ <td id="{$rid}">{$l.level}</td>
+ <td id="{$rid}">{$l.user_login}</td>
+ <td id="{$rid}">{$l.module}</td>
+ <td id="{$rid}">{$l.action}</td>
+ <td id="{$rid}">{$l.realaction}</td>
+ <td id="{$rid}">{$l.plugin}</td>
+ <td id="{$rid}">{$l.result}</td>
+ <td id="{$rid}">{$l.additional}</td>
+</tr>
+{/foreach}
+</table>
\ No newline at end of file
Added: trunk/templates/default/modules/admin/options.tpl
===================================================================
--- trunk/templates/default/modules/admin/options.tpl (rev 0)
+++ trunk/templates/default/modules/admin/options.tpl 2008-11-25 19:15:58 UTC (rev 170)
@@ -0,0 +1,60 @@
+{include file="default/modules/admin/adminmenu.tpl"}
+{include file="default/modules/admin/settingsmenu.tpl"}
+
+<form method="POST" action="index.php">
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="{$step}">
+<table border="0">
+<tr><td>Translation module:</td><td>
+<select name="translator">
+<option value="">-- Select one --</option>
+{foreach from=$tr item=t}
+ <option value="{$t}" {if $t==$config.translator}selected{/if}>{$t}</option>
+{/foreach}
+</select>
+</td></tr>
+<tr><td>Default language:</td><td><input type="text" name="defaultlang" value="{$config.defaultlang}"></td></tr>
+<tr><td>Authentication module:<br>(LDAP Configuration needs to be done<br> by hand for now)</td><td>
+<select name="auth">
+<option value="">-- Select one --</option>
+{foreach from=$auth item=t}
+ <option value="{$t}" {if $t==$config.auth}selected{/if}>{$t}</option>
+{/foreach}
+</select>
+</td></tr>
+<tr><td>Site title:</td><td><input type="text" name="sitetitle" value="{$config.site.title}"></td></tr>
+<tr><td>WebMaster E-mail:</td><td><input type="text" name="webmaster" value="{$config.site.webmaster}"></td></tr>
+<tr><td>Site E-mail:</td><td><input type="text" name="email" value="{$config.site.email}"></td></tr>
+<tr><td>Confirm registration with e-mail:</td><td><input type="checkbox" name="confirmregistration" value="yes"
+{if ($config.registration.email_confirm=='yes')}checked{/if}></td></tr>
+<tr><td>Template:</td><td>
+<select name="template">
+<option value="">-- Select one --</option>
+{foreach from=$templates item=t}
+ <option value="{$t}" {if $t==$config.template}selected{/if}>{$t}</option>
+{/foreach}
+</select>
+</td></tr>
+<tr><td>Template Footer:</td><td><textarea name="sitefooter" cols="50" rows="5">{$config.site.footer}</textarea></td></tr>
+<tr><td>Maximum upload size (in MB):</td><td><input type="text" name="max_upload_size" value="{$config.max_upload_size}"></td></tr>
+<tr><td>Maximum download time (in Min)<br>0 disables it:</td><td><input type="text" name="max_download_time" value="{$config.max_download_time}"></td></tr>
+<tr><td>Max num. of file uploaded per upload:</td><td><input type="text" name="multiupload" value="{$config.multiupload}"></td></tr>
+<tr><td>Upload tracking method:</td><td><select name="progress">
+{foreach from=$progress item=t}
+ <option value="{$t}" {if $t==$config.progress}selected{/if}>{$t}</option>
+{/foreach}
+</select></td></tr>
+<tr><td>Enable activity logging?:</td><td><input type="checkbox" name="logging" value="yes" {if $config.logging.enabled=='yes'}checked{/if} ></td></tr>
+<tr><td>Database logging level:</td><td><select name="log_db_level">
+{foreach from=$loglevels item=x key=t}
+ <option value="{$t}" {if $t==$config.logging.db_level}selected{/if}>{$x}</option>
+{/foreach}
+</select></td></tr>
+<tr><td>Syslog logging level:</td><td><select name="log_syslog_level">
+{foreach from=$loglevels item=x key=t}
+ <option value="{$t}" {if $t==$config.logging.syslog_level}selected{/if}>{$x}</option>
+{/foreach}
+</select></td></tr>
+<TR><TD colspan="2"><input type="submit" name="save" value="Save Changes"> <input type="submit" name="downad" value="Download config file"></TD></TR>
+</table>
+</form>
Modified: trunk/templates/default/modules/admin/settings.tpl
===================================================================
--- trunk/templates/default/modules/admin/settings.tpl 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/templates/default/modules/admin/settings.tpl 2008-11-25 19:15:58 UTC (rev 170)
@@ -1,7 +1,6 @@
{include file="default/modules/admin/adminmenu.tpl"}
+{include file="default/modules/admin/settingsmenu.tpl"}
-Please edit the config.inc.php to change settings for now.<br>
-<br/>
This are the configured settings for a review:<br>
<table border="1">
Added: trunk/templates/default/modules/admin/settingsmenu.tpl
===================================================================
--- trunk/templates/default/modules/admin/settingsmenu.tpl (rev 0)
+++ trunk/templates/default/modules/admin/settingsmenu.tpl 2008-11-25 19:15:58 UTC (rev 170)
@@ -0,0 +1,7 @@
+<div id="menu">
+<ul>
+ <li><a href="{$script}?action=adminsettings&setp=1">{tr}Settings{/tr}</a></li>
+ <li style="border-right: 0px;"><a href="{$script}?action=adminsettings&step=2">{tr}Options{/tr}</a></li>
+</ul>
+</div>
+<br>
\ No newline at end of file
Modified: trunk/templates/default/modules/files/uploadForm.tpl
===================================================================
--- trunk/templates/default/modules/files/uploadForm.tpl 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/templates/default/modules/files/uploadForm.tpl 2008-11-25 19:15:58 UTC (rev 170)
@@ -20,7 +20,7 @@
}
}
function reportError(request) {
- $F('upload') = "Errore...";
+ $F('upload') = "Error...";
}
</script>
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-11-21 19:02:43 UTC (rev 169)
+++ trunk/www/setup.inc.php 2008-11-25 19:15:58 UTC (rev 170)
@@ -689,6 +689,7 @@
$CONFIG['site']['title']=$_POST['sitetitle'];
$CONFIG['site']['webmaster']= $_POST['webmaster'];
$CONFIG['site']['email']= $_POST['email'];
+ $CONFIG['site']['template'] = $_POST['template'];
$CONFIG['site']['footer']=str_replace('\"','"',$_POST['sitefooter']);
$CONFIG['registration']['email_confirm']=isset($_POST['confirmregistration'])?$_POST['confirmregistration']:'no';
$CONFIG['max_upload_size']=$_POST['max_upload_size'];
@@ -743,6 +744,7 @@
$CONFIG['site']['webmaster']= '';
$CONFIG['site']['email']= '';
$CONFIG['site']['footer']='<a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008';
+ $CONFIG['site']['template'] = 'default';
$CONFIG['registration']['email_confirm']='yes';
$CONFIG['max_upload_size']=100;
$CONFIG['max_download_time']=120;
@@ -784,7 +786,7 @@
<option value="">-- Select one --</option>
<?php foreach ($templates as $t) {
if ($t != '..' and $t != '.' and strpos($t,'.')!==0) {
- $selected = $CONFIG['auth']==$t?'selected':'';
+ $selected = $CONFIG['site']['template']==$t?'selected':'';
echo '<option value="'.$t.'" '.$selected.'>'.$t.'</option>';
}
} ?>
Added: trunk/www/templates/default/img/admin/log.png
===================================================================
(Binary files differ)
Property changes on: trunk/www/templates/default/img/admin/log.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-09 17:08:22
|
Revision: 173
http://openupload.svn.sourceforge.net/openupload/?rev=173&view=rev
Author: tsdogs
Date: 2008-12-09 17:08:20 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
Update status doc
Modified Paths:
--------------
trunk/CHANGELOG
trunk/TODO
Modified: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG 2008-12-09 17:07:00 UTC (rev 172)
+++ trunk/CHANGELOG 2008-12-09 17:08:20 UTC (rev 173)
@@ -15,6 +15,8 @@
- Languages can now be administrated
- New rights editing interface.
- Plugin options
+ - Enabled confirmation on record deletion
+ - Enabled multi delete option
* Logs
- Createed logs which can be used for statistics.
@@ -25,9 +27,15 @@
* Plugins
- Options are now group based and in the database
-* Translations
- - Add French thanks to BatMat (themat)
+Changelog from 0.3b to 0.3c (updated 2008.12.06)
+* Fixed Bugs
+ #2276042 Changing user information in admin module failed
+ #2276532 ACL did not correspond to documentation
+
+* Localization
+ Added French Translation (thanks to BatMat)
+
Changelog from 0.3a to 0.3b (updated 2008.11.07)
* Fixed Bugs
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-12-09 17:07:00 UTC (rev 172)
+++ trunk/TODO 2008-12-09 17:08:20 UTC (rev 173)
@@ -18,10 +18,10 @@
Setup
- Add setup script (almost ready)
-- Config administration
+- Check for something I don't remember right now :/
Administration
-- Enable multiple table operations (deletion mainly)
+- Config administration
******* OTHER THINGS/IDEAS *******
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-09 18:11:49
|
Revision: 176
http://openupload.svn.sourceforge.net/openupload/?rev=176&view=rev
Author: tsdogs
Date: 2008-12-09 18:11:44 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
add options configuration to the admin
Modified Paths:
--------------
trunk/TODO
trunk/lib/modules/default/admin.inc.php
trunk/templates/default/modules/admin/options.tpl
trunk/www/setup.inc.php
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-12-09 17:16:31 UTC (rev 175)
+++ trunk/TODO 2008-12-09 18:11:44 UTC (rev 176)
@@ -2,7 +2,6 @@
******* MUST BE DONE BEFORE RELEASE 0.4 *******
-
Bugs
- Fix all bugs I find in 0.3 (I hope somebody else will report some if they exsist)
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2008-12-09 17:16:31 UTC (rev 175)
+++ trunk/lib/modules/default/admin.inc.php 2008-12-09 18:11:44 UTC (rev 176)
@@ -648,23 +648,40 @@
function database() {
}
-function listModules($path,$ext = 'inc.php') {
- /* now list the available database types */
- $dir = opendir($path);
- $result = array();
- while ($d = readdir($dir)) {
- if ($ext != '') {
- $n = explode('.',$d,2);
- if ($n[1]==$ext)
- $result[] = $n[0];
- } else {
- $result[] = $d;
+ function listModules($path,$ext = 'inc.php') {
+ /* now list the available database types */
+ $dir = opendir($path);
+ $result = array();
+ while ($d = readdir($dir)) {
+ if ($ext != '') {
+ $n = explode('.',$d,2);
+ if ($n[1]==$ext)
+ $result[] = $n[0];
+ } else {
+ $result[] = $d;
+ }
}
+ closedir($dir);
+ return $result;
}
- closedir($dir);
- return $result;
-}
-
+
+ function generateConfig($CONFIG) {
+
+ $result = '<?php'."\n";
+ foreach ($CONFIG as $k => $v) {
+ if (is_array($v)) {
+ foreach ($v as $sk => $sv) {
+ $result .= '$CONFIG[\''.$k.'\'][\''.$sk.'\'] = \''.str_replace('\'','\\\'',$sv).'\';'."\n";
+ }
+ $result .= "\n\n";
+ } else {
+ $result .= '$CONFIG[\''.$k.'\'] = \''.str_replace('\'','\\\'',$v).'\';'."\n\n";
+ }
+ }
+ $result .='?>';
+ return $result;
+ }
+
function options() {
$loglevels = array ( 'Disabled', 'Errors', 'Security', 'Warnings', 'Statistics', 'Info');
$tr = $this->listModules(app()->config['INSTALL_ROOT'].'/lib/modules/tr');
@@ -686,11 +703,55 @@
}
}
}
+ $config = array();
+ if (count($_POST)>0) {
+ $config['translator']=$_POST['translator'];
+ $config['defaultlang']=$_POST['defaultlang'];
+ $config['auth']=$_POST['auth'];
+ $config['site']['title']=$_POST['sitetitle'];
+ $config['site']['footer']=str_replace('\"','"',$_POST['sitefooter']);
+ $config['site']['webmaster']=$_POST['webmaster'];
+ $config['site']['email']=$_POST['email'];
+ $config['registration']['email_confirm']=isset($_POST['confirmregistration'])?'yes':'no';
+ $config['template']=$_POST['template'];
+ $config['multiupload']=$_POST['multiupload'];
+ $config['max_upload_size']=$_POST['max_upload_size'];
+ $config['progress']=$_POST['progress'];
+ $config['logging']['enabled']=isset($_POST['logging'])?'yes':'no';
+ $config['logging']['db_level']=$_POST['log_db_level'];
+ $config['logging']['syslog_level']=$_POST['log_syslog_level'];
+ }
if (isset($_POST['save'])) {
+ /* save the configuration file */
+ $config = array_merge(app()->config,$config);
+ //unset($config['plugins']);
+ unset($config['modules']);
+ $cfgfile = $this->generateConfig($config);
+ $file = 'config.inc.php';
+ if (defined('__NOT_MAIN_SCRIPT')) {
+ $file = 'www/'.$file;
+ }
+ if (@file_put_contents($file,$cfgfile)) {
+ app()->message('Configuration sucessfully saved!');
+ } else {
+ app()->error(tr('Configuration file could not be saved, please proceed with the download!'));
+ }
} else if (isset($_POST['download'])) {
+ /* send the configuration file */
+ $config = array_merge(app()->config,$config);
+ //unset($config['plugins']);
+ unset($config['modules']);
+ $cfgfile = $this->generateConfig($config);
+ ob_clean();
+ header('Content-Type: text/plain');
+ header('Content-Length: '.strlen($result));
+ header('Content-Disposition: attachment; filename="config.inc.php"');
+ echo $cfgfile;
+ exit;
} else {
- $this->tpl->assign('config',app()->config);
+ $config = array_merge(app()->config,$config);
}
+ $this->tpl->assign('config',$config);
$this->tpl->assign('auth',$auth);
$this->tpl->assign('tr',$tr);
Modified: trunk/templates/default/modules/admin/options.tpl
===================================================================
--- trunk/templates/default/modules/admin/options.tpl 2008-12-09 17:16:31 UTC (rev 175)
+++ trunk/templates/default/modules/admin/options.tpl 2008-12-09 18:11:44 UTC (rev 176)
@@ -55,6 +55,6 @@
<option value="{$t}" {if $t==$config.logging.syslog_level}selected{/if}>{$x}</option>
{/foreach}
</select></td></tr>
-<TR><TD colspan="2"><input type="submit" name="save" value="Save Changes"> <input type="submit" name="downad" value="Download config file"></TD></TR>
+<TR><TD colspan="2"><input type="submit" name="save" value="Save Changes"> <input type="submit" name="download" value="Download config file"></TD></TR>
</table>
</form>
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-12-09 17:16:31 UTC (rev 175)
+++ trunk/www/setup.inc.php 2008-12-09 18:11:44 UTC (rev 176)
@@ -743,7 +743,7 @@
$CONFIG['site']['title']='Open Upload';
$CONFIG['site']['webmaster']= '';
$CONFIG['site']['email']= '';
- $CONFIG['site']['footer']='<a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008';
+ $CONFIG['site']['footer']='<a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008';
$CONFIG['site']['template'] = 'default';
$CONFIG['registration']['email_confirm']='yes';
$CONFIG['max_upload_size']=100;
@@ -1570,6 +1570,6 @@
</div>
<br> <br>
<!-- footer -->
-<div id="footer"><a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008</div>
+<div id="footer"><a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008</div>
</body>
</html>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-09 19:04:32
|
Revision: 177
http://openupload.svn.sourceforge.net/openupload/?rev=177&view=rev
Author: tsdogs
Date: 2008-12-09 19:04:28 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
fix display issues
Modified Paths:
--------------
trunk/CHANGELOG
trunk/TODO
trunk/lib/modules/default/admin.inc.php
trunk/plugins/mimetypes.inc.php
trunk/templates/default/index.tpl
trunk/templates/default/modules/admin/logs.tpl
trunk/www/templates/default/main.css
Modified: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG 2008-12-09 18:11:44 UTC (rev 176)
+++ trunk/CHANGELOG 2008-12-09 19:04:28 UTC (rev 177)
@@ -17,12 +17,16 @@
- Plugin options
- Enabled confirmation on record deletion
- Enabled multi delete option
+ - Enabled option configuration page
+* Setup
+ - A setup script which should simplify first time configuration.
+
* Logs
- Createed logs which can be used for statistics.
* Upload
-- Display upload progress, requires either uploadprogress / apc pecl extensions
+ - Display upload progress, requires either uploadprogress / apc pecl extensions
* Plugins
- Options are now group based and in the database
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-12-09 18:11:44 UTC (rev 176)
+++ trunk/TODO 2008-12-09 19:04:28 UTC (rev 177)
@@ -16,11 +16,8 @@
- Create a script to clean up the files/tmpfiles.
Setup
-- Add setup script (almost ready)
- Check for something I don't remember right now :/
-Administration
-- Config administration
******* OTHER THINGS/IDEAS *******
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2008-12-09 18:11:44 UTC (rev 176)
+++ trunk/lib/modules/default/admin.inc.php 2008-12-09 19:04:28 UTC (rev 177)
@@ -546,6 +546,8 @@
$groups = app()->auth->groupinfo();
$options = app()->db->read('plugin_options',array('plugin' => $_GET['id']),array('group_name'),
'',array('group_name','name'));
+ $x = '['.tr('Any').']';
+ $groups[]= array ('name' => '*', 'description' => $x);
$this->tpl->assign('groups',$groups);
$this->tpl->assign('plugin_options',$options);
$this->tpl->assign('options',app()->plugins[$_GET['id']]->options);
@@ -564,6 +566,8 @@
$plugin = isset($_POST['id'])?$_POST['id']:$_GET['id'];
$poptions = app()->plugins[$plugin]->options;
$groups = app()->auth->groupinfo();
+ $x = '['.tr('Any').']';
+ $groups[]= array ('name' => '*', 'description' => $x);
$this->tpl->assign('groups',$groups);
$this->tpl->assign('options',$poptions);
$this->tpl->assign('pluginname',$plugin);
Modified: trunk/plugins/mimetypes.inc.php
===================================================================
--- trunk/plugins/mimetypes.inc.php 2008-12-09 18:11:44 UTC (rev 176)
+++ trunk/plugins/mimetypes.inc.php 2008-12-09 19:04:28 UTC (rev 177)
@@ -31,6 +31,10 @@
function uploadForm(&$finfo,$acl) {
if ($acl!='enable') return true;
$group = $this->getGroup();
+ if (count($this->config['allowed'][$group])==0 and count($this->config['allowed']['*'])>0) {
+ $this->config['allowed'][$group]=$this->config['allowed']['*'];
+ $this->config['message'][$group]=$this->config['message']['*'];
+ }
if (count($this->config['allowed'][$group])==0) {
app()->error(tr('WARNING: no mime types defined. Plugin has been disabled!'));
} else {
@@ -44,6 +48,10 @@
function uploadComplete(&$finfo,$acl) {
if ($acl!='enable') return true;
$group = $this->getGroup();
+ if (count($this->config['allowed'][$group])==0 and count($this->config['allowed']['*'])>0) {
+ $this->config['allowed'][$group]=$this->config['allowed']['*'];
+ $this->config['message'][$group]=$this->config['message']['*'];
+ }
if (count($this->config['allowed'][$group])==0) {
app()->error(tr('WARNING: no mime types defined. Plugin has been disabled!'));
} else {
Modified: trunk/templates/default/index.tpl
===================================================================
--- trunk/templates/default/index.tpl 2008-12-09 18:11:44 UTC (rev 176)
+++ trunk/templates/default/index.tpl 2008-12-09 19:04:28 UTC (rev 177)
@@ -31,17 +31,17 @@
</div> <!-- header end -->
<!-- menu -->
<!-- content -->
-<div id="wrapper">
-<div id="content" align="center">
+<div id="wrapper"><br>
{foreach from=$user.messages item=m}
<div id="message">{$m}</div>
{/foreach}
{foreach from=$user.errors item=e}
<div id="error">{$e}</div>
{/foreach}
+<div id="content" align="center">
{$page.content}
</div> <!-- content end -->
-</div>
+</div> <!-- wrapper -->
<br> <br>
<!-- footer -->
<div id="footer">{$site.footer}</div>
Modified: trunk/templates/default/modules/admin/logs.tpl
===================================================================
--- trunk/templates/default/modules/admin/logs.tpl 2008-12-09 18:11:44 UTC (rev 176)
+++ trunk/templates/default/modules/admin/logs.tpl 2008-12-09 19:04:28 UTC (rev 177)
@@ -14,6 +14,7 @@
<option value="info" {if $level=="info"}selected{/if}>{tr}Info{/tr}</option>
</select>
</form>
+</div>
{if $pages>2}
<center>{section name=page loop=$pages start=1 max=20}
{if $pagen==$smarty.section.page.index}
Modified: trunk/www/templates/default/main.css
===================================================================
--- trunk/www/templates/default/main.css 2008-12-09 18:11:44 UTC (rev 176)
+++ trunk/www/templates/default/main.css 2008-12-09 19:04:28 UTC (rev 177)
@@ -3,6 +3,7 @@
font-size: 10pt;
margin: auto;
text-align: center;
+ background-color: #fdfdfd;
}
#logo {
float:left;
@@ -193,6 +194,7 @@
vertical-align: middle;
}
#message {
+ clear: both;
text-align: left;
}
#error {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-11 11:07:01
|
Revision: 189
http://openupload.svn.sourceforge.net/openupload/?rev=189&view=rev
Author: tsdogs
Date: 2008-12-11 11:06:59 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
updated changelog
Modified Paths:
--------------
trunk/CHANGELOG
trunk/TODO
Modified: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG 2008-12-11 11:06:19 UTC (rev 188)
+++ trunk/CHANGELOG 2008-12-11 11:06:59 UTC (rev 189)
@@ -1,7 +1,7 @@
Changelog from release 0.3b to 0.4
* General
- Reviewed the logo
+ Reviewed the logo / default theme
* Fixed BUGS
- Registration wasn't working 'cause of a api rename bug
@@ -10,6 +10,7 @@
- Added PostgreSQL support
- Added PostgreSQL db structures
- PostgreSQL seems to be stable now
+ - New extended read api to handle better query options
* Administration
- Languages can now be administrated
@@ -18,6 +19,7 @@
- Enabled confirmation on record deletion
- Enabled multi delete option
- Enabled option configuration page
+ - File deletion based on selection
* Setup
- A setup script which should simplify first time configuration.
@@ -30,7 +32,9 @@
* Plugins
- Options are now group based and in the database
+ - Plugin defualt option for groups.
- Upload file size limit by user group
+ - Expiriration date plugin
Changelog from 0.3b to 0.3c (updated 2008.12.06)
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-12-11 11:06:19 UTC (rev 188)
+++ trunk/TODO 2008-12-11 11:06:59 UTC (rev 189)
@@ -8,9 +8,6 @@
Database
- txtdb deep testing (switch ?)
-Plugins
-- Plugin defualt option for groups.
-
Maintainence
- Create a script to clean up the files/tmpfiles.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-11 15:51:55
|
Revision: 192
http://openupload.svn.sourceforge.net/openupload/?rev=192&view=rev
Author: tsdogs
Date: 2008-12-11 15:51:45 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Translation update + minor fixes
Modified Paths:
--------------
trunk/TODO
trunk/lib/modules/default/admin.inc.php
trunk/locale/it/LC_MESSAGES/openupload.mo
trunk/locale/it/LC_MESSAGES/openupload.po
trunk/templates/default/locale/it/LC_MESSAGES/template.mo
trunk/templates/default/locale/it/LC_MESSAGES/template.po
trunk/templates/default/modules/admin/banned.tpl
trunk/templates/default/modules/admin/files.tpl
trunk/templates/default/modules/admin/options.tpl
trunk/templates/default/modules/admin/settings.tpl
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/TODO 2008-12-11 15:51:45 UTC (rev 192)
@@ -14,6 +14,8 @@
Setup
- Check for something I don't remember right now :/
+Translations
+- Update the translations
******* OTHER THINGS/IDEAS *******
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/lib/modules/default/admin.inc.php 2008-12-11 15:51:45 UTC (rev 192)
@@ -819,7 +819,7 @@
$file = 'www/'.$file;
}
if (@file_put_contents($file,$cfgfile)) {
- app()->message('Configuration sucessfully saved!');
+ app()->message(tr('Configuration sucessfully saved!'));
} else {
app()->error(tr('Configuration file could not be saved, please proceed with the download!'));
}
Modified: trunk/locale/it/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/it/LC_MESSAGES/openupload.po
===================================================================
--- trunk/locale/it/LC_MESSAGES/openupload.po 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/locale/it/LC_MESSAGES/openupload.po 2008-12-11 15:51:45 UTC (rev 192)
@@ -2,8 +2,8 @@
msgstr ""
"Project-Id-Version: OpenUpload\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-10-27 13:16+0100\n"
-"PO-Revision-Date: 2008-10-27 19:33+0100\n"
+"POT-Creation-Date: 2008-12-11 16:44+0100\n"
+"PO-Revision-Date: 2008-12-11 16:46+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,42 +15,42 @@
"X-Poedit-SearchPath-0: ../../../lib\n"
"X-Poedit-SearchPath-1: ../../../plugins\n"
-#: ../../../lib/user.inc.php:87
+#: ../../../lib/user.inc.php:89
msgid "Login incorrect!"
msgstr "Login incorretto!"
-#: ../../../lib/main.inc.php:194
+#: ../../../lib/main.inc.php:239
msgid "plugin include file not found: %1"
-msgstr "Il plugin non è stato trovato: %1"
+msgstr "File del plugin non trovato: %1"
-#: ../../../lib/main.inc.php:373
+#: ../../../lib/main.inc.php:431
msgid "IP Banned"
msgstr "IP Bloccato"
-#: ../../../lib/main.inc.php:398
+#: ../../../lib/main.inc.php:459
msgid "THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"
-msgstr "SI E' VERIFICATO UN PROBLEMA CON I PERMESSI. ACCESSO NEGATO. PROVARE CON UN'OPERAZIONE CONSENTITA!"
+msgstr "SI E' VERIFICATO UN ERRORE NEI PERMESSI. PREGO RIPROVARE CON UN'ALTRA OPZIONE!"
-#: ../../../lib/modules/db/txt.inc.php:114
+#: ../../../lib/modules/db/txt.inc.php:121
msgid "ERROR: database folder not found!"
-msgstr "ERRORE: Cartella database non trovata!"
+msgstr "ERRORE: La cartella del database non è stata trovata!"
-#: ../../../lib/modules/db/txt.inc.php:120
+#: ../../../lib/modules/db/txt.inc.php:127
msgid "ERROR: Could not create folder for %1 table!"
-msgstr "ERRORE: Impossibile create cartella per la tabella %1!"
+msgstr "ERRORE: Impossibile creare cartella per la tabella %1!"
-#: ../../../lib/modules/db/txt.inc.php:131
+#: ../../../lib/modules/db/txt.inc.php:138
msgid "ERROR: Could not create file for %1 table!"
-msgstr "ERRORE: Impossibile create la cartella per la tabella %1!"
+msgstr "ERRORE: Impossibile creare il file per la tabella %1"
-#: ../../../lib/modules/db/mysql.inc.php:15
-msgid "ERROR: connection to database failed!"
-msgstr "ERRORE: Fallita connessione al database!"
+#: ../../../lib/modules/db/txt.inc.php:245
+msgid "Unsupported query criteria %1"
+msgstr "Criterio Query non supportato %1"
#: ../../../lib/modules/default/auth.inc.php:27
#: ../../../lib/modules/default/auth.inc.php:40
msgid "Login"
-msgstr "Accedi"
+msgstr "Login"
#: ../../../lib/modules/default/auth.inc.php:30
msgid "User registration"
@@ -68,202 +68,250 @@
msgid "Logout"
msgstr "Esci"
-#: ../../../lib/modules/default/auth.inc.php:92
-#: ../../../lib/modules/default/auth.inc.php:115
-#: ../../../lib/modules/default/auth.inc.php:200
+#: ../../../lib/modules/default/auth.inc.php:93
+#: ../../../lib/modules/default/auth.inc.php:116
+#: ../../../lib/modules/default/auth.inc.php:201
msgid "Registration is not supported by Auth Module"
-msgstr "La registrazione non è supportata dal modulo di Autenticazione"
+msgstr "Registrazione non supportata dal Modulo di Autenticazione"
-#: ../../../lib/modules/default/auth.inc.php:123
+#: ../../../lib/modules/default/auth.inc.php:124
msgid "Username already taken, choose a new value"
-msgstr "Nome utente già registrato, prova un'altro nome"
+msgstr "Il nome utente è già utilizzato, sceglierne un'altro"
-#: ../../../lib/modules/default/auth.inc.php:127
+#: ../../../lib/modules/default/auth.inc.php:128
msgid "Login name must be at least 5 characters long!"
msgstr "Il nome utente deve essere lungo almeno 5 caratteri!"
-#: ../../../lib/modules/default/auth.inc.php:131
+#: ../../../lib/modules/default/auth.inc.php:132
msgid "Login name contains an invalid character. Valid vharacters are %1"
-msgstr "Il login contiene caratteri non validi. I caratteri validi sono %1"
+msgstr "Il nome utente contiene caratteri non validi. I caratteri consentiti sono %1"
-#: ../../../lib/modules/default/auth.inc.php:135
+#: ../../../lib/modules/default/auth.inc.php:136
msgid "Please insert Full Name"
-msgstr "Inserire il Nome Completo"
+msgstr "Prego inserire un Nome Completo"
-#: ../../../lib/modules/default/auth.inc.php:139
+#: ../../../lib/modules/default/auth.inc.php:140
msgid "Please insert a valid e-mail!"
-msgstr "Inserire un indirizzo e-mail valido!"
+msgstr "Inserire un indirizzo email valido!"
-#: ../../../lib/modules/default/auth.inc.php:143
+#: ../../../lib/modules/default/auth.inc.php:144
msgid "Password must be at least 5 characters long!"
-msgstr "La password deve essere lunga almento 5 caratteri!"
+msgstr "La password deve essere lunga almeno 5 caratteri!"
-#: ../../../lib/modules/default/auth.inc.php:147
+#: ../../../lib/modules/default/auth.inc.php:148
msgid "Passwords do not match! please retype."
-msgstr "Le password non corrispondono! Riprova."
+msgstr "Le password non corrispondono! Prego riprovare."
-#: ../../../lib/modules/default/auth.inc.php:169
+#: ../../../lib/modules/default/auth.inc.php:170
msgid "[%1] User registration confirmation e-mail"
msgstr "[%1] Registrazione utente e-mail di conferma"
-#: ../../../lib/modules/default/auth.inc.php:183
+#: ../../../lib/modules/default/auth.inc.php:184
msgid "Registration completed successfully. Have fun!"
msgstr "Registrazione completata con successo. Buon divertimento!"
-#: ../../../lib/modules/default/auth.inc.php:219
-#: ../../../lib/modules/default/auth.inc.php:231
+#: ../../../lib/modules/default/auth.inc.php:221
+#: ../../../lib/modules/default/auth.inc.php:233
msgid "User profile change not supported by Auth Module"
-msgstr "Modifica del profilo utente non supportata dal modulo di Autenticazione"
+msgstr "Modifica profilo utente non supportata dal Modulo di Autenticazione"
-#: ../../../lib/modules/default/auth.inc.php:238
+#: ../../../lib/modules/default/auth.inc.php:240
msgid "Full Name cannot be empty!"
-msgstr "Il Nome completo non può essere vuoto"
+msgstr "Il Nome Completo non può essere vuoto!"
-#: ../../../lib/modules/default/auth.inc.php:243
+#: ../../../lib/modules/default/auth.inc.php:245
msgid "Please enter a valid e-mail address!"
msgstr "Inserire un indirizzo e-mail valido!"
-#: ../../../lib/modules/default/auth.inc.php:251
+#: ../../../lib/modules/default/auth.inc.php:254
msgid "Password must be at least 5 charaters long!"
msgstr "La password deve essere lunga almento 5 caratteri!"
-#: ../../../lib/modules/default/auth.inc.php:254
+#: ../../../lib/modules/default/auth.inc.php:257
msgid "Old password is wrong!"
msgstr "La vecchia password è errata!"
-#: ../../../lib/modules/default/auth.inc.php:257
+#: ../../../lib/modules/default/auth.inc.php:260
msgid "New passwords do not match!"
msgstr "Le password non corrispondono! Riprova."
-#: ../../../lib/modules/default/auth.inc.php:260
+#: ../../../lib/modules/default/auth.inc.php:263
msgid "Password has been changed!"
msgstr "Password modificata con successo!"
-#: ../../../lib/modules/default/files.inc.php:31
+#: ../../../lib/modules/default/files.inc.php:32
msgid "File upload"
msgstr "Carica file"
-#: ../../../lib/modules/default/files.inc.php:34
+#: ../../../lib/modules/default/files.inc.php:35
msgid "File download"
msgstr "Scarica file"
-#: ../../../lib/modules/default/files.inc.php:37
+#: ../../../lib/modules/default/files.inc.php:38
msgid "File Removal"
msgstr "Rimozione file"
-#: ../../../lib/modules/default/files.inc.php:41
+#: ../../../lib/modules/default/files.inc.php:42
msgid "File Upload"
msgstr "Carica file"
-#: ../../../lib/modules/default/files.inc.php:69
-msgid "Maximum upload size for site wide configuration reached"
-msgstr "Dimensione massima per l'upload raggiunta"
+#: ../../../lib/modules/default/files.inc.php:129
+msgid "Upload failed for Unknown error code: %1"
+msgstr "Upload fallito per una ragione sconosciuta. codice errore: %1"
-#: ../../../lib/modules/default/files.inc.php:70
-#: ../../../lib/modules/default/files.inc.php:81
+#: ../../../lib/modules/default/files.inc.php:136
msgid "Maximum file size exceeded!"
msgstr "File troppo grande!"
-#: ../../../lib/modules/default/files.inc.php:71
-msgid "Partial file transfer error!"
-msgstr "Errore, trasferimento parziale del file!"
-
-#: ../../../lib/modules/default/files.inc.php:72
-msgid "No file was uploaded!"
-msgstr "Nessun file caricato!"
-
-#: ../../../lib/modules/default/files.inc.php:73
-msgid "Missing temporary directory"
-msgstr "Manca la cartella per l'upload temporaneo"
-
-#: ../../../lib/modules/default/files.inc.php:74
-msgid "Can't write to temporary diretory!"
-msgstr "Impossibile scrivere nella cartella temporanea!"
-
-#: ../../../lib/modules/default/files.inc.php:75
-msgid "Upload blocked by extension!"
-msgstr "Upload bloccato da un'estensione!"
-
-#: ../../../lib/modules/default/files.inc.php:77
-msgid "Upload failed for Unknown error code: %1"
-msgstr "Upload fallito per una ragione sconosciuta. codice errore: %1"
-
-#: ../../../lib/modules/default/files.inc.php:194
+#: ../../../lib/modules/default/files.inc.php:301
msgid "Requested file does not exist!"
msgstr "Il file richiesto non esiste!"
-#: ../../../lib/modules/default/files.inc.php:280
-#: ../../../lib/modules/default/files.inc.php:283
-#: ../../../lib/modules/default/files.inc.php:294
+#: ../../../lib/modules/default/files.inc.php:402
+#: ../../../lib/modules/default/files.inc.php:405
+#: ../../../lib/modules/default/files.inc.php:417
msgid "Wrong file id!"
msgstr "ID del file errata!"
-#: ../../../lib/modules/default/admin.inc.php:59
-#: ../../../lib/modules/default/admin.inc.php:62
+#: ../../../lib/modules/default/admin.inc.php:82
+#: ../../../lib/modules/default/admin.inc.php:85
msgid "Administration"
msgstr "Amministrazione"
-#: ../../../lib/modules/default/admin.inc.php:80
+#: ../../../lib/modules/default/admin.inc.php:103
msgid "User administration not supported by Auth Module"
msgstr "Amministrazione utenti non supportata dal modulo di Autenticazione"
-#: ../../../lib/modules/default/admin.inc.php:197
+#: ../../../lib/modules/default/admin.inc.php:234
+#: ../../../lib/modules/default/admin.inc.php:254
+#: ../../../lib/modules/default/admin.inc.php:273
msgid "Group administration not supported by Auth Module"
msgstr "Amministrazione gruppi non supportata dal modulo di Autenticazione"
-#: ../../../lib/modules/default/admin.inc.php:211
+#: ../../../lib/modules/default/admin.inc.php:249
msgid "Please provide a valid group name!"
msgstr "Inserire un nome di gruppo valido"
-#: ../../../lib/modules/default/admin.inc.php:259
-#: ../../../lib/modules/default/admin.inc.php:290
-#: ../../../lib/modules/default/admin.inc.php:474
-#: ../../../lib/modules/default/admin.inc.php:501
+#: ../../../lib/modules/default/admin.inc.php:306
+msgid "Any group"
+msgstr "Qualsiasi gruppo"
+
+#: ../../../lib/modules/default/admin.inc.php:377
+msgid "ANY"
+msgstr "TUTTI"
+
+#: ../../../lib/modules/default/admin.inc.php:380
+#: ../../../lib/modules/default/admin.inc.php:393
+#: ../../../lib/modules/default/admin.inc.php:902
+#: ../../../lib/modules/default/admin.inc.php:929
msgid "Allow"
msgstr "Consenti"
-#: ../../../lib/modules/default/admin.inc.php:260
-#: ../../../lib/modules/default/admin.inc.php:291
-#: ../../../lib/modules/default/admin.inc.php:474
-#: ../../../lib/modules/default/admin.inc.php:501
+#: ../../../lib/modules/default/admin.inc.php:381
+#: ../../../lib/modules/default/admin.inc.php:397
+#: ../../../lib/modules/default/admin.inc.php:902
+#: ../../../lib/modules/default/admin.inc.php:929
msgid "Deny"
msgstr "Nega"
-#: ../../../lib/modules/default/admin.inc.php:364
-#: ../../../lib/modules/default/admin.inc.php:389
+#: ../../../lib/modules/default/admin.inc.php:514
+msgid "Specified criteria is not valid!"
+msgstr "Il criterio specificato non è valido!"
+
+#: ../../../lib/modules/default/admin.inc.php:524
+msgid "Please specify at least one criteria!"
+msgstr "Prego inserire almeno un criterio!"
+
+#: ../../../lib/modules/default/admin.inc.php:556
+#: ../../../lib/modules/default/admin.inc.php:580
msgid "Enable"
msgstr "Abilita"
-#: ../../../lib/modules/default/admin.inc.php:365
-#: ../../../lib/modules/default/admin.inc.php:390
+#: ../../../lib/modules/default/admin.inc.php:557
+#: ../../../lib/modules/default/admin.inc.php:581
msgid "Disable"
msgstr "Disabilita"
-#: ../../../lib/modules/default/admin.inc.php:449
+#: ../../../lib/modules/default/admin.inc.php:632
+#: ../../../lib/modules/default/admin.inc.php:652
+msgid "Any"
+msgstr "Tutti"
+
+#: ../../../lib/modules/default/admin.inc.php:662
+msgid "Options for this group already exsist, please use the edit function!"
+msgstr "Esistono già opzioni per questo gruppo, utilizzare la funzione di modifica!"
+
+#: ../../../lib/modules/default/admin.inc.php:822
+msgid "Configuration sucessfully saved!"
+msgstr "Configurazione salvata correttamente!"
+
+#: ../../../lib/modules/default/admin.inc.php:824
+msgid "Configuration file could not be saved, please proceed with the download!"
+msgstr "Impossibile salvare il file di configurazione, procedere con il download!"
+
+#: ../../../lib/modules/default/admin.inc.php:878
msgid "IP %1 has been banned!"
msgstr "IP %1 è stato bloccato!"
-#: ../../../lib/modules/default/admin.inc.php:453
-#: ../../../lib/modules/default/admin.inc.php:469
+#: ../../../lib/modules/default/admin.inc.php:882
+#: ../../../lib/modules/default/admin.inc.php:897
msgid "IP %1 was already in state: %2!"
-msgstr "IP %1 era già nello stato: %1"
+msgstr "IP %1 era già nello stato: %2"
+#: ../../../lib/modules/default/admin.inc.php:973
+msgid "ID"
+msgstr "ID"
+
+#: ../../../lib/modules/default/admin.inc.php:973
+msgid "Language \"%1\" cannot be empty"
+msgstr "Lingua \"%1\" non può essere vuota"
+
+#: ../../../lib/modules/default/admin.inc.php:976
+msgid "Language \"%1\" already exists!"
+msgstr "Lingua \"%1\" esiste già!"
+
+#: ../../../lib/modules/default/admin.inc.php:980
+msgid "Name"
+msgstr "Nome"
+
+#: ../../../lib/modules/default/admin.inc.php:980
+#: ../../../lib/modules/default/admin.inc.php:984
+#: ../../../lib/modules/default/admin.inc.php:988
+msgid "Language \"%1\" cannot be empty!"
+msgstr "Lingua \"%1\" non può essere vuota!"
+
+#: ../../../lib/modules/default/admin.inc.php:984
+msgid "Locale"
+msgstr "Localizzazione"
+
+#: ../../../lib/modules/default/admin.inc.php:988
+msgid "Charset"
+msgstr "Charset"
+
#: ../../../lib/modules/auth/ldap.inc.php:24
msgid "LDAP connection failed!"
msgstr "ERRORE: Fallita connessione LDAP!"
#: ../../../plugins/mimetypes.inc.php:6
-msgid "Limit the mimetypes a user can upload"
-msgstr "Limita la tipologia dei file che un utente può caricare"
+msgid "Limit the mimetypes a user can upload"
+msgstr "Limita i tipi di file che un utente può caricare"
-#: ../../../plugins/mimetypes.inc.php:12
-#: ../../../plugins/mimetypes.inc.php:23
+#: ../../../plugins/mimetypes.inc.php:8
+msgid "Allowed mime types"
+msgstr "Tipi mime consentiti"
+
+#: ../../../plugins/mimetypes.inc.php:9
+msgid "Types in message"
+msgstr "Messaggio all'utente"
+
+#: ../../../plugins/mimetypes.inc.php:22
+#: ../../../plugins/mimetypes.inc.php:39
msgid "WARNING: no mime types defined. Plugin has been disabled!"
msgstr "ATTENZIONE: nessun tipo di file definito. Il plugin è stato disabilitato!"
-#: ../../../plugins/mimetypes.inc.php:25
+#: ../../../plugins/mimetypes.inc.php:44
msgid "This file type (%1) is not allowed on this site!"
-msgstr "L'upload di questo tipo di file (%1) non è consentito!"
+msgstr "I vs. file saranno mantenuti sul ns. server per %1 giorni"
#: ../../../plugins/captcha.inc.php:7
msgid "Add captcha protection to file download and user registration"
@@ -274,6 +322,14 @@
msgid "Wrong captcha code! please try again."
msgstr "Captcha errato! Riprova."
+#: ../../../plugins/filesize.inc.php:8
+msgid "Limit the maximum size of a uploaded file"
+msgstr "Limita la dimensione massima dei file che possono essere caricati"
+
+#: ../../../plugins/filesize.inc.php:10
+msgid "Maximum File Size"
+msgstr "Dimensione Massima"
+
#: ../../../plugins/email.inc.php:30
msgid "Your e-mail address isn't valid!"
msgstr "Il tuo indirizzo e-mail non è valido!"
@@ -298,3 +354,15 @@
msgid "Wrong password!"
msgstr "Password errata!"
+#: ../../../plugins/expire.inc.php:6
+msgid "Maximum number of days an upload will be kept on the server."
+msgstr "Numero massimo di giorni per il quale il file sarà conservato sul server."
+
+#: ../../../plugins/expire.inc.php:8
+msgid "N. Of Days"
+msgstr "N. di giorni"
+
+#: ../../../plugins/expire.inc.php:21
+msgid "Files will be kept on our server for %1 days"
+msgstr "I vs. file saranno mantenuti sul ns. server per %1 giorni"
+
Modified: trunk/templates/default/locale/it/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Modified: trunk/templates/default/locale/it/LC_MESSAGES/template.po
===================================================================
--- trunk/templates/default/locale/it/LC_MESSAGES/template.po 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/templates/default/locale/it/LC_MESSAGES/template.po 2008-12-11 15:51:45 UTC (rev 192)
@@ -2,8 +2,8 @@
msgstr ""
"Project-Id-Version: OpenUpload default template\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-11-17 19:06+0100\n"
-"PO-Revision-Date: 2008-11-17 19:06+0100\n"
+"POT-Creation-Date: 2008-12-11 16:48+0100\n"
+"PO-Revision-Date: 2008-12-11 16:50+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -47,12 +47,12 @@
msgstr "Il file è protetto da una password."
#: ../../../default.c:29
-#: ../../../default.c:50
-#: ../../../default.c:80
-#: ../../../default.c:161
-#: ../../../default.c:287
-#: ../../../default.c:416
-#: ../../../default.c:467
+#: ../../../default.c:41
+#: ../../../default.c:62
+#: ../../../default.c:176
+#: ../../../default.c:617
+#: ../../../default.c:773
+#: ../../../default.c:824
msgid "Password"
msgstr "Password"
@@ -61,419 +61,826 @@
msgstr "Password di protezione"
#: ../../../default.c:35
-#: ../../../default.c:65
+#: ../../../default.c:56
msgid "You are receiving this message because someone uploaded a file on our OpenUpload server for you."
msgstr "Hai ricevuto questo messaggio perchè qualcuno ti ha inviato un file attraverso il nostro server OpenUpload."
#: ../../../default.c:38
-#: ../../../default.c:68
-msgid "File ID"
-msgstr "ID File"
-
-#: ../../../default.c:41
-#: ../../../default.c:71
-#: ../../../default.c:326
-#: ../../../default.c:374
-#: ../../../default.c:386
-#: ../../../default.c:404
-msgid "File name"
-msgstr "Nome file"
-
-#: ../../../default.c:44
-#: ../../../default.c:74
-#: ../../../default.c:329
-#: ../../../default.c:377
-#: ../../../default.c:389
-#: ../../../default.c:407
-msgid "File size"
-msgstr "Dimensione"
-
-#: ../../../default.c:47
-#: ../../../default.c:77
+#: ../../../default.c:59
+#: ../../../default.c:137
#: ../../../default.c:146
-#: ../../../default.c:314
-#: ../../../default.c:392
+#: ../../../default.c:524
+#: ../../../default.c:671
+#: ../../../default.c:755
msgid "Description"
msgstr "Descrizione"
-#: ../../../default.c:53
-#: ../../../default.c:83
+#: ../../../default.c:44
+#: ../../../default.c:65
msgid "User message"
msgstr "Messaggio"
-#: ../../../default.c:56
-#: ../../../default.c:86
+#: ../../../default.c:47
+#: ../../../default.c:68
msgid "To download the file open the following link in a browser"
msgstr "Per scaricare il file apri il seguente link in un browser"
-#: ../../../default.c:59
-#: ../../../default.c:89
+#: ../../../default.c:50
+#: ../../../default.c:71
msgid "To remove the file from our server open the following link in a browser"
msgstr "Per rimuovere il file dai ns. server apri il link seguente in un browser"
-#: ../../../default.c:62
-#: ../../../default.c:92
-#: ../../../default.c:443
-#: ../../../default.c:458
+#: ../../../default.c:53
+#: ../../../default.c:74
+#: ../../../default.c:800
+#: ../../../default.c:815
msgid "For complains please send an email to"
msgstr "Per segnalazioni di abuso prego inviare una email a "
-#: ../../../default.c:95
-#: ../../../default.c:101
+#: ../../../default.c:77
+#: ../../../default.c:83
msgid "Send me an e-mail"
msgstr "Inviami una e-mail"
-#: ../../../default.c:98
+#: ../../../default.c:80
msgid "Your e-mail address"
msgstr "Il tuo indirizzo e-mail"
-#: ../../../default.c:104
+#: ../../../default.c:86
msgid "Send e-mail to"
msgstr "Invia e-mail a"
-#: ../../../default.c:107
+#: ../../../default.c:89
msgid "Send remove link"
msgstr "Invia link per la rimozione"
-#: ../../../default.c:110
+#: ../../../default.c:92
msgid "e-mail Subject"
msgstr "Oggetto e-mail"
-#: ../../../default.c:113
+#: ../../../default.c:95
msgid "e-mail Message"
msgstr "Messaggio e-mail"
-#: ../../../default.c:116
+#: ../../../default.c:98
+msgid "Additional file upload"
+msgstr "File aggiuntivo"
+
+#: ../../../default.c:101
msgid "Only the following mime types are allowed"
msgstr "Solo i seguenti tipi di files possono essere caricati"
-#: ../../../default.c:119
-#: ../../../default.c:233
+#: ../../../default.c:104
+msgid "Are you sure you want to delete the selected plugins?"
+msgstr "Sei sicuro di voler eliminare i plugin selezionati?"
+
+#: ../../../default.c:107
+msgid "Are you sure you want to delete the selected plugin?"
+msgstr "Sei sicuro di voler eliminare il plugin selezionato?"
+
+#: ../../../default.c:110
+#: ../../../default.c:395
+#: ../../../default.c:503
msgid "Plugin"
msgstr "Plugin"
-#: ../../../default.c:122
-#: ../../../default.c:173
-#: ../../../default.c:185
-#: ../../../default.c:236
-#: ../../../default.c:269
-#: ../../../default.c:299
+#: ../../../default.c:113
+#: ../../../default.c:188
+#: ../../../default.c:227
+#: ../../../default.c:257
+#: ../../../default.c:506
+#: ../../../default.c:587
+#: ../../../default.c:608
+#: ../../../default.c:629
msgid "Group"
msgstr "Gruppo"
+#: ../../../default.c:116
#: ../../../default.c:125
-#: ../../../default.c:134
-#: ../../../default.c:194
-#: ../../../default.c:224
-#: ../../../default.c:239
-#: ../../../default.c:278
+#: ../../../default.c:212
+#: ../../../default.c:494
+#: ../../../default.c:509
msgid "Access"
msgstr "Accesso"
-#: ../../../default.c:128
-#: ../../../default.c:197
-#: ../../../default.c:230
-#: ../../../default.c:308
-#: ../../../default.c:317
+#: ../../../default.c:119
+#: ../../../default.c:500
+#: ../../../default.c:638
+#: ../../../default.c:674
msgid "Add"
msgstr "Aggiungi"
-#: ../../../default.c:131
-#: ../../../default.c:221
+#: ../../../default.c:122
+#: ../../../default.c:209
+#: ../../../default.c:491
+#: ../../../default.c:659
msgid "IP"
msgstr "IP"
-#: ../../../default.c:137
-#: ../../../default.c:227
+#: ../../../default.c:128
+#: ../../../default.c:215
+#: ../../../default.c:497
msgid "Priority"
msgstr "Priorità"
+#: ../../../default.c:131
#: ../../../default.c:140
-#: ../../../default.c:149
-#: ../../../default.c:182
-#: ../../../default.c:242
-#: ../../../default.c:281
-#: ../../../default.c:536
+#: ../../../default.c:197
+#: ../../../default.c:230
+#: ../../../default.c:251
+#: ../../../default.c:353
+#: ../../../default.c:512
+#: ../../../default.c:611
+#: ../../../default.c:893
msgid "Confirm"
msgstr "Conferma"
-#: ../../../default.c:143
-#: ../../../default.c:311
+#: ../../../default.c:134
+#: ../../../default.c:236
+#: ../../../default.c:338
+#: ../../../default.c:653
+#: ../../../default.c:668
msgid "Name"
msgstr "Nome Completo"
+#: ../../../default.c:143
+msgid "Gruppo"
+msgstr "Gruppo"
+
+#: ../../../default.c:149
+msgid "Rights set?"
+msgstr "Permessi impostati?"
+
#: ../../../default.c:152
+#: ../../../default.c:566
+msgid "Any"
+msgstr "Tutti"
+
+#: ../../../default.c:155
+msgid "Yes"
+msgstr "Si"
+
+#: ../../../default.c:158
+msgid "No"
+msgstr "No"
+
+#: ../../../default.c:161
msgid "Plugins ACL"
msgstr "ACL Plugins"
-#: ../../../default.c:155
+#: ../../../default.c:164
msgid "Plugins Options"
msgstr "Opzioni Plugin"
-#: ../../../default.c:158
-#: ../../../default.c:284
-#: ../../../default.c:413
-#: ../../../default.c:485
-#: ../../../default.c:512
+#: ../../../default.c:167
+#: ../../../default.c:446
+#: ../../../default.c:533
+msgid "Settings"
+msgstr "Impostazioni"
+
+#: ../../../default.c:170
+msgid "Options"
+msgstr "Opzioni"
+
+#: ../../../default.c:173
+#: ../../../default.c:614
+#: ../../../default.c:770
+#: ../../../default.c:842
+#: ../../../default.c:869
msgid "Login name"
msgstr "Nome utente"
-#: ../../../default.c:164
-#: ../../../default.c:290
-#: ../../../default.c:419
+#: ../../../default.c:179
+#: ../../../default.c:620
+#: ../../../default.c:776
msgid "Retype Password"
msgstr "Reinserisci password"
-#: ../../../default.c:167
-#: ../../../default.c:293
-#: ../../../default.c:422
-#: ../../../default.c:488
-#: ../../../default.c:515
+#: ../../../default.c:182
+#: ../../../default.c:623
+#: ../../../default.c:779
+#: ../../../default.c:845
+#: ../../../default.c:872
msgid "Full Name"
msgstr "Nome Completo"
-#: ../../../default.c:170
-#: ../../../default.c:296
-#: ../../../default.c:425
-#: ../../../default.c:491
-#: ../../../default.c:518
+#: ../../../default.c:185
+#: ../../../default.c:626
+#: ../../../default.c:782
+#: ../../../default.c:848
+#: ../../../default.c:875
msgid "e-mail"
msgstr "E-mail"
-#: ../../../default.c:176
-#: ../../../default.c:302
-#: ../../../default.c:428
-#: ../../../default.c:521
+#: ../../../default.c:191
+#: ../../../default.c:632
+#: ../../../default.c:785
+#: ../../../default.c:878
msgid "Preferred language"
msgstr "Lingua"
-#: ../../../default.c:179
-#: ../../../default.c:305
+#: ../../../default.c:194
+#: ../../../default.c:248
+#: ../../../default.c:350
+#: ../../../default.c:635
msgid "Active"
msgstr "Attivo"
-#: ../../../default.c:188
+#: ../../../default.c:200
+msgid "Are you sure you want to delete the selected banned ips?"
+msgstr "Sei sicuro di voler eliminare gli IP selezionati?"
+
+#: ../../../default.c:203
+msgid "Are you sure you want to delete the selected banned ip?"
+msgstr "Sei sicuro di voler eliminare l'IP selezionato?"
+
+#: ../../../default.c:206
+#: ../../../default.c:647
+msgid "S"
+msgstr "S"
+
+#: ../../../default.c:218
+#: ../../../default.c:260
+#: ../../../default.c:527
+#: ../../../default.c:665
+msgid "Actions"
+msgstr "Azioni"
+
+#: ../../../default.c:221
+msgid "Are you sure you want to delete the selected languages?"
+msgstr "Sei sicuro di voler eliminare le lingue selezionate?"
+
+#: ../../../default.c:224
+msgid "Are you sure you want to delete the selected language?"
+msgstr "Sei sicuro di voler eliminare la lingua selezionata?"
+
+#: ../../../default.c:233
+#: ../../../default.c:335
+msgid "ID"
+msgstr "ID"
+
+#: ../../../default.c:239
+#: ../../../default.c:341
+msgid "Locale"
+msgstr "Localizzazione"
+
+#: ../../../default.c:242
+#: ../../../default.c:344
+msgid "Browser recon"
+msgstr "Riconoscimento Browser"
+
+#: ../../../default.c:245
+#: ../../../default.c:347
+msgid "Charset"
+msgstr "Charset"
+
+#: ../../../default.c:254
+msgid "Plugin does not have any option to be configured"
+msgstr "Sei sicuro di voler eliminare gli IP se"
+
+#: ../../../default.c:263
+msgid "Translation module"
+msgstr "Traduci con"
+
+#: ../../../default.c:266
+#: ../../../default.c:278
+#: ../../../default.c:296
+msgid "Select one"
+msgstr "Seleziona"
+
+#: ../../../default.c:269
+msgid "Default language"
+msgstr "Lingua Predefinita"
+
#: ../../../default.c:272
+msgid "Authentication module"
+msgstr "Modulo Authenticazione"
+
+#: ../../../default.c:275
+msgid "(LDAP Configuration needs to be done<br> by hand for now)"
+msgstr "(La configurazione del modulo LDAP <br>deve essere fatta a mano per ora)"
+
+#: ../../../default.c:281
+msgid "Site title"
+msgstr "Titolo Sito"
+
+#: ../../../default.c:284
+msgid "WebMaster E-mail"
+msgstr "E-Mail WebMaster"
+
+#: ../../../default.c:287
+msgid "Site E-mail"
+msgstr "E-mail Sito"
+
+#: ../../../default....
[truncated message content] |
|
From: <ts...@us...> - 2008-12-11 17:38:43
|
Revision: 193
http://openupload.svn.sourceforge.net/openupload/?rev=193&view=rev
Author: tsdogs
Date: 2008-12-11 17:38:38 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
update italian translation
Modified Paths:
--------------
trunk/locale/it/LC_MESSAGES/openupload.mo
trunk/locale/it/LC_MESSAGES/openupload.po
trunk/locale/it.inc.php
trunk/templates/default/locale/it.inc.php
Modified: trunk/locale/it/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/it/LC_MESSAGES/openupload.po
===================================================================
--- trunk/locale/it/LC_MESSAGES/openupload.po 2008-12-11 15:51:45 UTC (rev 192)
+++ trunk/locale/it/LC_MESSAGES/openupload.po 2008-12-11 17:38:38 UTC (rev 193)
@@ -3,7 +3,7 @@
"Project-Id-Version: OpenUpload\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-12-11 16:44+0100\n"
-"PO-Revision-Date: 2008-12-11 16:46+0100\n"
+"PO-Revision-Date: 2008-12-11 17:06+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -50,7 +50,7 @@
#: ../../../lib/modules/default/auth.inc.php:27
#: ../../../lib/modules/default/auth.inc.php:40
msgid "Login"
-msgstr "Login"
+msgstr "Accedi"
#: ../../../lib/modules/default/auth.inc.php:30
msgid "User registration"
Modified: trunk/locale/it.inc.php
===================================================================
--- trunk/locale/it.inc.php 2008-12-11 15:51:45 UTC (rev 192)
+++ trunk/locale/it.inc.php 2008-12-11 17:38:38 UTC (rev 193)
@@ -1,29 +1,29 @@
<?php
$tr["Login incorrect!"] = "Login incorretto!";
-$tr["plugin include file not found: %1"] = "Il plugin non è stato trovato: %1";
+$tr["plugin include file not found: %1"] = "File del plugin non trovato: %1";
$tr["IP Banned"] = "IP Bloccato";
-$tr["THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"] = "SI E' VERIFICATO UN PROBLEMA CON I PERMESSI. ACCESSO NEGATO. PROVARE CON UN'OPERAZIONE CONSENTITA!";
-$tr["ERROR: database folder not found!"] = "ERRORE: Cartella database non trovata!";
-$tr["ERROR: Could not create folder for %1 table!"] = "ERRORE: Impossibile create cartella per la tabella %1!";
-$tr["ERROR: Could not create file for %1 table!"] = "ERRORE: Impossibile create la cartella per la tabella %1!";
-$tr["ERROR: connection to database failed!"] = "ERRORE: Fallita connessione al database!";
+$tr["THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"] = "SI E' VERIFICATO UN ERRORE NEI PERMESSI. PREGO RIPROVARE CON UN'ALTRA OPZIONE!";
+$tr["ERROR: database folder not found!"] = "ERRORE: La cartella del database non è stata trovata!";
+$tr["ERROR: Could not create folder for %1 table!"] = "ERRORE: Impossibile creare cartella per la tabella %1!";
+$tr["ERROR: Could not create file for %1 table!"] = "ERRORE: Impossibile creare il file per la tabella %1";
+$tr["Unsupported query criteria %1"] = "Criterio Query non supportato %1";
$tr["Login"] = "Accedi";
$tr["User registration"] = "Registrazione utente";
$tr["User options"] = "Opzioni utente";
$tr["Preferences"] = "Preferenze";
$tr["Logout"] = "Esci";
-$tr["Registration is not supported by Auth Module"] = "La registrazione non è supportata dal modulo di Autenticazione";
-$tr["Username already taken, choose a new value"] = "Nome utente già registrato, prova un'altro nome";
+$tr["Registration is not supported by Auth Module"] = "Registrazione non supportata dal Modulo di Autenticazione";
+$tr["Username already taken, choose a new value"] = "Il nome utente è già utilizzato, sceglierne un'altro";
$tr["Login name must be at least 5 characters long!"] = "Il nome utente deve essere lungo almeno 5 caratteri!";
-$tr["Login name contains an invalid character. Valid vharacters are %1"] = "Il login contiene caratteri non validi. I caratteri validi sono %1";
-$tr["Please insert Full Name"] = "Inserire il Nome Completo";
-$tr["Please insert a valid e-mail!"] = "Inserire un indirizzo e-mail valido!";
-$tr["Password must be at least 5 characters long!"] = "La password deve essere lunga almento 5 caratteri!";
-$tr["Passwords do not match! please retype."] = "Le password non corrispondono! Riprova.";
+$tr["Login name contains an invalid character. Valid vharacters are %1"] = "Il nome utente contiene caratteri non validi. I caratteri consentiti sono %1";
+$tr["Please insert Full Name"] = "Prego inserire un Nome Completo";
+$tr["Please insert a valid e-mail!"] = "Inserire un indirizzo email valido!";
+$tr["Password must be at least 5 characters long!"] = "La password deve essere lunga almeno 5 caratteri!";
+$tr["Passwords do not match! please retype."] = "Le password non corrispondono! Prego riprovare.";
$tr["[%1] User registration confirmation e-mail"] = "[%1] Registrazione utente e-mail di conferma";
$tr["Registration completed successfully. Have fun!"] = "Registrazione completata con successo. Buon divertimento!";
-$tr["User profile change not supported by Auth Module"] = "Modifica del profilo utente non supportata dal modulo di Autenticazione";
-$tr["Full Name cannot be empty!"] = "Il Nome completo non può essere vuoto";
+$tr["User profile change not supported by Auth Module"] = "Modifica profilo utente non supportata dal Modulo di Autenticazione";
+$tr["Full Name cannot be empty!"] = "Il Nome Completo non può essere vuoto!";
$tr["Please enter a valid e-mail address!"] = "Inserire un indirizzo e-mail valido!";
$tr["Password must be at least 5 charaters long!"] = "La password deve essere lunga almento 5 caratteri!";
$tr["Old password is wrong!"] = "La vecchia password è errata!";
@@ -33,36 +33,52 @@
$tr["File download"] = "Scarica file";
$tr["File Removal"] = "Rimozione file";
$tr["File Upload"] = "Carica file";
-$tr["Maximum upload size for site wide configuration reached"] = "Dimensione massima per l'upload raggiunta";
+$tr["Upload failed for Unknown error code: %1"] = "Upload fallito per una ragione sconosciuta. codice errore: %1";
$tr["Maximum file size exceeded!"] = "File troppo grande!";
-$tr["Partial file transfer error!"] = "Errore, trasferimento parziale del file!";
-$tr["No file was uploaded!"] = "Nessun file caricato!";
-$tr["Missing temporary directory"] = "Manca la cartella per l'upload temporaneo";
-$tr["Can't write to temporary diretory!"] = "Impossibile scrivere nella cartella temporanea!";
-$tr["Upload blocked by extension!"] = "Upload bloccato da un'estensione!";
-$tr["Upload failed for Unknown error code: %1"] = "Upload fallito per una ragione sconosciuta. codice errore: %1";
$tr["Requested file does not exist!"] = "Il file richiesto non esiste!";
$tr["Wrong file id!"] = "ID del file errata!";
$tr["Administration"] = "Amministrazione";
$tr["User administration not supported by Auth Module"] = "Amministrazione utenti non supportata dal modulo di Autenticazione";
$tr["Group administration not supported by Auth Module"] = "Amministrazione gruppi non supportata dal modulo di Autenticazione";
$tr["Please provide a valid group name!"] = "Inserire un nome di gruppo valido";
+$tr["Any group"] = "Qualsiasi gruppo";
+$tr["ANY"] = "TUTTI";
$tr["Allow"] = "Consenti";
$tr["Deny"] = "Nega";
+$tr["Specified criteria is not valid!"] = "Il criterio specificato non è valido!";
+$tr["Please specify at least one criteria!"] = "Prego inserire almeno un criterio!";
$tr["Enable"] = "Abilita";
$tr["Disable"] = "Disabilita";
+$tr["Any"] = "Tutti";
+$tr["Options for this group already exsist, please use the edit function!"] = "Esistono già opzioni per questo gruppo, utilizzare la funzione di modifica!";
+$tr["Configuration sucessfully saved!"] = "Configurazione salvata correttamente!";
+$tr["Configuration file could not be saved, please proceed with the download!"] = "Impossibile salvare il file di configurazione, procedere con il download!";
$tr["IP %1 has been banned!"] = "IP %1 è stato bloccato!";
-$tr["IP %1 was already in state: %2!"] = "IP %1 era già nello stato: %1";
+$tr["IP %1 was already in state: %2!"] = "IP %1 era già nello stato: %2";
+$tr["ID"] = "ID";
+$tr["Language \"%1\" cannot be empty"] = "Lingua \"%1\" non può essere vuota";
+$tr["Language \"%1\" already exists!"] = "Lingua \"%1\" esiste già!";
+$tr["Name"] = "Nome";
+$tr["Language \"%1\" cannot be empty!"] = "Lingua \"%1\" non può essere vuota!";
+$tr["Locale"] = "Localizzazione";
+$tr["Charset"] = "Charset";
$tr["LDAP connection failed!"] = "ERRORE: Fallita connessione LDAP!";
-$tr["Limit the mimetypes a user can upload"] = "Limita la tipologia dei file che un utente può caricare";
+$tr["Limit the mimetypes a user can upload"] = "Limita i tipi di file che un utente può caricare";
+$tr["Allowed mime types"] = "Tipi mime consentiti";
+$tr["Types in message"] = "Messaggio all'utente";
$tr["WARNING: no mime types defined. Plugin has been disabled!"] = "ATTENZIONE: nessun tipo di file definito. Il plugin è stato disabilitato!";
-$tr["This file type (%1) is not allowed on this site!"] = "L'upload di questo tipo di file (%1) non è consentito!";
+$tr["This file type (%1) is not allowed on this site!"] = "I vs. file saranno mantenuti sul ns. server per %1 giorni";
$tr["Add captcha protection to file download and user registration"] = "Aggiunge la protezione captcha al download del file e alla registrazione utente";
$tr["Wrong captcha code! please try again."] = "Captcha errato! Riprova.";
+$tr["Limit the maximum size of a uploaded file"] = "Limita la dimensione massima dei file che possono essere caricati";
+$tr["Maximum File Size"] = "Dimensione Massima";
$tr["Your e-mail address isn't valid!"] = "Il tuo indirizzo e-mail non è valido!";
$tr["Destination e-mail address isn't valid!"] = "L'indirizzo e-mail del destinatario non è valido!";
$tr["Information about your uploaded file: %1"] = "Informazioni relative al tuo file: %1";
$tr["An upload was delivered to you"] = "Ti è stato inviato un file";
$tr["Option to add password protection for file download"] = "Opzione per aggiungere una password di protezione al download di un file";
$tr["Wrong password!"] = "Password errata!";
+$tr["Maximum number of days an upload will be kept on the server."] = "Numero massimo di giorni per il quale il file sarà conservato sul server.";
+$tr["N. Of Days"] = "N. di giorni";
+$tr["Files will be kept on our server for %1 days"] = "I vs. file saranno mantenuti sul ns. server per %1 giorni";
?>
Modified: trunk/templates/default/locale/it.inc.php
===================================================================
--- trunk/templates/default/locale/it.inc.php 2008-12-11 15:51:45 UTC (rev 192)
+++ trunk/templates/default/locale/it.inc.php 2008-12-11 17:38:38 UTC (rev 193)
@@ -10,9 +10,6 @@
$tr["Password"] = "Password";
$tr["Password protect"] = "Password di protezione";
$tr["You are receiving this message because someone uploaded a file on our OpenUpload server for you."] = "Hai ricevuto questo messaggio perchè qualcuno ti ha inviato un file attraverso il nostro server OpenUpload.";
-$tr["File ID"] = "ID File";
-$tr["File name"] = "Nome file";
-$tr["File size"] = "Dimensione";
$tr["Description"] = "Descrizione";
$tr["User message"] = "Messaggio";
$tr["To download the file open the following link in a browser"] = "Per scaricare il file apri il seguente link in un browser";
@@ -24,7 +21,10 @@
$tr["Send remove link"] = "Invia link per la rimozione";
$tr["e-mail Subject"] = "Oggetto e-mail";
$tr["e-mail Message"] = "Messaggio e-mail";
+$tr["Additional file upload"] = "File aggiuntivo";
$tr["Only the following mime types are allowed"] = "Solo i seguenti tipi di files possono essere caricati";
+$tr["Are you sure you want to delete the selected plugins?"] = "Sei sicuro di voler eliminare i plugin selezionati?";
+$tr["Are you sure you want to delete the selected plugin?"] = "Sei sicuro di voler eliminare il plugin selezionato?";
$tr["Plugin"] = "Plugin";
$tr["Group"] = "Gruppo";
$tr["Access"] = "Accesso";
@@ -33,35 +33,130 @@
$tr["Priority"] = "Priorità";
$tr["Confirm"] = "Conferma";
$tr["Name"] = "Nome Completo";
+$tr["Gruppo"] = "Gruppo";
+$tr["Rights set?"] = "Permessi impostati?";
+$tr["Any"] = "Tutti";
+$tr["Yes"] = "Si";
+$tr["No"] = "No";
$tr["Plugins ACL"] = "ACL Plugins";
$tr["Plugins Options"] = "Opzioni Plugin";
+$tr["Settings"] = "Impostazioni";
+$tr["Options"] = "Opzioni";
$tr["Login name"] = "Nome utente";
$tr["Retype Password"] = "Reinserisci password";
$tr["Full Name"] = "Nome Completo";
$tr["e-mail"] = "E-mail";
$tr["Preferred language"] = "Lingua";
$tr["Active"] = "Attivo";
+$tr["Are you sure you want to delete the selected banned ips?"] = "Sei sicuro di voler eliminare gli IP selezionati?";
+$tr["Are you sure you want to delete the selected banned ip?"] = "Sei sicuro di voler eliminare l'IP selezionato?";
+$tr["S"] = "S";
+$tr["Actions"] = "Azioni";
+$tr["Are you sure you want to delete the selected languages?"] = "Sei sicuro di voler eliminare le lingue selezionate?";
+$tr["Are you sure you want to delete the selected language?"] = "Sei sicuro di voler eliminare la lingua selezionata?";
+$tr["ID"] = "ID";
+$tr["Locale"] = "Localizzazione";
+$tr["Browser recon"] = "Riconoscimento Browser";
+$tr["Charset"] = "Charset";
+$tr["Plugin does not have any option to be configured"] = "Sei sicuro di voler eliminare gli IP se";
+$tr["Translation module"] = "Traduci con";
+$tr["Select one"] = "Seleziona";
+$tr["Default language"] = "Lingua Predefinita";
+$tr["Authentication module"] = "Modulo Authenticazione";
+$tr["(LDAP Configuration needs to be done<br> by hand for now)"] = "(La configurazione del modulo LDAP <br>deve essere fatta a mano per ora)";
+$tr["Site title"] = "Titolo Sito";
+$tr["WebMaster E-mail"] = "E-Mail WebMaster";
+$tr["Site E-mail"] = "E-mail Sito";
+$tr["Confirm registration with e-mail"] = "Conferma registrazioni via e-mail";
+$tr["Template"] = "Template";
+$tr["Template Footer"] = "Piede del Template";
+$tr["Maximum upload size (in MB)"] = "Dimensione massima di upload";
+$tr["Maximum download time (in Min)"] = "Tempo massimo per il download (in Min)";
+$tr["0 disables it"] = "0 lo disabilita";
+$tr["Max num. of file uploaded per upload"] = "Massimo num. di file per cui fare l'upload";
+$tr["Upload tracking method"] = "Metodo controllo stato upload";
+$tr["Enable activity logging?"] = "Abilita i log?";
+$tr["Database logging level"] = "Livello log su database";
+$tr["Syslog logging level"] = "Livello log in Syslog";
+$tr["Save Changes"] = "Salva Modifiche";
+$tr["Download config file"] = "Download file di configurazione";
+$tr["This are the configured settings for a review"] = "Questa è l'attuale configurazione";
+$tr["Filter"] = "Filtro";
+$tr["All"] = "Tutti";
+$tr["Errors"] = "Errori";
+$tr["Security"] = "Sicurezza";
+$tr["Warnings"] = "Avvertenze";
+$tr["Notice"] = "Notifiche";
+$tr["Info"] = "Info";
+$tr["Date"] = "Data";
+$tr["Type"] = "Tipo";
+$tr["User"] = "Utente";
$tr["Module"] = "Modulo";
$tr["Action"] = "Azione";
-$tr["Settings"] = "Impostazioni";
+$tr["Real Action"] = "Azione Reale";
+$tr["Result"] = "Risultato";
+$tr["Additional Info"] = "Info agg.";
+$tr["Maintenence"] = "Manutenzione";
+$tr["This options let you delete files based on some options."] = "Questa sezione permette di eliminare i file in base a dei criteri.";
+$tr["Please select one or more criteria for file deletion"] = "Seleziona uno o più criteri per l'eliminazione";
+$tr["Delete files older than"] = "Elimina file più vecchi di";
+$tr["days"] = "giorni";
+$tr["Which user name is"] = "Dove l'utente è";
+$tr["Which upload day is"] = "Dove il giorno di upload è";
+$tr["Which size is bigger than"] = "Dove la dimensione è maggiore di";
+$tr["Proceed"] = "Procedi";
+$tr["Expiration plugin"] = "Plugin di Scadenza";
+$tr["To delete files marked as expired by the expire plugin press the \"Delete expired\" button."] = "Per eliminare i file scaduti dall'expire plugin clicca su \"Elimina scaduti\".";
+$tr["Delete expired"] = "Elimina scaduti";
+$tr["Are you sure you want to delete the selected users?"] = "Sei sicuro di voler eliminare gli utenti selezionati?";
+$tr["Are you sure you want to delete the selected user?"] = "Sei sicuro di voler eliminare l'utente selezionato?";
$tr["Plugins"] = "Plugin";
$tr["Files"] = "File";
$tr["Users"] = "Utenti";
$tr["Groups"] = "Gruppi";
$tr["Rights"] = "Permessi";
+$tr["Languages"] = "Lingua";
$tr["Banned"] = "Bloccato";
+$tr["Logs"] = "Log";
+$tr["Deletion Result"] = "Risultato eliminazione";
+$tr["The following files have been deleted."] = "I seguenti file sono stati eliminati.";
+$tr["The following files will be deleted, proceed?"] = "I seguenti file saranno eliminati, procedere?";
+$tr["Yes, delete all"] = "Si, eliminali tutti";
+$tr["No files matched the criteria"] = "Nessun file trovato";
+$tr["Back to Maintenance"] = "Torna alla Manutenzione";
+$tr["Are you sure you want to delete the selected groups?"] = "Sei sicuro di voler eliminare i gruppi selezionati?";
+$tr["Are you sure you want to delete the selected group?"] = "Sei sicuro di voler eliminare il gruppo selezionato?";
+$tr["Group Name"] = "Nome Gruppo";
$tr["Here you can administer"] = "In questa sezione puoi amministrare";
$tr["Banned IPs"] = "IP bloccati";
+$tr["Logs / Statistics"] = "Log / Statistiche";
+$tr["PLEASE BE CAREFULL WHEN MODIFING THE RIGHTS!"] = "PREGO FARE ATTENZIONE NELLA MODIFICA DEI PERMESSI!";
+$tr["Editing rights for group"] = "Modifica permessi per il gruppo";
+$tr["Right"] = "Permesso";
+$tr["Resulting ACL"] = "ACL risultante";
+$tr["From ACL"] = "Da ACL";
+$tr["default"] = "default";
+$tr["<< Back"] = "<< Indietro";
+$tr["Apply changes"] = "Applica modifiche";
+$tr["Files List"] = "Lista File";
+$tr["Maintenance"] = "Manutenzione";
+$tr["Are you sure you want to delete the selected files?"] = "Sei sicuro di voler eliminare i file selezionati?";
+$tr["Are you sure you want to delete the selected file?"] = "Sei sicuro di voler eliminare il file selezionato?";
+$tr["Id"] = "Id";
+$tr["Upload Date"] = "Data";
$tr["You requested to remove the following file"] = "Hai richiesto la rimozione del seguente file";
$tr["File description"] = "Descrizione";
+$tr["File name"] = "Nome file";
+$tr["File size"] = "Dimensione";
$tr["Uploaded on"] = "Caricato il";
$tr["Confirm removal"] = "Conferma rimozione";
$tr["Download link"] = "Link per lo scaricamento";
$tr["Remove link"] = "Link per la rimozione";
$tr["Upload a new file"] = "Carica un nuovo file";
+$tr["Uploading"] = "Caricamento";
+$tr["please wait ..."] = "attendere prego ...";
$tr["Please enter the File Information requested"] = "Prego inserire le informazioni sul File";
$tr["File code"] = "Codice file";
-$tr["Proceed"] = "Procedi";
$tr["Select the file to be uploaded"] = "Seleziona il file da caricare";
$tr["Maximum allowed upload size"] = "Dimensione massima di upload";
$tr["Upload"] = "Carica";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-11 22:22:17
|
Revision: 195
http://openupload.svn.sourceforge.net/openupload/?rev=195&view=rev
Author: tsdogs
Date: 2008-12-11 22:00:12 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Add compression plugin
Added Paths:
-----------
trunk/plugins/compress.inc.php
trunk/templates/default/plugins/compress/
Added: trunk/plugins/compress.inc.php
===================================================================
--- trunk/plugins/compress.inc.php (rev 0)
+++ trunk/plugins/compress.inc.php 2008-12-11 22:00:12 UTC (rev 195)
@@ -0,0 +1,83 @@
+<?php
+
+class compressPlugin extends OpenUploadPlugin {
+
+ function compressPlugin() {
+ $this->description = tr('Compress the uploaded files');
+ $this->options = array(
+ array('name' => 'command', 'description' => tr('Command to be executed. One per line.'), 'type' => 'list'),
+ array('name' => 'extension', 'description' => tr('Extensions corresponding to commands.'), 'type' => 'list'),
+ array('name' => 'compression', 'description' => tr('Name of compression commands'), 'type' => 'list'),
+ );
+ }
+
+ function uploadOptions(&$finfo, $acl) {
+ if ($acl != 'enable') return true;
+ $group = $this->getGroup('command');
+ if (count($this->config['command'][$group])==0 and count($this->config['command']['*'])>0) {
+ $this->config['command'][$group]=$this->config['command']['*'];
+ $this->config['compression'][$group]=$this->config['compression']['*'];
+ $this->config['extension'][$group]=$this->config['extenion']['*'];
+ }
+ if (count($this->config['command'][$group])>0) {
+ $this->assign('compress',$this->config['compression'][$group]);
+ $this->display('uploadOptions');
+ }
+ return true;
+ }
+
+ function uploadConfirm(&$finfo, $acl) {
+ global $_POST;
+ if ($acl != 'enable') return true;
+ if ($_POST['compress']!='') {
+ if ($finfo[0]['compress']==1) return true; /* file already compressed */
+ $group = $this->getGroup('command');
+ if (count($this->config['command'][$group])==0 and count($this->config['command']['*'])>0) {
+ $this->config['command'][$group]=$this->config['command']['*'];
+ $this->config['compression'][$group]=$this->config['compression']['*'];
+ $this->config['extension'][$group]=$this->config['extension']['*'];
+ }
+ if (count($this->config['command'][$group])>0) {
+ // TODO: more error checking
+ /* create a tmp folder where to store the files */
+ $tmpdir = randomName(20,20);
+ $res = mkdir(app()->config['DATA_PATH'].'/tmp/'.$tmpdir);
+ /* move the uploaded files to that folder with the original name */
+ foreach ($finfo as $f) {
+ rename($f['tmp'],app()->config['DATA_PATH'].'/tmp/'.$tmpdir.'/'.$f['name']);
+ $files .= ' "'.chop($f['name']).'"';
+ $lfiles .= ' "'.app()->config['DATA_PATH'].'/tmp/'.$tmpdir.'/'.chop($f['name']).'"';
+ }
+ /* execute the compress command */
+ $cmd=$this->config['command'][$group][$_POST['compress']];
+ $params['%1']=$finfo[0]['tmp'];
+ $params['%2']=$files;
+ $params['%3']=$lfiles;
+ $params['%4']=app()->config['DATA_PATH'].'/tmp/'.$tmpdir;
+ $cmd = strtr($cmd,$params);
+ $pwd = getcwd();
+ chdir(app()->config['DATA_PATH'].'/tmp/'.$tmpdir);
+ exec($cmd,$output);
+ chdir($pwd);
+ /* remove the files */
+ foreach ($finfo as $f) {
+ unlink(app()->config['DATA_PATH'].'/tmp/'.$tmpdir.'/'.$f['name']);
+ }
+ rmdir(app()->config['DATA_PATH'].'/tmp/'.$tmpdir);
+ /* update the file information with the compressed one */
+ $finfo[0]['mime']='binary/octet-stream';
+ $finfo[0]['name']=$tmpdir.'.'.$this->config['extension'][$group][$_POST['compress']];
+ $finfo[0]['size']=filesize($finfo[0]['tmp'].'.'.$this->config['extension'][$group][$_POST['compress']]);
+ $finfo[0]['tmp']=$finfo[0]['tmp'].'.'.$this->config['extension'][$group][$_POST['compress']];
+ for ($i=1; $i<count($finfo); $i++)
+ unset($finfo[$i]);
+ /* tell the program that the file is already compressed, so not to run it again */
+ $finfo[0]['compress']=1;
+ }
+ }
+ 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.
|
|
From: <ts...@us...> - 2008-12-12 07:37:53
|
Revision: 197
http://openupload.svn.sourceforge.net/openupload/?rev=197&view=rev
Author: tsdogs
Date: 2008-12-12 07:37:51 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
updated changelog
Modified Paths:
--------------
trunk/CHANGELOG
trunk/TODO
Modified: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG 2008-12-11 22:00:45 UTC (rev 196)
+++ trunk/CHANGELOG 2008-12-12 07:37:51 UTC (rev 197)
@@ -18,11 +18,11 @@
- Plugin options
- Enabled confirmation on record deletion
- Enabled multi delete option
- - Enabled option configuration page
- - File deletion based on selection
+ - Enabled options configuration page
+ - File deletion for maintenance
* Setup
- - A setup script which should simplify first time configuration.
+ - Added setup script which should simplify first time configuration.
* Logs
- Createed logs which can be used for statistics.
@@ -35,7 +35,12 @@
- Plugin defualt option for groups.
- Upload file size limit by user group
- Expiriration date plugin
+ - Compression options (needs external tools)
+* Translations
+ - Updated Italian
+
+
Changelog from 0.3b to 0.3c (updated 2008.12.06)
* Fixed Bugs
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-12-11 22:00:45 UTC (rev 196)
+++ trunk/TODO 2008-12-12 07:37:51 UTC (rev 197)
@@ -8,11 +8,9 @@
Database
- txtdb deep testing (switch ?)
-Maintainence
-- Create a script to clean up the files/tmpfiles.
-
Setup
-- Check for something I don't remember right now :/
+- Check for required paths to be writable...
+- Check for zip/tar ?
Translations
- Update the translations
@@ -39,6 +37,9 @@
- Rights switch mode (to switch from 1 mode to the other)
- Rights better admin tool.
+Maintainence
+- Create a script to clean up the files/tmpfiles.
+
Registration
- Enable registration moderation
@@ -46,8 +47,6 @@
- e-mail change should need a confirmation e-mail too!
- Authentication with NTLM (mainly on LDAP module)
-Download (bug)
-- Fix double click on no blockings for download
Plugins
- (Following are some ideas)
@@ -55,15 +54,11 @@
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)
Compression of several files into one zip
Translation
- Add a database translator? not until base isn't complete.
-Maintainence
-- Manage file deletion timeout probably better to be handled here.
-
Template
- Create a sample template.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-12 15:50:51
|
Revision: 199
http://openupload.svn.sourceforge.net/openupload/?rev=199&view=rev
Author: tsdogs
Date: 2008-12-12 15:50:45 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
Italian translation update
Modified Paths:
--------------
trunk/locale/it/LC_MESSAGES/openupload.mo
trunk/locale/it/LC_MESSAGES/openupload.po
trunk/templates/default/locale/it/LC_MESSAGES/template.mo
trunk/templates/default/locale/it/LC_MESSAGES/template.po
trunk/templates/default/locale/it.inc.php
Modified: trunk/locale/it/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/it/LC_MESSAGES/openupload.po
===================================================================
--- trunk/locale/it/LC_MESSAGES/openupload.po 2008-12-12 15:49:55 UTC (rev 198)
+++ trunk/locale/it/LC_MESSAGES/openupload.po 2008-12-12 15:50:45 UTC (rev 199)
@@ -2,8 +2,8 @@
msgstr ""
"Project-Id-Version: OpenUpload\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-12-11 16:44+0100\n"
-"PO-Revision-Date: 2008-12-11 17:06+0100\n"
+"POT-Creation-Date: 2008-12-12 16:47+0100\n"
+"PO-Revision-Date: 2008-12-12 16:47+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -322,6 +322,22 @@
msgid "Wrong captcha code! please try again."
msgstr "Captcha errato! Riprova."
+#: ../../../plugins/compress.inc.php:6
+msgid "Compress the uploaded files"
+msgstr "Comprime i file caricati"
+
+#: ../../../plugins/compress.inc.php:8
+msgid "Command to be executed. One per line."
+msgstr "Comandi da eseguire. Uno per riga"
+
+#: ../../../plugins/compress.inc.php:9
+msgid "Extensions corresponding to commands."
+msgstr "Estensioni dei file per i comandi"
+
+#: ../../../plugins/compress.inc.php:10
+msgid "Name of compression commands"
+msgstr "Nomi visualizzati per la compressione"
+
#: ../../../plugins/filesize.inc.php:8
msgid "Limit the maximum size of a uploaded file"
msgstr "Limita la dimensione massima dei file che possono essere caricati"
Modified: trunk/templates/default/locale/it/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Modified: trunk/templates/default/locale/it/LC_MESSAGES/template.po
===================================================================
--- trunk/templates/default/locale/it/LC_MESSAGES/template.po 2008-12-12 15:49:55 UTC (rev 198)
+++ trunk/templates/default/locale/it/LC_MESSAGES/template.po 2008-12-12 15:50:45 UTC (rev 199)
@@ -2,8 +2,8 @@
msgstr ""
"Project-Id-Version: OpenUpload default template\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-12-11 16:48+0100\n"
-"PO-Revision-Date: 2008-12-11 16:50+0100\n"
+"POT-Creation-Date: 2008-12-12 16:48+0100\n"
+"PO-Revision-Date: 2008-12-12 16:48+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -43,844 +43,850 @@
msgstr "Utilizza Captcha"
#: ../../../default.c:26
+msgid "Compress the files"
+msgstr "Comprimi i files"
+
+#: ../../../default.c:29
+msgid "No compression"
+msgstr "Nessuna compressione"
+
+#: ../../../default.c:32
msgid "The download is password protected."
msgstr "Il file è protetto da una password."
-#: ../../../default.c:29
-#: ../../../default.c:41
-#: ../../../default.c:62
-#: ../../../default.c:176
-#: ../../../default.c:617
-#: ../../../default.c:773
-#: ../../../default.c:824
+#: ../../../default.c:35
+#: ../../../default.c:47
+#: ../../../default.c:68
+#: ../../../default.c:179
+#: ../../../default.c:620
+#: ../../../default.c:776
+#: ../../../default.c:827
msgid "Password"
msgstr "Password"
-#: ../../../default.c:32
+#: ../../../default.c:38
msgid "Password protect"
msgstr "Password di protezione"
-#: ../../../default.c:35
-#: ../../../default.c:56
+#: ../../../default.c:41
+#: ../../../default.c:62
msgid "You are receiving this message because someone uploaded a file on our OpenUpload server for you."
msgstr "Hai ricevuto questo messaggio perchè qualcuno ti ha inviato un file attraverso il nostro server OpenUpload."
-#: ../../../default.c:38
-#: ../../../default.c:59
-#: ../../../default.c:137
-#: ../../../default.c:146
-#: ../../../default.c:524
-#: ../../../default.c:671
-#: ../../../default.c:755
+#: ../../../default.c:44
+#: ../../../default.c:65
+#: ../../../default.c:140
+#: ../../../default.c:149
+#: ../../../default.c:527
+#: ../../../default.c:674
+#: ../../../default.c:758
msgid "Description"
msgstr "Descrizione"
-#: ../../../default.c:44
-#: ../../../default.c:65
+#: ../../../default.c:50
+#: ../../../default.c:71
msgid "User message"
msgstr "Messaggio"
-#: ../../../default.c:47
-#: ../../../default.c:68
+#: ../../../default.c:53
+#: ../../../default.c:74
msgid "To download the file open the following link in a browser"
msgstr "Per scaricare il file apri il seguente link in un browser"
-#: ../../../default.c:50
-#: ../../../default.c:71
+#: ../../../default.c:56
+#: ../../../default.c:77
msgid "To remove the file from our server open the following link in a browser"
msgstr "Per rimuovere il file dai ns. server apri il link seguente in un browser"
-#: ../../../default.c:53
-#: ../../../default.c:74
-#: ../../../default.c:800
-#: ../../../default.c:815
+#: ../../../default.c:59
+#: ../../../default.c:80
+#: ../../../default.c:803
+#: ../../../default.c:818
msgid "For complains please send an email to"
msgstr "Per segnalazioni di abuso prego inviare una email a "
-#: ../../../default.c:77
#: ../../../default.c:83
+#: ../../../default.c:89
msgid "Send me an e-mail"
msgstr "Inviami una e-mail"
-#: ../../../default.c:80
+#: ../../../default.c:86
msgid "Your e-mail address"
msgstr "Il tuo indirizzo e-mail"
-#: ../../../default.c:86
+#: ../../../default.c:92
msgid "Send e-mail to"
msgstr "Invia e-mail a"
-#: ../../../default.c:89
+#: ../../../default.c:95
msgid "Send remove link"
msgstr "Invia link per la rimozione"
-#: ../../../default.c:92
+#: ../../../default.c:98
msgid "e-mail Subject"
msgstr "Oggetto e-mail"
-#: ../../../default.c:95
+#: ../../../default.c:101
msgid "e-mail Message"
msgstr "Messaggio e-mail"
-#: ../../../default.c:98
-msgid "Additional file upload"
-msgstr "File aggiuntivo"
-
-#: ../../../default.c:101
+#: ../../../default.c:104
msgid "Only the following mime types are allowed"
msgstr "Solo i seguenti tipi di files possono essere caricati"
-#: ../../../default.c:104
+#: ../../../default.c:107
msgid "Are you sure you want to delete the selected plugins?"
msgstr "Sei sicuro di voler eliminare i plugin selezionati?"
-#: ../../../default.c:107
+#: ../../../default.c:110
msgid "Are you sure you want to delete the selected plugin?"
msgstr "Sei sicuro di voler eliminare il plugin selezionato?"
-#: ../../../default.c:110
-#: ../../../default.c:395
-#: ../../../default.c:503
+#: ../../../default.c:113
+#: ../../../default.c:398
+#: ../../../default.c:506
msgid "Plugin"
msgstr "Plugin"
-#: ../../../default.c:113
-#: ../../../default.c:188
-#: ../../../default.c:227
-#: ../../../default.c:257
-#: ../../../default.c:506
-#: ../../../default.c:587
-#: ../../../default.c:608
-#: ../../../default.c:629
+#: ../../../default.c:116
+#: ../../../default.c:191
+#: ../../../default.c:230
+#: ../../../default.c:260
+#: ../../../default.c:509
+#: ../../../default.c:590
+#: ../../../default.c:611
+#: ../../../default.c:632
msgid "Group"
msgstr "Gruppo"
-#: ../../../default.c:116
-#: ../../../default.c:125
-#: ../../../default.c:212
-#: ../../../default.c:494
-#: ../../../default.c:509
+#: ../../../default.c:119
+#: ../../../default.c:128
+#: ../../../default.c:215
+#: ../../../default.c:497
+#: ../../../default.c:512
msgid "Access"
msgstr "Accesso"
-#: ../../../default.c:119
-#: ../../../default.c:500
-#: ../../../default.c:638
-#: ../../../default.c:674
+#: ../../../default.c:122
+#: ../../../default.c:503
+#: ../../../default.c:641
+#: ../../../default.c:677
msgid "Add"
msgstr "Aggiungi"
-#: ../../../default.c:122
-#: ../../../default.c:209
-#: ../../../default.c:491
-#: ../../../default.c:659
+#: ../../../default.c:125
+#: ../../../default.c:212
+#: ../../../default.c:494
+#: ../../../default.c:662
msgid "IP"
msgstr "IP"
-#: ../../../default.c:128
-#: ../../../default.c:215
-#: ../../../default.c:497
+#: ../../../default.c:131
+#: ../../../default.c:218
+#: ../../../default.c:500
msgid "Priority"
msgstr "Priorità"
-#: ../../../default.c:131
-#: ../../../default.c:140
-#: ../../../default.c:197
-#: ../../../default.c:230
-#: ../../../default.c:251
-#: ../../../default.c:353
-#: ../../../default.c:512
-#: ../../../default.c:611
-#: ../../../default.c:893
+#: ../../../default.c:134
+#: ../../../default.c:143
+#: ../../../default.c:200
+#: ../../../default.c:233
+#: ../../../default.c:254
+#: ../../../default.c:356
+#: ../../../default.c:515
+#: ../../../default.c:614
+#: ../../../default.c:896
msgid "Confirm"
msgstr "Conferma"
-#: ../../../default.c:134
-#: ../../../default.c:236
-#: ../../../default.c:338
-#: ../../../default.c:653
-#: ../../../default.c:668
+#: ../../../default.c:137
+#: ../../../default.c:239
+#: ../../../default.c:341
+#: ../../../default.c:656
+#: ../../../default.c:671
msgid "Name"
msgstr "Nome Completo"
-#: ../../../default.c:143
+#: ../../../default.c:146
msgid "Gruppo"
msgstr "Gruppo"
-#: ../../../default.c:149
+#: ../../../default.c:152
msgid "Rights set?"
msgstr "Permessi impostati?"
-#: ../../../default.c:152
-#: ../../../default.c:566
+#: ../../../default.c:155
+#: ../../../default.c:569
msgid "Any"
msgstr "Tutti"
-#: ../../../default.c:155
+#: ../../../default.c:158
msgid "Yes"
msgstr "Si"
-#: ../../../default.c:158
+#: ../../../default.c:161
msgid "No"
msgstr "No"
-#: ../../../default.c:161
+#: ../../../default.c:164
msgid "Plugins ACL"
msgstr "ACL Plugins"
-#: ../../../default.c:164
+#: ../../../default.c:167
msgid "Plugins Options"
msgstr "Opzioni Plugin"
-#: ../../../default.c:167
-#: ../../../default.c:446
-#: ../../../default.c:533
+#: ../../../default.c:170
+#: ../../../default.c:449
+#: ../../../default.c:536
msgid "Settings"
msgstr "Impostazioni"
-#: ../../../default.c:170
+#: ../../../default.c:173
msgid "Options"
msgstr "Opzioni"
-#: ../../../default.c:173
-#: ../../../default.c:614
-#: ../../../default.c:770
-#: ../../../default.c:842
-#: ../../../default.c:869
+#: ../../../default.c:176
+#: ../../../default.c:617
+#: ../../../default.c:773
+#: ../../../default.c:845
+#: ../../../default.c:872
msgid "Login name"
msgstr "Nome utente"
-#: ../../../default.c:179
-#: ../../../default.c:620
-#: ../../../default.c:776
-msgid "Retype Password"
-msgstr "Reinserisci password"
-
#: ../../../default.c:182
#: ../../../default.c:623
#: ../../../default.c:779
-#: ../../../default.c:845
-#: ../../../default.c:872
-msgid "Full Name"
-msgstr "Nome Completo"
+msgid "Retype Password"
+msgstr "Reinserisci password"
#: ../../../default.c:185
#: ../../../default.c:626
#: ../../../default.c:782
#: ../../../default.c:848
#: ../../../default.c:875
+msgid "Full Name"
+msgstr "Nome Completo"
+
+#: ../../../default.c:188
+#: ../../../default.c:629
+#: ../../../default.c:785
+#: ../../../default.c:851
+#: ../../../default.c:878
msgid "e-mail"
msgstr "E-mail"
-#: ../../../default.c:191
-#: ../../../default.c:632
-#: ../../../default.c:785
-#: ../../../default.c:878
+#: ../../../default.c:194
+#: ../../../default.c:635
+#: ../../../default.c:788
+#: ../../../default.c:881
msgid "Preferred language"
msgstr "Lingua"
-#: ../../../default.c:194
-#: ../../../default.c:248
-#: ../../../default.c:350
-#: ../../../default.c:635
+#: ../../../default.c:197
+#: ../../../default.c:251
+#: ../../../default.c:353
+#: ../../../default.c:638
msgid "Active"
msgstr "Attivo"
-#: ../../../default.c:200
+#: ../../../default.c:203
msgid "Are you sure you want to delete the selected banned ips?"
msgstr "Sei sicuro di voler eliminare gli IP selezionati?"
-#: ../../../default.c:203
+#: ../../../default.c:206
msgid "Are you sure you want to delete the selected banned ip?"
msgstr "Sei sicuro di voler eliminare l'IP selezionato?"
-#: ../../../default.c:206
-#: ../../../default.c:647
+#: ../../../default.c:209
+#: ../../../default.c:650
msgid "S"
msgstr "S"
-#: ../../../default.c:218
-#: ../../../default.c:260
-#: ../../../default.c:527
-#: ../../../default.c:665
+#: ../../../default.c:221
+#: ../../../default.c:263
+#: ../../../default.c:530
+#: ../../../default.c:668
msgid "Actions"
msgstr "Azioni"
-#: ../../../default.c:221
+#: ../../../default.c:224
msgid "Are you sure you want to delete the selected languages?"
msgstr "Sei sicuro di voler eliminare le lingue selezionate?"
-#: ../../../default.c:224
+#: ../../../default.c:227
msgid "Are you sure you want to delete the selected language?"
msgstr "Sei sicuro di voler eliminare la lingua selezionata?"
-#: ../../../default.c:233
-#: ../../../default.c:335
+#: ../../../default.c:236
+#: ../../../default.c:338
msgid "ID"
msgstr "ID"
-#: ../../../default.c:239
-#: ../../../default.c:341
+#: ../../../default.c:242
+#: ../../../default.c:344
msgid "Locale"
msgstr "Localizzazione"
-#: ../../../default.c:242
-#: ../../../default.c:344
+#: ../../../default.c:245
+#: ../../../default.c:347
msgid "Browser recon"
msgstr "Riconoscimento Browser"
-#: ../../../default.c:245
-#: ../../../default.c:347
+#: ../../../default.c:248
+#: ../../../default.c:350
msgid "Charset"
msgstr "Charset"
-#: ../../../default.c:254
+#: ../../../default.c:257
msgid "Plugin does not have any option to be configured"
msgstr "Sei sicuro di voler eliminare gli IP se"
-#: ../../../default.c:263
+#: ../../../default.c:266
msgid "Translation module"
msgstr "Traduci con"
-#: ../../../default.c:266
-#: ../../../default.c:278
-#: ../../../default.c:296
+#: ../../../default.c:269
+#: ../../../default.c:281
+#: ../../../default.c:299
msgid "Select one"
msgstr "Seleziona"
-#: ../../../default.c:269
+#: ../../../default.c:272
msgid "Default language"
msgstr "Lingua Predefinita"
-#: ../../../default.c:272
+#: ../../../default.c:275
msgid "Authentication module"
msgstr "Modulo Authenticazione"
-#: ../../../default.c:275
+#: ../../../default.c:278
msgid "(LDAP Configuration needs to be done<br> by hand for now)"
msgstr "(La configurazione del modulo LDAP <br>deve essere fatta a mano per ora)"
-#: ../../../default.c:281
+#: ../../../default.c:284
msgid "Site title"
msgstr "Titolo Sito"
-#: ../../../default.c:284
+#: ../../../default.c:287
msgid "WebMaster E-mail"
msgstr "E-Mail WebMaster"
-#: ../../../default.c:287
+#: ../../../default.c:290
msgid "Site E-mail"
msgstr "E-mail Sito"
-#: ../../../default.c:290
+#: ../../../default.c:293
msgid "Confirm registration with e-mail"
msgstr "Conferma registrazioni via e-mail"
-#: ../../../default.c:293
+#: ../../../default.c:296
msgid "Template"
msgstr "Template"
-#: ../../../default.c:299
+#: ../../../default.c:302
msgid "Template Footer"
msgstr "Piede del Template"
-#: ../../../default.c:302
+#: ../../../default.c:305
msgid "Maximum upload size (in MB)"
msgstr "Dimensione massima di upload"
-#: ../../../default.c:305
+#: ../../../default.c:308
msgid "Maximum download time (in Min)"
msgstr "Tempo massimo per il download (in Min)"
-#: ../../../default.c:308
+#: ../../../default.c:311
msgid "0 disables it"
msgstr "0 lo disabilita"
-#: ../../../default.c:311
+#: ../../../default.c:314
msgid "Max num. of file uploaded per upload"
msgstr "Massimo num. di file per cui fare l'upload"
-#: ../../../default.c:314
+#: ../../../default.c:317
msgid "Upload tracking method"
msgstr "Metodo controllo stato upload"
-#: ../../../default.c:317
+#: ../../../default.c:320
msgid "Enable activity logging?"
msgstr "Abilita i log?"
-#: ../../../default.c:320
+#: ../../../default.c:323
msgid "Database logging level"
msgstr "Livello log su database"
-#: ../../../default.c:323
+#: ../../../default.c:326
msgid "Syslog logging level"
msgstr "Livello log in Syslog"
-#: ../../../default.c:326
+#: ../../../default.c:329
msgid "Save Changes"
msgstr "Salva Modifiche"
-#: ../../../default.c:329
+#: ../../../default.c:332
msgid "Download config file"
msgstr "Download file di configurazione"
-#: ../../../default.c:332
+#: ../../../default.c:335
msgid "This are the configured settings for a review"
msgstr "Questa è l'attuale configurazione"
-#: ../../../default.c:356
+#: ../../../default.c:359
msgid "Filter"
msgstr "Filtro"
-#: ../../../default.c:359
+#: ../../../default.c:362
msgid "All"
msgstr "Tutti"
-#: ../../../default.c:362
+#: ../../../default.c:365
msgid "Errors"
msgstr "Errori"
-#: ../../../default.c:365
+#: ../../../default.c:368
msgid "Security"
msgstr "Sicurezza"
-#: ../../../default.c:368
+#: ../../../default.c:371
msgid "Warnings"
msgstr "Avvertenze"
-#: ../../../default.c:371
+#: ../../../default.c:374
msgid "Notice"
msgstr "Notifiche"
-#: ../../../default.c:374
+#: ../../../default.c:377
msgid "Info"
msgstr "Info"
-#: ../../../default.c:377
+#: ../../../default.c:380
msgid "Date"
msgstr "Data"
-#: ../../../default.c:380
+#: ../../../default.c:383
msgid "Type"
msgstr "Tipo"
-#: ../../../default.c:383
-#: ../../../default.c:656
+#: ../../../default.c:386
+#: ../../../default.c:659
msgid "User"
msgstr "Utente"
-#: ../../../default.c:386
-#: ../../../default.c:569
-#: ../../../default.c:590
+#: ../../../default.c:389
+#: ../../../default.c:572
+#: ../../../default.c:593
msgid "Module"
msgstr "Modulo"
-#: ../../../default.c:389
-#: ../../../default.c:572
-#: ../../../default.c:593
+#: ../../../default.c:392
+#: ../../../default.c:575
+#: ../../../default.c:596
msgid "Action"
msgstr "Azione"
-#: ../../../default.c:392
+#: ../../../default.c:395
msgid "Real Action"
msgstr "Azione Reale"
-#: ../../../default.c:398
+#: ../../../default.c:401
msgid "Result"
msgstr "Risultato"
-#: ../../../default.c:401
+#: ../../../default.c:404
msgid "Additional Info"
msgstr "Info agg."
-#: ../../../default.c:404
+#: ../../../default.c:407
msgid "Maintenence"
msgstr "Manutenzione"
-#: ../../../default.c:407
+#: ../../../default.c:410
msgid "This options let you delete files based on some options."
msgstr "Questa sezione permette di eliminare i file in base a dei criteri."
-#: ../../../default.c:410
+#: ../../../default.c:413
msgid "Please select one or more criteria for file deletion"
msgstr "Seleziona uno o più criteri per l'eliminazione"
-#: ../../../default.c:413
+#: ../../../default.c:416
msgid "Delete files older than"
msgstr "Elimina file più vecchi di"
-#: ../../../default.c:416
+#: ../../../default.c:419
msgid "days"
msgstr "giorni"
-#: ../../../default.c:419
+#: ../../../default.c:422
msgid "Which user name is"
msgstr "Dove l'utente è"
-#: ../../../default.c:422
+#: ../../../default.c:425
msgid "Which upload day is"
msgstr "Dove il giorno di upload è"
-#: ../../../default.c:425
+#: ../../../default.c:428
msgid "Which size is bigger than"
msgstr "Dove la dimensione è maggiore di"
-#: ../../../default.c:428
-#: ../../../default.c:716
-#: ../../../default.c:728
+#: ../../../default.c:431
+#: ../../../default.c:719
+#: ../../../default.c:731
msgid "Proceed"
msgstr "Procedi"
-#: ../../../default.c:431
+#: ../../../default.c:434
msgid "Expiration plugin"
msgstr "Plugin di Scadenza"
-#: ../../../default.c:434
+#: ../../../default.c:437
msgid "To delete files marked as expired by the expire plugin press the \"Delete expired\" button."
msgstr "Per eliminare i file scaduti dall'expire plugin clicca su \"Elimina scaduti\"."
-#: ../../../default.c:437
+#: ../../../default.c:440
msgid "Delete expired"
msgstr "Elimina scaduti"
-#: ../../../default.c:440
+#: ../../../default.c:443
msgid "Are you sure you want to delete the selected users?"
msgstr "Sei sicuro di voler eliminare gli utenti selezionati?"
-#: ../../../default.c:443
+#: ../../../default.c:446
msgid "Are you sure you want to delete the selected user?"
msgstr "Sei sicuro di voler eliminare l'utente selezionato?"
-#: ../../../default.c:449
-#: ../../../default.c:536
+#: ../../../default.c:452
+#: ../../../default.c:539
msgid "Plugins"
msgstr "Plugin"
-#: ../../../default.c:452
-#: ../../../default.c:539
+#: ../../../default.c:455
+#: ../../../default.c:542
msgid "Files"
msgstr "File"
-#: ../../../default.c:455
-#: ../../../default.c:542
+#: ../../../default.c:458
+#: ../../../default.c:545
msgid "Users"
msgstr "Utenti"
-#: ../../../default.c:458
-#: ../../../default.c:545
+#: ../../../default.c:461
+#: ../../../default.c:548
msgid "Groups"
msgstr "Gruppi"
-#: ../../../default.c:461
-#: ../../../default.c:548
+#: ../../../default.c:464
+#: ../../../default.c:551
msgid "Rights"
msgstr "Permessi"
-#: ../../../default.c:464
-#: ../../../default.c:551
+#: ../../../default.c:467
+#: ../../../default.c:554
msgid "Languages"
msgstr "Lingua"
-#: ../../../default.c:467
+#: ../../../default.c:470
msgid "Banned"
msgstr "Bloccato"
-#: ../../../default.c:470
+#: ../../../default.c:473
msgid "Logs"
msgstr "Log"
-#: ../../../default.c:473
+#: ../../../default.c:476
msgid "Deletion Result"
msgstr "Risultato eliminazione"
-#: ../../../default.c:476
+#: ../../../default.c:479
msgid "The following files have been deleted."
msgstr "I seguenti file sono stati eliminati."
-#: ../../../default.c:479
+#: ../../../default.c:482
msgid "The following files will be deleted, proceed?"
msgstr "I seguenti file saranno eliminati, procedere?"
-#: ../../../default.c:482
+#: ../../../default.c:485
msgid "Yes, delete all"
msgstr "Si, eliminali tutti"
-#: ../../../default.c:485
+#: ../../../default.c:488
msgid "No files matched the criteria"
msgstr "Nessun file trovato"
-#: ../../../default.c:488
+#: ../../../default.c:491
msgid "Back to Maintenance"
msgstr "Torna alla Manutenzione"
-#: ../../../default.c:515
+#: ../../../default.c:518
msgid "Are you sure you want to delete the selected groups?"
msgstr "Sei sicuro di voler eliminare i gruppi selezionati?"
-#: ../../../default.c:518
+#: ../../../default.c:521
msgid "Are you sure you want to delete the selected group?"
msgstr "Sei sicuro di voler eliminare il gruppo selezionato?"
-#: ../../../default.c:521
+#: ../../../default.c:524
msgid "Group Name"
msgstr "Nome Gruppo"
-#: ../../../default.c:530
+#: ../../../default.c:533
msgid "Here you can administer"
msgstr "In questa sezione puoi amministrare"
-#: ../../../default.c:554
+#: ../../../default.c:557
msgid "Banned IPs"
msgstr "IP bloccati"
-#: ../../../default.c:557
+#: ../../../default.c:560
msgid "Logs / Statistics"
msgstr "Log / Statistiche"
-#: ../../../default.c:560
+#: ../../../default.c:563
msgid "PLEASE BE CAREFULL WHEN MODIFING THE RIGHTS!"
msgstr "PREGO FARE ATTENZIONE NELLA MODIFICA DEI PERMESSI!"
-#: ../../../default.c:563
+#: ../../../default.c:566
msgid "Editing rights for group"
msgstr "Modifica permessi per il gruppo"
-#: ../../../default.c:575
+#: ../../../default.c:578
msgid "Right"
msgstr "Permesso"
-#: ../../../default.c:578
+#: ../../../default.c:581
msgid "Resulting ACL"
msgstr "ACL risultante"
-#: ../../../default.c:581
+#: ../../../default.c:584
msgid "From ACL"
msgstr "Da ACL"
-#: ../../../default.c:584
+#: ../../../default.c:587
msgid "default"
msgstr "default"
-#: ../../../default.c:596
+#: ../../../default.c:599
msgid "<< Back"
msgstr "<< Indietro"
-#: ../../../default.c:599
+#: ../../../default.c:602
msgid "Apply changes"
msgstr "Applica modifiche"
-#: ../../../default.c:602
+#: ../../../default.c:605
msgid "Files List"
msgstr "Lista File"
-#: ../../../default.c:605
+#: ../../../default.c:608
msgid "Maintenance"
msgstr "Manutenzione"
-#: ../../../default.c:641
+#: ../../../default.c:644
msgid "Are you sure you want to delete the selected files?"
msgstr "Sei sicuro di voler eliminare i file selezionati?"
-#: ../../../default.c:644
+#: ../../../default.c:647
msgid "Are you sure you want to delete the selected file?"
msgstr "Sei sicuro di voler eliminare il file selezionato?"
-#: ../../../default.c:650
+#: ../../../default.c:653
msgid "Id"
msgstr "Id"
-#: ../../../default.c:662
+#: ../../../default.c:665
msgid "Upload Date"
msgstr "Data"
-#: ../../../default.c:677
+#: ../../../default.c:680
msgid "You requested to remove the following file"
msgstr "Hai richiesto la rimozione del seguente file"
-#: ../../../default.c:680
-#: ../../../default.c:734
-#: ../../../default.c:764
+#: ../../../default.c:683
+#: ../../../default.c:737
+#: ../../../default.c:767
msgid "File description"
msgstr "Descrizione"
-#: ../../../default.c:683
-#: ../../../default.c:740
-#: ../../../default.c:749
+#: ../../../default.c:686
+#: ../../../default.c:743
+#: ../../../default.c:752
msgid "File name"
msgstr "Nome file"
-#: ../../../default.c:686
-#: ../../../default.c:743
-#: ../../../default.c:752
+#: ../../../default.c:689
+#: ../../../default.c:746
+#: ../../../default.c:755
msgid "File size"
msgstr "Dimensione"
-#: ../../../default.c:689
-#: ../../../default.c:737
-#: ../../../default.c:767
+#: ../../../default.c:692
+#: ../../../default.c:740
+#: ../../../default.c:770
msgid "Uploaded on"
msgstr "Caricato il"
-#: ../../../default.c:692
+#: ../../../default.c:695
msgid "Confirm removal"
msgstr "Conferma rimozione"
-#: ../../../default.c:695
+#: ../../../default.c:698
msgid "Download link"
msgstr "Link per lo scaricamento"
-#: ../../../default.c:698
+#: ../../../default.c:701
msgid "Remove link"
msgstr "Link per la rimozione"
-#: ../../../default.c:701
+#: ../../../default.c:704
msgid "Upload a new file"
msgstr "Carica un nuovo file"
-#: ../../../default.c:704
+#: ../../../default.c:707
msgid "Uploading"
msgstr "Caricamento"
-#: ../../../default.c:707
+#: ../../../default.c:710
msgid "please wait ..."
msgstr "attendere prego ..."
-#: ../../../default.c:710
+#: ../../../default.c:713
msgid "Please enter the File Information requested"
msgstr "Prego inserire le informazioni sul File"
-#: ../../../default.c:713
+#: ../../../default.c:716
msgid "File code"
msgstr "Codice file"
-#: ../../../default.c:719
+#: ../../../default.c:722
msgid "Select the file to be uploaded"
msgstr "Seleziona il file da caricare"
-#: ../../../default.c:722
+#: ../../../default.c:725
msgid "Maximum allowed upload size"
msgstr "Dimensione massima di upload"
-#: ../../../default.c:725
+#: ../../../default.c:728
msgid "Upload"
msgstr "Carica"
-#: ../../../default.c:731
+#: ../../../default.c:734
msgid "You can now proceed downloading the file"
msgstr "Puoi ora procedere allo scaricamento del file"
-#: ../../../default.c:746
+#: ../../../default.c:749
msgid "Download file"
msgstr "Scarica file"
-#: ../../../default.c:758
+#: ../../../default.c:761
msgid "Complete upload"
msgstr "Completa caricamento"
-#: ../../../default.c:761
+#: ../../../default.c:764
msgid "FILE HAS BEEN SUCCESSFULLY REMOVED"
msgstr "IL FILE E' STATO RIMOSSO CON SUCCESSO"
-#: ../../../default.c:788
-#: ../../../default.c:803
+#: ../../../default.c:791
+#: ../../../default.c:806
msgid "Dear "
msgstr "Egregio"
-#: ../../../default.c:791
-#: ../../../default.c:806
+#: ../../../default.c:794
+#: ../../../default.c:809
msgid "This e-mail message is sent to you to confirm your account registration has a valid e-mail address."
msgstr "Questo messaggio ti è stato inviato per confermare che il tuo account abbia un indirizzo e-mail valido"
-#: ../../../default.c:794
-#: ../../../default.c:809
+#: ../../../default.c:797
+#: ../../../default.c:812
msgid "Open the following link in a browser to confirm your account."
msgstr "Apri il seguente indirizzo in un browser per confermare il tuo account."
-#: ../../../default.c:797
-#: ../../../default.c:812
+#: ../../../default.c:800
+#: ../../../default.c:815
msgid "Best regards"
msgstr "Cordiali saluti"
-#: ../../../default.c:818
+#: ../../../default.c:821
msgid "User login"
msgstr "Login utente"
-#: ../../../default.c:821
+#: ../../../default.c:824
msgid "User name"
msgstr "Nome Utente"
-#: ../../../default.c:827
+#: ../../../default.c:830
msgid "Login"
msgstr "Accedi"
-#: ../../../default.c:830
+#: ../../../default.c:833
msgid "You don't have an account?"
msgstr "Non possiedi un account?"
-#: ../../../default.c:833
+#: ../../../default.c:836
msgid "Register here"
msgstr "Registrati qui"
-#: ../../../default.c:836
+#: ../../../default.c:839
msgid "or you can"
msgstr "oppure puoi"
-#: ../../../default.c:839
+#: ../../../default.c:842
msgid "Login here"
msgstr "Accedere qui"
-#: ../../../default.c:851
+#: ../../../default.c:854
msgid "Language"
msgstr "Lingua"
-#: ../../../default.c:854
+#: ../../../default.c:857
msgid "Change"
msgstr "Modifica"
-#: ../../../default.c:857
+#: ../../../default.c:860
msgid "Registration succeeded"
msgstr "Registrazione avvenuta con successo"
-#: ../../../default.c:860
+#: ../../../default.c:863
msgid "An e-mail has been sent for the account activation"
msgstr "Un'email ti è stata inviata per confermare l'attivazione del tuo account"
-#: ../../../default.c:863
+#: ../../../default.c:866
msgid "Please follow the e-mail instructions to activate your account."
msgstr "Segui le istruzioni dell'e-mail per attivare il tuo account."
-#: ../../../default.c:866
+#: ../../../default.c:869
msgid "back to home"
msgstr "torna alla pagina principale"
-#: ../../../default.c:881
+#: ../../../default.c:884
msgid "Old password"
msgstr "Vecchia Password"
-#: ../../../default.c:884
+#: ../../../default.c:887
msgid "New password"
msgstr "Nuova Password"
-#: ../../../default.c:887
+#: ../../../default.c:890
msgid "Retype password"
msgstr "Reinserisci password"
-#: ../../../default.c:890
+#: ../../../default.c:893
msgid "Cancel"
msgstr "Annulla"
-#: ../../../default.c:896
+#: ../../../default.c:899
msgid "Your account registration has been confirmed."
msgstr "La registrazione del tuo account ha avuto successo."
-#: ../../../default.c:899...
[truncated message content] |
|
From: <ts...@us...> - 2008-12-12 16:41:12
|
Revision: 201
http://openupload.svn.sourceforge.net/openupload/?rev=201&view=rev
Author: tsdogs
Date: 2008-12-12 16:41:06 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
update release doc
Modified Paths:
--------------
trunk/README
trunk/index.php
trunk/www/index.php
trunk/www/setup.inc.php
Modified: trunk/README
===================================================================
--- trunk/README 2008-12-12 16:03:29 UTC (rev 200)
+++ trunk/README 2008-12-12 16:41:06 UTC (rev 201)
@@ -41,22 +41,21 @@
There is a mailing list which can be used to report bugs and feature requests.
(see web site for detail)
I'd really apreciate any feedback.
- As the project is in it's early stages the use of Track might be too much.
- Maybe in the future...
+ The traker is also a good place to report bugs.
Ho, and would really love to have somebody else work on the project.
TRANSLATIONS:
- Right now the program is only translated to Italian (sorry I only know Italian and Engligh)
+ Right now the program is only translated to Italian and French
Translating isn't that hard (at least the default template)
- I have implemented 2 tranlsation modules, but I probably plan to have a tool which converts from
- one to the other.
+ I have implemented 2 tranlsation modules, but there is a tool which converts from
+ one to the other (from gettext to php).
Right now you can choose to translate with a php array, or use gettext tools (like poedit), to
- translate the app to your language.
+ translate the app to your language. Gettext tools are much easier to use.
It's divided in 2 parts. 1 is for the application, and 1 is for the template.
They are located in locale/* for the application and templates/default/locale for the 2nd.
- Once your translation is ready please send it to me or the ML.
+ Once your translation is ready please send it to me or on the ML.
RESTRICTIONS:
Modified: trunk/index.php
===================================================================
--- trunk/index.php 2008-12-12 16:03:29 UTC (rev 200)
+++ trunk/index.php 2008-12-12 16:41:06 UTC (rev 201)
@@ -27,7 +27,7 @@
* @copyright 2008 Alessandro Briosi
* @author Alessandro Briosi <tsdogs at briosix dot org>
* @package OpenUpload
- * @version 0.3
+ * @version 0.4
*/
define('__NOT_MAIN_SCRIPT',true);
require_once('www/index.php');
Modified: trunk/www/index.php
===================================================================
--- trunk/www/index.php 2008-12-12 16:03:29 UTC (rev 200)
+++ trunk/www/index.php 2008-12-12 16:41:06 UTC (rev 201)
@@ -27,7 +27,7 @@
* @copyright 2008 Alessandro Briosi
* @author Alessandro Briosi <tsdogs at briosix dot org>
* @package OpenUpload
- * @version 0.3
+ * @version 0.4
*/
define ('__VALID_CALLING_SCRIPT',true);
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-12-12 16:03:29 UTC (rev 200)
+++ trunk/www/setup.inc.php 2008-12-12 16:41:06 UTC (rev 201)
@@ -239,6 +239,7 @@
'plugin_options' => array (
array ( 'id' => '1', 'plugin' => 'mimetypes', 'group_name' => '%5', 'name' => 'message', 'value' => 'Pdf, Jpeg'),
array ( 'id' => '2', 'plugin' => 'mimetypes', 'group_name' => '%5', 'name' => 'allowed', 'value' => 'application/pdf'."\n".'image/jpeg'),
+ array ( 'id' => '3', 'plugin' => 'expire', 'group_name' => '*', 'name' => 'days', 'value' => '30'),
),
),
'mode_1' => array (
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-01-15 11:17:37
|
Revision: 217
http://openupload.svn.sourceforge.net/openupload/?rev=217&view=rev
Author: tsdogs
Date: 2009-01-15 11:17:30 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
Add German Translation (Stefan Koshold)
Modified Paths:
--------------
trunk/sql/mysql/2_base.sql
trunk/sql/pgsql/2_base.sql
trunk/sql/txt/langs.txt
trunk/templates/default/modules/admin/langs.tpl
trunk/templates/default/modules/admin/users.tpl
trunk/www/setup.inc.php
Added Paths:
-----------
trunk/locale/de/
trunk/locale/de/LC_MESSAGES/
trunk/locale/de/LC_MESSAGES/openupload.mo
trunk/locale/de/LC_MESSAGES/openupload.po
trunk/locale/de.inc.php
trunk/templates/default/locale/de/
trunk/templates/default/locale/de/LC_MESSAGES/
trunk/templates/default/locale/de/LC_MESSAGES/template.mo
trunk/templates/default/locale/de/LC_MESSAGES/template.po
trunk/templates/default/locale/de.inc.php
Added: trunk/locale/de/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Property changes on: trunk/locale/de/LC_MESSAGES/openupload.mo
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/locale/de/LC_MESSAGES/openupload.po
===================================================================
--- trunk/locale/de/LC_MESSAGES/openupload.po (rev 0)
+++ trunk/locale/de/LC_MESSAGES/openupload.po 2009-01-15 11:17:30 UTC (rev 217)
@@ -0,0 +1,384 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenUpload\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-12-12 16:47+0100\n"
+"PO-Revision-Date: 2009-01-15 11:58+0100\n"
+"Last-Translator: Alessandro Briosi <ts...@br...>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-KeywordsList: tr\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-Language: German\n"
+"X-Poedit-SearchPath-0: ../../../lib\n"
+"X-Poedit-SearchPath-1: ../../../plugins\n"
+
+#: ../../../lib/user.inc.php:89
+msgid "Login incorrect!"
+msgstr "Login fehlerhaft!"
+
+#: ../../../lib/main.inc.php:239
+msgid "plugin include file not found: %1"
+msgstr "Plugin-Includedatei nicht gefunden: %1"
+
+#: ../../../lib/main.inc.php:431
+msgid "IP Banned"
+msgstr "IP verboten"
+
+#: ../../../lib/main.inc.php:459
+msgid "THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"
+msgstr "SIE HABEN KEINEN ZUGRIFF. BITTE VERSUCHEN SIE EINE ERLAUBTE OPTION!"
+
+#: ../../../lib/modules/db/txt.inc.php:121
+msgid "ERROR: database folder not found!"
+msgstr "FEHLER: Das Datenbankverzeichnis wurde nicht gefunden!"
+
+#: ../../../lib/modules/db/txt.inc.php:127
+msgid "ERROR: Could not create folder for %1 table!"
+msgstr "FEHLER: Das Verzeichnis für Tabelle %1 konnte nicht erstellt werden!"
+
+#: ../../../lib/modules/db/txt.inc.php:138
+msgid "ERROR: Could not create file for %1 table!"
+msgstr "FEHLER: Die Datei für Tabelle %1 konnten nicht erstellt werden!"
+
+#: ../../../lib/modules/db/txt.inc.php:245
+msgid "Unsupported query criteria %1"
+msgstr "Nicht unterstütztes Abfragekriterium %1"
+
+#: ../../../lib/modules/default/auth.inc.php:27
+#: ../../../lib/modules/default/auth.inc.php:40
+msgid "Login"
+msgstr "Anmelden"
+
+#: ../../../lib/modules/default/auth.inc.php:30
+msgid "User registration"
+msgstr "Benutzerregistrierung"
+
+#: ../../../lib/modules/default/auth.inc.php:33
+msgid "User options"
+msgstr "Benutzeroptionen"
+
+#: ../../../lib/modules/default/auth.inc.php:43
+msgid "Preferences"
+msgstr "Einstellungen"
+
+#: ../../../lib/modules/default/auth.inc.php:44
+msgid "Logout"
+msgstr "Abmelden"
+
+#: ../../../lib/modules/default/auth.inc.php:93
+#: ../../../lib/modules/default/auth.inc.php:116
+#: ../../../lib/modules/default/auth.inc.php:201
+msgid "Registration is not supported by Auth Module"
+msgstr "Registrierung wird vom Authentifizierungsmodul nicht unterstützt"
+
+#: ../../../lib/modules/default/auth.inc.php:124
+msgid "Username already taken, choose a new value"
+msgstr "Der Benutzername wird schon verwendet. Bitte wählen Sie einen anderen Namen"
+
+#: ../../../lib/modules/default/auth.inc.php:128
+msgid "Login name must be at least 5 characters long!"
+msgstr "Der Loginname muss mindestens 5 Zeichen umfassen!"
+
+#: ../../../lib/modules/default/auth.inc.php:132
+msgid "Login name contains an invalid character. Valid vharacters are %1"
+msgstr "Der Loginname enthält eine ungültiges Zeichen. Die gültigen Zeichen sind %1"
+
+#: ../../../lib/modules/default/auth.inc.php:136
+msgid "Please insert Full Name"
+msgstr "Bitte den kompletten Namen eingeben!"
+
+#: ../../../lib/modules/default/auth.inc.php:140
+msgid "Please insert a valid e-mail!"
+msgstr "Bitte fügen Sie eine gültige Emailadresse ein!"
+
+#: ../../../lib/modules/default/auth.inc.php:144
+msgid "Password must be at least 5 characters long!"
+msgstr "Das Passwort muss mindestens 5 Zeichen enthalten!"
+
+#: ../../../lib/modules/default/auth.inc.php:148
+msgid "Passwords do not match! please retype."
+msgstr "Die Passwörter passen nicht! Bitte erneut eingeben."
+
+#: ../../../lib/modules/default/auth.inc.php:170
+msgid "[%1] User registration confirmation e-mail"
+msgstr "[%1] Bestätigungsemail für die Benutzerregistrierung"
+
+#: ../../../lib/modules/default/auth.inc.php:184
+msgid "Registration completed successfully. Have fun!"
+msgstr "Registrierung abgeschlossen. Viel Spaß!"
+
+#: ../../../lib/modules/default/auth.inc.php:221
+#: ../../../lib/modules/default/auth.inc.php:233
+msgid "User profile change not supported by Auth Module"
+msgstr "Benutzerprofil-Änderung wird vom Authentifizierungsmodul nicht unterstützt"
+
+#: ../../../lib/modules/default/auth.inc.php:240
+msgid "Full Name cannot be empty!"
+msgstr "Der komplette Name darf nicht leer sein!"
+
+#: ../../../lib/modules/default/auth.inc.php:245
+msgid "Please enter a valid e-mail address!"
+msgstr "Bitte geben Sie eine gültige Emailadresse ein!"
+
+#: ../../../lib/modules/default/auth.inc.php:254
+msgid "Password must be at least 5 charaters long!"
+msgstr "Das Passwort muss mindestens 5 Zeichen enthalten!"
+
+#: ../../../lib/modules/default/auth.inc.php:257
+msgid "Old password is wrong!"
+msgstr "Das alte Passwort ist falsch!"
+
+#: ../../../lib/modules/default/auth.inc.php:260
+msgid "New passwords do not match!"
+msgstr "Die neuen Passwörter passen nicht!"
+
+#: ../../../lib/modules/default/auth.inc.php:263
+msgid "Password has been changed!"
+msgstr "Das Passwort wurde geändert!"
+
+#: ../../../lib/modules/default/files.inc.php:32
+msgid "File upload"
+msgstr "Datei hochladen"
+
+#: ../../../lib/modules/default/files.inc.php:35
+msgid "File download"
+msgstr "Datei herunterladen"
+
+#: ../../../lib/modules/default/files.inc.php:38
+msgid "File Removal"
+msgstr "Datei entfernen"
+
+#: ../../../lib/modules/default/files.inc.php:42
+msgid "File Upload"
+msgstr "Datei hochladen"
+
+#: ../../../lib/modules/default/files.inc.php:129
+msgid "Upload failed for Unknown error code: %1"
+msgstr "Das Hochladen ist fehlgeschlagen. Fehlercode: %1"
+
+#: ../../../lib/modules/default/files.inc.php:136
+msgid "Maximum file size exceeded!"
+msgstr "Maximale Dateigröße überschritten!"
+
+#: ../../../lib/modules/default/files.inc.php:301
+msgid "Requested file does not exist!"
+msgstr "Die gewünschte Datei existiert nicht!"
+
+#: ../../../lib/modules/default/files.inc.php:402
+#: ../../../lib/modules/default/files.inc.php:405
+#: ../../../lib/modules/default/files.inc.php:417
+msgid "Wrong file id!"
+msgstr "Falsche Datei-ID!"
+
+#: ../../../lib/modules/default/admin.inc.php:82
+#: ../../../lib/modules/default/admin.inc.php:85
+msgid "Administration"
+msgstr "Administration"
+
+#: ../../../lib/modules/default/admin.inc.php:103
+msgid "User administration not supported by Auth Module"
+msgstr "Benutzeradministration wird vom Authentifizierungsmodul nicht unterstützt"
+
+#: ../../../lib/modules/default/admin.inc.php:234
+#: ../../../lib/modules/default/admin.inc.php:254
+#: ../../../lib/modules/default/admin.inc.php:273
+msgid "Group administration not supported by Auth Module"
+msgstr "Gruppenadministration wird vom Authentifizierungsmodul nicht unterstützt"
+
+#: ../../../lib/modules/default/admin.inc.php:249
+msgid "Please provide a valid group name!"
+msgstr "Bitte geben Sie einen gültigen Gruppennamen ein!"
+
+#: ../../../lib/modules/default/admin.inc.php:306
+msgid "Any group"
+msgstr "Jede Gruppe"
+
+#: ../../../lib/modules/default/admin.inc.php:377
+msgid "ANY"
+msgstr "ALLE"
+
+#: ../../../lib/modules/default/admin.inc.php:380
+#: ../../../lib/modules/default/admin.inc.php:393
+#: ../../../lib/modules/default/admin.inc.php:902
+#: ../../../lib/modules/default/admin.inc.php:929
+msgid "Allow"
+msgstr "Erlauben"
+
+#: ../../../lib/modules/default/admin.inc.php:381
+#: ../../../lib/modules/default/admin.inc.php:397
+#: ../../../lib/modules/default/admin.inc.php:902
+#: ../../../lib/modules/default/admin.inc.php:929
+msgid "Deny"
+msgstr "Verweigern"
+
+#: ../../../lib/modules/default/admin.inc.php:514
+msgid "Specified criteria is not valid!"
+msgstr "Das angegebene Kriterium ist ungültig!"
+
+#: ../../../lib/modules/default/admin.inc.php:524
+msgid "Please specify at least one criteria!"
+msgstr "Bitte geben Sie wenigstens ein Kriterium an!"
+
+#: ../../../lib/modules/default/admin.inc.php:556
+#: ../../../lib/modules/default/admin.inc.php:580
+msgid "Enable"
+msgstr "Aktivieren"
+
+#: ../../../lib/modules/default/admin.inc.php:557
+#: ../../../lib/modules/default/admin.inc.php:581
+msgid "Disable"
+msgstr "Deaktivieren"
+
+#: ../../../lib/modules/default/admin.inc.php:632
+#: ../../../lib/modules/default/admin.inc.php:652
+msgid "Any"
+msgstr "Alle"
+
+#: ../../../lib/modules/default/admin.inc.php:662
+msgid "Options for this group already exsist, please use the edit function!"
+msgstr "Die Optionen exisitieren bereits für diese Gruppe. Bitte benutzen Sie die Editierfunktion!"
+
+#: ../../../lib/modules/default/admin.inc.php:822
+msgid "Configuration sucessfully saved!"
+msgstr "Konfiguration wurde gespeichert!"
+
+#: ../../../lib/modules/default/admin.inc.php:824
+msgid "Configuration file could not be saved, please proceed with the download!"
+msgstr "Die Konfigurationsdatei konnte nicht gesichert werden. Bitte fahren Sie mit dem Download fort!"
+
+#: ../../../lib/modules/default/admin.inc.php:878
+msgid "IP %1 has been banned!"
+msgstr "IP %1 wurde geblockt!"
+
+#: ../../../lib/modules/default/admin.inc.php:882
+#: ../../../lib/modules/default/admin.inc.php:897
+msgid "IP %1 was already in state: %2!"
+msgstr "IP %1 war schon im Zustand: %2!"
+
+#: ../../../lib/modules/default/admin.inc.php:973
+msgid "ID"
+msgstr "ID"
+
+#: ../../../lib/modules/default/admin.inc.php:973
+msgid "Language \"%1\" cannot be empty"
+msgstr "Die Sprache \"%1\" darf nicht leer sein"
+
+#: ../../../lib/modules/default/admin.inc.php:976
+msgid "Language \"%1\" already exists!"
+msgstr "Die Sprache \"%1\" existiert bereits!"
+
+#: ../../../lib/modules/default/admin.inc.php:980
+msgid "Name"
+msgstr "Name"
+
+#: ../../../lib/modules/default/admin.inc.php:980
+#: ../../../lib/modules/default/admin.inc.php:984
+#: ../../../lib/modules/default/admin.inc.php:988
+msgid "Language \"%1\" cannot be empty!"
+msgstr "Die Sprache \"%1\" darf nicht leer sein!"
+
+#: ../../../lib/modules/default/admin.inc.php:984
+msgid "Locale"
+msgstr "Locale"
+
+#: ../../../lib/modules/default/admin.inc.php:988
+msgid "Charset"
+msgstr "Zeichensatz"
+
+#: ../../../lib/modules/auth/ldap.inc.php:24
+msgid "LDAP connection failed!"
+msgstr "FEHLER: LDAP Verbindung ist fehlgeschlagen!"
+
+#: ../../../plugins/mimetypes.inc.php:6
+msgid "Limit the mimetypes a user can upload"
+msgstr "Beschränkung der Dateitypen, die ein Benutzer hochladen darf"
+
+#: ../../../plugins/mimetypes.inc.php:8
+msgid "Allowed mime types"
+msgstr "Erlaubte Dateitypen"
+
+#: ../../../plugins/mimetypes.inc.php:9
+msgid "Types in message"
+msgstr "Dateitypen in der Nachricht"
+
+#: ../../../plugins/mimetypes.inc.php:22
+#: ../../../plugins/mimetypes.inc.php:39
+msgid "WARNING: no mime types defined. Plugin has been disabled!"
+msgstr "WARNUNG: Keine Dateitypen festgelegt. Das Plugin wurde deaktiviert!"
+
+#: ../../../plugins/mimetypes.inc.php:44
+msgid "This file type (%1) is not allowed on this site!"
+msgstr "Dieser Dateityp (%1) ist auf diesem Server nicht zugelassen!"
+
+#: ../../../plugins/captcha.inc.php:7
+msgid "Add captcha protection to file download and user registration"
+msgstr "Captcha-Schutz für Datei hochladen und Benutzerregistrierung hinzufügen"
+
+#: ../../../plugins/captcha.inc.php:40
+#: ../../../plugins/captcha.inc.php:58
+msgid "Wrong captcha code! please try again."
+msgstr "Falscher Captcha code! Bitte versuchen Sie es erneut"
+
+#: ../../../plugins/compress.inc.php:6
+msgid "Compress the uploaded files"
+msgstr "Hochgeladene Dateien komprimieren"
+
+#: ../../../plugins/compress.inc.php:8
+msgid "Command to be executed. One per line."
+msgstr "Auszuführende Befehle. Einer pro Zeile"
+
+#: ../../../plugins/compress.inc.php:9
+msgid "Extensions corresponding to commands."
+msgstr "Extensions passend zu den Befehlen"
+
+#: ../../../plugins/compress.inc.php:10
+msgid "Name of compression commands"
+msgstr "Name des Komprimierbefehls"
+
+#: ../../../plugins/filesize.inc.php:8
+msgid "Limit the maximum size of a uploaded file"
+msgstr "Beschränkung der maximalen Größe einer hochgeladenen Datei"
+
+#: ../../../plugins/filesize.inc.php:10
+msgid "Maximum File Size"
+msgstr "Maximale Dateigröße"
+
+#: ../../../plugins/email.inc.php:30
+msgid "Your e-mail address isn't valid!"
+msgstr "Ihre E-Mailadresse ist ungültig!"
+
+#: ../../../plugins/email.inc.php:40
+msgid "Destination e-mail address isn't valid!"
+msgstr "Empfänger E-Mailadresse ist ungültig!"
+
+#: ../../../plugins/email.inc.php:56
+msgid "Information about your uploaded file: %1"
+msgstr "Information über hochgeladene Datei: %1"
+
+#: ../../../plugins/email.inc.php:60
+msgid "An upload was delivered to you"
+msgstr "Eine Datei wurde für Sie hochgeladen"
+
+#: ../../../plugins/password.inc.php:7
+msgid "Option to add password protection for file download"
+msgstr "Passwortschutz-Option für den Dateidownload"
+
+#: ../../../plugins/password.inc.php:42
+msgid "Wrong password!"
+msgstr "Falsches Passwort!"
+
+#: ../../../plugins/expire.inc.php:6
+msgid "Maximum number of days an upload will be kept on the server."
+msgstr "Anzahl der Tage, die eine hochgeladene Datei auf dem Server verbleibt."
+
+#: ../../../plugins/expire.inc.php:8
+msgid "N. Of Days"
+msgstr "A. der Tage"
+
+#: ../../../plugins/expire.inc.php:21
+msgid "Files will be kept on our server for %1 days"
+msgstr "Dateien werde für %1 Tage auf unserem Server gehalten"
+
Added: trunk/locale/de.inc.php
===================================================================
--- trunk/locale/de.inc.php (rev 0)
+++ trunk/locale/de.inc.php 2009-01-15 11:17:30 UTC (rev 217)
@@ -0,0 +1,88 @@
+<?php
+$tr["Login incorrect!"] = "Login fehlerhaft!";
+$tr["plugin include file not found: %1"] = "Plugin-Includedatei nicht gefunden: %1";
+$tr["IP Banned"] = "IP verboten";
+$tr["THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"] = "SIE HABEN KEINEN ZUGRIFF. BITTE VERSUCHEN SIE EINE ERLAUBTE OPTION!";
+$tr["ERROR: database folder not found!"] = "FEHLER: Das Datenbankverzeichnis wurde nicht gefunden!";
+$tr["ERROR: Could not create folder for %1 table!"] = "FEHLER: Das Verzeichnis für Tabelle %1 konnte nicht erstellt werden!";
+$tr["ERROR: Could not create file for %1 table!"] = "FEHLER: Die Datei für Tabelle %1 konnten nicht erstellt werden!";
+$tr["Unsupported query criteria %1"] = "Nicht unterstütztes Abfragekriterium %1";
+$tr["Login"] = "Anmelden";
+$tr["User registration"] = "Benutzerregistrierung";
+$tr["User options"] = "Benutzeroptionen";
+$tr["Preferences"] = "Einstellungen";
+$tr["Logout"] = "Abmelden";
+$tr["Registration is not supported by Auth Module"] = "Registrierung wird vom Authentifizierungsmodul nicht unterstützt";
+$tr["Username already taken, choose a new value"] = "Der Benutzername wird schon verwendet. Bitte wählen Sie einen anderen Namen";
+$tr["Login name must be at least 5 characters long!"] = "Der Loginname muss mindestens 5 Zeichen umfassen!";
+$tr["Login name contains an invalid character. Valid vharacters are %1"] = "Der Loginname enthält eine ungültiges Zeichen. Die gültigen Zeichen sind %1";
+$tr["Please insert Full Name"] = "Bitte den kompletten Namen eingeben!";
+$tr["Please insert a valid e-mail!"] = "Bitte fügen Sie eine gültige Emailadresse ein!";
+$tr["Password must be at least 5 characters long!"] = "Das Passwort muss mindestens 5 Zeichen enthalten!";
+$tr["Passwords do not match! please retype."] = "Die Passwörter passen nicht! Bitte erneut eingeben.";
+$tr["[%1] User registration confirmation e-mail"] = "[%1] Bestätigungsemail für die Benutzerregistrierung";
+$tr["Registration completed successfully. Have fun!"] = "Registrierung abgeschlossen. Viel Spaß!";
+$tr["User profile change not supported by Auth Module"] = "Benutzerprofil-Änderung wird vom Authentifizierungsmodul nicht unterstützt";
+$tr["Full Name cannot be empty!"] = "Der komplette Name darf nicht leer sein!";
+$tr["Please enter a valid e-mail address!"] = "Bitte geben Sie eine gültige Emailadresse ein!";
+$tr["Password must be at least 5 charaters long!"] = "Das Passwort muss mindestens 5 Zeichen enthalten!";
+$tr["Old password is wrong!"] = "Das alte Passwort ist falsch!";
+$tr["New passwords do not match!"] = "Die neuen Passwörter passen nicht!";
+$tr["Password has been changed!"] = "Das Passwort wurde geändert!";
+$tr["File upload"] = "Datei hochladen";
+$tr["File download"] = "Datei herunterladen";
+$tr["File Removal"] = "Datei entfernen";
+$tr["File Upload"] = "Datei hochladen";
+$tr["Upload failed for Unknown error code: %1"] = "Das Hochladen ist fehlgeschlagen. Fehlercode: %1";
+$tr["Maximum file size exceeded!"] = "Maximale Dateigröße überschritten!";
+$tr["Requested file does not exist!"] = "Die gewünschte Datei existiert nicht!";
+$tr["Wrong file id!"] = "Falsche Datei-ID!";
+$tr["Administration"] = "Administration";
+$tr["User administration not supported by Auth Module"] = "Benutzeradministration wird vom Authentifizierungsmodul nicht unterstützt";
+$tr["Group administration not supported by Auth Module"] = "Gruppenadministration wird vom Authentifizierungsmodul nicht unterstützt";
+$tr["Please provide a valid group name!"] = "Bitte geben Sie einen gültigen Gruppennamen ein!";
+$tr["Any group"] = "Jede Gruppe";
+$tr["ANY"] = "ALLE";
+$tr["Allow"] = "Erlauben";
+$tr["Deny"] = "Verweigern";
+$tr["Specified criteria is not valid!"] = "Das angegebene Kriterium ist ungültig!";
+$tr["Please specify at least one criteria!"] = "Bitte geben Sie wenigstens ein Kriterium an!";
+$tr["Enable"] = "Aktivieren";
+$tr["Disable"] = "Deaktivieren";
+$tr["Any"] = "Alle";
+$tr["Options for this group already exsist, please use the edit function!"] = "Die Optionen exisitieren bereits für diese Gruppe. Bitte benutzen Sie die Editierfunktion!";
+$tr["Configuration sucessfully saved!"] = "Konfiguration wurde gespeichert!";
+$tr["Configuration file could not be saved, please proceed with the download!"] = "Die Konfigurationsdatei konnte nicht gesichert werden. Bitte fahren Sie mit dem Download fort!";
+$tr["IP %1 has been banned!"] = "IP %1 wurde geblockt!";
+$tr["IP %1 was already in state: %2!"] = "IP %1 war schon im Zustand: %2!";
+$tr["ID"] = "ID";
+$tr["Language \"%1\" cannot be empty"] = "Die Sprache \"%1\" darf nicht leer sein";
+$tr["Language \"%1\" already exists!"] = "Die Sprache \"%1\" existiert bereits!";
+$tr["Name"] = "Name";
+$tr["Language \"%1\" cannot be empty!"] = "Die Sprache \"%1\" darf nicht leer sein!";
+$tr["Locale"] = "Locale";
+$tr["Charset"] = "Zeichensatz";
+$tr["LDAP connection failed!"] = "FEHLER: LDAP Verbindung ist fehlgeschlagen!";
+$tr["Limit the mimetypes a user can upload"] = "Beschränkung der Dateitypen, die ein Benutzer hochladen darf";
+$tr["Allowed mime types"] = "Erlaubte Dateitypen";
+$tr["Types in message"] = "Dateitypen in der Nachricht";
+$tr["WARNING: no mime types defined. Plugin has been disabled!"] = "WARNUNG: Keine Dateitypen festgelegt. Das Plugin wurde deaktiviert!";
+$tr["This file type (%1) is not allowed on this site!"] = "Dieser Dateityp (%1) ist auf diesem Server nicht zugelassen!";
+$tr["Add captcha protection to file download and user registration"] = "Captcha-Schutz für Datei hochladen und Benutzerregistrierung hinzufügen";
+$tr["Wrong captcha code! please try again."] = "Falscher Captcha code! Bitte versuchen Sie es erneut";
+$tr["Compress the uploaded files"] = "Hochgeladene Dateien komprimieren";
+$tr["Command to be executed. One per line."] = "Auszuführende Befehle. Einer pro Zeile";
+$tr["Extensions corresponding to commands."] = "Extensions passend zu den Befehlen";
+$tr["Name of compression commands"] = "Name des Komprimierbefehls";
+$tr["Limit the maximum size of a uploaded file"] = "Beschränkung der maximalen Größe einer hochgeladenen Datei";
+$tr["Maximum File Size"] = "Maximale Dateigröße";
+$tr["Your e-mail address isn't valid!"] = "Ihre E-Mailadresse ist ungültig!";
+$tr["Destination e-mail address isn't valid!"] = "Empfänger E-Mailadresse ist ungültig!";
+$tr["Information about your uploaded file: %1"] = "Information über hochgeladene Datei: %1";
+$tr["An upload was delivered to you"] = "Eine Datei wurde für Sie hochgeladen";
+$tr["Option to add password protection for file download"] = "Passwortschutz-Option für den Dateidownload";
+$tr["Wrong password!"] = "Falsches Passwort!";
+$tr["Maximum number of days an upload will be kept on the server."] = "Anzahl der Tage, die eine hochgeladene Datei auf dem Server verbleibt.";
+$tr["N. Of Days"] = "A. der Tage";
+$tr["Files will be kept on our server for %1 days"] = "Dateien werde für %1 Tage auf unserem Server gehalten";
+?>
Modified: trunk/sql/mysql/2_base.sql
===================================================================
--- trunk/sql/mysql/2_base.sql 2009-01-14 18:37:04 UTC (rev 216)
+++ trunk/sql/mysql/2_base.sql 2009-01-15 11:17:30 UTC (rev 217)
@@ -35,6 +35,7 @@
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('en', 'English', 'en_EN', '[en];[en-EN]', 'iso-8559-1', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1);
+INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('de', 'Deutsch', 'de_DE.utf8', '[de];[de-DE]', 'utf8', 1);
--
-- Dump dei dati per la tabella `users`
Modified: trunk/sql/pgsql/2_base.sql
===================================================================
--- trunk/sql/pgsql/2_base.sql 2009-01-14 18:37:04 UTC (rev 216)
+++ trunk/sql/pgsql/2_base.sql 2009-01-15 11:17:30 UTC (rev 217)
@@ -85,6 +85,7 @@
INSERT INTO langs VALUES ('en', 'English', 'en_EN', '[en];[en-EN]', 'iso-8559-1', 1);
INSERT INTO langs VALUES ('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1);
INSERT INTO langs VALUES ('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1);
+INSERT INTO langs VALUES ('de', 'Deutsch', 'de_DE.utf8', '[de];[de-DE]', 'utf8', 1);
--
Modified: trunk/sql/txt/langs.txt
===================================================================
--- trunk/sql/txt/langs.txt 2009-01-14 18:37:04 UTC (rev 216)
+++ trunk/sql/txt/langs.txt 2009-01-15 11:17:30 UTC (rev 217)
@@ -1,4 +1,5 @@
id|name|locale|browser|charset|active
-en|English|en_EN|[en];[en-EN]|iso-8559-1|1
+en|English|en_EN|[en];[en-EN]|utf8|1
it|Italiano|it_IT.utf8|[it];[it-IT]|utf8|1
fr|Français|fr_FR.utf8|[fr];[fr-FR]|utf8|1
+de|Deutsch|de_DE.utf8|[de];[de-DE]|utf8|1
Added: trunk/templates/default/locale/de/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Property changes on: trunk/templates/default/locale/de/LC_MESSAGES/template.mo
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/templates/default/locale/de/LC_MESSAGES/template.po
===================================================================
--- trunk/templates/default/locale/de/LC_MESSAGES/template.po (rev 0)
+++ trunk/templates/default/locale/de/LC_MESSAGES/template.po 2009-01-15 11:17:30 UTC (rev 217)
@@ -0,0 +1,892 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenUpload default template\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-12-12 16:48+0100\n"
+"PO-Revision-Date: 2009-01-15 11:59+0100\n"
+"Last-Translator: Alessandro Briosi <ts...@br...>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: German\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SearchPath-0: ../../..\n"
+
+#: ../../../default.c:2
+msgid "Your IP has been blocked!"
+msgstr "Ihre IP wurde geblockt!"
+
+#: ../../../default.c:5
+msgid "You cannot use this site."
+msgstr "Sie dürfen diese Site nicht benutzen."
+
+#: ../../../default.c:8
+msgid "If you think this is a misconfiguration please send an email to the site owner"
+msgstr "Wenn Sie meinen das dies eine falsche Konfiguration ist, senden Sie bitte eine Email an den Websitebetreiber"
+
+#: ../../../default.c:11
+msgid "Captcha code"
+msgstr "Captcha code"
+
+#: ../../../default.c:14
+#: ../../../default.c:20
+msgid "Reload Image"
+msgstr "Bild neuladen"
+
+#: ../../../default.c:17
+msgid "Please enter the following captcha to proceed for the download"
+msgstr "Bitte geben Sie den folgenden Captcha an um zum Download zu gelangen"
+
+#: ../../../default.c:23
+msgid "Use Captcha"
+msgstr "Captcha benutzen"
+
+#: ../../../default.c:26
+msgid "Compress the files"
+msgstr "Dateien komprimieren"
+
+#: ../../../default.c:29
+msgid "No compression"
+msgstr "Keine Komprimierung"
+
+#: ../../../default.c:32
+msgid "The download is password protected."
+msgstr "Der Download ist Passwort geschützt."
+
+#: ../../../default.c:35
+#: ../../../default.c:47
+#: ../../../default.c:68
+#: ../../../default.c:179
+#: ../../../default.c:620
+#: ../../../default.c:776
+#: ../../../default.c:827
+msgid "Password"
+msgstr "Passwort"
+
+#: ../../../default.c:38
+msgid "Password protect"
+msgstr "Passwort geschützt"
+
+#: ../../../default.c:41
+#: ../../../default.c:62
+msgid "You are receiving this message because someone uploaded a file on our OpenUpload server for you."
+msgstr "Sie erhalten diesen Nachricht, da jemand eine Datei für die Sie auf unseren OpenUpload Server geladen hat."
+
+#: ../../../default.c:44
+#: ../../../default.c:65
+#: ../../../default.c:140
+#: ../../../default.c:149
+#: ../../../default.c:527
+#: ../../../default.c:674
+#: ../../../default.c:758
+msgid "Description"
+msgstr "Beschreibung"
+
+#: ../../../default.c:50
+#: ../../../default.c:71
+msgid "User message"
+msgstr "Benutzernachricht"
+
+#: ../../../default.c:53
+#: ../../../default.c:74
+msgid "To download the file open the following link in a browser"
+msgstr "Um die Datei herunterzuladen, öffnen Sie bitte den folgenden Link in Ihrem Browser"
+
+#: ../../../default.c:56
+#: ../../../default.c:77
+msgid "To remove the file from our server open the following link in a browser"
+msgstr "Um die Datei von unserem Server zu entfernen öffnen Sie bitte den folgenden Link in Ihrem Browser"
+
+#: ../../../default.c:59
+#: ../../../default.c:80
+#: ../../../default.c:803
+#: ../../../default.c:818
+msgid "For complains please send an email to"
+msgstr "Bei Beschwerden senden Sie bitte eine E-mail an"
+
+#: ../../../default.c:83
+#: ../../../default.c:89
+msgid "Send me an e-mail"
+msgstr "Senden Sie mir eine E-Mail"
+
+#: ../../../default.c:86
+msgid "Your e-mail address"
+msgstr "Ihre E-Mailadresse"
+
+#: ../../../default.c:92
+msgid "Send e-mail to"
+msgstr "Sende E-Mail an"
+
+#: ../../../default.c:95
+msgid "Send remove link"
+msgstr "Sende Entfernen Link"
+
+#: ../../../default.c:98
+msgid "e-mail Subject"
+msgstr "E-Mail Betreff"
+
+#: ../../../default.c:101
+msgid "e-mail Message"
+msgstr "E-Mail Nachricht"
+
+#: ../../../default.c:104
+msgid "Only the following mime types are allowed"
+msgstr "Nur die folgenden Dateitypen sind zugelassen"
+
+#: ../../../default.c:107
+msgid "Are you sure you want to delete the selected plugins?"
+msgstr "Sind Sie sicher, dass Sie die ausgewählten Plugins löschen möchten?"
+
+#: ../../../default.c:110
+msgid "Are you sure you want to delete the selected plugin?"
+msgstr "Sind Sie sicher, dass Sie das ausgewählte Plugin löschen möchten?"
+
+#: ../../../default.c:113
+#: ../../../default.c:398
+#: ../../../default.c:506
+msgid "Plugin"
+msgstr "Plugin"
+
+#: ../../../default.c:116
+#: ../../../default.c:191
+#: ../../../default.c:230
+#: ../../../default.c:260
+#: ../../../default.c:509
+#: ../../../default.c:590
+#: ../../../default.c:611
+#: ../../../default.c:632
+msgid "Group"
+msgstr "Gruppe"
+
+#: ../../../default.c:119
+#: ../../../default.c:128
+#: ../../../default.c:215
+#: ../../../default.c:497
+#: ../../../default.c:512
+msgid "Access"
+msgstr "Zugriff"
+
+#: ../../../default.c:122
+#: ../../../default.c:503
+#: ../../../default.c:641
+#: ../../../default.c:677
+msgid "Add"
+msgstr "Hinzufügen"
+
+#: ../../../default.c:125
+#: ../../../default.c:212
+#: ../../../default.c:494
+#: ../../../default.c:662
+msgid "IP"
+msgstr "IP"
+
+#: ../../../default.c:131
+#: ../../../default.c:218
+#: ../../../default.c:500
+msgid "Priority"
+msgstr "Priorität"
+
+#: ../../../default.c:134
+#: ../../../default.c:143
+#: ../../../default.c:200
+#: ../../../default.c:233
+#: ../../../default.c:254
+#: ../../../default.c:356
+#: ../../../default.c:515
+#: ../../../default.c:614
+#: ../../../default.c:896
+msgid "Confirm"
+msgstr "Bestätigen"
+
+#: ../../../default.c:137
+#: ../../../default.c:239
+#: ../../../default.c:341
+#: ../....
[truncated message content] |
|
From: <ts...@us...> - 2009-01-15 12:56:14
|
Revision: 218
http://openupload.svn.sourceforge.net/openupload/?rev=218&view=rev
Author: tsdogs
Date: 2009-01-15 11:55:11 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
update for not supported gettext locales on the system
Modified Paths:
--------------
trunk/lib/modules/tr/gettext.inc.php
trunk/locale/de/LC_MESSAGES/openupload.mo
trunk/locale/de/LC_MESSAGES/openupload.po
trunk/templates/default/locale/de/LC_MESSAGES/template.mo
trunk/templates/default/locale/de/LC_MESSAGES/template.po
Modified: trunk/lib/modules/tr/gettext.inc.php
===================================================================
--- trunk/lib/modules/tr/gettext.inc.php 2009-01-15 11:17:30 UTC (rev 217)
+++ trunk/lib/modules/tr/gettext.inc.php 2009-01-15 11:55:11 UTC (rev 218)
@@ -13,11 +13,13 @@
putenv("LANG=".$lang['locale']);
bindtextdomain('openupload',app()->config['INSTALL_ROOT'].'/locale');
if (is_dir(app()->config['INSTALL_ROOT'].'/templates/'.app()->config['site']['template'].'/locale')) {
- bindtextdomain('template',app()->config['INSTALL_ROOT'].'/templates/'.app()->config['site']['template'].'/locale');
+ $r = bindtextdomain('template',app()->config['INSTALL_ROOT'].'/templates/'.app()->config['site']['template'].'/locale');
} else {
- bindtextdomain('template',app()->config['INSTALL_ROOT'].'/templates/default/locale');
+ $r = bindtextdomain('template',app()->config['INSTALL_ROOT'].'/templates/default/locale');
}
- setlocale(LC_ALL,$lang['locale']);
+ $r = setlocale(LC_ALL,$lang['locale']);
+ if ($r != $lang['locale'])
+ app()->message('WARNING: locale '.$lang['locale'].' not supported by your system.');
/* setup page encoding */
if (isset($lang['charset']))
header('Content-Type: text/html; charset='.$lang['charset']);
Modified: trunk/locale/de/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/de/LC_MESSAGES/openupload.po
===================================================================
--- trunk/locale/de/LC_MESSAGES/openupload.po 2009-01-15 11:17:30 UTC (rev 217)
+++ trunk/locale/de/LC_MESSAGES/openupload.po 2009-01-15 11:55:11 UTC (rev 218)
@@ -3,8 +3,8 @@
"Project-Id-Version: OpenUpload\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-12-12 16:47+0100\n"
-"PO-Revision-Date: 2009-01-15 11:58+0100\n"
-"Last-Translator: Alessandro Briosi <ts...@br...>\n"
+"PO-Revision-Date: 2009-01-15 12:21+0100\n"
+"Last-Translator: Stefan Koshold <ko...@un...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Modified: trunk/templates/default/locale/de/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Modified: trunk/templates/default/locale/de/LC_MESSAGES/template.po
===================================================================
--- trunk/templates/default/locale/de/LC_MESSAGES/template.po 2009-01-15 11:17:30 UTC (rev 217)
+++ trunk/templates/default/locale/de/LC_MESSAGES/template.po 2009-01-15 11:55:11 UTC (rev 218)
@@ -3,8 +3,8 @@
"Project-Id-Version: OpenUpload default template\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-12-12 16:48+0100\n"
-"PO-Revision-Date: 2009-01-15 11:59+0100\n"
-"Last-Translator: Alessandro Briosi <ts...@br...>\n"
+"PO-Revision-Date: 2009-01-15 12:26+0100\n"
+"Last-Translator: Stefan Koshold <ko...@un...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-01-15 12:56:36
|
Revision: 219
http://openupload.svn.sourceforge.net/openupload/?rev=219&view=rev
Author: tsdogs
Date: 2009-01-15 12:12:21 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
Add option to not send password in the notification e-mail.
Modified Paths:
--------------
trunk/plugins/password.inc.php
trunk/templates/default/plugins/password/uploadOptions.tpl
Modified: trunk/plugins/password.inc.php
===================================================================
--- trunk/plugins/password.inc.php 2009-01-15 11:55:11 UTC (rev 218)
+++ trunk/plugins/password.inc.php 2009-01-15 12:12:21 UTC (rev 219)
@@ -17,8 +17,12 @@
global $_POST;
if (isset($_POST['protect']) and $acl=='enable') {
- $finfo[0]['plainpassword'] = $_POST['protect'];
$finfo[0]['password'] = crypt($_POST['protect']);
+ if (isset($_POST['protect_notify'])) { /* want the e-mail to include the password? */
+ $finfo[0]['plainpassword'] = $_POST['protect'];
+ } else {
+ $finfo[0]['plainpassword']='';
+ }
} else {
$finfo[0]['password'] = crypt("");
$finfo[0]['plainpassword'] = "";
Modified: trunk/templates/default/plugins/password/uploadOptions.tpl
===================================================================
--- trunk/templates/default/plugins/password/uploadOptions.tpl 2009-01-15 11:55:11 UTC (rev 218)
+++ trunk/templates/default/plugins/password/uploadOptions.tpl 2009-01-15 12:12:21 UTC (rev 219)
@@ -1 +1,2 @@
-<tr><td>{tr}Password protect{/tr}:</td><td><input type="password" size="30" name="protect"></td></tr>
\ No newline at end of file
+<tr><td>{tr}Password protect{/tr}:</td><td><input type="password" size="30" name="protect"></td></tr>
+<tr><td>{tr}Send password in e-mail{/tr}:</td><td><input type="checkbox" value="1" name="protect_notify" checked></td></tr>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-02-06 19:25:08
|
Revision: 243
http://openupload.svn.sourceforge.net/openupload/?rev=243&view=rev
Author: tsdogs
Date: 2009-02-06 19:25:04 +0000 (Fri, 06 Feb 2009)
Log Message:
-----------
Add preliminary Personal file listing
Modified Paths:
--------------
trunk/plugins/captcha.inc.php
trunk/plugins/email.inc.php
Added Paths:
-----------
trunk/templates/default/plugins/captcha/fileDetail.tpl
trunk/templates/default/plugins/email/fileDetail.tpl
Modified: trunk/plugins/captcha.inc.php
===================================================================
--- trunk/plugins/captcha.inc.php 2009-02-06 19:23:34 UTC (rev 242)
+++ trunk/plugins/captcha.inc.php 2009-02-06 19:25:04 UTC (rev 243)
@@ -58,6 +58,12 @@
if (!$result) app()->error(tr('Wrong captcha code! please try again.'));
return $result;
}
+
+ function fileDetail(&$finfo,$acl) {
+ if ($finfo[0]['captcha']!='')
+ $this->display('fileDetail');
+ return true;
+ }
}
?>
\ No newline at end of file
Modified: trunk/plugins/email.inc.php
===================================================================
--- trunk/plugins/email.inc.php 2009-02-06 19:23:34 UTC (rev 242)
+++ trunk/plugins/email.inc.php 2009-02-06 19:25:04 UTC (rev 243)
@@ -67,4 +67,34 @@
$finfo[0]['emailto']=='';
return true;
}
+
+ function fileDetail(&$finfo,$acl) {
+ global $_GET;
+ if ($acl!='enable') return true;
+
+ if (isset($_GET['emailme'])) {
+ app()->tpl->assign('remove','yes');
+ $subject = app()->config['site']['title'].': '.tr("Information about your uploaded file: %1",$finfo[0]['description']);
+ app()->tpl->assign('finfo',$finfo);
+ sendMail(app()->config['site']['email'],'noreply',$_SESSION['user']['email'],$subject,'plugins/email/notify');
+ app()->message(tr('E-mail was sent!'));
+ redirect('?action=l&step=2&id='.$_GET['id']);
+ return false;
+ } else if (isset($_GET['sendemail']) and isset($_GET['emailto']) and ($_GET['emailto']!='')) {
+ $subject = $_GET['subject']!=''?$_GET['subject']:tr("An upload was delivered to you");
+ $subject = app()->config['site']['title'].': '.$subject;
+ $finfo[0]['subject']=$_GET['subject'];
+ $finfo[0]['message']=$_GET['message'];
+ app()->tpl->assign('finfo',$finfo);
+ app()->tpl->assign('remove',$_GET['removelink']);
+ sendMail($_SESSION['user']['email'],$_SESSION['user']['email'],$_GET['emailto'],$subject,'plugins/email/notify');
+ app()->message(tr('E-mail was sent to: %1!',$_GET['emailto']));
+ redirect('?action=l&step=2&id='.$_GET['id']);
+ return false;
+ } else {
+ app()->tpl->assign('finfo',$finfo);
+ $this->display('fileDetail');
+ return true;
+ }
+ }
}
\ No newline at end of file
Added: trunk/templates/default/plugins/captcha/fileDetail.tpl
===================================================================
--- trunk/templates/default/plugins/captcha/fileDetail.tpl (rev 0)
+++ trunk/templates/default/plugins/captcha/fileDetail.tpl 2009-02-06 19:25:04 UTC (rev 243)
@@ -0,0 +1 @@
+<tr><td>{tr}Protection{/tr}:</td><td><b>{tr}Captcha{/tr}</b></td></tr>
\ No newline at end of file
Added: trunk/templates/default/plugins/email/fileDetail.tpl
===================================================================
--- trunk/templates/default/plugins/email/fileDetail.tpl (rev 0)
+++ trunk/templates/default/plugins/email/fileDetail.tpl 2009-02-06 19:25:04 UTC (rev 243)
@@ -0,0 +1,15 @@
+{if isset($user.email)}
+<form method="GET" action="{$script}">
+<tr><td>{tr}Send me an e-mail{/tr}:</td><td>
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="{$step}">
+<input type="hidden" name="id" value="{$finfo[0].id}">
+<input type="submit" name="emailme" value="{tr}Send{/tr}">
+</td></tr>
+{/if}
+<tr><td>{tr}Send e-mail to{/tr}:</td><td><input type="text" size="30" value="{$finfo.emailto}" name="emailto"></td></tr>
+<tr><td>{tr}Send remove link{/tr}:</td><td><input type="checkbox" name="removelink" value="yes"></td></tr>
+<tr><td>{tr}e-mail Subject{/tr}:</td><td><input type="text" size="30" value="{$finfo.subject}" name="subject"></td></tr>
+<tr><td valign="top">{tr}e-mail Message{/tr}:</td><td><textarea cols="30" rows="5" name="message">{$finfo.message}</textarea></td></tr>
+<tr><td> </td><td><input type="submit" name="sendemail" value="{tr}Send{/tr}"></td></tr>
+</form>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-02-07 10:13:49
|
Revision: 248
http://openupload.svn.sourceforge.net/openupload/?rev=248&view=rev
Author: tsdogs
Date: 2009-02-07 10:13:46 +0000 (Sat, 07 Feb 2009)
Log Message:
-----------
ignore local files
Property Changed:
----------------
trunk/
trunk/data/
trunk/data/tmp/
trunk/www/
Property changes on: trunk
___________________________________________________________________
Added: svn:ignore
+
Property changes on: trunk/data
___________________________________________________________________
Added: svn:ignore
+ *
Property changes on: trunk/data/tmp
___________________________________________________________________
Added: svn:ignore
+ *
Property changes on: trunk/www
___________________________________________________________________
Added: svn:ignore
+
config.inc.php
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-02-07 12:03:40
|
Revision: 249
http://openupload.svn.sourceforge.net/openupload/?rev=249&view=rev
Author: tsdogs
Date: 2009-02-07 12:03:31 +0000 (Sat, 07 Feb 2009)
Log Message:
-----------
Implement basic file paging,
better handling of sub-files
disable access to sub-files detail
Modified Paths:
--------------
trunk/lib/modules/default/files.inc.php
trunk/templates/default/modules/files/fileList.tpl
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2009-02-07 10:13:46 UTC (rev 248)
+++ trunk/lib/modules/default/files.inc.php 2009-02-07 12:03:31 UTC (rev 249)
@@ -485,11 +485,19 @@
}
function fileList() {
+ global $_GET;
/* TODO: need paging ... */
- $files = app()->db->read('files',array('user_login'=>app()->user->info('login')),array('upload_date desc'));
+ $rows = 20;
+ $page = isset($_GET['page'])?$_GET['page']:1;
+ $offset = ($page -1)*$rows;
+ $count = app()->db->count('files',array('user_login'=>app()->user->info('login')));
+ $pages = ceil($count / $rows)+1;
+ $files = app()->db->read('files',array('user_login'=>app()->user->info('login')),array('upload_date desc'),$offset.','.$rows);
$result = app()->pluginAction('fileList',$files,false);
if (!$result)
redirect();
+ $this->tpl->assign('pagen',$page);
+ $this->tpl->assign('pages',$pages);
$this->tpl->assign('files',$files);
}
@@ -501,10 +509,16 @@
}
$finfo = $this->loadFile($_GET['id']);
if (count($finfo)==0) {
+ app()->error(tr('Wrong file id!'));
$this->nextStep(1);
} else if ($finfo[0]['user_login']!=app()->user->info('login')) {
/* the user has no right to access this file !!! */
+ app()->error(tr('Wrong file id!'));
$this->nextStep(1);
+ } else if (isset($finfo[0]['group'])) {
+ /* it's a group file */
+ app()->error(tr('Wrong file id!'));
+ $this->nextStep(1);
}
$this->setupLinks($finfo);
$result = app()->pluginAction('fileDetail',$finfo,false);
Modified: trunk/templates/default/modules/files/fileList.tpl
===================================================================
--- trunk/templates/default/modules/files/fileList.tpl 2009-02-07 10:13:46 UTC (rev 248)
+++ trunk/templates/default/modules/files/fileList.tpl 2009-02-07 12:03:31 UTC (rev 249)
@@ -1,3 +1,13 @@
+{if $pages>2}
+<center>{section name=page loop=$pages start=1 max=20}
+{if $pagen==$smarty.section.page.index}
+<b style="font-size: 12pt">{$smarty.section.page.index}</b>
+{else}
+<a style="font-size: 12pt" href="{$script}?action={$action}&page={$smarty.section.page.index}">{$smarty.section.page.index}</a>
+{/if}
+
+{/section} </center>
+{/if}
<table border="0" id="dbtable">
<tr>
<th width="150">{tr}ID{/tr}</th>
@@ -8,11 +18,20 @@
</tr>
{foreach from=$files item=f}
<tr>
- <td><a href="{$script}?action=l&step={$nextstep}&id={$f.id}">{$f.id}</a></td>
- <td>{$f.name}</td>
- <td>{$f.description}</td>
- <td>{$f.upload_date}</td>
- <td align="right">{$f.size|fsize_format}</td>
+{if strpos($f.id,'_')===FALSE}
+ {cycle advance=true values="row1,row2" assign=rid}
+ <td id="{$rid}" style="text-align:left"><a href="{$script}?action=l&step={$nextstep}&id={$f.id}">{$f.id}</a></td>
+ <td id="{$rid}" style="text-align:left">{$f.name}</td>
+ <td id="{$rid}" style="text-align:left">{$f.description}</td>
+ <td id="{$rid}">{$f.upload_date}</td>
+ <td id="{$rid}" style="text-align:right">{$f.size|fsize_format}</td>
+{else}
+ <td id="{$rid}"> </td>
+ <td id="{$rid}" style="text-align:left"> {$f.name}</td>
+ <td id="{$rid}"> </td>
+ <td id="{$rid}"> </td>
+ <td id="{$rid}" style="text-align:right">{$f.size|fsize_format}</td>
+{/if}
</tr>
{/foreach}
</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.
|
|
From: <ts...@us...> - 2009-02-07 13:45:47
|
Revision: 254
http://openupload.svn.sourceforge.net/openupload/?rev=254&view=rev
Author: tsdogs
Date: 2009-02-07 13:45:45 +0000 (Sat, 07 Feb 2009)
Log Message:
-----------
Add configurable security on file removal option.
Modified Paths:
--------------
trunk/lib/modules/default/admin.inc.php
trunk/lib/modules/default/files.inc.php
trunk/templates/default/modules/admin/options.tpl
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2009-02-07 13:44:37 UTC (rev 253)
+++ trunk/lib/modules/default/admin.inc.php 2009-02-07 13:45:45 UTC (rev 254)
@@ -806,6 +806,7 @@
$config['use_short_links']=isset($_POST['use_short_links'])?'yes':'no';
$config['id_max_length']=$_POST['id_max_length'];
$config['id_use_alpha']=isset($_POST['id_use_alpha'])?'yes':'no';;
+ $config['allow_unprotected_removal']=isset($_POST['allow_unprotected_removal'])?'yes':'no';;
$config['progress']=$_POST['progress'];
$config['logging']['enabled']=isset($_POST['logging'])?'yes':'no';
$config['logging']['db_level']=$_POST['log_db_level'];
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2009-02-07 13:44:37 UTC (rev 253)
+++ trunk/lib/modules/default/files.inc.php 2009-02-07 13:45:45 UTC (rev 254)
@@ -437,7 +437,10 @@
$_SESSION['user']['r']=$finfo;
$this->tpl->assign('files',$finfo);
$this->tpl->assign('finfo',$finfo[0]);
- $result = app()->pluginAction('removeRequest',$finfo,false);
+ if (app()->config['allow_unprotected_removal']=='yes')
+ $result = true;
+ else
+ $result = app()->pluginAction('removeRequest',$finfo,false);
if ($result) {
app()->log('info','removeRequest','','ALLOW',$id);
$_SESSION['user']['r'][0]['canremove']='ok'; /* file has no protection */
@@ -464,7 +467,10 @@
} else {
$finfo = $_SESSION['user']['r'];
/* check wether the plugins are ok */
- $result = app()->pluginAction('removeConfirm',$finfo);
+ if (app()->config['allow_unprotected_removal']=='yes')
+ $result = true;
+ else
+ $result = app()->pluginAction('removeConfirm',$finfo);
if (!$result)
$this->prevStep();
/* now we can remove the file */
Modified: trunk/templates/default/modules/admin/options.tpl
===================================================================
--- trunk/templates/default/modules/admin/options.tpl 2009-02-07 13:44:37 UTC (rev 253)
+++ trunk/templates/default/modules/admin/options.tpl 2009-02-07 13:45:45 UTC (rev 254)
@@ -41,7 +41,9 @@
<tr><td>{tr}Max num. of file uploaded per upload{/tr}:</td><td><input type="text" name="multiupload" value="{$config.multiupload}"></td></tr>
<tr><td>{tr}Use shorter links?{/tr}:</td><td><input type="checkbox" name="use_short_links" value="yes" {if $config.use_short_links=='yes'}checked{/if}
<tr><td>{tr}Length of IDs (suggested min 6){/tr}:</td><td><input type="text" name="id_max_length" value="{$config.id_max_length}"></td></tr>
-<tr><td>{tr}Use alphanumerical IDs?{/tr}:</td><td><input type="checkbox" name="id_use_alpha" value="yes" {if $config.id_use_alpha=='yes'}checked{/if} <tr><td>{tr}Upload tracking method{/tr}:</td><td><select name="progress">
+<tr><td>{tr}Use alphanumerical IDs?{/tr}:</td><td><input type="checkbox" name="id_use_alpha" value="yes" {if $config.id_use_alpha=='yes'}checked{/if}</td></tr>
+<tr><td>{tr}Allow unprotected file removal?{/tr}:</td><td><input type="checkbox" name="allow_unprotected_removal" value="yes" {if $config.allow_unprotected_removal=='yes'}checked{/if}</td></tr>
+<tr><td>{tr}Upload tracking method{/tr}:</td><td><select name="progress">
{foreach from=$progress item=t}
<option value="{$t}" {if $t==$config.progress}selected{/if}>{$t}</option>
{/foreach}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
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.
|
|
From: <ts...@us...> - 2009-02-28 10:22:29
|
Revision: 266
http://openupload.svn.sourceforge.net/openupload/?rev=266&view=rev
Author: tsdogs
Date: 2009-02-28 10:22:25 +0000 (Sat, 28 Feb 2009)
Log Message:
-----------
update translations for release
Modified Paths:
--------------
trunk/locale/it/LC_MESSAGES/openupload.mo
trunk/locale/it/LC_MESSAGES/openupload.po
trunk/locale/it.inc.php
trunk/plugins/email.inc.php
trunk/templates/default/locale/it/LC_MESSAGES/template.mo
trunk/templates/default/locale/it/LC_MESSAGES/template.po
trunk/templates/default/locale/it.inc.php
trunk/templates/default/modules/admin/pluginoptions.tpl
trunk/templates/default/modules/admin/pluginsacl.tpl
Modified: trunk/locale/it/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/it/LC_MESSAGES/openupload.po
===================================================================
--- trunk/locale/it/LC_MESSAGES/openupload.po 2009-02-27 19:00:31 UTC (rev 265)
+++ trunk/locale/it/LC_MESSAGES/openupload.po 2009-02-28 10:22:25 UTC (rev 266)
@@ -2,8 +2,8 @@
msgstr ""
"Project-Id-Version: OpenUpload\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-12-12 16:47+0100\n"
-"PO-Revision-Date: 2008-12-12 16:47+0100\n"
+"POT-Creation-Date: 2009-02-27 20:09+0100\n"
+"PO-Revision-Date: 2009-02-27 20:10+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -12,373 +12,398 @@
"X-Poedit-KeywordsList: tr\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-Language: Italian\n"
-"X-Poedit-SearchPath-0: ../../../lib\n"
-"X-Poedit-SearchPath-1: ../../../plugins\n"
+"X-Poedit-SearchPath-0: /home/alex/devel/php/openupload/trunk/lib\n"
+"X-Poedit-SearchPath-1: /home/alex/devel/php/openupload/trunk/plugins\n"
-#: ../../../lib/user.inc.php:89
+#: /home/alex/devel/php/openupload/trunk/lib/user.inc.php:89
msgid "Login incorrect!"
msgstr "Login incorretto!"
-#: ../../../lib/main.inc.php:239
+#: /home/alex/devel/php/openupload/trunk/lib/main.inc.php:244
msgid "plugin include file not found: %1"
msgstr "File del plugin non trovato: %1"
-#: ../../../lib/main.inc.php:431
+#: /home/alex/devel/php/openupload/trunk/lib/main.inc.php:436
msgid "IP Banned"
msgstr "IP Bloccato"
-#: ../../../lib/main.inc.php:459
+#: /home/alex/devel/php/openupload/trunk/lib/main.inc.php:464
msgid "THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"
msgstr "SI E' VERIFICATO UN ERRORE NEI PERMESSI. PREGO RIPROVARE CON UN'ALTRA OPZIONE!"
-#: ../../../lib/modules/db/txt.inc.php:121
+#: /home/alex/devel/php/openupload/trunk/lib/modules/db/txt.inc.php:121
msgid "ERROR: database folder not found!"
msgstr "ERRORE: La cartella del database non è stata trovata!"
-#: ../../../lib/modules/db/txt.inc.php:127
+#: /home/alex/devel/php/openupload/trunk/lib/modules/db/txt.inc.php:127
msgid "ERROR: Could not create folder for %1 table!"
msgstr "ERRORE: Impossibile creare cartella per la tabella %1!"
-#: ../../../lib/modules/db/txt.inc.php:138
+#: /home/alex/devel/php/openupload/trunk/lib/modules/db/txt.inc.php:138
msgid "ERROR: Could not create file for %1 table!"
msgstr "ERRORE: Impossibile creare il file per la tabella %1"
-#: ../../../lib/modules/db/txt.inc.php:245
+#: /home/alex/devel/php/openupload/trunk/lib/modules/db/txt.inc.php:245
msgid "Unsupported query criteria %1"
msgstr "Criterio Query non supportato %1"
-#: ../../../lib/modules/default/auth.inc.php:27
-#: ../../../lib/modules/default/auth.inc.php:40
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:27
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:40
msgid "Login"
msgstr "Accedi"
-#: ../../../lib/modules/default/auth.inc.php:30
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:30
msgid "User registration"
msgstr "Registrazione utente"
-#: ../../../lib/modules/default/auth.inc.php:33
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:33
msgid "User options"
msgstr "Opzioni utente"
-#: ../../../lib/modules/default/auth.inc.php:43
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:43
msgid "Preferences"
msgstr "Preferenze"
-#: ../../../lib/modules/default/auth.inc.php:44
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:44
msgid "Logout"
msgstr "Esci"
-#: ../../../lib/modules/default/auth.inc.php:93
-#: ../../../lib/modules/default/auth.inc.php:116
-#: ../../../lib/modules/default/auth.inc.php:201
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:93
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:116
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:201
msgid "Registration is not supported by Auth Module"
msgstr "Registrazione non supportata dal Modulo di Autenticazione"
-#: ../../../lib/modules/default/auth.inc.php:124
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:124
msgid "Username already taken, choose a new value"
msgstr "Il nome utente è già utilizzato, sceglierne un'altro"
-#: ../../../lib/modules/default/auth.inc.php:128
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:128
msgid "Login name must be at least 5 characters long!"
msgstr "Il nome utente deve essere lungo almeno 5 caratteri!"
-#: ../../../lib/modules/default/auth.inc.php:132
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:132
msgid "Login name contains an invalid character. Valid vharacters are %1"
msgstr "Il nome utente contiene caratteri non validi. I caratteri consentiti sono %1"
-#: ../../../lib/modules/default/auth.inc.php:136
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:136
msgid "Please insert Full Name"
msgstr "Prego inserire un Nome Completo"
-#: ../../../lib/modules/default/auth.inc.php:140
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:140
msgid "Please insert a valid e-mail!"
msgstr "Inserire un indirizzo email valido!"
-#: ../../../lib/modules/default/auth.inc.php:144
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:144
msgid "Password must be at least 5 characters long!"
msgstr "La password deve essere lunga almeno 5 caratteri!"
-#: ../../../lib/modules/default/auth.inc.php:148
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:148
msgid "Passwords do not match! please retype."
msgstr "Le password non corrispondono! Prego riprovare."
-#: ../../../lib/modules/default/auth.inc.php:170
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:170
msgid "[%1] User registration confirmation e-mail"
msgstr "[%1] Registrazione utente e-mail di conferma"
-#: ../../../lib/modules/default/auth.inc.php:184
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:184
msgid "Registration completed successfully. Have fun!"
msgstr "Registrazione completata con successo. Buon divertimento!"
-#: ../../../lib/modules/default/auth.inc.php:221
-#: ../../../lib/modules/default/auth.inc.php:233
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:221
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:233
msgid "User profile change not supported by Auth Module"
msgstr "Modifica profilo utente non supportata dal Modulo di Autenticazione"
-#: ../../../lib/modules/default/auth.inc.php:240
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:240
msgid "Full Name cannot be empty!"
msgstr "Il Nome Completo non può essere vuoto!"
-#: ../../../lib/modules/default/auth.inc.php:245
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:245
msgid "Please enter a valid e-mail address!"
msgstr "Inserire un indirizzo e-mail valido!"
-#: ../../../lib/modules/default/auth.inc.php:254
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:254
msgid "Password must be at least 5 charaters long!"
msgstr "La password deve essere lunga almento 5 caratteri!"
-#: ../../../lib/modules/default/auth.inc.php:257
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:257
msgid "Old password is wrong!"
msgstr "La vecchia password è errata!"
-#: ../../../lib/modules/default/auth.inc.php:260
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:260
msgid "New passwords do not match!"
msgstr "Le password non corrispondono! Riprova."
-#: ../../../lib/modules/default/auth.inc.php:263
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/auth.inc.php:263
msgid "Password has been changed!"
msgstr "Password modificata con successo!"
-#: ../../../lib/modules/default/files.inc.php:32
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:35
+msgid "My Files"
+msgstr "I miei File"
+
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:37
+msgid "Public Files"
+msgstr "File Pubblici"
+
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:40
msgid "File upload"
msgstr "Carica file"
-#: ../../../lib/modules/default/files.inc.php:35
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:43
msgid "File download"
msgstr "Scarica file"
-#: ../../../lib/modules/default/files.inc.php:38
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:46
msgid "File Removal"
msgstr "Rimozione file"
-#: ../../../lib/modules/default/files.inc.php:42
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:53
msgid "File Upload"
msgstr "Carica file"
-#: ../../../lib/modules/default/files.inc.php:129
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:142
msgid "Upload failed for Unknown error code: %1"
msgstr "Upload fallito per una ragione sconosciuta. codice errore: %1"
-#: ../../../lib/modules/default/files.inc.php:136
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:149
msgid "Maximum file size exceeded!"
msgstr "File troppo grande!"
-#: ../../../lib/modules/default/files.inc.php:301
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:325
msgid "Requested file does not exist!"
msgstr "Il file richiesto non esiste!"
-#: ../../../lib/modules/default/files.inc.php:402
-#: ../../../lib/modules/default/files.inc.php:405
-#: ../../../lib/modules/default/files.inc.php:417
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:434
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:437
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:454
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:536
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:540
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:544
msgid "Wrong file id!"
msgstr "ID del file errata!"
-#: ../../../lib/modules/default/admin.inc.php:82
-#: ../../../lib/modules/default/admin.inc.php:85
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:82
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:85
msgid "Administration"
msgstr "Amministrazione"
-#: ../../../lib/modules/default/admin.inc.php:103
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:103
msgid "User administration not supported by Auth Module"
msgstr "Amministrazione utenti non supportata dal modulo di Autenticazione"
-#: ../../../lib/modules/default/admin.inc.php:234
-#: ../../../lib/modules/default/admin.inc.php:254
-#: ../../../lib/modules/default/admin.inc.php:273
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:234
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:254
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:273
msgid "Group administration not supported by Auth Module"
msgstr "Amministrazione gruppi non supportata dal modulo di Autenticazione"
-#: ../../../lib/modules/default/admin.inc.php:249
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:249
msgid "Please provide a valid group name!"
msgstr "Inserire un nome di gruppo valido"
-#: ../../../lib/modules/default/admin.inc.php:306
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:306
msgid "Any group"
msgstr "Qualsiasi gruppo"
-#: ../../../lib/modules/default/admin.inc.php:377
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:377
msgid "ANY"
msgstr "TUTTI"
-#: ../../../lib/modules/default/admin.inc.php:380
-#: ../../../lib/modules/default/admin.inc.php:393
-#: ../../../lib/modules/default/admin.inc.php:902
-#: ../../../lib/modules/default/admin.inc.php:929
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:380
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:393
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:906
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:933
msgid "Allow"
msgstr "Consenti"
-#: ../../../lib/modules/default/admin.inc.php:381
-#: ../../../lib/modules/default/admin.inc.php:397
-#: ../../../lib/modules/default/admin.inc.php:902
-#: ../../../lib/modules/default/admin.inc.php:929
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:381
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:397
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:906
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:933
msgid "Deny"
msgstr "Nega"
-#: ../../../lib/modules/default/admin.inc.php:514
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:514
msgid "Specified criteria is not valid!"
msgstr "Il criterio specificato non è valido!"
-#: ../../../lib/modules/default/admin.inc.php:524
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:524
msgid "Please specify at least one criteria!"
msgstr "Prego inserire almeno un criterio!"
-#: ../../../lib/modules/default/admin.inc.php:556
-#: ../../../lib/modules/default/admin.inc.php:580
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:556
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:580
msgid "Enable"
msgstr "Abilita"
-#: ../../../lib/modules/default/admin.inc.php:557
-#: ../../../lib/modules/default/admin.inc.php:581
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:557
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:581
msgid "Disable"
msgstr "Disabilita"
-#: ../../../lib/modules/default/admin.inc.php:632
-#: ../../../lib/modules/default/admin.inc.php:652
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:632
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:652
msgid "Any"
msgstr "Tutti"
-#: ../../../lib/modules/default/admin.inc.php:662
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:662
msgid "Options for this group already exsist, please use the edit function!"
msgstr "Esistono già opzioni per questo gruppo, utilizzare la funzione di modifica!"
-#: ../../../lib/modules/default/admin.inc.php:822
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:826
msgid "Configuration sucessfully saved!"
msgstr "Configurazione salvata correttamente!"
-#: ../../../lib/modules/default/admin.inc.php:824
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:828
msgid "Configuration file could not be saved, please proceed with the download!"
msgstr "Impossibile salvare il file di configurazione, procedere con il download!"
-#: ../../../lib/modules/default/admin.inc.php:878
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:882
msgid "IP %1 has been banned!"
msgstr "IP %1 è stato bloccato!"
-#: ../../../lib/modules/default/admin.inc.php:882
-#: ../../../lib/modules/default/admin.inc.php:897
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:886
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:901
msgid "IP %1 was already in state: %2!"
msgstr "IP %1 era già nello stato: %2"
-#: ../../../lib/modules/default/admin.inc.php:973
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:977
msgid "ID"
msgstr "ID"
-#: ../../../lib/modules/default/admin.inc.php:973
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:977
msgid "Language \"%1\" cannot be empty"
msgstr "Lingua \"%1\" non può essere vuota"
-#: ../../../lib/modules/default/admin.inc.php:976
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:980
msgid "Language \"%1\" already exists!"
msgstr "Lingua \"%1\" esiste già!"
-#: ../../../lib/modules/default/admin.inc.php:980
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:984
msgid "Name"
msgstr "Nome"
-#: ../../../lib/modules/default/admin.inc.php:980
-#: ../../../lib/modules/default/admin.inc.php:984
-#: ../../../lib/modules/default/admin.inc.php:988
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:984
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:988
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:992
msgid "Language \"%1\" cannot be empty!"
msgstr "Lingua \"%1\" non può essere vuota!"
-#: ../../../lib/modules/default/admin.inc.php:984
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:988
msgid "Locale"
msgstr "Localizzazione"
-#: ../../../lib/modules/default/admin.inc.php:988
+#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:992
msgid "Charset"
msgstr "Charset"
-#: ../../../lib/modules/auth/ldap.inc.php:24
+#: /home/alex/devel/php/openupload/trunk/lib/modules/auth/ldap.inc.php:24
msgid "LDAP connection failed!"
msgstr "ERRORE: Fallita connessione LDAP!"
-#: ../../../plugins/mimetypes.inc.php:6
+#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:6
msgid "Limit the mimetypes a user can upload"
msgstr "Limita i tipi di file che un utente può caricare"
-#: ../../../plugins/mimetypes.inc.php:8
+#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:8
msgid "Allowed mime types"
msgstr "Tipi mime consentiti"
-#: ../../../plugins/mimetypes.inc.php:9
+#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:9
msgid "Types in message"
msgstr "Messaggio all'utente"
-#: ../../../plugins/mimetypes.inc.php:22
-#: ../../../plugins/mimetypes.inc.php:39
+#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:22
+#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:39
msgid "WARNING: no mime types defined. Plugin has been disabled!"
msgstr "ATTENZIONE: nessun tipo di file definito. Il plugin è stato disabilitato!"
-#: ../../../plugins/mimetypes.inc.php:44
+#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:44
msgid "This file type (%1) is not allowed on this site!"
msgstr "I vs. file saranno mantenuti sul ns. server per %1 giorni"
-#: ../../../plugins/captcha.inc.php:7
+#: /home/alex/devel/php/openupload/trunk/plugins/captcha.inc.php:7
msgid "Add captcha protection to file download and user registration"
msgstr "Aggiunge la protezione captcha al download del file e alla registrazione utente"
-#: ../../../plugins/captcha.inc.php:40
-#: ../../../plugins/captcha.inc.php:58
+#: /home/alex/devel/php/openupload/trunk/plugins/captcha.inc.php:40
+#: /home/alex/devel/php/openupload/trunk/plugins/captcha.inc.php:58
msgid "Wrong captcha code! please try again."
msgstr "Captcha errato! Riprova."
-#: ../../../plugins/compress.inc.php:6
+#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:6
msgid "Compress the uploaded files"
msgstr "Comprime i file caricati"
-#: ../../../plugins/compress.inc.php:8
+#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:8
msgid "Command to be executed. One per line."
msgstr "Comandi da eseguire. Uno per riga"
-#: ../../../plugins/compress.inc.php:9
+#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:9
msgid "Extensions corresponding to commands."
msgstr "Estensioni dei file per i comandi"
-#: ../../../plugins/compress.inc.php:10
+#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:10
msgid "Name of compression commands"
msgstr "Nomi visualizzati per la compressione"
-#: ../../../plugins/filesize.inc.php:8
+#: /home/alex/devel/php/openupload/trunk/plugins/filesize.inc.php:8
msgid "Limit the maximum size of a uploaded file"
msgstr "Limita la dimensione massima dei file che possono essere caricati"
-#: ../../../plugins/filesize.inc.php:10
+#: /home/alex/devel/php/openupload/trunk/plugins/filesize.inc.php:10
msgid "Maximum File Size"
msgstr "Dimensione Massima"
-#: ../../../plugins/email.inc.php:30
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:30
msgid "Your e-mail address isn't valid!"
msgstr "Il tuo indirizzo e-mail non è valido!"
-#: ../../../plugins/email.inc.php:40
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:40
msgid "Destination e-mail address isn't valid!"
msgstr "L'indirizzo e-mail del destinatario non è valido!"
-#: ../../../plugins/email.inc.php:56
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:56
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:77
msgid "Information about your uploaded file: %1"
msgstr "Informazioni relative al tuo file: %1"
-#: ../../../plugins/email.inc.php:60
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:60
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:84
msgid "An upload was delivered to you"
msgstr "Ti è stato inviato un file"
-#: ../../../plugins/password.inc.php:7
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:80
+msgid "E-mail was sent!"
+msgstr "E-mail inviata!"
+
+#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:91
+msgid "E-mail was sent to: %1!"
+msgstr "E-mail inviata a: %1!"
+
+#: /home/alex/devel/php/openupload/trunk/plugins/password.inc.php:7
msgid "Option to add password protection for file download"
msgstr "Opzione per aggiungere una password di protezione al download di un file"
-#: ../../../plugins/password.inc.php:42
+#: /home/alex/devel/php/openupload/trunk/plugins/password.inc.php:53
msgid "Wrong password!"
msgstr "Password errata!"
-#: ../../../plugins/expire.inc.php:6
+#: /home/alex/devel/php/openupload/trunk/plugins/expire.inc.php:6
msgid "Maximum number of days an upload will be kept on the server."
msgstr "Numero massimo di giorni per il quale il file sarà conservato sul server."
-#: ../../../plugins/expire.inc.php:8
+#: /home/alex/devel/php/openupload/trunk/plugins/expire.inc.php:8
msgid "N. Of Days"
msgstr "N. di giorni"
-#: ../../../plugins/expire.inc.php:21
+#: /home/alex/devel/php/openupload/trunk/plugins/expire.inc.php:21
msgid "Files will be kept on our server for %1 days"
msgstr "I vs. file saranno mantenuti sul ns. server per %1 giorni"
+#: /home/alex/devel/php/openupload/trunk/plugins/expire.inc.php:49
+msgid "Never"
+msgstr "Mai"
+
Modified: trunk/locale/it.inc.php
===================================================================
--- trunk/locale/it.inc.php 2009-02-27 19:00:31 UTC (rev 265)
+++ trunk/locale/it.inc.php 2009-02-28 10:22:25 UTC (rev 266)
@@ -29,6 +29,8 @@
$tr["Old password is wrong!"] = "La vecchia password è errata!";
$tr["New passwords do not match!"] = "Le password non corrispondono! Riprova.";
$tr["Password has been changed!"] = "Password modificata con successo!";
+$tr["My Files"] = "I miei File";
+$tr["Public Files"] = "File Pubblici";
$tr["File upload"] = "Carica file";
$tr["File download"] = "Scarica file";
$tr["File Removal"] = "Rimozione file";
@@ -70,15 +72,22 @@
$tr["This file type (%1) is not allowed on this site!"] = "I vs. file saranno mantenuti sul ns. server per %1 giorni";
$tr["Add captcha protection to file download and user registration"] = "Aggiunge la protezione captcha al download del file e alla registrazione utente";
$tr["Wrong captcha code! please try again."] = "Captcha errato! Riprova.";
+$tr["Compress the uploaded files"] = "Comprime i file caricati";
+$tr["Command to be executed. One per line."] = "Comandi da eseguire. Uno per riga";
+$tr["Extensions corresponding to commands."] = "Estensioni dei file per i comandi";
+$tr["Name of compression commands"] = "Nomi visualizzati per la compressione";
$tr["Limit the maximum size of a uploaded file"] = "Limita la dimensione massima dei file che possono essere caricati";
$tr["Maximum File Size"] = "Dimensione Massima";
$tr["Your e-mail address isn't valid!"] = "Il tuo indirizzo e-mail non è valido!";
$tr["Destination e-mail address isn't valid!"] = "L'indirizzo e-mail del destinatario non è valido!";
$tr["Information about your uploaded file: %1"] = "Informazioni relative al tuo file: %1";
$tr["An upload was delivered to you"] = "Ti è stato inviato un file";
+$tr["E-mail was sent!"] = "E-mail inviata!";
+$tr["E-mail was sent to: %1!"] = "E-mail inviata a: %1!";
$tr["Option to add password protection for file download"] = "Opzione per aggiungere una password di protezione al download di un file";
$tr["Wrong password!"] = "Password errata!";
$tr["Maximum number of days an upload will be kept on the server."] = "Numero massimo di giorni per il quale il file sarà conservato sul server.";
$tr["N. Of Days"] = "N. di giorni";
$tr["Files will be kept on our server for %1 days"] = "I vs. file saranno mantenuti sul ns. server per %1 giorni";
+$tr["Never"] = "Mai";
?>
Modified: trunk/plugins/email.inc.php
===================================================================
--- trunk/plugins/email.inc.php 2009-02-27 19:00:31 UTC (rev 265)
+++ trunk/plugins/email.inc.php 2009-02-28 10:22:25 UTC (rev 266)
@@ -3,7 +3,7 @@
class emailPlugin extends OpenUploadPlugin {
function emailPlugin() {
- $this->description = 'Add option to send e-mail to the uploader or to another e-mail address';
+ $this->description = tr('Add option to send e-mail to the uploader or to another e-mail address');
}
function uploadOptions(&$finfo,$acl) {
Modified: trunk/templates/default/locale/it/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Modified: trunk/templates/default/locale/it/LC_MESSAGES/template.po
===================================================================
--- trunk/templates/default/locale/it/LC_MESSAGES/template.po 2009-02-27 19:00:31 UTC (rev 265)
+++ trunk/templates/default/locale/it/LC_MESSAGES/template.po 2009-02-28 10:22:25 UTC (rev 266)
@@ -2,8 +2,8 @@
msgstr ""
"Project-Id-Version: OpenUpload default template\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-12-12 16:48+0100\n"
-"PO-Revision-Date: 2008-12-12 16:48+0100\n"
+"POT-Creation-Date: 2009-02-28 11:10+0100\n"
+"PO-Revision-Date: 2009-02-28 11:10+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -11,877 +11,964 @@
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Italian\n"
"X-Poedit-Basepath: .\n"
-"X-Poedit-SearchPath-0: ../../..\n"
+"X-Poedit-SearchPath-0: /home/alex/devel/php/openupload/trunk/templates/default\n"
-#: ../../../default.c:2
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:2
msgid "Your IP has been blocked!"
msgstr "Il tuo IP è bloccato!"
-#: ../../../default.c:5
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:5
msgid "You cannot use this site."
msgstr "Non puoi utilizzare questo sito."
-#: ../../../default.c:8
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:8
msgid "If you think this is a misconfiguration please send an email to the site owner"
msgstr "Se pensi sia un errore di configurazione, invia una e-mail al proprietario del sito"
-#: ../../../default.c:11
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:11
msgid "Captcha code"
msgstr "Codice Captcha"
-#: ../../../default.c:14
-#: ../../../default.c:20
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:14
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:20
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:32
msgid "Reload Image"
msgstr "Ricarica immagine"
-#: ../../../default.c:17
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:17
+msgid "Please enter the following captcha to proceed for the removal"
+msgstr "Prego inserire il seguente codice captcha per procedere alla rimozione"
+
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:23
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:44
+msgid "Protection"
+msgstr "Protezione"
+
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:26
+msgid "Captcha"
+msgstr "Captcha"
+
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:29
msgid "Please enter the following captcha to proceed for the download"
msgstr "Prego inserire il seguente codice captch per procedere al download"
-#: ../../../default.c:23
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:35
msgid "Use Captcha"
msgstr "Utilizza Captcha"
-#: ../../../default.c:26
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:38
msgid "Compress the files"
msgstr "Comprimi i files"
-#: ../../../default.c:29
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:41
msgid "No compression"
msgstr "Nessuna compressione"
-#: ../../../default.c:32
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:...
[truncated message content] |