openupload-svn-update Mailing List for Open Upload (Page 9)
Status: Beta
Brought to you by:
tsdogs
You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(100) |
Nov
(72) |
Dec
(44) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(7) |
Feb
(47) |
Mar
(30) |
Apr
(11) |
May
(10) |
Jun
(8) |
Jul
(1) |
Aug
(22) |
Sep
|
Oct
|
Nov
(13) |
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
(17) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(1) |
| 2011 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ts...@us...> - 2008-12-11 22:23:05
|
Revision: 196
http://openupload.svn.sourceforge.net/openupload/?rev=196&view=rev
Author: tsdogs
Date: 2008-12-11 22:00:45 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Add compression plugin
Added Paths:
-----------
trunk/templates/default/plugins/compress/uploadOptions.tpl
Added: trunk/templates/default/plugins/compress/uploadOptions.tpl
===================================================================
--- trunk/templates/default/plugins/compress/uploadOptions.tpl (rev 0)
+++ trunk/templates/default/plugins/compress/uploadOptions.tpl 2008-12-11 22:00:45 UTC (rev 196)
@@ -0,0 +1,9 @@
+{if count($compress)>0}
+<tr><td>{tr}Compress the files{/tr}:</td><td>
+ <select name="compress"><option value="">{tr}No compression{/tr}
+ {foreach from=$compress item=c key=k}
+ <option value="{$k}">{$c}</option>
+ {/foreach}
+ </select>
+</td></tr>
+{/if}
\ 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-11 22:22:44
|
Revision: 194
http://openupload.svn.sourceforge.net/openupload/?rev=194&view=rev
Author: tsdogs
Date: 2008-12-11 21:59:15 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
fix problem with \r in plugin params
Modified Paths:
--------------
trunk/lib/classes.inc.php
Modified: trunk/lib/classes.inc.php
===================================================================
--- trunk/lib/classes.inc.php 2008-12-11 17:38:38 UTC (rev 193)
+++ trunk/lib/classes.inc.php 2008-12-11 21:59:15 UTC (rev 194)
@@ -147,6 +147,9 @@
switch ($o['type']) {
case 'list':
$this->config[$o['name']][$g] = explode("\n",chop($v['value']));
+ foreach ($this->config[$o['name']][$g] as $k => $z) {
+ $this->config[$o['name']][$g][$k] = chop($z);
+ }
break;
case 'text':
$this->config[$o['name']][$g] = $v['value'];
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-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 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.c:290
+msgid "Confirm registration with e-mail"
+msgstr "Conferma registrazioni via e-mail"
+
+#: ../../../default.c:293
+msgid "Template"
+msgstr "Template"
+
+#: ../../../default.c:299
+msgid "Template Footer"
+msgstr "Piede del Template"
+
+#: ../../../default.c:302
+msgid "Maximum upload size (in MB)"
+msgstr "Dimensione massima di upload"
+
+#: ../../../default.c:305
+msgid "Maximum download time (in Min)"
+msgstr "Tempo massimo per il download (in Min)"
+
+#: ../../../default.c:308
+msgid "0 disables it"
+msgstr "0 lo disabilita"
+
+#: ../../../default.c:311
+msgid "Max num. of file uploaded per upload"
+msgstr "Massimo num. di file per cui fare l'upload"
+
+#: ../../../default.c:314
+msgid "Upload tracking method"
+msgstr "Metodo controllo stato upload"
+
+#: ../../../default.c:317
+msgid "Enable activity logging?"
+msgstr "Abilita i log?"
+
+#: ../../../default.c:320
+msgid "Database logging level"
+msgstr "Livello log su database"
+
+#: ../../../default.c:323
+msgid "Syslog logging level"
+msgstr "Livello log in Syslog"
+
+#: ../../../default.c:326
+msgid "Save Changes"
+msgstr "Salva Modifiche"
+
+#: ../../../default.c:329
+msgid "Download config file"
+msgstr "Download file di configurazione"
+
+#: ../../../default.c:332
+msgid "This are the configured settings for a review"
+msgstr "Questa è l'attuale configurazione"
+
+#: ../../../default.c:356
+msgid "Filter"
+msgstr "Filtro"
+
+#: ../../../default.c:359
+msgid "All"
+msgstr "Tutti"
+
+#: ../../../default.c:362
+msgid "Errors"
+msgstr "Errori"
+
+#: ../../../default.c:365
+msgid "Security"
+msgstr "Sicurezza"
+
+#: ../../../default.c:368
+msgid "Warnings"
+msgstr "Avvertenze"
+
+#: ../../../default.c:371
+msgid "Notice"
+msgstr "Notifiche"
+
+#: ../../../default.c:374
+msgid "Info"
+msgstr "Info"
+
+#: ../../../default.c:377
+msgid "Date"
+msgstr "Data"
+
+#: ../../../default.c:380
+msgid "Type"
+msgstr "Tipo"
+
+#: ../../../default.c:383
+#: ../../../default.c:656
+msgid "User"
+msgstr "Utente"
+
+#: ../../../default.c:386
+#: ../../../default.c:569
+#: ../../../default.c:590
msgid "Module"
msgstr "Modulo"
-#: ../../../default.c:191
-#: ../../../default.c:275
+#: ../../../default.c:389
+#: ../../../default.c:572
+#: ../../../default.c:593
msgid "Action"
msgstr "Azione"
-#: ../../../default.c:200
-#: ../../../default.c:248
-msgid "Settings"
-msgstr "Impostazioni"
+#: ../../../default.c:392
+msgid "Real Action"
+msgstr "Azione Reale"
-#: ../../../default.c:203
-#: ../../../default.c:251
+#: ../../../default.c:398
+msgid "Result"
+msgstr "Risultato"
+
+#: ../../../default.c:401
+msgid "Additional Info"
+msgstr "Info agg."
+
+#: ../../../default.c:404
+msgid "Maintenence"
+msgstr "Manutenzione"
+
+#: ../../../default.c:407
+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
+msgid "Please select one or more criteria for file deletion"
+msgstr "Seleziona uno o più criteri per l'eliminazione"
+
+#: ../../../default.c:413
+msgid "Delete files older than"
+msgstr "Elimina file più vecchi di"
+
+#: ../../../default.c:416
+msgid "days"
+msgstr "giorni"
+
+#: ../../../default.c:419
+msgid "Which user name is"
+msgstr "Dove l'utente è"
+
+#: ../../../default.c:422
+msgid "Which upload day is"
+msgstr "Dove il giorno di upload è"
+
+#: ../../../default.c:425
+msgid "Which size is bigger than"
+msgstr "Dove la dimensione è maggiore di"
+
+#: ../../../default.c:428
+#: ../../../default.c:716
+#: ../../../default.c:728
+msgid "Proceed"
+msgstr "Procedi"
+
+#: ../../../default.c:431
+msgid "Expiration plugin"
+msgstr "Plugin di Scadenza"
+
+#: ../../../default.c:434
+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
+msgid "Delete expired"
+msgstr "Elimina scaduti"
+
+#: ../../../default.c:440
+msgid "Are you sure you want to delete the selected users?"
+msgstr "Sei sicuro di voler eliminare gli utenti selezionati?"
+
+#: ../../../default.c:443
+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
msgid "Plugins"
msgstr "Plugin"
-#: ../../../default.c:206
-#: ../../../default.c:254
+#: ../../../default.c:452
+#: ../../../default.c:539
msgid "Files"
msgstr "File"
-#: ../../../default.c:209
-#: ../../../default.c:257
+#: ../../../default.c:455
+#: ../../../default.c:542
msgid "Users"
msgstr "Utenti"
-#: ../../../default.c:212
-#: ../../../default.c:260
+#: ../../../default.c:458
+#: ../../../default.c:545
msgid "Groups"
msgstr "Gruppi"
-#: ../../../default.c:215
-#: ../../../default.c:263
+#: ../../../default.c:461
+#: ../../../default.c:548
msgid "Rights"
msgstr "Permessi"
-#: ../../../default.c:218
+#: ../../../default.c:464
+#: ../../../default.c:551
+msgid "Languages"
+msgstr "Lingua"
+
+#: ../../../default.c:467
msgid "Banned"
msgstr "Bloccato"
-#: ../../../default.c:245
+#: ../../../default.c:470
+msgid "Logs"
+msgstr "Log"
+
+#: ../../../default.c:473
+msgid "Deletion Result"
+msgstr "Risultato eliminazione"
+
+#: ../../../default.c:476
+msgid "The following files have been deleted."
+msgstr "I seguenti file sono stati eliminati."
+
+#: ../../../default.c:479
+msgid "The following files will be deleted, proceed?"
+msgstr "I seguenti file saranno eliminati, procedere?"
+
+#: ../../../default.c:482
+msgid "Yes, delete all"
+msgstr "Si, eliminali tutti"
+
+#: ../../../default.c:485
+msgid "No files matched the criteria"
+msgstr "Nessun file trovato"
+
+#: ../../../default.c:488
+msgid "Back to Maintenance"
+msgstr "Torna alla Manutenzione"
+
+#: ../../../default.c:515
+msgid "Are you sure you want to delete the selected groups?"
+msgstr "Sei sicuro di voler eliminare i gruppi selezionati?"
+
+#: ../../../default.c:518
+msgid "Are you sure you want to delete the selected group?"
+msgstr "Sei sicuro di voler eliminare il gruppo selezionato?"
+
+#: ../../../default.c:521
+msgid "Group Name"
+msgstr "Nome Gruppo"
+
+#: ../../../default.c:530
msgid "Here you can administer"
msgstr "In questa sezione puoi amministrare"
-#: ../../../default.c:266
+#: ../../../default.c:554
msgid "Banned IPs"
msgstr "IP bloccati"
-#: ../../../default.c:320
+#: ../../../default.c:557
+msgid "Logs / Statistics"
+msgstr "Log / Statistiche"
+
+#: ../../../default.c:560
+msgid "PLEASE BE CAREFULL WHEN MODIFING THE RIGHTS!"
+msgstr "PREGO FARE ATTENZIONE NELLA MODIFICA DEI PERMESSI!"
+
+#: ../../../default.c:563
+msgid "Editing rights for group"
+msgstr "Modifica permessi per il gruppo"
+
+#: ../../../default.c:575
+msgid "Right"
+msgstr "Permesso"
+
+#: ../../../default.c:578
+msgid "Resulting ACL"
+msgstr "ACL risultante"
+
+#: ../../../default.c:581
+msgid "From ACL"
+msgstr "Da ACL"
+
+#: ../../../default.c:584
+msgid "default"
+msgstr "default"
+
+#: ../../../default.c:596
+msgid "<< Back"
+msgstr "<< Indietro"
+
+#: ../../../default.c:599
+msgid "Apply changes"
+msgstr "Applica modifiche"
+
+#: ../../../default.c:602
+msgid "Files List"
+msgstr "Lista File"
+
+#: ../../../default.c:605
+msgid "Maintenance"
+msgstr "Manutenzione"
+
+#: ../../../default.c:641
+msgid "Are you sure you want to delete the selected files?"
+msgstr "Sei sicuro di voler eliminare i file selezionati?"
+
+#: ../../../default.c:644
+msgid "Are you sure you want to delete the selected file?"
+msgstr "Sei sicuro di voler eliminare il file selezionato?"
+
+#: ../../../default.c:650
+msgid "Id"
+msgstr "Id"
+
+#: ../../../default.c:662
+msgid "Upload Date"
+msgstr "Data"
+
+#: ../../../default.c:677
msgid "You requested to remove the following file"
msgstr "Hai richiesto la rimozione del seguente file"
-#: ../../../default.c:323
-#: ../../../default.c:371
-#: ../../../default.c:401
+#: ../../../default.c:680
+#: ../../../default.c:734
+#: ../../../default.c:764
msgid "File description"
msgstr "Descrizione"
-#: ../../../default.c:332
-#: ../../../default.c:380
-#: ../../../default.c:410
+#: ../../../default.c:683
+#: ../../../default.c:740
+#: ../../../default.c:749
+msgid "File name"
+msgstr "Nome file"
+
+#: ../../../default.c:686
+#: ../../../default.c:743
+#: ../../../default.c:752
+msgid "File size"
+msgstr "Dimensione"
+
+#: ../../../default.c:689
+#: ../../../default.c:737
+#: ../../../default.c:767
msgid "Uploaded on"
msgstr "Caricato il"
-#: ../../../default.c:335
+#: ../../../default.c:692
msgid "Confirm removal"
msgstr "Conferma rimozione"
-#: ../../../default.c:338
+#: ../../../default.c:695
msgid "Download link"
msgstr "Link per lo scaricamento"
-#: ../../../default.c:341
+#: ../../../default.c:698
msgid "Remove link"
msgstr "Link per la rimozione"
-#: ../../../default.c:344
+#: ../../../default.c:701
msgid "Upload a new file"
msgstr "Carica un nuovo file"
-#: ../../../default.c:347
+#: ../../../default.c:704
+msgid "Uploading"
+msgstr "Caricamento"
+
+#: ../../../default.c:707
+msgid "please wait ..."
+msgstr "attendere prego ..."
+
+#: ../../../default.c:710
msgid "Please enter the File Information requested"
msgstr "Prego inserire le informazioni sul File"
-#: ../../../default.c:350
+#: ../../../default.c:713
msgid "File code"
msgstr "Codice file"
-#: ../../../default.c:353
-#: ../../../default.c:365
-msgid "Proceed"
-msgstr "Procedi"
-
-#: ../../../default.c:356
+#: ../../../default.c:719
msgid "Select the file to be uploaded"
msgstr "Seleziona il file da caricare"
-#: ../../../default.c:359
+#: ../../../default.c:722
msgid "Maximum allowed upload size"
msgstr "Dimensione massima di upload"
-#: ../../../default.c:362
+#: ../../../default.c:725
msgid "Upload"
msgstr "Carica"
-#: ../../../default.c:368
+#: ../../../default.c:731
msgid "You can now proceed downloading the file"
msgstr "Puoi ora procedere allo scaricamento del file"
-#: ../../../default.c:383
+#: ../../../default.c:746
msgid "Download file"
msgstr "Scarica file"
-#: ../../../default.c:395
+#: ../../../default.c:758
msgid "Complete upload"
msgstr "Completa caricamento"
-#: ../../../default.c:398
+#: ../../../default.c:761
msgid "FILE HAS BEEN SUCCESSFULLY REMOVED"
msgstr "IL FILE E' STATO RIMOSSO CON SUCCESSO"
-#: ../../../default.c:431
-#: ../../../default.c:446
+#: ../../../default.c:788
+#: ../../../default.c:803
msgid "Dear "
msgstr "Egregio"
-#: ../../../default.c:434
-#: ../../../default.c:449
+#: ../../../default.c:791
+#: ../../../default.c:806
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:437
-#: ../../../default.c:452
+#: ../../../default.c:794
+#: ../../../default.c:809
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:440
-#: ../../../default.c:455
+#: ../../../default.c:797
+#: ../../../default.c:812
msgid "Best regards"
msgstr "Cordiali saluti"
-#: ../../../default.c:461
+#: ../../../default.c:818
msgid "User login"
msgstr "Login utente"
-#: ../../../default.c:464
+#: ../../../default.c:821
msgid "User name"
msgstr "Nome Utente"
-#: ../../../default.c:470
+#: ../../../default.c:827
msgid "Login"
msgstr "Accedi"
-#: ../../../default.c:473
+#: ../../../default.c:830
msgid "You don't have an account?"
msgstr "Non possiedi un account?"
-#: ../../../default.c:476
+#: ../../../default.c:833
msgid "Register here"
msgstr "Registrati qui"
-#: ../../../default.c:479
+#: ../../../default.c:836
msgid "or you can"
msgstr "oppure puoi"
-#: ../../../default.c:482
+#: ../../../default.c:839
msgid "Login here"
msgstr "Accedere qui"
-#: ../../../default.c:494
+#: ../../../default.c:851
msgid "Language"
msgstr "Lingua"
-#: ../../../default.c:497
+#: ../../../default.c:854
msgid "Change"
msgstr "Modifica"
-#: ../../../default.c:500
+#: ../../../default.c:857
msgid "Registration succeeded"
msgstr "Registrazione avvenuta con successo"
-#: ../../../default.c:503
+#: ../../../default.c:860
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:506
+#: ../../../default.c:863
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:509
+#: ../../../default.c:866
msgid "back to home"
msgstr "torna alla pagina principale"
-#: ../../../default.c:524
+#: ../../../default.c:881
msgid "Old password"
msgstr "Vecchia Password"
-#: ../../../default.c:527
+#: ../../../default.c:884
msgid "New password"
msgstr "Nuova Password"
-#: ../../../default.c:530
+#: ../../../default.c:887
msgid "Retype password"
msgstr "Reinserisci password"
-#: ../../../default.c:533
+#: ../../../default.c:890
msgid "Cancel"
msgstr "Annulla"
-#: ../../../default.c:539
+#: ../../../default.c:896
msgid "Your account registration has been confirmed."
msgstr "La registrazione del tuo account ha avuto successo."
-#: ../../../default.c:542
+#: ../../../default.c:899
msgid "You can now proceed with the login"
msgstr "Puoi ora procedere al login"
-#: ../../../default.c:545
+#: ../../../default.c:902
msgid "here"
msgstr "quì"
+#~ msgid "File ID"
+#~ msgstr "ID File"
+
Modified: trunk/templates/default/modules/admin/banned.tpl
===================================================================
--- trunk/templates/default/modules/admin/banned.tpl 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/templates/default/modules/admin/banned.tpl 2008-12-11 15:51:45 UTC (rev 192)
@@ -1,6 +1,6 @@
{include file="default/modules/admin/adminmenu.tpl"}
<script>
-msg1 = '{tr}Are you sure you want to delete the selected baned ips?{/tr}';
+msg1 = '{tr}Are you sure you want to delete the selected banned ips?{/tr}';
msg2 = '{tr}Are you sure you want to delete the selected banned ip?{/tr}';
{include file="default/modules/admin/deletescript.tpl"}
</script>
@@ -25,11 +25,11 @@
<input type="hidden" name="step" value="5">
<table border="0" id="dbtable">
<tr>
- <th width="10">S</th>
- <th width="200">IP</th>
- <th width="50">Access</th>
- <th width="80">Priority</th>
- <th width="100">Actions</th>
+ <th width="10">{tr}S{/tr}</th>
+ <th width="200">{tr}IP{/tr}</th>
+ <th width="50">{tr}Access{/tr}</th>
+ <th width="80">{tr}Priority{/tr}</th>
+ <th width="100">{tr}Actions{/tr}</th>
</tr>
{foreach from=$banned item=b}
{cycle values="row1,row2" advance=true assign=rid}
Modified: trunk/templates/default/modules/admin/files.tpl
===================================================================
--- trunk/templates/default/modules/admin/files.tpl 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/templates/default/modules/admin/files.tpl 2008-12-11 15:51:45 UTC (rev 192)
@@ -25,13 +25,13 @@
<input type="hidden" name="step" value="4">
<table border="0" id="dbtable">
<tr>
- <th width="10">S</th>
- <th width="50">Id</th>
- <th width="200">Name</th>
- <th width="100">User</th>
- <th width="100">IP</th>
- <th width="200">Upload Date</th>
- <th width="100">Actions</th>
+ <th width="10">{tr}S{/tr}</th>
+ <th width="50">{tr}Id{/tr}</th>
+ <th width="200">{tr}Name{/tr}</th>
+ <th width="100">{tr}User{/tr}</th>
+ <th width="100">{tr}IP{/tr}</th>
+ <th width="200">{tr}Upload Date{/tr}</th>
+ <th width="100">{tr}Actions{/tr}</th>
</tr>
{foreach from=$files item=f}
{cycle values="row1,row2" advance=true assign=rid}
Modified: trunk/templates/default/modules/admin/options.tpl
===================================================================
--- trunk/templates/default/modules/admin/options.tpl 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/templates/default/modules/admin/options.tpl 2008-12-11 15:51:45 UTC (rev 192)
@@ -5,56 +5,56 @@
<input type="hidden" name="action" value="{$action}">
<input type="hidden" name="step" value="{$step}">
<table border="0">
-<tr><td>Translation module:</td><td>
+<tr><td>{tr}Translation module{/tr}:</td><td>
<select name="translator">
-<option value="">-- Select one --</option>
+<option value="">-- {tr}Select one{/tr} --</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>
+<tr><td>{tr}Default language{/tr}:</td><td><input type="text" name="defaultlang" value="{$config.defaultlang}"></td></tr>
+<tr><td>{tr}Authentication module{/tr}:<br>{tr}(LDAP Configuration needs to be done<br> by hand for now){/tr}</td><td>
<select name="auth">
-<option value="">-- Select one --</option>
+<option value="">-- {tr}Select one{/tr} --</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"
+<tr><td>{tr}Site title{/tr}:</td><td><input type="text" name="sitetitle" value="{$config.site.title}"></td></tr>
+<tr><td>{tr}WebMaster E-mail{/tr}:</td><td><input type="text" name="webmaster" value="{$config.site.webmaster}"></td></tr>
+<tr><td>{tr}Site E-mail{/tr}:</td><td><input type="text" name="email" value="{$config.site.email}"></td></tr>
+<tr><td>{tr}Confirm registration with e-mail{/tr}:</td><td><input type="checkbox" name="confirmregistration" value="yes"
{if ($config.registration.email_confirm=='yes')}checked{/if}></td></tr>
-<tr><td>Template:</td><td>
+<tr><td>{tr}Template{/tr}:</td><td>
<select name="template">
-<option value="">-- Select one --</option>
+<option value="">-- {tr}Select one{/tr} --</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">
+<tr><td>{tr}Template Footer{/tr}:</td><td><textarea name="sitefooter" cols="50" rows="5">{$config.site.footer}</textarea></td></tr>
+<tr><td>{tr}Maximum upload size (in MB){/tr}:</td><td><input type="text" name="max_upload_size" value="{$config.max_upload_size}"></td></tr>
+<tr><td>{tr}Maximum download time (in Min){/tr}<br>{tr}0 disables it{/tr}:</td><td><input type="text" name="max_download_time" value="{$config.max_download_time}"></td></tr>
+<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}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}
</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">
+<tr><td>{tr}Enable activity logging?{/tr}:</td><td><input type="checkbox" name="logging" value="yes" {if $config.logging.enabled=='yes'}checked{/if} ></td></tr>
+<tr><td>{tr}Database logging level{/tr}:</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">
+<tr><td>{tr}Syslog logging level{/tr}:</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" class="submit" name="save" value="Save Changes"> <input type="submit" class="submit" name="download" value="Download config file"></TD></TR>
+<TR><TD colspan="2"><input type="submit" class="submit" name="save" value="{tr}Save Changes{/tr}"> <input type="submit" class="submit" name="download" value="{tr}Download config file{/tr}"></TD></TR>
</table>
</form>
Modified: trunk/templates/default/modules/admin/settings.tpl
===================================================================
--- trunk/templates/default/modules/admin/settings.tpl 2008-12-11 12:40:38 UTC (rev 191)
+++ trunk/templates/default/modules/admin/settings.tpl 2008-12-11 15:51:45 UTC (rev 192)
@@ -1,7 +1,7 @@
{include file="default/modules/admin/adminmenu.tpl"}
{include file="default/modules/admin/settingsmenu.tpl"}
-This are the configured settings for a review:<br>
+{tr}This are the configured settings for a review{/tr}:<br>
<table border="1">
{foreach from=$config item=c key=k}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-11 12:40:47
|
Revision: 191
http://openupload.svn.sourceforge.net/openupload/?rev=191&view=rev
Author: tsdogs
Date: 2008-12-11 12:40:38 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
expire plugin message
Added Paths:
-----------
trunk/templates/default/plugins/expire/uploadForm.tpl
Added: trunk/templates/default/plugins/expire/uploadForm.tpl
===================================================================
--- trunk/templates/default/plugins/expire/uploadForm.tpl (rev 0)
+++ trunk/templates/default/plugins/expire/uploadForm.tpl 2008-12-11 12:40:38 UTC (rev 191)
@@ -0,0 +1 @@
+<div id="expire">{$msg}</div>
\ 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-11 12:40:18
|
Revision: 190
http://openupload.svn.sourceforge.net/openupload/?rev=190&view=rev
Author: tsdogs
Date: 2008-12-11 12:40:04 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
added extended read api + some fixes for txtdb to work
Modified Paths:
--------------
trunk/lib/modules/db/pgsql.inc.php
trunk/lib/modules/db/txt.inc.php
trunk/lib/modules/default/admin.inc.php
trunk/lib/modules/default/files.inc.php
trunk/plugins/expire.inc.php
trunk/templates/default/modules/admin/maintenance.tpl
Added Paths:
-----------
trunk/sql/txt/activitylog.txt
trunk/templates/default/plugins/expire/
Modified: trunk/lib/modules/db/pgsql.inc.php
===================================================================
--- trunk/lib/modules/db/pgsql.inc.php 2008-12-11 11:06:59 UTC (rev 189)
+++ trunk/lib/modules/db/pgsql.inc.php 2008-12-11 12:40:04 UTC (rev 190)
@@ -112,6 +112,50 @@
return $result;
}
+ /* This is an extended function which extends the select criteria */
+ function readex($tbl,$criteria = array(), $sort = array(),$limit = '') {
+ $sql = 'SELECT * FROM "'.$this->prefix.$tbl.'"';
+
+ if (count($criteria)>0) {
+ $where = '';
+ foreach ($criteria as $ands) {
+ $where_save = $where;
+ $where = '';
+ foreach ($ands as $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '"'.$v[0].'"'.$v[1].'\''.(pg_escape_string($v[2])).'\'';
+ }
+ if ($where_save!='') {
+ $where = $where_save.' OR ('.$where.')';
+ } else {
+ $where = '('.$where.')';
+ }
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ if (count($sort)>0) {
+ $sorting = '';
+ foreach ($sort as $s) {
+ if ($sorting!='') $sorting.=',';
+ $sorting .= $s;
+ }
+ $sql .= ' ORDER BY '.$sorting;
+ }
+ if ($limit != '') {
+ $l = explode(',',$limit);
+ $sql .= ' LIMIT '.$l[1].' OFFSET '.$l[0];
+ }
+echo $sql;
+ $res = pg_query($sql);
+ if (!$res) { die('query failed: '.$sql); }
+ $result = array();
+ while ($row = pg_fetch_assoc($res)) {
+ $result[] = $row;
+ }
+ pg_free_result($res);
+ return $result;
+ }
+
function insert($tbl,$values,$fields = array()) {
$sql = 'INSERT INTO "'.$this->prefix.$tbl.'"';
$flist = '';
Modified: trunk/lib/modules/db/txt.inc.php
===================================================================
--- trunk/lib/modules/db/txt.inc.php 2008-12-11 11:06:59 UTC (rev 189)
+++ trunk/lib/modules/db/txt.inc.php 2008-12-11 12:40:04 UTC (rev 190)
@@ -12,7 +12,7 @@
"files" => array (
"type" => "file",
"fields" => array (
- "id", "name", "mime", "description", "size", "remove", "user_id", "ip", "upload_date",
+ "id", "name", "mime", "description", "size", "remove", "user_login", "ip", "upload_date",
)
),
"users" => array (
@@ -69,6 +69,13 @@
),
"auto_increment" => "id",
),
+ "activitylog" => array (
+ "type" => "file",
+ "fields" => array (
+ "id", "level", "log_time", "ip", "user_login", "module", "action", "realaction", "plugin", "result", "moreinfo",
+ ),
+ "auto_increment" => "id",
+ ),
);
$this->baseDir=$config['rootdir'];
$this->prefix=$config['prefix'];
@@ -201,6 +208,58 @@
return $result;
}
+ /* This is an extended function which extends the select criteria */
+ function readex($tbl,$criteria = array(), $sort = array(),$limit = '') {
+ $file = $this->baseDir.'/'.$this->prefix.$tbl;
+ if ($this->tables[$tbl]['type']=='dir') {
+
+ } else {
+ $result = array();
+ $rows = $this->readTxt($file.'.txt');
+ foreach ($rows as $row) {
+ $add = false;
+ if (count($criteria)>0) {
+ foreach ($criteria as $ands) {
+ $andres = true;
+ foreach ($ands as $v) {
+ switch($v[1]) {
+ case '=':
+ $sres = $row[$v[0]]==$v[2];
+ break;
+ case '<':
+ $sres = $row[$v[0]]<$v[2];
+ break;
+ case '>':
+ $sres = $row[$v[0]]>$v[2];
+ break;
+ case '<=':
+ $sres = $row[$v[0]]<=$v[2];
+ break;
+ case '>=':
+ $sres = $row[$v[0]]>=$v[2];
+ break;
+ case '!=':
+ $sres = $row[$v[0]]!=$v[2];
+ break;
+ default:
+ app()->error(tr('Unsupported query criteria %1',$v[1]));
+ return array();
+ }
+ $andres = ($andres and $sres)?true:false;
+ }
+ $add = ($add or $andres)?true:false;
+ }
+ } else {
+ $add = true;
+ }
+ if ($add) {
+ $result[] = $row;
+ }
+ }
+ }
+ return $result;
+ }
+
function insert($tbl,$values,$fields = array()) {
$file = $this->baseDir.'/'.$tbl;
if ($this->tables[$tbl]['type']=='dir') {
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2008-12-11 11:06:59 UTC (rev 189)
+++ trunk/lib/modules/default/admin.inc.php 2008-12-11 12:40:04 UTC (rev 190)
@@ -484,7 +484,8 @@
if (isset($_POST['expire'])) {
/* get all the files which have an expire date */
$files = app()->db->readex('file_options',array(array(array('name','=','expire'),
- array('value','<=',date('Y-m-d',time()-(24 * 60 * 60))))));
+ array('value','<=',date('Y-m-d',time()-(24 * 60 * 60))),
+ array('value','!=',''))));
$result = array();
foreach ($files as $f) {
$result[]['id']=$f['file_id'];
@@ -503,7 +504,8 @@
break;
case 'older': $criteria[] = array('upload_date','<', date('Y-m-d',time()-($_POST[$n] * 24 * 60 * 60)));
break;
- case 'date': $criteria[] = array('upload_date','=', $_POST[$n]);
+ case 'date': $criteria[] = array('upload_date','>=', date('Y-m-d',(strtotime($_POST[$n]))));
+ $criteria[] = array('upload_date','<', date('Y-m-d',(strtotime($_POST[$n])+24*60*60)));
break;
case 'size': $criteria[] = array('size','>', $_POST[$n]*1024*1024);
break;
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2008-12-11 11:06:59 UTC (rev 189)
+++ trunk/lib/modules/default/files.inc.php 2008-12-11 12:40:04 UTC (rev 190)
@@ -211,11 +211,13 @@
foreach (app()->plugins as $plugin) {
if (count($plugin->fields)>0) {
foreach ($plugin->fields as $f) {
- $pinfo['file_id'] = $finfo['id'];
- $pinfo['module'] = $plugin->name;
- $pinfo['name']=$f;
- $pinfo['value']=$finfo[$f];
- app()->db->insert('file_options',$pinfo,array('file_id','module','name','value'));
+ if (isset($finfo[$f])) {
+ $pinfo['file_id'] = $finfo['id'];
+ $pinfo['module'] = $plugin->name;
+ $pinfo['name']=$f;
+ $pinfo['value']=$finfo[$f];
+ app()->db->insert('file_options',$pinfo,array('file_id','module','name','value'));
+ }
}
}
}
Modified: trunk/plugins/expire.inc.php
===================================================================
--- trunk/plugins/expire.inc.php 2008-12-11 11:06:59 UTC (rev 189)
+++ trunk/plugins/expire.inc.php 2008-12-11 12:40:04 UTC (rev 190)
@@ -10,7 +10,7 @@
$this->fields = array('expire');
}
- function uploadComplete(&$finfo,$acl) {
+ function uploadForm(&$finfo,$acl) {
if ($acl!='enable') return true;
$group = $this->getGroup('days');
/* now set */
@@ -18,7 +18,23 @@
$this->config['days'][$group]=$this->config['days']['*'];
}
if ($this->config['days'][$group]>0) {
+ $this->assign('msg',tr('Files will be kept on our server for %1 days',$this->config['days'][$group]));
+ $this->display('uploadForm');
+ }
+ return true;
+ }
+
+ function uploadConfirm(&$finfo,$acl) {
+ if ($acl!='enable') return true;
+ $group = $this->getGroup('days');
+ /* now set */
+ if (!isset($this->config['days'][$group]) and isset($this->config['days']['*'])>0) {
+ $this->config['days'][$group]=$this->config['days']['*'];
+ }
+ if ($this->config['days'][$group]>0) {
$finfo[0]['expire']=date('Y-m-d',time()+($this->config['days'][$group]*24*60*60));
+ } else {
+ $finfo[0]['expire']='9999-12-31';
}
return true;
}
Added: trunk/sql/txt/activitylog.txt
===================================================================
--- trunk/sql/txt/activitylog.txt (rev 0)
+++ trunk/sql/txt/activitylog.txt 2008-12-11 12:40:04 UTC (rev 190)
@@ -0,0 +1 @@
+id|level|log_time|ip|user_login|module|action|realaction|plugin|result|moreinfo
Modified: trunk/templates/default/modules/admin/maintenance.tpl
===================================================================
--- trunk/templates/default/modules/admin/maintenance.tpl 2008-12-11 11:06:59 UTC (rev 189)
+++ trunk/templates/default/modules/admin/maintenance.tpl 2008-12-11 12:40:04 UTC (rev 190)
@@ -10,7 +10,7 @@
<input type="hidden" name="action" value="{$action}">
<input type="hidden" name="step" value="2">
<table border="0">
-<tr><td><input type="checkbox" name="c_older" value="1" {if $criteria.c_older==1}checked{/if}> {tr}Delete files older than{/tr}</td><td><input size="4" type="text" name="older" value="{$criteria.days}"> {tr}days{/tr}</td></tr>
+<tr><td><input type="checkbox" name="c_older" value="1" {if $criteria.c_older==1}checked{/if}> {tr}Delete files older than{/tr}</td><td><input size="4" type="text" name="older" value="{$criteria.older}"> {tr}days{/tr}</td></tr>
<tr><td><input type="checkbox" name="c_login" value="1" {if $criteria.c_login==1}checked{/if}> {tr}Which user name is{/tr}:</td><td>
{if isset($users)}
<select name="login">
@@ -22,7 +22,7 @@
<input size="20" type="text" name="login" value="{$criteria.login}">
{/if}</td></tr>
<tr><td><input type="checkbox" name="c_date" value="1" {if $criteria.c_date==1}checked{/if}> {tr}Which upload day is{/tr}:</td><td><input size="14" type="text" name="date" value="{$criteria.date}"> (yyyy-mm-dd)</td></tr>
-<tr><td><input type="checkbox" name="c_size" value="1" {if $criteria.c_size==1}checked{/if}> {tr}Which size is bigger than{/tr}:</td><td><input size="10" type="text" name="size" value=""> MB</td></tr>
+<tr><td><input type="checkbox" name="c_size" value="1" {if $criteria.c_size==1}checked{/if}> {tr}Which size is bigger than{/tr}:</td><td><input size="10" type="text" name="size" value="{$criteria.size}"> MB</td></tr>
<tr><td colspan="2"> </td>
<tr><td colspan="2" align="left"><input type="submit" class="submit" name="run" value="{tr}Proceed{/tr}"></td>
</table>
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 11:06:23
|
Revision: 188
http://openupload.svn.sourceforge.net/openupload/?rev=188&view=rev
Author: tsdogs
Date: 2008-12-11 11:06:19 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Expire date plugin
Added Paths:
-----------
trunk/plugins/expire.inc.php
Added: trunk/plugins/expire.inc.php
===================================================================
--- trunk/plugins/expire.inc.php (rev 0)
+++ trunk/plugins/expire.inc.php 2008-12-11 11:06:19 UTC (rev 188)
@@ -0,0 +1,27 @@
+<?php
+
+class expirePlugin extends OpenUploadPlugin {
+
+ function expirePlugin() {
+ $this->description = tr('Maximum number of days an upload will be kept on the server.');
+ $this->options = array(
+ array('name' => 'days', 'description' => tr('N. Of Days'), 'type' => 'text'),
+ );
+ $this->fields = array('expire');
+ }
+
+ function uploadComplete(&$finfo,$acl) {
+ if ($acl!='enable') return true;
+ $group = $this->getGroup('days');
+ /* now set */
+ if (!isset($this->config['days'][$group]) and isset($this->config['days']['*'])>0) {
+ $this->config['days'][$group]=$this->config['days']['*'];
+ }
+ if ($this->config['days'][$group]>0) {
+ $finfo[0]['expire']=date('Y-m-d',time()+($this->config['days'][$group]*24*60*60));
+ }
+ 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-11 11:05:53
|
Revision: 187
http://openupload.svn.sourceforge.net/openupload/?rev=187&view=rev
Author: tsdogs
Date: 2008-12-11 11:05:48 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
File size limiting plugins per group
Added Paths:
-----------
trunk/plugins/filesize.inc.php
Added: trunk/plugins/filesize.inc.php
===================================================================
--- trunk/plugins/filesize.inc.php (rev 0)
+++ trunk/plugins/filesize.inc.php 2008-12-11 11:05:48 UTC (rev 187)
@@ -0,0 +1,38 @@
+<?php
+
+/* handles different file size upload per group */
+
+class filesizePlugin extends OpenUploadPlugin {
+
+ function filesizePlugin() {
+ $this->description = tr('Limit the maximum size of a uploaded file');
+ $this->options = array(
+ array('name' => 'maxsize', 'description' => tr('Maximum File Size'), 'type' => 'text'),
+ );
+ }
+
+ function init() {
+ /* check if it's enabled */
+ $group = $this->getGroup('maxsize');
+ $acl = 'disable'; /* disabled by default */
+ if (isset(app()->pluginAcl[$this->name])) {
+ $acl = app()->pluginAcl[$this->name]['access'];
+ }
+ if ($acl!='enable') {
+ /* reset to default */
+ app()->user->setInfo('max_upload_size',app()->config['max_upload_size']*1024*1024);
+ } else {
+ $this->loadConfig();
+
+ if (!isset($this->config['maxsize'][$group]) and isset($this->config['maxsize']['*'])>0) {
+ $this->config['maxsize'][$group]=$this->config['maxsize']['*'];
+ }
+ if ($this->config['maxsize'][$group]>0) {
+ app()->user->setInfo('max_upload_size',$this->config['maxsize'][$group]*1024*1024);
+ }
+ }
+ ini_set('max_upload_size',app()->user->info('max_upload_size'));
+ ini_set('post_max_size',app()->user->info('max_upload_size'));
+ }
+}
+?>
\ 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-11 11:05:21
|
Revision: 186
http://openupload.svn.sourceforge.net/openupload/?rev=186&view=rev
Author: tsdogs
Date: 2008-12-11 11:05:18 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
button display fix
Modified Paths:
--------------
trunk/templates/default/modules/admin/options.tpl
Modified: trunk/templates/default/modules/admin/options.tpl
===================================================================
--- trunk/templates/default/modules/admin/options.tpl 2008-12-11 11:04:57 UTC (rev 185)
+++ trunk/templates/default/modules/admin/options.tpl 2008-12-11 11:05:18 UTC (rev 186)
@@ -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="download" value="Download config file"></TD></TR>
+<TR><TD colspan="2"><input type="submit" class="submit" name="save" value="Save Changes"> <input type="submit" class="submit" name="download" value="Download config file"></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-12-11 11:05:00
|
Revision: 185
http://openupload.svn.sourceforge.net/openupload/?rev=185&view=rev
Author: tsdogs
Date: 2008-12-11 11:04:57 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
added maintenance option for files
Modified Paths:
--------------
trunk/templates/default/modules/admin/files.tpl
Added Paths:
-----------
trunk/templates/default/modules/admin/filesmenu.tpl
trunk/templates/default/modules/admin/maintenance.tpl
trunk/templates/default/modules/admin/maintenancerun.tpl
Modified: trunk/templates/default/modules/admin/files.tpl
===================================================================
--- trunk/templates/default/modules/admin/files.tpl 2008-12-11 11:04:10 UTC (rev 184)
+++ trunk/templates/default/modules/admin/files.tpl 2008-12-11 11:04:57 UTC (rev 185)
@@ -1,4 +1,5 @@
{include file="default/modules/admin/adminmenu.tpl"}
+{include file="default/modules/admin/filesmenu.tpl"}
<script>
msg1 = '{tr}Are you sure you want to delete the selected files?{/tr}';
msg2 = '{tr}Are you sure you want to delete the selected file?{/tr}';
@@ -38,7 +39,7 @@
<td id="{$rid}"><input type="checkbox" name="file_{$f.id}" value="1"></td>
<td id="{$rid}">{$f.id}</td>
<td id="{$rid}">{$f.name}</td>
- <td id="{$rid}">{$users[$f.user_id].login}</td>
+ <td id="{$rid}">{$f.user_login}</td>
<td id="{$rid}" style="text-align: left"><a title="ban IP {$f.ip}" href="{$script}?action=adminbanned&step=2&ip={$f.ip}&newaction={$action}">
<img align="right" src="{tpl file=/img/admin/ban.png}" ></a>{$f.ip} </td>
<td id="{$rid}">{$f.upload_date}</td>
Added: trunk/templates/default/modules/admin/filesmenu.tpl
===================================================================
--- trunk/templates/default/modules/admin/filesmenu.tpl (rev 0)
+++ trunk/templates/default/modules/admin/filesmenu.tpl 2008-12-11 11:04:57 UTC (rev 185)
@@ -0,0 +1,7 @@
+<div id="menu">
+<ul>
+ <li><a href="{$script}?action=adminfiles">{tr}Files List{/tr}</a></li>
+ <li style="border-right: 0px;"><a href="{$script}?action=adminmaintenance">{tr}Maintenance{/tr}</a></li>
+</ul>
+</div>
+<br>
\ No newline at end of file
Added: trunk/templates/default/modules/admin/maintenance.tpl
===================================================================
--- trunk/templates/default/modules/admin/maintenance.tpl (rev 0)
+++ trunk/templates/default/modules/admin/maintenance.tpl 2008-12-11 11:04:57 UTC (rev 185)
@@ -0,0 +1,44 @@
+{include file="default/modules/admin/adminmenu.tpl"}
+{include file="default/modules/admin/filesmenu.tpl"}
+
+<fieldset style="width: 100%">
+<legend>{tr}Maintenence{/tr}</legend>
+<p align="left">
+{tr}This options let you delete files based on some options.{/tr}<br>
+{tr}Please select one or more criteria for file deletion{/tr}<br>
+<form action="{$script}" method="POST">
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="2">
+<table border="0">
+<tr><td><input type="checkbox" name="c_older" value="1" {if $criteria.c_older==1}checked{/if}> {tr}Delete files older than{/tr}</td><td><input size="4" type="text" name="older" value="{$criteria.days}"> {tr}days{/tr}</td></tr>
+<tr><td><input type="checkbox" name="c_login" value="1" {if $criteria.c_login==1}checked{/if}> {tr}Which user name is{/tr}:</td><td>
+{if isset($users)}
+<select name="login">
+{foreach from=$users item=u}
+<option value="{$u.login}"{if $criteria.login==$u.login}selected{/if}>{$u.login}</option>
+{/foreach}
+</select>
+{else}
+<input size="20" type="text" name="login" value="{$criteria.login}">
+{/if}</td></tr>
+<tr><td><input type="checkbox" name="c_date" value="1" {if $criteria.c_date==1}checked{/if}> {tr}Which upload day is{/tr}:</td><td><input size="14" type="text" name="date" value="{$criteria.date}"> (yyyy-mm-dd)</td></tr>
+<tr><td><input type="checkbox" name="c_size" value="1" {if $criteria.c_size==1}checked{/if}> {tr}Which size is bigger than{/tr}:</td><td><input size="10" type="text" name="size" value=""> MB</td></tr>
+<tr><td colspan="2"> </td>
+<tr><td colspan="2" align="left"><input type="submit" class="submit" name="run" value="{tr}Proceed{/tr}"></td>
+</table>
+</form>
+</fieldset>
+{if $expireplugin=='yes'}
+<br><hr><br>
+<fieldset style="text-align: left; width: 100%;">
+<legend>{tr}Expiration plugin{/tr}</legend>
+<p align="left">
+{tr}To delete files marked as expired by the expire plugin press the "Delete expired" button.{/tr}
+<form action="{$script}" method="POST">
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="2">
+<input type="submit" name="expire" class="submit" value="{tr}Delete expired{/tr}">
+</form>
+</p>
+</fieldset>
+{/if}
Added: trunk/templates/default/modules/admin/maintenancerun.tpl
===================================================================
--- trunk/templates/default/modules/admin/maintenancerun.tpl (rev 0)
+++ trunk/templates/default/modules/admin/maintenancerun.tpl 2008-12-11 11:04:57 UTC (rev 185)
@@ -0,0 +1,30 @@
+{include file="default/modules/admin/adminmenu.tpl"}
+{include file="default/modules/admin/filesmenu.tpl"}
+
+<h2>{tr}Deletion Result{/tr}</h2>
+<br>
+<div id="message">
+{if count($files)>0}
+{if isset($deleted)}
+<h3>{tr}The following files have been deleted.{/tr}</h3>
+{foreach from=$files item=f}
+<div id="message">{$f.id}</div>
+{/foreach}
+{else}
+<h3>{tr}The following files will be deleted, proceed?{/tr}</h3>
+<form action="{$script}" method="POST">
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="{$step}">
+<input type="submit" name="delete" class="submit" value="{tr}Yes, delete all{/tr}">
+</form>
+{foreach from=$files item=f}
+<div id="message">{$f.id}</div>
+{/foreach}
+
+{/if}
+{else}
+{tr}No files matched the criteria{/tr}
+{/if}
+</div>
+<br>
+<a href="{$script}?action={$action}"><< {tr}Back to Maintenance{/tr}</a>
\ 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-11 11:04:15
|
Revision: 184
http://openupload.svn.sourceforge.net/openupload/?rev=184&view=rev
Author: tsdogs
Date: 2008-12-11 11:04:10 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
moved the group option function to base class
Modified Paths:
--------------
trunk/plugins/mimetypes.inc.php
Modified: trunk/plugins/mimetypes.inc.php
===================================================================
--- trunk/plugins/mimetypes.inc.php 2008-12-11 11:03:20 UTC (rev 183)
+++ trunk/plugins/mimetypes.inc.php 2008-12-11 11:04:10 UTC (rev 184)
@@ -11,26 +11,9 @@
/* load the plugin configuration */
}
- function getGroup() {
- $group = app()->user->group();
- if (is_array($group)) {
- /* check for which group there is a configuration */
- foreach ($group as $g) {
- if (isset($this->config['allowed'][$g])) {
- if (count($this->config['allowed'])) {
- return $g;
- }
- }
- }
- return $group[0];
- } else {
- return $group;
- }
- }
-
function uploadForm(&$finfo,$acl) {
if ($acl!='enable') return true;
- $group = $this->getGroup();
+ $group = $this->getGroup('allowed');
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']['*'];
@@ -47,7 +30,7 @@
function uploadComplete(&$finfo,$acl) {
if ($acl!='enable') return true;
- $group = $this->getGroup();
+ $group = $this->getGroup('allowed');
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']['*'];
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:03:28
|
Revision: 183
http://openupload.svn.sourceforge.net/openupload/?rev=183&view=rev
Author: tsdogs
Date: 2008-12-11 11:03:20 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
added maintenance option for files
Modified Paths:
--------------
trunk/lib/modules/default/admin.inc.php
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2008-12-11 11:02:38 UTC (rev 182)
+++ trunk/lib/modules/default/admin.inc.php 2008-12-11 11:03:20 UTC (rev 183)
@@ -32,6 +32,10 @@
3 => "filesplugin",
4 => "filemultidel",
),
+ "adminmaintenance" => array (
+ 1 => "maintenance",
+ 2 => "maintenancerun",
+ ),
"adminusers" => array (
1 => "users",
2 => "useradd",
@@ -414,15 +418,19 @@
$this->tpl->assign('files',$files);
}
+ function filedelete($id) {
+ app()->db->delete('files',array('id' => $id));
+ app()->db->delete('file_options',array('file_id' => $id));
+ unlink(app()->config['DATA_PATH'].'/'.$id);
+ }
+
function filedel() {
global $_GET;
if ($_GET['id']!='') {
$f = app()->db->read('files',array('id'=>$_GET['id']));
if ($f[0]['id']==$_GET['id']) {
- app()->db->delete('files',array('id' => $_GET['id']));
- app()->db->delete('file_options',array('file_id' => $_GET['id']));
- unlink(app()->config['DATA_PATH'].'/'.$_GET['id']);
+ $this->filedelete($_GET['id']);
}
}
$this->nextStep(1);
@@ -455,6 +463,79 @@
$this->nextStep(1);
}
+ function maintenance() {
+ global $_SESSION;
+
+ /* check if expired plugin is loaded */
+ if (isset(app()->plugins['expire'])) {
+ $this->tpl->assign('expireplugin','yes');
+ }
+ if (app()->auth->features['useradmin']!='no') {
+ $users = app()->auth->users();
+ $this->tpl->assign('users',$users);
+ }
+ $this->tpl->assign('criteria',$_SESSION['user']['del']['criteria']);
+ }
+
+ function maintenancerun() {
+ global $_POST;
+ global $_SESSION;
+
+ if (isset($_POST['expire'])) {
+ /* get all the files which have an expire date */
+ $files = app()->db->readex('file_options',array(array(array('name','=','expire'),
+ array('value','<=',date('Y-m-d',time()-(24 * 60 * 60))))));
+ $result = array();
+ foreach ($files as $f) {
+ $result[]['id']=$f['file_id'];
+ }
+ $this->tpl->assign('files',$result);
+ $_SESSION['user']['del']['files']=$result;
+ } else if (isset($_POST['run'])) {
+ $criteria = array();
+ foreach ($_POST as $k => $p) {
+ $_SESSION['user']['del']['criteria']=$_POST;
+ if (strpos($k,'c_')!==FALSE) {
+ $n = substr($k,2,strlen($k)-2);
+ if ($_POST[$n]!='') {
+ switch ($n) {
+ case 'login': $criteria[] = array ('user_login','=',$_POST[$n]);
+ break;
+ case 'older': $criteria[] = array('upload_date','<', date('Y-m-d',time()-($_POST[$n] * 24 * 60 * 60)));
+ break;
+ case 'date': $criteria[] = array('upload_date','=', $_POST[$n]);
+ break;
+ case 'size': $criteria[] = array('size','>', $_POST[$n]*1024*1024);
+ break;
+ }
+ } else {
+ app()->error(tr('Specified criteria is not valid!'));
+ $this->nextStep();
+ }
+ }
+ }
+ if (count($criteria)>0) {
+ $files = app()->db->readex('files',array($criteria));
+ $this->tpl->assign('files',$files);
+ $_SESSION['user']['del']['files']=$files;
+ } else {
+ app()->error(tr('Please specify at least one criteria!'));
+ $this->nextStep(1);
+ }
+ } else if (isset($_POST['delete'])) {
+ if (count($_SESSION['user']['del']['files'])<=0) {
+ unset($_SESSION['user']['del']['files']);
+ $this->nextStep(1);
+ }
+ foreach ($_SESSION['user']['del']['files'] as $f) {
+ $this->filedelete($f['id']);
+ }
+ $this->tpl->assign('deleted','true');
+ $this->tpl->assign('files',$_SESSION['user']['del']['files']);
+ unset($_SESSION['user']['del']);
+ }
+ }
+
function plugins() {
}
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:02:42
|
Revision: 182
http://openupload.svn.sourceforge.net/openupload/?rev=182&view=rev
Author: tsdogs
Date: 2008-12-11 11:02:38 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
added extended read api
Modified Paths:
--------------
trunk/lib/modules/db/mysql.inc.php
Modified: trunk/lib/modules/db/mysql.inc.php
===================================================================
--- trunk/lib/modules/db/mysql.inc.php 2008-12-11 11:01:54 UTC (rev 181)
+++ trunk/lib/modules/db/mysql.inc.php 2008-12-11 11:02:38 UTC (rev 182)
@@ -88,7 +88,7 @@
$sql .= ' LIMIT '.$limit;
}
$res = mysql_query($sql);
-if (!$res) { die('query failed: '.$sql); }
+ if (!$res) { die('query failed: '.$sql); }
$result = array();
while ($row = mysql_fetch_assoc($res)) {
if (count($assoc)) { /* maybe there is a better way to do this? */
@@ -106,6 +106,47 @@
return $result;
}
+ /* This is an extended function which extends the select criteria */
+ function readex($tbl,$criteria = array(), $sort = array(),$limit = '') {
+ $sql = 'SELECT * FROM `'.$this->prefix.$tbl.'`';
+ if (count($criteria)>0) {
+ $where = '';
+ foreach ($criteria as $ands) {
+ $where_save = $where;
+ $where = '';
+ foreach ($ands as $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '`'.$v[0].'`'.$v[1].'"'.(mysql_real_escape_string($v[2])).'"';
+ }
+ if ($where_save!='') {
+ $where = $where_save.' OR ('.$where.')';
+ } else {
+ $where = '('.$where.')';
+ }
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ if (count($sort)>0) {
+ $sorting = '';
+ foreach ($sort as $s) {
+ if ($sorting!='') $sorting.=',';
+ $sorting .= $s;
+ }
+ $sql .= ' ORDER BY '.$sorting;
+ }
+ if ($limit != '') {
+ $sql .= ' LIMIT '.$limit;
+ }
+ $res = mysql_query($sql);
+ if (!$res) { die('query failed: '.$sql); }
+ $result = array();
+ while ($row = mysql_fetch_assoc($res)) {
+ $result[] = $row;
+ }
+ mysql_free_result($res);
+ return $result;
+ }
+
function insert($tbl,$values,$fields = array()) {
$sql = 'INSERT INTO `'.$this->prefix.$tbl.'`';
$flist = '';
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:01:58
|
Revision: 181
http://openupload.svn.sourceforge.net/openupload/?rev=181&view=rev
Author: tsdogs
Date: 2008-12-11 11:01:54 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
added api for group options on plugins
Modified Paths:
--------------
trunk/lib/classes.inc.php
Modified: trunk/lib/classes.inc.php
===================================================================
--- trunk/lib/classes.inc.php 2008-12-11 10:04:33 UTC (rev 180)
+++ trunk/lib/classes.inc.php 2008-12-11 11:01:54 UTC (rev 181)
@@ -161,6 +161,23 @@
}
}
+ function getGroup($option) {
+ $group = app()->user->group();
+ if (is_array($group)) {
+ /* check for which group there is a configuration */
+ foreach ($group as $g) {
+ if (isset($this->config[$option][$g])) {
+ if (count($this->config[$option])) {
+ return $g;
+ }
+ }
+ }
+ return $group[0];
+ } else {
+ return $group;
+ }
+ }
+
function init() {
$this->loadConfig();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-11 10:04:39
|
Revision: 180
http://openupload.svn.sourceforge.net/openupload/?rev=180&view=rev
Author: tsdogs
Date: 2008-12-11 10:04:33 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Update documentation
Modified Paths:
--------------
trunk/CHANGELOG
trunk/TODO
Modified: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG 2008-12-10 15:20:19 UTC (rev 179)
+++ trunk/CHANGELOG 2008-12-11 10:04:33 UTC (rev 180)
@@ -30,6 +30,7 @@
* Plugins
- Options are now group based and in the database
+ - Upload file size limit by user group
Changelog from 0.3b to 0.3c (updated 2008.12.06)
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-12-10 15:20:19 UTC (rev 179)
+++ trunk/TODO 2008-12-11 10:04:33 UTC (rev 180)
@@ -9,7 +9,6 @@
- txtdb deep testing (switch ?)
Plugins
-- Upload different filesize limiting depending on group
- Plugin defualt option for groups.
Maintainence
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-10 15:20:22
|
Revision: 179
http://openupload.svn.sourceforge.net/openupload/?rev=179&view=rev
Author: tsdogs
Date: 2008-12-10 15:20:19 +0000 (Wed, 10 Dec 2008)
Log Message:
-----------
remove wrongly uploaded files
Modified Paths:
--------------
trunk/lib/modules/default/files.inc.php
Modified: trunk/lib/modules/default/files.inc.php
===================================================================
--- trunk/lib/modules/default/files.inc.php 2008-12-10 15:19:45 UTC (rev 178)
+++ trunk/lib/modules/default/files.inc.php 2008-12-10 15:20:19 UTC (rev 179)
@@ -158,6 +158,9 @@
$result = app()->pluginAction('uploadComplete',$_SESSION['user']['u']);
if (!$result) { /* some plugin blocked the upload */
/* remove the file */
+ foreach ($_SESSION['user']['u'] as $f) {
+ @unlink($f['tmp']);
+ }
unset($_SESSION['user']['u']);
redirect();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-12-10 15:19:48
|
Revision: 178
http://openupload.svn.sourceforge.net/openupload/?rev=178&view=rev
Author: tsdogs
Date: 2008-12-10 15:19:45 +0000 (Wed, 10 Dec 2008)
Log Message:
-----------
fix small coding bug in plugin implementation
Modified Paths:
--------------
trunk/lib/classes.inc.php
Modified: trunk/lib/classes.inc.php
===================================================================
--- trunk/lib/classes.inc.php 2008-12-09 19:04:28 UTC (rev 177)
+++ trunk/lib/classes.inc.php 2008-12-10 15:19:45 UTC (rev 178)
@@ -125,7 +125,7 @@
var $options = array();
var $config = array();
- function MySharePlugin() {
+ function OpenUploadPlugin() {
}
function assign($name, $value) {
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-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 17:16:36
|
Revision: 175
http://openupload.svn.sourceforge.net/openupload/?rev=175&view=rev
Author: tsdogs
Date: 2008-12-09 17:16:31 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
fix download links
Modified Paths:
--------------
web/index.html
Modified: web/index.html
===================================================================
--- web/index.html 2008-12-09 17:10:38 UTC (rev 174)
+++ web/index.html 2008-12-09 17:16:31 UTC (rev 175)
@@ -141,11 +141,11 @@
<div id="section">
<div id="title">Download</div>
<div id="text">2008.12.06<br><b>New bug fix, last 0.3 planned release.</b><br>Release 0.3c
-Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=638845">here</a> to download.</div>
+Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=645359">here</a> to download.</div>
<br>
<div id="title">Older Download versions (with bugs)</div>
<div id="text">2008.11.07<br><b>New bug fix, this shuold be "stable".</b><br>Release 0.3b
-Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=645359">here</a> to download.</div>
+Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=638845">here</a> to download.</div>
<br>
<div id="text">2008.11.03<br><b>As there were a couple of bugs I decided to release a bug fix version.</b><br>Release 0.3a
Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=636546">here</a> to download.</div>
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:10:41
|
Revision: 174
http://openupload.svn.sourceforge.net/openupload/?rev=174&view=rev
Author: tsdogs
Date: 2008-12-09 17:10:38 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
webpage update release 0.3c
Modified Paths:
--------------
web/index.html
Modified: web/index.html
===================================================================
--- web/index.html 2008-12-09 17:08:20 UTC (rev 173)
+++ web/index.html 2008-12-09 17:10:38 UTC (rev 174)
@@ -140,9 +140,13 @@
</div>
<div id="section">
<div id="title">Download</div>
-<div id="text">2008.11.07<br><b>New bug fix, this shuold be "stable".</b><br>Release 0.3b
+<div id="text">2008.12.06<br><b>New bug fix, last 0.3 planned release.</b><br>Release 0.3c
Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=638845">here</a> to download.</div>
<br>
+<div id="title">Older Download versions (with bugs)</div>
+<div id="text">2008.11.07<br><b>New bug fix, this shuold be "stable".</b><br>Release 0.3b
+Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=645359">here</a> to download.</div>
+<br>
<div id="text">2008.11.03<br><b>As there were a couple of bugs I decided to release a bug fix version.</b><br>Release 0.3a
Click <a target="_new" href="http://sourceforge.net/project/showfiles.php?group_id=242018&package_id=294593&release_id=636546">here</a> to download.</div>
<br>
@@ -151,7 +155,7 @@
</div>
<div id="section">
<div id="title">Mailing lists</div>
-<div id="text">There are 2 mailing lists now. 1 for svn commit traking, and one open for general discussion.<br>
+<div id="text">There are 2 mailing lists now. 1 for svn commit tracking, and one open for general discussion.<br>
To report bugs, get support, or simply let me know how you are using this software
<a href="https://lists.sourceforge.net/lists/listinfo/openupload-devel">click here</a>.</div>
</div>
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 17:07:04
|
Revision: 172
http://openupload.svn.sourceforge.net/openupload/?rev=172&view=rev
Author: tsdogs
Date: 2008-12-09 17:07:00 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
Add delete confirmation and multi delete options to admin
Modified Paths:
--------------
trunk/lib/modules/default/admin.inc.php
Modified: trunk/lib/modules/default/admin.inc.php
===================================================================
--- trunk/lib/modules/default/admin.inc.php 2008-12-09 17:06:42 UTC (rev 171)
+++ trunk/lib/modules/default/admin.inc.php 2008-12-09 17:07:00 UTC (rev 172)
@@ -17,6 +17,7 @@
2 => "pluginadd",
3 => "pluginedit",
4 => "plugindel",
+ 5 => "pluginmultidel",
),
"adminpluginsoptions" => array (
1 => "pluginoptions",
@@ -29,6 +30,7 @@
1 => "files",
2 => "filedel",
3 => "filesplugin",
+ 4 => "filemultidel",
),
"adminusers" => array (
1 => "users",
@@ -36,12 +38,14 @@
3 => "useredit",
4 => "userdel",
5 => "useractivate",
+ 6 => "usermultidel",
),
"admingroups" => array (
1 => "groups",
2 => "groupadd",
3 => "groupedit",
4 => "groupdel",
+ 5 => "groupmultidel",
),
"adminrights" => array (
1 => "rights",
@@ -52,6 +56,7 @@
2 => "bannedadd",
3 => "bannededit",
4 => "banneddel",
+ 5 => "bannedmultidel",
),
"adminlangs" => array (
1 => "langs",
@@ -59,6 +64,7 @@
3 => "langedit",
4 => "langdel",
5 => "langtoggle",
+ 6 => "langmultidel",
),
"adminlogs" => array (
1 => "logs",
@@ -147,6 +153,18 @@
$this->nextStep(1);
}
+ function usermultidel() {
+ global $_POST;
+
+ foreach ($_POST as $k => $v) {
+ if (($v == 1) and (strpos($k,'user_'))!==FALSE) {
+ $user = substr($k,5,strlen($k)-5);
+ app()->auth->userdel($user);
+ }
+ }
+ $this->nextStep(1);
+ }
+
function useractivate() {
global $_GET;
@@ -264,6 +282,21 @@
$this->nextStep(1);
}
+ function groupmultidel() {
+ global $_POST;
+
+ foreach ($_POST as $k => $v) {
+ if (($v == 1) and (strpos($k,'group_'))!==FALSE) {
+ $group = substr($k,6,strlen($k)-6);
+ app()->auth->groupdel($group);
+ /* delete all the rights of the group */
+ app()->db->delete('acl',array('group_name' => $group));
+ app()->db->delete('plugin_acl',array('group_name' => $group));
+ }
+ }
+ $this->nextStep(1);
+ }
+
function rights() {
$groups = app()->auth->groupinfo();
array_unshift($groups,array('name' => '*','description' => tr('Any group')));
@@ -388,12 +421,30 @@
$f = app()->db->read('files',array('id'=>$_GET['id']));
if ($f[0]['id']==$_GET['id']) {
app()->db->delete('files',array('id' => $_GET['id']));
+ app()->db->delete('file_options',array('file_id' => $_GET['id']));
unlink(app()->config['DATA_PATH'].'/'.$_GET['id']);
}
}
$this->nextStep(1);
}
+ function filemultidel() {
+ global $_POST;
+
+ foreach ($_POST as $k => $v) {
+ if (($v == 1) and (strpos($k,'file_'))!==FALSE) {
+ $fid = substr($k,5,strlen($k)-5);
+ $f = app()->db->read('files',array('id'=>$fid));
+ if ($f[0]['id']==$fid) {
+ app()->db->delete('files',array('id' => $fid));
+ app()->db->delete('file_options',array('file_id' => $fid));
+ unlink(app()->config['DATA_PATH'].'/'.$fid);
+ }
+ }
+ }
+ $this->nextStep(1);
+ }
+
function filesplugin() {
global $_GET;
if (isset($_GET['plugin'])) {
@@ -467,6 +518,18 @@
$this->nextStep(1);
}
+ function pluginmultidel() {
+ global $_POST;
+
+ foreach ($_POST as $k => $v) {
+ if (($v == 1) and (strpos($k,'p_'))!==FALSE) {
+ $p = substr($k,2,strlen($k)-2);
+ app()->db->delete('plugin_acl',array('id' => $p));
+ }
+ }
+ $this->nextStep(1);
+ }
+
function pluginoptions() {
/* list the plugins */
foreach (app()->config['plugins'] as $p) {
@@ -724,6 +787,19 @@
$this->nextStep(1);
}
+ function bannedmultidel() {
+ global $_POST;
+
+ foreach ($_POST as $k => $v) {
+ if (($v == 1) and (strpos($k,'ban_'))!==FALSE) {
+ $ban = substr($k,4,strlen($k)-4);
+ /* delete all the rights of the group */
+ app()->db->delete('banned',array('id' => $ban));
+ }
+ }
+ $this->nextStep(1);
+ }
+
function bannedup() {
}
function banneddown() {
@@ -805,6 +881,18 @@
$this->nextStep(1);
}
+ function langmultidel() {
+ global $_POST;
+
+ foreach ($_POST as $k => $v) {
+ if (($v == 1) and (strpos($k,'lang_'))!==FALSE) {
+ $lang = substr($k,5,strlen($k)-5);
+ app()->db->delete('langs',array('id' => $lang));
+ }
+ }
+ $this->nextStep(1);
+ }
+
function langtoggle() {
global $_GET;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|