Changeset 7655 for trunk/jabberit_messenger/inc
- Timestamp:
- 12/14/12 14:30:35 (12 years ago)
- Location:
- trunk/jabberit_messenger/inc
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/Controller.class.php
r3199 r7655 111 111 $contents_itens = $this->controller_contentes->getElementsByTagName(self::__CONTROLLER_CONTENTES_ITEM__); 112 112 113 for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; $i++);113 for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; ++$i ); 114 114 ( !($i < $contents_itens->length) ) 115 115 and die(__CLASS__ . ' [ ERROR #11 ] :: invalid section "' . $section_name . '"'); … … 127 127 128 128 if ( empty($alias) && $alias !== '0' ) 129 for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; $i++);129 for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; ++$i ); 130 130 else 131 for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); $i++);131 for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); ++$i ); 132 132 133 133 ( !($i < $section_itens->length) ) -
trunk/jabberit_messenger/inc/class.contacts_im.inc.php
r3530 r7655 93 93 if( is_array($users) ) 94 94 { 95 for($i = 0; $i < count($users); $i++)95 for($i = 0; $i < count($users); ++$i) 96 96 { 97 97 if( is_array($hostsJabber) ) … … 226 226 $_restrict = array(); 227 227 228 for( $i = 0 ; $i < count($orgs) ; $i++)229 { 230 for( $j = 0 ; $j < count($array_uids) ; $j++)228 for( $i = 0 ; $i < count($orgs) ; ++$i ) 229 { 230 for( $j = 0 ; $j < count($array_uids) ; ++$j ) 231 231 { 232 232 if( trim($array_uids[$j]['ou']) === trim($orgs[$i]) ) … … 248 248 { 249 249 $result = array(); 250 for($i = $offset; $i< strlen($haystack); $i++)250 for($i = $offset; $i< strlen($haystack); ++$i ) 251 251 { 252 252 $pos = strpos($haystack,$needle,$i); … … 332 332 $orgs = array(); 333 333 334 for( $i = 0 ; $i < count($posAll); $i++)334 for( $i = 0 ; $i < count($posAll); ++$i ) 335 335 { 336 336 $pos = strpos($ou_User, ","); … … 370 370 $orgs = array(); 371 371 372 for( $i = 0 ; $i < count($posAll); $i++)372 for( $i = 0 ; $i < count($posAll); ++$i ) 373 373 { 374 374 $pos = strpos($ou_User, ","); -
trunk/jabberit_messenger/inc/class.db_im.inc.php
r3266 r7655 60 60 $return = ""; 61 61 62 for( $i = 0 ; $i < count($hostsJabber); $i++)62 for( $i = 0 ; $i < count($hostsJabber); ++$i ) 63 63 if( $hostsJabber[$i]['org'] == $findHosts[0] && $hostsJabber[$i]['jabberName'] == $findHosts[1] ) 64 64 { … … 496 496 { 497 497 $result = array(); 498 for($i = $offset; $i< strlen($haystack); $i++)498 for($i = $offset; $i< strlen($haystack); ++$i ) 499 499 { 500 500 $pos = strpos($haystack,$needle,$i); … … 517 517 $orgs = array(); 518 518 519 for( $i = 0 ; $i < count($posAll); $i++)519 for( $i = 0 ; $i < count($posAll); ++$i ) 520 520 { 521 521 $pos = strpos($organization, ","); … … 655 655 if( count($confHostsOrgs) > 0 ) 656 656 { 657 for( $i = 0; $i < count($confHostsOrgs); $i++)657 for( $i = 0; $i < count($confHostsOrgs); ++$i) 658 658 if( $confHostsOrgs[$i]['org'] == $hosts[0] && $confHostsOrgs[$i]['jabberName'] == $hosts[1]) 659 659 $key = $i; -
trunk/jabberit_messenger/inc/class.ldap_im.inc.php
r3530 r7655 126 126 $confHosts = $this->hostsJabber; 127 127 128 for($i = 0; $i < count($confHosts); $i++)128 for($i = 0; $i < count($confHosts); ++$i ) 129 129 { 130 130 if( $pData['serverLdap'] == $confHosts[$i]['serverLdap'] ) … … 198 198 $count = count($members[$servers]); 199 199 200 for( $i = 0; $i < $count; $i++)200 for( $i = 0; $i < $count; ++$i ) 201 201 { 202 202 if ( ! $this->getMemberUid($groups, $members[$servers][$i]['uid'] ) ) … … 211 211 $confHosts = $this->hostsJabber; 212 212 213 for($i = 0; $i < count($confHosts); $i++)213 for($i = 0; $i < count($confHosts); ++$i ) 214 214 { 215 215 if( $this->ldap ) … … 227 227 $count = count($members[$servers]); 228 228 229 for( $i = 0; $i < $count; $i++)229 for( $i = 0; $i < $count; ++$i ) 230 230 { 231 231 if ( ! $this->getMemberUid($groups, $members[$servers][$i]['uid'] ) ) … … 280 280 $confHosts = $this->hostsJabber; 281 281 282 for($i = 0; $i < count($confHosts); $i++)282 for($i = 0; $i < count($confHosts); ++$i ) 283 283 { 284 284 if( $this->ldap ) … … 323 323 $confHosts = $this->hostsJabber; 324 324 325 for($i = 0; $i < count($confHosts); $i++)325 for($i = 0; $i < count($confHosts); ++$i ) 326 326 { 327 327 if( $pLdap_host == $confHosts[$i]['serverLdap'] ) … … 345 345 $info = ldap_get_entries($this->ldap, $search); 346 346 347 for ($i=0; $i<$info["count"]; $i++)347 for ($i=0; $i<$info["count"]; ++$i) 348 348 { 349 349 $a_sectors[] = $info[$i]['dn']; … … 376 376 else 377 377 { 378 for( $i = 0; $i < $level; $i++)378 for( $i = 0; $i < $level; ++$i) 379 379 $display .= '---'; 380 380 } … … 398 398 $conn = ""; 399 399 400 for( $i = 0; $i < count($confHosts); $i++)400 for( $i = 0; $i < count($confHosts); ++$i ) 401 401 { 402 402 if( $pLdap && $pLdap == $confHosts[$i]['serverLdap'] ) … … 456 456 $j = 0; 457 457 458 for( $i = 0 ; $i < $entry['count']; $i++)458 for( $i = 0 ; $i < $entry['count']; ++$i ) 459 459 { 460 460 if ( $entry[$i]['phpgwaccountvisible'][0] != '-1' ) -
trunk/jabberit_messenger/inc/jabberit_acl.inc.php
r6179 r7655 40 40 $size_of_acl = sizeof($GLOBALS['phpgw_info']['user']['acl']); 41 41 42 for( $i = 0; $i < $size_of_acl && $GLOBALS['phpgw_info']['user']['acl'] != "jabberit_messenger"; $i++)42 for( $i = 0; $i < $size_of_acl && $GLOBALS['phpgw_info']['user']['acl'] != "jabberit_messenger"; ++$i ) 43 43 { 44 44 $apps = unserialize($GLOBALS['phpgw_info']['server']['apps_jabberit']); -
trunk/jabberit_messenger/inc/login.php
r3155 r7655 88 88 $pluginsJava[] = "callVoip.jar"; 89 89 90 for( $i = 0; $i < count($pluginsJava); $i++)90 for( $i = 0; $i < count($pluginsJava); ++$i ) 91 91 { 92 92 $javaFiles .= $path . "plugins/" . $pluginsJava[$i] . ",";
Note: See TracChangeset
for help on using the changeset viewer.