Changeset 652488
- Timestamp:
- 01/14/2013 02:09:15 PM (13 years ago)
- Location:
- pafacile
- Files:
-
- 6 edited
- 42 copied
-
tags/2.5.5 (copied) (copied from pafacile/trunk)
-
tags/2.5.5/PAFacileBackend.php (copied) (copied from pafacile/trunk/PAFacileBackend.php) (1 diff)
-
tags/2.5.5/PAFacileFrontend.php (copied) (copied from pafacile/trunk/PAFacileFrontend.php)
-
tags/2.5.5/PAFacileUpdateManager.php (copied) (copied from pafacile/trunk/PAFacileUpdateManager.php)
-
tags/2.5.5/admin-pafacile.css (copied) (copied from pafacile/trunk/admin-pafacile.css)
-
tags/2.5.5/ajax/actions.php (copied) (copied from pafacile/trunk/ajax/actions.php)
-
tags/2.5.5/alboPretorio/dettaglio.php (copied) (copied from pafacile/trunk/alboPretorio/dettaglio.php) (2 diffs)
-
tags/2.5.5/alboPretorio/elenco.php (copied) (copied from pafacile/trunk/alboPretorio/elenco.php)
-
tags/2.5.5/alboPretorio/stampa.php (copied) (copied from pafacile/trunk/alboPretorio/stampa.php)
-
tags/2.5.5/bandi/dettaglio.php (copied) (copied from pafacile/trunk/bandi/dettaglio.php)
-
tags/2.5.5/bandi/elenco.php (copied) (copied from pafacile/trunk/bandi/elenco.php)
-
tags/2.5.5/db.php (copied) (copied from pafacile/trunk/db.php)
-
tags/2.5.5/definitions.php (copied) (copied from pafacile/trunk/definitions.php)
-
tags/2.5.5/delibere/elenco.php (copied) (copied from pafacile/trunk/delibere/elenco.php)
-
tags/2.5.5/determine/elenco.php (copied) (copied from pafacile/trunk/determine/elenco.php)
-
tags/2.5.5/doSave.php (copied) (copied from pafacile/trunk/doSave.php) (2 diffs)
-
tags/2.5.5/google-analytics/index.php (copied) (copied from pafacile/trunk/google-analytics/index.php)
-
tags/2.5.5/incarichiProfessionali/dettaglio.php (copied) (copied from pafacile/trunk/incarichiProfessionali/dettaglio.php)
-
tags/2.5.5/incarichiProfessionali/elenco.php (copied) (copied from pafacile/trunk/incarichiProfessionali/elenco.php)
-
tags/2.5.5/mce/editor_plugin.dev.js (copied) (copied from pafacile/trunk/mce/editor_plugin.dev.js)
-
tags/2.5.5/ordinanze/elenco.php (copied) (copied from pafacile/trunk/ordinanze/elenco.php)
-
tags/2.5.5/organi/elenco.php (copied) (copied from pafacile/trunk/organi/elenco.php)
-
tags/2.5.5/organigramma/dettaglio.php (copied) (copied from pafacile/trunk/organigramma/dettaglio.php)
-
tags/2.5.5/organigramma/elenco.php (copied) (copied from pafacile/trunk/organigramma/elenco.php)
-
tags/2.5.5/public-contents/AlboPretorio.php (copied) (copied from pafacile/trunk/public-contents/AlboPretorio.php)
-
tags/2.5.5/public-contents/BandiGare.php (copied) (copied from pafacile/trunk/public-contents/BandiGare.php)
-
tags/2.5.5/public-contents/Delibere.php (copied) (copied from pafacile/trunk/public-contents/Delibere.php)
-
tags/2.5.5/public-contents/Determine.php (copied) (copied from pafacile/trunk/public-contents/Determine.php)
-
tags/2.5.5/public-contents/Incarichi.php (copied) (copied from pafacile/trunk/public-contents/Incarichi.php)
-
tags/2.5.5/public-contents/Ordinanze.php (copied) (copied from pafacile/trunk/public-contents/Ordinanze.php)
-
tags/2.5.5/public-contents/Organi.php (copied) (copied from pafacile/trunk/public-contents/Organi.php)
-
tags/2.5.5/public-contents/Sovvenzioni.php (copied) (copied from pafacile/trunk/public-contents/Sovvenzioni.php)
-
tags/2.5.5/public-contents/iContents.php (copied) (copied from pafacile/trunk/public-contents/iContents.php)
-
tags/2.5.5/readme.txt (copied) (copied from pafacile/trunk/readme.txt) (1 diff)
-
tags/2.5.5/scripts/jq.pafacile.js (copied) (copied from pafacile/trunk/scripts/jq.pafacile.js)
-
tags/2.5.5/sovvenzioni (copied) (copied from pafacile/trunk/sovvenzioni)
-
tags/2.5.5/toSendIt.php (copied) (copied from pafacile/trunk/toSendIt.php) (1 diff)
-
tags/2.5.5/toSendItPAFacileContents.php (copied) (copied from pafacile/trunk/toSendItPAFacileContents.php)
-
tags/2.5.5/toSendItPAFacilePages.php (copied) (copied from pafacile/trunk/toSendItPAFacilePages.php)
-
tags/2.5.5/toSendItPAFacileWidgets.php (copied) (copied from pafacile/trunk/toSendItPAFacileWidgets.php)
-
tags/2.5.5/tosendit-pa.php (copied) (copied from pafacile/trunk/tosendit-pa.php) (3 diffs)
-
tags/2.5.5/welcome.php (copied) (copied from pafacile/trunk/welcome.php)
-
trunk/PAFacileBackend.php (modified) (1 diff)
-
trunk/alboPretorio/dettaglio.php (modified) (2 diffs)
-
trunk/doSave.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/toSendIt.php (modified) (1 diff)
-
trunk/tosendit-pa.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pafacile/tags/2.5.5/PAFacileBackend.php
r643338 r652488 13 13 TOSENDIT_PAFACILE_ROLE_DETERMINE => "Può gestire la sezione Determine", 14 14 TOSENDIT_PAFACILE_ROLE_ORGANIGRAMMA => "Può gestire l'organigramma", 15 TOSENDIT_PAFACILE_ROLE_ORGANI => "Può gestire gli Organi di Governo" 15 TOSENDIT_PAFACILE_ROLE_ORGANI => "Può gestire gli Organi di Governo", 16 /* 17 * Since ver. 2.5.5 18 */ 19 TOSENDIT_PAFACILE_ROLE_SOVVENZIONI => "Può gestire le sovvenzioni e i contributi", 16 20 17 21 ); -
pafacile/tags/2.5.5/alboPretorio/dettaglio.php
r643338 r652488 260 260 */ 261 261 $isEditoreAlbo = toSendItGenericMethods::checkMinimalMenuRole($gruppi, array(TOSENDIT_PAFACILE_ROLE_EDITORE_ALBO_PRETORIO) ); 262 $isGestoreAlbo = toSendItGenericMethods::checkMinimalMenuRole($gruppi, array(TOSENDIT_PAFACILE_ROLE_ALBO_PRETORIO) ); 262 $isGestoreAlbo = toSendItGenericMethods::checkMinimalMenuRole($gruppi, array(TOSENDIT_PAFACILE_ROLE_ALBO_PRETORIO) ); 263 263 if( 264 264 /* … … 278 278 $row->status == TOSENDIT_PAFACILE_ATTO_PUBBLICATO || 279 279 $row->status == TOSENDIT_PAFACILE_ATTO_PROROGATO) && 280 ($row->data_certificazione == null || $row->data_certificazione == '0000-00-00') 280 ( is_null( $row->data_certificazione ) || $row->data_certificazione == '0000-00-00') 281 /* 282 * L'amministratore può pubblicare l'atto a prescindere 283 */ 284 281 285 282 286 ){ -
pafacile/tags/2.5.5/doSave.php
r643338 r652488 618 618 $numero_registro = $numero_registro[0]; 619 619 if($numero_registro == -1){ 620 621 /* 620 622 sleep(1); 621 623 $sql = "select min(numero_registro) cnt from $table where numero_registro > 0 and id<='$id' and year(pubblicata_dal) =year(now())"; … … 629 631 else $max = 1; 630 632 $new = ($nr_min+$max-1); 631 632 633 $sql = "update $table set numero_registro= $new where id='$id'"; 634 */ 635 636 /* 637 * Since ver. 2.5.5 638 */ 639 $sql = "select max(numero_registro) last_nr from $table where numero_registro>0 and year(pubblicata_dal) = year(now())"; 640 $ultimoNumero = $wpdb->get_var($sql); 641 if(is_null($ultimoNumero)) $ultimoNumero = 0; 642 $ultimoNumero = $ultimoNumero +1; 643 $sql = "update $table set numero_registro= $ultimoNumero where id='$id'"; 644 633 645 $wpdb->query($sql); 634 646 } -
pafacile/tags/2.5.5/readme.txt
r649945 r652488 81 81 82 82 == Changelog == 83 84 = 2.5.5 (2013-01-14) = 85 * Update: Aggiunto sul profilo utente opzione per l'abilitazione alla gestione delle sovvenzioni 86 * Update: Aggiornato il metodo con cui viene calcolato il numero di registro dell'albo pretorio 83 87 84 88 = 2.5.4 (2013-01-08) = -
pafacile/tags/2.5.5/toSendIt.php
r643338 r652488 6 6 7 7 public static function checkMinimalMenuRole($userRoles, $menuRoles){ 8 if(current_user_can(' administrator')) return true;8 if(current_user_can('read')) return true; 9 9 if(!is_array($menuRoles)) $menuRoles = array($menuRoles); 10 10 if(isset($menuRoles) && count($menuRoles)>0){ -
pafacile/tags/2.5.5/tosendit-pa.php
r649945 r652488 3 3 * @package toSend.it 4 4 * @author toSend.it di Luisa Marra 5 * @version 2.5. 45 * @version 2.5.5 6 6 */ 7 7 /* … … 10 10 Description: PAFacile è un plugin nato per consentire alle pubbliche amministrazione di gestire la trasparenza amministrativa secondo gli obblighi di legge. Il plugin è l'unico in Italia a consentire l'adeguamento di un sito web di una pubblica amministrazione agli ultimi aggiornamenti normativa in materia di Albo Pretorio on-line, Bandi di Gara, Delbere e determinazioni, Ordinanze, Organigramma, Incarichi professionali, Sovvenzioni. 11 11 Author: toSend.it di Luisa Marra 12 Version: 2.5. 412 Version: 2.5.5 13 13 Author URI: http://toSend.it 14 14 */ … … 25 25 #define('TOSENDIT_PAFACILE_VERSION', '2.5.2'); 26 26 #define('TOSENDIT_PAFACILE_VERSION', '2.5.3'); 27 define('TOSENDIT_PAFACILE_VERSION', '2.5.4'); 27 #define('TOSENDIT_PAFACILE_VERSION', '2.5.4'); 28 define('TOSENDIT_PAFACILE_VERSION', '2.5.5'); 28 29 29 30 # è PAFacile in un installazione di default -
pafacile/trunk/PAFacileBackend.php
r643338 r652488 13 13 TOSENDIT_PAFACILE_ROLE_DETERMINE => "Può gestire la sezione Determine", 14 14 TOSENDIT_PAFACILE_ROLE_ORGANIGRAMMA => "Può gestire l'organigramma", 15 TOSENDIT_PAFACILE_ROLE_ORGANI => "Può gestire gli Organi di Governo" 15 TOSENDIT_PAFACILE_ROLE_ORGANI => "Può gestire gli Organi di Governo", 16 /* 17 * Since ver. 2.5.5 18 */ 19 TOSENDIT_PAFACILE_ROLE_SOVVENZIONI => "Può gestire le sovvenzioni e i contributi", 16 20 17 21 ); -
pafacile/trunk/alboPretorio/dettaglio.php
r643338 r652488 260 260 */ 261 261 $isEditoreAlbo = toSendItGenericMethods::checkMinimalMenuRole($gruppi, array(TOSENDIT_PAFACILE_ROLE_EDITORE_ALBO_PRETORIO) ); 262 $isGestoreAlbo = toSendItGenericMethods::checkMinimalMenuRole($gruppi, array(TOSENDIT_PAFACILE_ROLE_ALBO_PRETORIO) ); 262 $isGestoreAlbo = toSendItGenericMethods::checkMinimalMenuRole($gruppi, array(TOSENDIT_PAFACILE_ROLE_ALBO_PRETORIO) ); 263 263 if( 264 264 /* … … 278 278 $row->status == TOSENDIT_PAFACILE_ATTO_PUBBLICATO || 279 279 $row->status == TOSENDIT_PAFACILE_ATTO_PROROGATO) && 280 ($row->data_certificazione == null || $row->data_certificazione == '0000-00-00') 280 ( is_null( $row->data_certificazione ) || $row->data_certificazione == '0000-00-00') 281 /* 282 * L'amministratore può pubblicare l'atto a prescindere 283 */ 284 281 285 282 286 ){ -
pafacile/trunk/doSave.php
r643338 r652488 618 618 $numero_registro = $numero_registro[0]; 619 619 if($numero_registro == -1){ 620 621 /* 620 622 sleep(1); 621 623 $sql = "select min(numero_registro) cnt from $table where numero_registro > 0 and id<='$id' and year(pubblicata_dal) =year(now())"; … … 629 631 else $max = 1; 630 632 $new = ($nr_min+$max-1); 631 632 633 $sql = "update $table set numero_registro= $new where id='$id'"; 634 */ 635 636 /* 637 * Since ver. 2.5.5 638 */ 639 $sql = "select max(numero_registro) last_nr from $table where numero_registro>0 and year(pubblicata_dal) = year(now())"; 640 $ultimoNumero = $wpdb->get_var($sql); 641 if(is_null($ultimoNumero)) $ultimoNumero = 0; 642 $ultimoNumero = $ultimoNumero +1; 643 $sql = "update $table set numero_registro= $ultimoNumero where id='$id'"; 644 633 645 $wpdb->query($sql); 634 646 } -
pafacile/trunk/readme.txt
r649945 r652488 81 81 82 82 == Changelog == 83 84 = 2.5.5 (2013-01-14) = 85 * Update: Aggiunto sul profilo utente opzione per l'abilitazione alla gestione delle sovvenzioni 86 * Update: Aggiornato il metodo con cui viene calcolato il numero di registro dell'albo pretorio 83 87 84 88 = 2.5.4 (2013-01-08) = -
pafacile/trunk/toSendIt.php
r643338 r652488 6 6 7 7 public static function checkMinimalMenuRole($userRoles, $menuRoles){ 8 if(current_user_can(' administrator')) return true;8 if(current_user_can('read')) return true; 9 9 if(!is_array($menuRoles)) $menuRoles = array($menuRoles); 10 10 if(isset($menuRoles) && count($menuRoles)>0){ -
pafacile/trunk/tosendit-pa.php
r649945 r652488 3 3 * @package toSend.it 4 4 * @author toSend.it di Luisa Marra 5 * @version 2.5. 45 * @version 2.5.5 6 6 */ 7 7 /* … … 10 10 Description: PAFacile è un plugin nato per consentire alle pubbliche amministrazione di gestire la trasparenza amministrativa secondo gli obblighi di legge. Il plugin è l'unico in Italia a consentire l'adeguamento di un sito web di una pubblica amministrazione agli ultimi aggiornamenti normativa in materia di Albo Pretorio on-line, Bandi di Gara, Delbere e determinazioni, Ordinanze, Organigramma, Incarichi professionali, Sovvenzioni. 11 11 Author: toSend.it di Luisa Marra 12 Version: 2.5. 412 Version: 2.5.5 13 13 Author URI: http://toSend.it 14 14 */ … … 25 25 #define('TOSENDIT_PAFACILE_VERSION', '2.5.2'); 26 26 #define('TOSENDIT_PAFACILE_VERSION', '2.5.3'); 27 define('TOSENDIT_PAFACILE_VERSION', '2.5.4'); 27 #define('TOSENDIT_PAFACILE_VERSION', '2.5.4'); 28 define('TOSENDIT_PAFACILE_VERSION', '2.5.5'); 28 29 29 30 # è PAFacile in un installazione di default
Note: See TracChangeset
for help on using the changeset viewer.