Ignore:
Timestamp:
11/25/13 17:17:06 (10 years ago)
Author:
angelo
Message:

Ticket #0000 - sincronizacao das alteracoes do trunk com este sandbox

Location:
sandbox/2.5.1-evolucao
Files:
1 added
16 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-evolucao/INSTALL/arquivos/expresso-cron

    r8137 r8265  
    55 
    66# Utilizado para verificar se ha algum alarme, por e-mail, do modulo ExpressoCalendar 
    7 #CENTOS*/1 *    * * *   apache   php    EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
    8 #DEBIAN*/1 *    * * *   www-data php5   EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
     7#CENTOS*/1 *    * * *   apache      php  EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
     8#DEBIAN*/1 *    * * *   www-data    php5 EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
    99 
    1010# Utilizado para limpar a tabela, temporaria, que contem os e-mails (rascunhos) antes de 
    1111#  serem salvos no IMAP. 
    12 #CENTOS00 02    * * *   apache          php     EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
    13 #DEBIAN00 02    * * *   www-data        php5    EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
     12#CENTOS00 02    * * *   apache          php      EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
     13#DEBIAN00 02    * * *   www-data        php5 EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
    1414 
    1515# Utilizado para limpar a tabela de registros de acesso, sessoes, do Expresso (phpgw_access_log) 
    16 #CENTOS00 22    * * *   apache          php     EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
    17 #DEBIAN00 22    * * *   www-data        php5    EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
     16#CENTOS00 22    * * *   apache          php      EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
     17#DEBIAN00 22    * * *   www-data        php5 EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
    1818 
    1919# Utilizado para limpar os arquivos de sessao do PHP 
    20 #*/31 *  * * *   root                    find /dev/shm -type f -name "sess_*" -cmin 240 -print0 | xargs -n 200 -r -0 rm 
    21 */31 *  * * *   root                    find /dev/shm -type f -name "sess_*" -cmin +240 -delete 
     20#*/31 *         * * *   root        find /dev/shm -type f -name "sess_*" -cmin 240 -print0 | xargs -n 200 -r -0 rm 
     21*/31 *          * * *   root        find /dev/shm -type f -name "sess_*" -cmin +240 -delete 
    2222 
    2323# Utilizado para limpar os arquivos, eml, criados ao exportar mensagens 
    24 #13 */4 * * * root                      find /tmp/ -iname "*.eml" -amin +60 -exec rm -f '{}' \; 
    25 13 */4  * * * root                      find /tmp/ -iname "*.eml" -cmin +60 -delete 
     24#13 */4         * * *   root            find /tmp/ -iname "*.eml" -amin +60 -exec rm -f '{}' \; 
     2513 */4          * * *   root            find /tmp/ -iname "*.eml" -cmin +60 -delete 
     26 
     27# Para o DSPAM 
     28#*/15 *         * * *   root        pidof dspam 1&> /dev/null ; [ $? -ne 0 ] && service dspam restart 
    2629 
    2730# 
  • sandbox/2.5.1-evolucao/INSTALL/arquivos/scripts/smtp.sh

    r7503 r8265  
    1111        sed -e "s/DOMAIN/$DOMAIN/g" $DIR_POSTFIX/transport > /etc/postfix/transport 
    1212        cp $DIR_POSTFIX/master.cf /etc/postfix/ 
     13        sed -e "s/LDAP_DN/$LDAP_DN/g" $ARQS/scl.pl > /etc/postfix/scl.pl 
     14    chmod a+x /etc/postfix/scl.pl 
    1315 
    1416        postmap /etc/postfix/expresso-dominios 
     
    2022smtp_rhel () 
    2123{ 
    22         yum -y install postfix 
     24        yum -y install postfix perl-LDAP 
    2325 
    2426        smtp $1  
     
    3638smtp_debian () 
    3739{ 
    38         apt-get -y install postfix postfix-ldap 
     40        apt-get -y install postfix postfix-ldap libnet-ldap-perl 
    3941 
    4042        smtp $1 
  • sandbox/2.5.1-evolucao/INSTALL/debian/squeeze/etc/postfix/main.cf

    r8137 r8265  
    108108cra_maillists_chase_referral = 0 
    109109cra_maillists_search_base = $ldapbase 
    110 cra_maillists_query_filter = (&(mail=%s)(phpgwAccountType=l)(accountRestrictive=mailListRestriction)) 
     110cra_maillists_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(phpgwAccountType=l)(accountRestrictive=mailListRestriction)) 
    111111cra_maillists_result_attribute = accountRestrictive 
    112112cra_maillists_domain = hash:/etc/postfix/expresso-dominios 
     
    166166#SCL - Sender Control List - Restricoes para envio nas listas 
    167167smtpd_restriction_classes = mailListRestriction 
    168 mailListRestriction = check_sender_access ldap:csa_maillists, 
    169                         reject 
     168mailListRestriction = check_policy_service unix:private/scl 
    170169 
    171  
  • sandbox/2.5.1-evolucao/INSTALL/debian/squeeze/etc/postfix/master.cf

    r5797 r8265  
    7575  ${nexthop} ${user} 
    7676 
     77# Script para controle de envio nas listas de discussão 
     78scl  unix    -       n       n       -       0       spawn 
     79        user=nobody argv=/usr/bin/perl /etc/postfix/scl.pl 
     80 
  • sandbox/2.5.1-evolucao/INSTALL/rhel/6/etc/postfix/main.cf

    r8137 r8265  
    166166#SCL - Sender Control List - Restricoes para envio nas listas 
    167167smtpd_restriction_classes = mailListRestriction 
    168 mailListRestriction = check_sender_access ldap:csa_maillists, 
    169                         reject 
     168mailListRestriction = check_policy_service unix:private/scl 
    170169 
    171170# LOCAL PATHNAME INFORMATION 
  • sandbox/2.5.1-evolucao/INSTALL/rhel/6/etc/postfix/master.cf

    r5797 r8265  
    7878bsmtp     unix  -       n       n       -       -       pipe 
    7979  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient 
     80 
     81# Script para controle de envio nas listas de discussão 
     82scl  unix    -       n       n       -       0       spawn 
     83        user=nobody argv=/usr/bin/perl /etc/postfix/scl.pl 
     84 
  • sandbox/2.5.1-evolucao/admin/inc/class.uiconfig.inc.php

    r8231 r8265  
    335335                                                        <script type="text/javascript"> CKEDITOR.replace( \'newsettings[agree_term]\',{ 
    336336                                                                removePlugins : \'elementspath\', 
    337                                                                 skin : \'office2003\', 
     337                                                                skin : \'moono_blue\', 
    338338                                                                toolbar : [["Source","Preview","-","Cut","Copy","Paste","-","Print", 
    339339                                                                "Undo","Redo","-","Find","Replace","-","SelectAll" ], 
  • sandbox/2.5.1-evolucao/admin/inc/class.uimainscreen.inc.php

    r7109 r8265  
    151151                                                'CKEDITOR.replace( \'message\',{'. 
    152152                                                'removePlugins : \'elementspath\','. 
    153                                                 'skin : \'office2003\','. 
     153                                                'skin : \'moono_blue\','. 
    154154                                                'toolbar : \'Full\''. 
    155155                                                '}'. 
  • sandbox/2.5.1-evolucao/expressoAdmin1_2/js/jscode/maillists.js

    r7752 r8265  
    281281        if (new_options != '') 
    282282        { 
    283                 select_usersInMaillist.innerHTML = '#' + new_options + select_usersInMaillist.innerHTML; 
    284                 select_usersInMaillist.outerHTML = select_usersInMaillist.outerHTML; 
     283                usersOptionsHtml = select_usersInMaillist.innerHTML; 
     284                usersOptionsHtml = (($.browser.msie && $.browser.version < 9) ? '#' : '&nbsp;') + new_options + usersOptionsHtml; 
     285                $(select_usersInMaillist).html(usersOptionsHtml); 
    285286        } 
    286287} 
  • sandbox/2.5.1-evolucao/expressoMail1_2/js/common_functions.js

    r8069 r8265  
    700700 function filter_from_msg (msg) {  
    701701        var html = DataLayer.render( BASE_PATH + 'modules/filters/init.ejs', {});  
    702         initialize_container(html);  
     702        initialize_container(html); 
     703        outOfficeVerify();  
    703704        list_container = create_filter_dialog();  
    704705        render_new_rule(msg.from.email, html_entities(msg.subject));  
  • sandbox/2.5.1-evolucao/expressoMail1_2/js/rich_text_editor.js

    r8192 r8265  
    367367                                selection.selectRanges(selectionRanges); 
    368368                        } 
    369                          
     369            if (CKEDITOR.env.ie){ 
     370                var body = editor.document.getBody(); 
     371                var range = new CKEDITOR.dom.range(body); 
     372                range.selectNodeContents(body); 
     373                range.collapse(true); 
     374                var selection = editor.getSelection(); 
     375                selection.selectRanges([range]); 
     376            }                    
    370377                        if (is_webkit){ 
    371378                                $('#cke_contents_body_'+id+'>iframe').scrollTo(':first'); 
  • sandbox/2.5.1-evolucao/filemanager/inc/class.uifilemanager.inc.php

    r7681 r8265  
    975975                                                <script type="text/javascript"> CKEDITOR.replace( \'edit_file_content\',{ 
    976976removePlugins : \'elementspath\', 
    977 skin : \'office2003\', 
     977skin : \'moono_blue\', 
    978978toolbar : [["Source","Preview","-","Cut","Copy","Paste","-","Print", 
    979979"Undo","Redo","-","Find","Replace","-","SelectAll" ], 
  • sandbox/2.5.1-evolucao/news_admin/inc/class.uinews.inc.php

    r5329 r8265  
    443443                        <script type="text/javascript"> CKEDITOR.replace( \'news[content]\',{ 
    444444                        removePlugins : \'elementspath\', 
    445                         skin : \'office2003\', 
     445                        skin : \'moono_blue\', 
    446446                        toolbar : [["Source","Preview","-","Cut","Copy","Paste","-","Print", 
    447447                        "Undo","Redo","-","Find","Replace","-","SelectAll" ], 
  • sandbox/2.5.1-evolucao/prototype/config/calendarSignature.ini

    r7935 r8265  
    1616 
    1717[before.read] 
    18 calendarSignatureSecurity = modules/calendar/interceptors/DBMapping.php 
     18;calendarSignatureSecurity = modules/calendar/interceptors/DBMapping.php 
    1919 
    2020[before.find] 
    21 calendarSignatureSecurity = modules/calendar/interceptors/DBMapping.php 
     21;calendarSignatureSecurity = modules/calendar/interceptors/DBMapping.php 
    2222 
    2323[after.read] 
  • sandbox/2.5.1-evolucao/prototype/services/iCal.php

    r7959 r8265  
    495495            $isResponseDelegated = false; 
    496496            if ((isset($pv['delegatedFrom']) && $pv['delegatedFrom'] == 0) || !isset($pv['delegatedFrom']))  { 
    497                 if ($pv['isOrganizer'] == 1) 
    498                     $vevent->setProperty('organizer', $pv['user']['mail'], array('CN' => $pv['user']['name'])); 
    499                 else { 
     497                if ($pv['isOrganizer'] == 1){ 
     498                        if($pv['user']['id'] == Config::me('uidNumber')) 
     499                                $pv['user']['mail'] = $pv['user']['mailSenderAddress']; 
     500                                //$pv['user']['mail'] = str_replace('@correiolivre.caixa','@caixa.gov.br',$pv['user']['mail']);                                    
     501                         
     502                        $vevent->setProperty('organizer', $pv['user']['mail'], array('CN' => $pv['user']['name'])); 
     503                }else { 
    500504                    $pParams = array(); 
    501505                    $pParams['CN'] = $pv['user']['name']; 
     
    618622                        if (self::_getTime($component, 'dtstamp') > $schedulable['dtstamp'] || $component->getProperty('sequence', false, false) > $schedulable['sequence']){ //Organizador esta requisitando que você atualize o evento 
    619623 
     624 
    620625                            $params['calendar'] = $params['calendar'] == 'true' ? $calendar : $params['calendar']; 
    621626                            $interation = self::_makeVEVENT($schedulable, $component, $params); 
     
    642647                    $interation = self::_makeVEVENT(array(), $component, $params); 
    643648 
    644                     if (strpos($params['prodid'], 'kigkonsult.se') !== false) { //envia notificação para fora 
     649                       if (strpos($params['prodid'], 'kigkonsult.se') !== false) { //envia notificação para fora 
    645650 
    646651                        /* Data de Inicio */ 
     
    693698 
    694699 
     700 
    695701                        if ($uid = $component->getProperty('uid', false, false)) 
    696702                        ; 
     
    710716 
    711717 
     718 
     719 
    712720                        if ($property = $component->getProperty('organizer', FALSE, TRUE)) { 
    713721                        $participant = array(); 
     
    733741                        $sc['participants'][] = $participant; 
    734742                        } 
     743 
    735744 
    736745 
     
    749758                        $sc['participants'][] = $participant; 
    750759                        $sc['type'] = EVENT_ID; 
     760 
    751761 
    752762 
     
    801811                            break; 
    802812                        } 
     813 
    803814                        require_once ROOTPATH . '/api/parseTPL.php'; 
    804815 
     
    12281239                    foreach ($schedulable['participants'] as $value){ 
    12291240 
     1241 
    12301242                        if ($value['user']['id'] == $params['owner']) { 
    12311243                            $isParticipant = true; 
     
    14291441 
    14301442 
     1443 
    14311444        return $offset; 
    14321445    } 
     
    14571470    } 
    14581471 
     1472 
    14591473    private function _getStatusTodo($id) { 
    14601474        $a = array( 
     
    14671481    return isset($a[$id]) ? $a[$id] : 'NEED_ACTION'; 
    14681482    } 
     1483 
    14691484 
    14701485    private static function _checkParticipantByPermissions($schedulable) { 
     
    15831598 
    15841599    static private function _makeVEVENT($schedulable, $component, $params) { 
     1600 
     1601 
    15851602        $interation = array(); 
    15861603        $eventID = isset($schedulable['id']) ? $schedulable['id'] : mt_rand() . '(Formatter)'; 
     
    16411658 
    16421659 
     1660 
    16431661        $schedulable['summary'] = mb_convert_encoding($component->getProperty('summary', false, false), 'ISO-8859-1', 'UTF-8,ISO-8859-1'); 
    16441662 
     
    16501668        if ($location = $component->getProperty('location', false, false)) 
    16511669            $schedulable['location'] = mb_convert_encoding($location, 'ISO-8859-1', 'UTF-8,ISO-8859-1'); 
     1670 
    16521671 
    16531672 
     
    16941713            $participant['schedulable'] = $eventID; 
    16951714 
    1696             if (isset($params['status']) && $mailUser == Config::me('mail')) 
     1715            if (isset($params['status']) &&  ltrim( substr( $mailUser, 0 , strpos( $mailUser, '@' ) ), '@' )  ==  ltrim( substr( Config::me('mail'), 0, strpos( Config::me('mail'), '@' ) ), '@' )) 
    16971716                $participant['status'] = $params['status']; 
    16981717            else 
    16991718                $participant['status'] = (isset($property['params']['PARTSTAT']) && constant('STATUS_' . $property['params']['PARTSTAT']) !== null ) ? constant('STATUS_' . $property['params']['PARTSTAT']) : STATUS_UNANSWERED; 
    1700  
    17011719 
    17021720            $participant['isOrganizer'] = '0'; 
     
    17311749 
    17321750 
     1751 
    17331752            if($participant = self::_getParticipantByMail($mailUser, $schedulable['participants'], true)){ 
    17341753 
     
    17481767            /* Verifica se este usuario é um usuario interno do ldap */ 
    17491768            $intUser = Controller::find(array('concept' => 'user'), array('id', 'isExternal'), array('filter' => array('OR', array('=', 'mail', $mailUser), array('=', 'mailAlternateAddress', $mailUser)))); 
    1750             $user = null; 
    1751             if ($intUser && count($intUser) > 0) { 
     1769 
     1770            $user = null; 
     1771            if ($intUser && count($intUser) > 0 && $intUser[0]['id']) { 
    17521772                $participant['isExternal'] = isset($intUser[0]['isExternal']) ? $intUser[0]['isExternal'] : 0; 
    17531773                $participant['user'] = $intUser[0]['id']; 
     
    19421962        $schedulable['summary'] = mb_convert_encoding($component->getProperty('summary', false, false), 'ISO-8859-1', 'UTF-8,ISO-8859-1'); 
    19431963 
     1964 
    19441965        /* Definindo Description */ 
    19451966        if ($desc = $component->getProperty('description', false, false)) 
     
    21442165        $interation['schedulable://' . $todoID] = $schedulable; 
    21452166 
     2167 
     2168 
    21462169    return $interation; 
    21472170    } 
     
    21632186                foreach ($sig2 as $val) 
    21642187                    $calendars[] = $val['calendar']; 
     2188 
    21652189 
    21662190 
  • sandbox/2.5.1-evolucao/workflow/inc/smarty/wf_plugins/function.wf_fckeditor.php

    r5331 r8265  
    8484                                'CKEDITOR.replace( \''.$base_arguments['InstanceName'].'\',{'. 
    8585                                        'removePlugins : \'elementspath\','. 
    86                                         'skin : \'office2003\','. 
     86                                        'skin : \'moono_blue\','. 
    8787                                        'toolbar : \'Full\''. 
    8888                                        '}'. 
Note: See TracChangeset for help on using the changeset viewer.