Ignore:
Timestamp:
09/12/08 16:53:27 (16 years ago)
Author:
niltonneto
Message:

Vide changelog do módulo.
http://www.expressolivre.org/dev/wiki/jabberit/changelog
Alterações feitas por Alexandre Correia
email: alexandrecorreia@…

Location:
trunk/jabberit_messenger/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/class.uimodule.inc.php

    r417 r423  
    5454                { 
    5555                        $apps_list = unserialize($apps_list); 
    56                         foreach($apps_list as $tmp) 
    57                                 $apps_en .= "<option value='".$tmp."'>".substr($tmp,strpos($tmp, ";")+1)."</option>"; 
     56                        if(is_array($apps_list)) 
     57                        { 
     58                                foreach($apps_list as $tmp) 
     59                                        $apps_en .= "<option value='".$tmp."'>".substr($tmp,strpos($tmp, ";")+1)."</option>"; 
     60                        } 
    5861                } 
    5962 
    6063                if( $apps_enabled = $this->bo->getApplicationsList() ) 
    6164                { 
    62                         foreach($apps_enabled as $tmp ) 
    63                                 $apps .= "<option value='".$tmp['name'].";".$tmp['title']."'>".$tmp['title']."</option>"; 
     65                        if(is_array($apps_enabled)) 
     66                        { 
     67                                foreach($apps_enabled as $tmp ) 
     68                                        $apps .= "<option value='".$tmp['name'].";".$tmp['title']."'>".$tmp['title']."</option>"; 
     69                        } 
    6470                } 
    6571 
    66                  
    6772                $GLOBALS['phpgw']->template->set_file(array('jabberit_messenger'=>'module.tpl')); 
    6873                $GLOBALS['phpgw']->template->set_block('jabberit_messenger','module');   
     
    7176                                                                                'apps_enabled' => $apps_en, 
    7277                                                                                'apps_list' => $apps, 
    73                                                                                 'lang_Settings_Use_Module_Expresso_Messenger' => 'Configurar o uso do módulo Expresso Messenger', 
    74                                                                                 'lang_Applications_List' => 'Lista de Aplicativos', 
    75                                                                                 'lang_Applications_habilitadas' => 'Aplicativos Habilitados', 
     78                                                                                'lang_Select_the_modules_where_the_Expresso_Messenger_will_be_loaded' => lang('Select the modules where the Expresso Messenger will be loaded.'),                                                                                
     79                                                                                'lang_Enable_the_Expresso_Messenger_module' => lang('Enable the Expresso Messenger module'), 
     80                                                                                'lang_Modules_List' => lang('Modules List'), 
     81                                                                                'lang_Modules_Enabled' => lang('Modules Enabled'), 
    7682                                                                                'lang_save' => lang('Save'), 
    7783                                                                                'lang_cancel' => lang('Cancel') 
     
    97103                        if(is_array($_POST['apps_enabled'])) 
    98104                                $this->bo->setApplications($_POST['apps_enabled']); 
     105                        else 
     106                                $this->bo->setApplications(""); 
    99107                } 
    100108 
  • trunk/jabberit_messenger/inc/hook_admin.inc.php

    r417 r423  
    1515        $file = array( 
    1616                'Site Configuration'    => $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname), 
    17                 'Configurar o Uso do Módulo' => $GLOBALS['phpgw']->link('/index.php','menuaction=jabberit_messenger.uimodule.edit_conf') 
     17                'Enable the Expresso Messenger inside of the modules' => $GLOBALS['phpgw']->link('/index.php','menuaction=jabberit_messenger.uimodule.edit_conf') 
    1818        ); 
    1919         
  • trunk/jabberit_messenger/inc/jabberit_acl.inc.php

    r417 r423  
    1717        $apps = unserialize($GLOBALS['phpgw_info']['server']['apps_jabberit']); 
    1818        $flag = false; 
    19          
    20         foreach($apps as $tmp) 
     19 
     20        if( is_array($apps) ) 
    2121        { 
    22                 $app_enabled = substr($tmp,0,strpos($tmp,";")); 
    23   
    24                 if( $GLOBALS['phpgw_info']['flags']['currentapp'] == $app_enabled ) 
    25                         $flag = true; 
    26         }        
     22                foreach($apps as $tmp) 
     23                { 
     24                        $app_enabled = substr($tmp,0,strpos($tmp,";")); 
     25                        if( $GLOBALS['phpgw_info']['flags']['currentapp'] == $app_enabled ) 
     26                                $flag = true; 
     27                }        
     28        } 
    2729         
    2830        if ( $GLOBALS['phpgw_info']['user']['acl'][$i]['appname'] == 'jabberit_messenger' && ( $flag || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'jabberit_messenger' )) 
Note: See TracChangeset for help on using the changeset viewer.