Changeset 7730


Ignore:
Timestamp:
01/11/13 08:48:41 (11 years ago)
Author:
marcieli
Message:

Ticket #3236 - Correcoes de seguranca com base no segundo relatorio emitido.

Location:
trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.bocalendar.inc.php

    r7712 r7730  
    28712871                        //verifica se todos os participantes rejeitaram o evento 
    28722872                        for($i = 0; $i < count($sts); ++$i ){ 
    2873                                 if( $sts[i] === "R") 
    2874                                         unset( $sts[i] ); 
     2873                                if( $sts[$i] === "R") 
     2874                                        unset( $sts[$i] ); 
    28752875                        } 
    28762876                         
     
    36673667                                                                                                                $varbuttom3 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uialarm.manager method='POST'> 
    36683668                                                                                                                                                                  <input type='submit' value='$lang4'> 
    3669                                                                                                                                                                   <input type='hidden' name='cal_id' value=$event[id]> 
     3669                                                                                                                                                                  <input type='hidden' name='cal_id' value={$event['id']}> 
    36703670                                                                                                                                                                   </form>"; 
    36713671                                                                                                                                                                    
    36723672                                                                                                                $lang5 = lang("Suggest new hour");  
    3673                                                                                                                 $varbuttom4 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id=$event[id]&date=$newall3&type=1' method='POST'> 
     3673                                                                                                                $varbuttom4 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id={$event['id']}&date=$newall3&type=1' method='POST'> 
    36743674                                                                                                                                                                  <input type='submit' value='$lang5'> 
    36753675                                                                                                                                                                   </form>"; 
     
    40834083                                $to_notify = $event['participants']; 
    40844084                        } 
    4085                         elseif ($this->check_perms(PHPGW_ACL_READ,$event))      // checks agains $this->owner set to $alarm[owner] 
     4085                        elseif ($this->check_perms(PHPGW_ACL_READ,$event))      // checks agains $this->owner set to $alarm['owner'] 
    40864086                        { 
    40874087                                $to_notify[$alarm['owner']] = 'A'; 
     
    42714271                                $event['owner'] != $this->owner && 
    42724272                                $event['participants'][$this->owner] == 'R'; 
    4273                         //echo "<p>rejected_no_show($event[title])='$ret': user=$this->owner, event-owner=$event[owner], status='".$event['participants'][$this->owner]."', show_rejected='".$this->prefs['calendar']['show_rejected']."'</p>\n"; 
     4273                        //echo "<p>rejected_no_show($event['title'])='$ret': user=$this->owner, event-owner=$event['owner'], status='".$event['participants'][$this->owner]."', show_rejected='".$this->prefs['calendar']['show_rejected']."'</p>\n"; 
    42744274                        return $ret; 
    42754275                } 
  • trunk/calendar/inc/class.boholiday.inc.php

    r7712 r7730  
    387387 
    388388                        $temp_locale = $GLOBALS['phpgw_info']['user']['preferences']['common']['country']; 
    389                         for($i=0;$i<count($holidays);++$i) 
     389            $holidays_count = count($holidays); 
     390                        for($i=0;$i<$holidays_count;++$i) 
    390391                        { 
    391392                                $c = $i; 
     
    442443                        else 
    443444                        { 
    444                                 $str = $GLOBALS['phpgw']->common->dateformatorder($holiday['occurence']>1900?$holiday['occurence']:'',$month,$holiday[day]); 
     445                                $str = $GLOBALS['phpgw']->common->dateformatorder($holiday['occurence']>1900?$holiday['occurence']:'',$month,$holiday['day']); 
    445446                        } 
    446447                        if ($holiday['observance_rule']) 
  • trunk/calendar/inc/class.uicalendar.inc.php

    r7712 r7730  
    57555755                        if ($control_data['action'] == lang('Delete selected contacts')) 
    57565756                        { 
    5757                                 for ($i=0; $i<count($control_data['delete']); ++$i) 
     5757                $control_data_count = count($control_data['delete']); 
     5758                                for ($i=0; $i<$control_data_count; ++$i) 
    57585759                                { 
    57595760                                        $id = $control_data['delete'][$i]; 
  • trunk/calendar/templates/classic/header.inc.php

    r7655 r7730  
    105105                if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants']) 
    106106                { 
    107                         for ($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);++$i) 
     107            $globals_count = count($GLOBALS['HTTP_POST_VARS']['participants']); 
     108                        for ($i=0;$i<$globals_count;++$i) 
    108109                        { 
    109110                                $base_hidden_vars .= '    <input type="hidden" name="participants[]" value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n"; 
  • trunk/expressoMail1_2/inc/class.message_components.inc.php

    r7712 r7730  
    107107                } 
    108108 
    109                 for($p = 0, $i = 1; $p < count($parts); ++$n, ++$p, ++$i) 
     109                $parts_count = count($parts); 
     110                for($p = 0, $i = 1; $p < $parts_count; ++$n, ++$p, ++$i) 
    110111                { 
    111112                    // Skip the following... 
  • trunk/library/PEAR/PEAR/Command/Registry.php

    r7681 r7730  
    985985                        $info[$infoindex] .= "$type $name"; 
    986986                        if (isset($package['uri'])) { 
    987                             $info[$infoindex] .= "\n  Download URI: $package[uri]"; 
     987                            $info[$infoindex] .= "\n  Download URI: {$package['uri']}"; 
    988988                            continue; 
    989989                        } 
  • trunk/library/PEAR/PEAR/PackageFile/Generator/v1.php

    r7681 r7730  
    202202        $ret .= "<!DOCTYPE package SYSTEM \"http://pear.php.net/dtd/package-1.0\">\n"; 
    203203        $ret .= "<package version=\"1.0\" packagerversion=\"1.9.4\">\n" . 
    204 " <name>$pkginfo[package]</name>"; 
     204" <name>{$pkginfo['package']}</name>"; 
    205205        if (isset($pkginfo['extends'])) { 
    206206            $ret .= "\n<extends>{$pkginfo['extends']}</extends>"; 
  • trunk/library/PEAR/PEAR/PackageFile/v2.php

    r7673 r7730  
    329329        $mymaintainers = $this->getMaintainers(); 
    330330        $yourmaintainers = $pf1->getMaintainers(); 
    331         $yourmaintainers_count = count($yourmaintainers); 
    332         for ($i1 = 0; $i1 < $yourmaintainers_count; ++$i1) { 
     331        for ($i1 = 0; $i1 < count($yourmaintainers); ++$i1) { 
    333332            $reset = false; 
    334             $mymaintainers_count = count($mymaintainers); 
    335             for ($i2 = 0; $i2 < $mymaintainers_count; ++$i2) { 
     333            for ($i2 = 0; $i2 < count($mymaintainers); ++$i2) { 
    336334                if ($mymaintainers[$i2]['handle'] == $yourmaintainers[$i1]['handle']) { 
    337335                    if ($mymaintainers[$i2]['role'] != $yourmaintainers[$i1]['role']) { 
  • trunk/library/PEAR/PEAR/RunTest.php

    r7655 r7730  
    656656            $data .= " 
    657657---- EXPECTED RETURN 
    658 $section_text[RETURNS] 
     658{$section_text['RETURNS']} 
    659659---- ACTUAL RETURN 
    660660$return_value 
  • trunk/library/PEAR/scripts/pearcmd.php

    r5146 r7730  
    337337        } 
    338338        $put .= 
    339             "Usage: $progname [options] command [command-options] <parameters>\n". 
     339            "Usage: $progname ['options'] command ['command-options'] <parameters>\n". 
    340340            "Type \"$progname help options\" to list all options.\n". 
    341341            "Type \"$progname help shortcuts\" to list all command shortcuts.\n". 
     
    385385    } elseif ($help = PEAR_Command::getHelp($command)) { 
    386386        if (is_string($help)) { 
    387             return "$progname $command [options] $help\n"; 
     387            return "$progname $command ['options'] $help\n"; 
    388388        } 
    389389 
     
    392392        } 
    393393 
    394         return "$progname $command [options] $help[0]\n$help[1]"; 
     394        return "$progname $command ['options'] $help[0]\n$help[1]"; 
    395395    } 
    396396 
  • trunk/library/csstidy/class.csstidy_optimise.php

    r7712 r7730  
    302302            $color_tmp = substr($color,4,strlen($color)-5); 
    303303            $color_tmp = explode(',',$color_tmp); 
    304             for ( $i = 0; $i < count($color_tmp); ++$i ) 
     304            $color_tmp_count = count($color_tmp); 
     305            for ( $i = 0; $i < $color_tmp_count; ++$i ) 
    305306            { 
    306307                $color_tmp[$i] = trim ($color_tmp[$i]); 
  • trunk/phpgwapi/inc/class.contacts_ldap.inc.php

    r7712 r7730  
    328328                                { 
    329329                                        $i=0; 
    330                                         for($i=0;$i<count($filterarray);++$i) 
     330                    $filterarray_count = count($filterarray); 
     331                                        for($i=0;$i<$filterarray_count;++$i) 
    331332                                        { 
    332333                                                list($name,$value) = preg_split('/=/',$filterarray[$i]); 
  • trunk/phpgwapi/inc/class.http.inc.php

    r7673 r7730  
    291291                                        $headers['Content-length'] = $body_length; 
    292292                                } 
    293                                 for($host_set=0,Reset($headers),$header=0;$header<count($headers);Next($headers),$header++) 
     293                $headers_count = count($headers); 
     294                                for($host_set=0,Reset($headers),$header=0;$header<$headers_count;Next($headers),$header++) 
    294295                                { 
    295296                                        $header_name  = Key($headers); 
     
    338339                                                                ($match == 0 || $domain_pattern[0] == '.' || $this->request_host[$match-1] == '.')) 
    339340                                                        { 
    340                                 $cookies_count = count($this->cookies[0][$domain_pattern]); 
    341                                                                 for(Reset($this->cookies[0][$domain_pattern]),$path_part=0;$path_part<$cookies_count;Next($this->cookies[0][$domain_pattern]),$path_part++) 
     341                                $cookies_count_domain_pattern = count($this->cookies[0][$domain_pattern]); 
     342                                                                for(Reset($this->cookies[0][$domain_pattern]),$path_part=0;$path_part<$cookies_count_domain_pattern;Next($this->cookies[0][$domain_pattern]),$path_part++) 
    342343                                                                { 
    343344                                                                        $path = Key($this->cookies[0][$domain_pattern]); 
    344345                                                                        if(strlen($this->request_uri) >= strlen($path) && substr($this->request_uri,0,strlen($path)) == $path) 
    345346                                                                        { 
    346                                         $cookies_count = count($this->cookies[0][$domain_pattern][$path]); 
    347                                                                                 for(Reset($this->cookies[0][$domain_pattern][$path]),$cookie = 0;$cookie<$cookies_count;Next($this->cookies[0][$domain_pattern][$path]),$cookie++) 
     347                                        $cookies_count_path = count($this->cookies[0][$domain_pattern][$path]); 
     348                                                                                for(Reset($this->cookies[0][$domain_pattern][$path]),$cookie = 0;$cookie<$cookies_count_path;Next($this->cookies[0][$domain_pattern][$path]),$cookie++) 
    348349                                                                                { 
    349350                                                                                        $cookie_name = Key($this->cookies[0][$domain_pattern][$path]); 
     
    528529                        $now = gmdate('Y-m-d H-i-s'); 
    529530                        $cookies = array(); 
    530                         for($secure_cookies = 0,Reset($this->cookies);$secure_cookies<count($this->cookies);Next($this->cookies),$secure_cookies++) 
     531            $cookies_count = count($this->cookies); 
     532                        for($secure_cookies = 0,Reset($this->cookies);$secure_cookies<$cookies_count;Next($this->cookies),$secure_cookies++) 
    531533                        { 
    532534                                $secure = Key($this->cookies); 
    533                 $cookies_count = count($this->cookies[$secure]); 
    534                                 for($domain = 0,Reset($this->cookies[$secure]);$domain<$cookies_count;Next($this->cookies[$secure]),$domain++) 
     535                $cookies_count_secure = count($this->cookies[$secure]); 
     536                                for($domain = 0,Reset($this->cookies[$secure]);$domain<$cookies_count_secure;Next($this->cookies[$secure]),$domain++) 
    535537                                { 
    536538                                        $domain_pattern = Key($this->cookies[$secure]); 
    537                     $cookies_count = count($this->cookies[$secure][$domain_pattern]); 
    538                                         for(Reset($this->cookies[$secure][$domain_pattern]),$path_part=0;$path_part<$cookies_count;Next($this->cookies[$secure][$domain_pattern]),$path_part++) 
     539                    $cookies_count_domain_pattern = count($this->cookies[$secure][$domain_pattern]); 
     540                                        for(Reset($this->cookies[$secure][$domain_pattern]),$path_part=0;$path_part<$cookies_count_domain_pattern;Next($this->cookies[$secure][$domain_pattern]),$path_part++) 
    539541                                        { 
    540542                                                $path=Key($this->cookies[$secure][$domain_pattern]); 
    541                         $cookies_count = count($this->cookies[$secure][$domain_pattern][$path]); 
    542                                                 for(Reset($this->cookies[$secure][$domain_pattern][$path]),$cookie=0;$cookie<$cookies_count;Next($this->cookies[$secure][$domain_pattern][$path]),$cookie++) 
     543                        $cookies_count_path = count($this->cookies[$secure][$domain_pattern][$path]); 
     544                                                for(Reset($this->cookies[$secure][$domain_pattern][$path]),$cookie=0;$cookie<$cookies_count_path;Next($this->cookies[$secure][$domain_pattern][$path]),$cookie++) 
    543545                                                { 
    544546                                                        $cookie_name = Key($this->cookies[$secure][$domain_pattern][$path]); 
  • trunk/prototype/config/OpenLDAP.srv

    r7620 r7730  
    44idAtribute = "uidNumber" 
    55host = 127.0.0.1 
    6 context = "LDAP_DN" 
    7 ; Caso o LDAP requisite autenticacao, configure os parametros a seguir 
    8 ;user =  
    9 ;password =  
     6 
     7context = "dc=prognus" 
     8user = "cn=admin,dc=prognus" 
     9password = "prognus" 
     10 
  • trunk/prototype/config/PostgreSQL.srv

    r7552 r7730  
    77;host = 127.0.0.1 
    88port = 5432 
    9 dbname = expresso 
    10 user = postgres 
     9dbname = expresso24marcieli 
     10user = expressodev 
    1111; Caso o usuario tenha senha... 
    12 ;password= 
     12password=prognus 
  • trunk/prototype/plugins/icalcreator/iCalcreator.class.php

    r7660 r7730  
    17021702    foreach( $rows as $lix => $line ) { 
    17031703      if(     'BEGIN:VCALENDAR' == strtoupper( substr( $line, 0, 15 ))) { 
    1704         $calsync++; 
     1704          ++$calsync; 
    17051705        continue; 
    17061706      } 
     
    17251725      elseif( 'BEGIN:VFREEBUSY' == strtoupper( substr( $line, 0, 15 ))) { 
    17261726        $comp = new vfreebusy( $config ); 
    1727         $compsync++; 
     1727          ++$compsync; 
    17281728      } 
    17291729      elseif( 'BEGIN:VJOURNAL'  == strtoupper( substr( $line, 0, 14 ))) { 
    17301730        $comp = new vjournal( $config ); 
    1731         $compsync++; 
     1731          ++$compsync; 
    17321732      } 
    17331733      elseif( 'BEGIN:VTODO'     == strtoupper( substr( $line, 0, 11 ))) { 
    17341734        $comp = new vtodo( $config ); 
    1735         $compsync++; 
     1735          ++$compsync; 
    17361736      } 
    17371737      elseif( 'BEGIN:VTIMEZONE' == strtoupper( substr( $line, 0, 15 ))) { 
    17381738        $comp = new vtimezone( $config ); 
    1739         $compsync++; 
     1739          ++$compsync; 
    17401740      } 
    17411741      else { /* update component with unparsed data */ 
     
    17691769          else 
    17701770            $propname .= $char; 
    1771           $cix++; 
     1771            ++$cix; 
    17721772        } 
    17731773            /* skip non standard property names */ 
     
    18141814          else 
    18151815            $attr[$attrix] .= $line[$cix]; 
    1816           $cix++; 
     1816            ++$cix; 
    18171817        } 
    18181818            /* make attributes in array format */ 
     
    18311831          while( FALSE !== substr( $line, $lix, 1 )) { 
    18321832            if(( 0 < $lix ) && ( ',' == $line[$lix] ) && ( "\\" != $line[( $lix - 1 )])) { 
    1833               $cix++; 
     1833                ++$cix; 
    18341834              $content[$cix] = ''; 
    18351835            } 
    18361836            else 
    18371837              $content[$cix] .= $line[$lix]; 
    1838             $lix++; 
     1838              ++$lix; 
    18391839          } 
    18401840          if( 1 < count( $content )) { 
     
    43724372    $length = 6; 
    43734373    $str    = null; 
    4374     for( $p = 0; $p < $length; $p++ ) 
     4374    for( $p = 0; $p < $length; ++$p ) 
    43754375      $unique .= $base{mt_rand( $start, $end )}; 
    43764376    $this->uid = array( 'params' => null ); 
     
    47894789                } 
    47904790                $content2 .= $content21.$content22; 
    4791                 $bydaycnt++; 
     4791                  ++$bydaycnt; 
    47924792              } 
    47934793              else { 
     
    47974797                else { 
    47984798                  $content22 .= $valuePart; 
    4799                   $bydaycnt++; 
     4799                    ++$bydaycnt; 
    48004800                } 
    48014801                $content2 .= $content21.$content22; 
     
    53665366        $ak = ( is_array( $this->attach )) ? array_keys( $this->attach ) : array(); 
    53675367        while( is_array( $this->attach ) && !isset( $this->attach[$propix] ) && ( 0 < count( $this->attach )) && ( $propix < end( $ak ))) 
    5368           $propix++; 
     5368            ++$propix; 
    53695369        $this->propix[$propName] = $propix; 
    53705370        if( !isset( $this->attach[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    53745374        $ak = ( is_array( $this->attendee )) ? array_keys( $this->attendee ) : array(); 
    53755375        while( is_array( $this->attendee ) && !isset( $this->attendee[$propix] ) && ( 0 < count( $this->attendee )) && ( $propix < end( $ak ))) 
    5376           $propix++; 
     5376            ++$propix; 
    53775377        $this->propix[$propName] = $propix; 
    53785378        if( !isset( $this->attendee[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    53825382        $ak = ( is_array( $this->categories )) ? array_keys( $this->categories ) : array(); 
    53835383        while( is_array( $this->categories ) && !isset( $this->categories[$propix] ) && ( 0 < count( $this->categories )) && ( $propix < end( $ak ))) 
    5384           $propix++; 
     5384            ++$propix; 
    53855385        $this->propix[$propName] = $propix; 
    53865386        if( !isset( $this->categories[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    53935393        $ak = ( is_array( $this->comment )) ? array_keys( $this->comment ) : array(); 
    53945394        while( is_array( $this->comment ) && !isset( $this->comment[$propix] ) && ( 0 < count( $this->comment )) && ( $propix < end( $ak ))) 
    5395           $propix++; 
     5395            ++$propix; 
    53965396        $this->propix[$propName] = $propix; 
    53975397        if( !isset( $this->comment[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    54045404        $ak = ( is_array( $this->contact )) ? array_keys( $this->contact ) : array(); 
    54055405        while( is_array( $this->contact ) && !isset( $this->contact[$propix] ) && ( 0 < count( $this->contact )) && ( $propix < end( $ak ))) 
    5406           $propix++; 
     5406            ++$propix; 
    54075407        $this->propix[$propName] = $propix; 
    54085408        if( !isset( $this->contact[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    54155415        $ak = ( is_array( $this->description )) ? array_keys( $this->description ) : array(); 
    54165416        while( is_array( $this->description ) && !isset( $this->description[$propix] ) && ( 0 < count( $this->description )) && ( $propix < end( $ak ))) 
    5417           $propix++; 
     5417            ++$propix; 
    54185418        $this->propix[$propName] = $propix; 
    54195419        if( !isset( $this->description[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    54445444        $ak = ( is_array( $this->exdate )) ? array_keys( $this->exdate ) : array(); 
    54455445        while( is_array( $this->exdate ) && !isset( $this->exdate[$propix] ) && ( 0 < count( $this->exdate )) && ( $propix < end( $ak ))) 
    5446           $propix++; 
     5446            ++$propix; 
    54475447        $this->propix[$propName] = $propix; 
    54485448        if( !isset( $this->exdate[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    54525452        $ak = ( is_array( $this->exrule )) ? array_keys( $this->exrule ) : array(); 
    54535453        while( is_array( $this->exrule ) && !isset( $this->exrule[$propix] ) && ( 0 < count( $this->exrule )) && ( $propix < end( $ak ))) 
    5454           $propix++; 
     5454            ++$propix; 
    54555455        $this->propix[$propName] = $propix; 
    54565456        if( !isset( $this->exrule[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    54605460        $ak = ( is_array( $this->freebusy )) ? array_keys( $this->freebusy ) : array(); 
    54615461        while( is_array( $this->freebusy ) && !isset( $this->freebusy[$propix] ) && ( 0 < count( $this->freebusy )) && ( $propix < end( $ak ))) 
    5462           $propix++; 
     5462            ++$propix; 
    54635463        $this->propix[$propName] = $propix; 
    54645464        if( !isset( $this->freebusy[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    54865486        $ak = ( is_array( $this->rdate )) ? array_keys( $this->rdate ) : array(); 
    54875487        while( is_array( $this->rdate ) && !isset( $this->rdate[$propix] ) && ( 0 < count( $this->rdate )) && ( $propix < end( $ak ))) 
    5488           $propix++; 
     5488            ++$propix; 
    54895489        $this->propix[$propName] = $propix; 
    54905490        if( !isset( $this->rdate[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    54975497        $ak = ( is_array( $this->relatedto )) ? array_keys( $this->relatedto ) : array(); 
    54985498        while( is_array( $this->relatedto ) && !isset( $this->relatedto[$propix] ) && ( 0 < count( $this->relatedto )) && ( $propix < end( $ak ))) 
    5499           $propix++; 
     5499            ++$propix; 
    55005500        $this->propix[$propName] = $propix; 
    55015501        if( !isset( $this->relatedto[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    55085508        $ak = ( is_array( $this->requeststatus )) ? array_keys( $this->requeststatus ) : array(); 
    55095509        while( is_array( $this->requeststatus ) && !isset( $this->requeststatus[$propix] ) && ( 0 < count( $this->requeststatus )) && ( $propix < end( $ak ))) 
    5510           $propix++; 
     5510            ++$propix; 
    55115511        $this->propix[$propName] = $propix; 
    55125512        if( !isset( $this->requeststatus[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    55165516        $ak = ( is_array( $this->resources )) ? array_keys( $this->resources ) : array(); 
    55175517        while( is_array( $this->resources ) && !isset( $this->resources[$propix] ) && ( 0 < count( $this->resources )) && ( $propix < end( $ak ))) 
    5518           $propix++; 
     5518            ++$propix; 
    55195519        $this->propix[$propName] = $propix; 
    55205520        if( !isset( $this->resources[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    55245524        $ak = ( is_array( $this->rrule )) ? array_keys( $this->rrule ) : array(); 
    55255525        while( is_array( $this->rrule ) && !isset( $this->rrule[$propix] ) && ( 0 < count( $this->rrule )) && ( $propix < end( $ak ))) 
    5526           $propix++; 
     5526            ++$propix; 
    55275527        $this->propix[$propName] = $propix; 
    55285528        if( !isset( $this->rrule[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 
     
    56765676      return FALSE; 
    56775677    $arglist[0] = strtoupper( $arglist[0] ); 
    5678     for( $argix=$numargs; $argix < 12; $argix++ ) { 
     5678    for( $argix=$numargs; $argix < 12; ++$argix ) { 
    56795679      if( !isset( $arglist[$argix] )) 
    56805680        $arglist[$argix] = null; 
     
    58305830      elseif( 'BEGIN:VALARM'   == strtoupper( substr( $line, 0, 12 ))) { 
    58315831        $comp = new valarm( $config); 
    5832         $subsync++; 
     5832          ++$subsync; 
    58335833      } 
    58345834      elseif( 'BEGIN:STANDARD' == strtoupper( substr( $line, 0, 14 ))) { 
    58355835        $comp = new vtimezone( 'standard', $config ); 
    5836         $subsync++; 
     5836          ++$subsync; 
    58375837      } 
    58385838      elseif( 'BEGIN:DAYLIGHT' == strtoupper( substr( $line, 0, 14 ))) { 
    58395839        $comp = new vtimezone( 'daylight', $config ); 
    5840         $subsync++; 
     5840          ++$subsync; 
    58415841      } 
    58425842      elseif( 'BEGIN:'         == strtoupper( substr( $line, 0, 6 )))  // begin:<component> 
    5843         $compsync++; 
     5843          ++$compsync; 
    58445844      else 
    58455845        $comp->unparsed[]       = $line; 
     
    59185918            break; 
    59195919          } 
    5920           $cix++; 
     5920            ++$cix; 
    59215921        } 
    59225922        if( '"' == $line[$cix] ) 
     
    59265926        else 
    59275927          $attr[$attrix] .= $line[$cix]; 
    5928         $cix++; 
     5928          ++$cix; 
    59295929      } 
    59305930            /* make attributes in array format */ 
     
    59595959            while( FALSE !== substr( $line, $lix, 1 )) { 
    59605960              if(( ',' == $line[$lix] ) && ( "\\" != $line[( $lix - 1 )])) { 
    5961                 $cix++; 
     5961                  ++$cix; 
    59625962                $content[$cix] = ''; 
    59635963              } 
    59645964              else 
    59655965                $content[$cix] .= $line[$lix]; 
    5966               $lix++; 
     5966                ++$lix; 
    59675967            } 
    59685968            if( 1 < count( $content )) { 
     
    61596159          return TRUE; 
    61606160        } 
    6161         $cix2dC++; 
     6161          ++$cix2dC; 
    61626162      } 
    61636163      elseif( !$argType && ($arg1 == $component->getProperty( 'uid' ))) { 
     
    62106210         if( $index == $cix2gC ) 
    62116211           return $component->copy(); 
    6212          $cix2gC++; 
     6212          ++$cix2gC; 
    62136213      } 
    62146214      elseif( !$argType && ( $arg1 == $component->getProperty( 'uid' ))) 
     
    63036303          return TRUE; 
    63046304        } 
    6305         $cix2sC++; 
     6305          ++$cix2sC; 
    63066306      } 
    63076307      elseif( !$argType && ( $arg1 == $component2->getProperty( 'uid' ))) { // UID insert/replace 
     
    91449144        } 
    91459145        $name[$k]  .= $char; 
    9146         $x++; 
     9146          ++$x; 
    91479147      } 
    91489148    } 
  • trunk/reports/inc/class.uireports_logon.inc.php

    r7681 r7730  
    394394                function report_logon_group_setor_print() 
    395395                { 
    396                         $vnumacesso = trim($_POST[nacesso]); 
     396                        $vnumacesso = trim($_POST['nacesso']); 
    397397                        $numacesso = abs(round($vnumacesso)); 
    398398 
  • trunk/workflow/inc/class.so_userinterface.inc.php

    r7712 r7730  
    401401                $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 
    402402 
    403                 for ($i = 0; $i < ount($employees); ++$i) 
     403                for ($i = 0; $i < count($employees); ++$i) 
    404404                { 
    405405                        /* remove numeric fields */ 
  • trunk/workflow/inc/phplot/phplot.php

    r7655 r7730  
    39063906            // Draw the bars 
    39073907            $oldv = 0; 
    3908             for ($idx = 0; $record < $this->num_recs[$row]; $record++, ++$idx) { 
     3908            for ($idx = 0; $record < $this->num_recs[$row]; ++$record, ++$idx) { 
    39093909                if (is_numeric($this->data[$row][$record])) {       // Allow for missing Y data 
    39103910 
Note: See TracChangeset for help on using the changeset viewer.