Changeset 7655 for trunk/admin
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/admin/inc
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/Controller.class.php
r6057 r7655 109 109 $contents_itens = $this->controller_contentes->getElementsByTagName(self::__CONTROLLER_CONTENTES_ITEM__); 110 110 111 for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; $i++);111 for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; ++$i ); 112 112 ( !($i < $contents_itens->length) ) 113 113 and die(__CLASS__ . ' [ ERROR #11 ] :: invalid section "' . $section_name . '"'); … … 125 125 126 126 if ( empty($alias) && $alias !== '0' ) 127 for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; $i++);127 for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; ++$i ); 128 128 else 129 for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); $i++);129 for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); ++$i ); 130 130 131 131 ( !($i < $section_itens->length) ) … … 264 264 private function _pack($script) 265 265 { 266 for ( $i = 0; isset($this->_parsers[$i]); $i++)266 for ( $i = 0; isset($this->_parsers[$i]); ++$i ) 267 267 $script = call_user_func(array(&$this,$this->_parsers[$i]), $script); 268 268 -
trunk/admin/inc/class.boaccounts.inc.php
r2 r7655 703 703 { 704 704 $error[$totalerrors] = lang('You must enter a lastname'); 705 $totalerrors++;705 ++$totalerrors; 706 706 } 707 707 … … 709 709 { 710 710 $error[$totalerrors] = lang('You must enter a loginid'); 711 $totalerrors++;711 ++$totalerrors; 712 712 } 713 713 … … 715 715 { 716 716 $error[$totalerrors] = lang('The groups must include the primary group'); 717 $totalerrors++;717 ++$totalerrors; 718 718 } 719 719 … … 730 730 $error[$totalerrors] = lang('That loginid has already been taken'); 731 731 } 732 $totalerrors++;732 ++$totalerrors; 733 733 } 734 734 } … … 739 739 { 740 740 $error[$totalerrors] = lang('The two passwords are not the same'); 741 $totalerrors++;741 ++$totalerrors; 742 742 } 743 743 } … … 746 746 { 747 747 $error[$totalerrors] = lang('You must add at least 1 permission or group to this account'); 748 $totalerrors++;748 ++$totalerrors; 749 749 } 750 750 … … 761 761 { 762 762 $error[$totalerrors] = lang('You have entered an invalid expiration date'); 763 $totalerrors++;763 ++$totalerrors; 764 764 } 765 765 else … … 781 781 { 782 782 $error[$totalerrors] = lang ('File space must be an integer'); 783 $totalerrors++;783 ++$totalerrors; 784 784 } 785 785 */ -
trunk/admin/inc/class.html_tables.inc.php
r2 r7655 102 102 $rparms = array(); 103 103 $mrow = $stop; 104 for($rno=0;$rno<$mrow; $rno++)104 for($rno=0;$rno<$mrow;++$rno) 105 105 { 106 106 // Build GroupKey … … 131 131 $grno = $start; 132 132 $gkey = $rows[$start]['#gkey']; 133 for($rno=$start+1;$rno<$stop; $rno++)133 for($rno=$start+1;$rno<$stop;++$rno) 134 134 { 135 135 $rowspan = 1; … … 142 142 $row = $rows[$rno]; 143 143 144 for($pc=0;$pc<count($row); $pc++)144 for($pc=0;$pc<count($row);++$pc) 145 145 { 146 146 $c = $row[$cols[$pc]]; … … 155 155 } 156 156 } 157 $rno++;157 ++$rno; 158 158 $rkey = $rows[$rno]['#gkey']; 159 159 } … … 173 173 */ 174 174 //print_r($rows); 175 for($rno=$start;$rno<$stop; $rno++)175 for($rno=$start;$rno<$stop;++$rno) 176 176 { 177 177 // let user have a hack at the row... … … 314 314 $html .= "<table width=\"98%\" bgcolor=\"#000000\">\n"; 315 315 $f = array(); 316 for($fno=0;$fno<$noflds; $fno++)316 for($fno=0;$fno<$noflds;++$fno) 317 317 { 318 318 $f[]=$fno; … … 320 320 // Column Headings 321 321 $html .= "\t<tr bgcolor=\"#D3DCFF\">\n"; 322 for($cno=0;$cno<$nocols; $cno++)322 for($cno=0;$cno<$nocols;++$cno) 323 323 { 324 324 $html .= "\t\t<td align=\"center\">$cno</td>\n"; 325 325 } 326 326 $html .= "\t</tr >\n"; 327 for($rno=0;$rno<$norows; $rno++)327 for($rno=0;$rno<$norows;++$rno) 328 328 { 329 329 $html .= "\t<tr bgcolor=\"#D3DCFF\">\n"; 330 for($cno=0;$cno<$nocols; $cno++)330 for($cno=0;$cno<$nocols;++$cno) 331 331 { 332 332 $c = $layout[$rno][$cno]; … … 359 359 reset($cols); 360 360 // while(list($cno,$name) = each($cols)) 361 for($fno=0;$fno<$noflds; $fno++)361 for($fno=0;$fno<$noflds;++$fno) 362 362 { 363 363 $name = $cols[$fno]; … … 412 412 $mrows = count($tlayout); 413 413 $mcols = count($tlayout[0]); 414 for($pr=0;$pr<$mrows; $pr++)415 { 416 for($pc=0;$pc<$mcols; $pc++)414 for($pr=0;$pr<$mrows;++$pr) 415 { 416 for($pc=0;$pc<$mcols;++$pc) 417 417 { 418 418 if(isset($tlayout[$pr][$pc])) … … 425 425 { 426 426 unset($tlayout[$pr + $rowspan][$pc]); 427 $rowspan++;427 ++$rowspan; 428 428 } 429 429 while(($pc + $colspan < $mcols) && ($tlayout[$pr][$pc+$colspan] == $cno)) 430 430 { 431 431 unset($tlayout[$pr][$pc+$colspan]); 432 $colspan++;432 ++$colspan; 433 433 } 434 434 if($colspan > 1 && $rowspan > 1) 435 435 { 436 for($r=$pr+1;$r<$pr+$rowspan; $r++)436 for($r=$pr+1;$r<$pr+$rowspan;++$r) 437 437 { 438 for($c=$pc+1;$c<$pc+$colspan; $c++)438 for($c=$pc+1;$c<$pc+$colspan;++$c) 439 439 { 440 440 unset($tlayout[$r][$c]); -
trunk/admin/inc/class.soaccounts.inc.php
r2 r7655 95 95 { 96 96 $c_acct_groups = count($userData['account_groups']); 97 for ($i=0;$i<$c_acct_groups; $i++)97 for ($i=0;$i<$c_acct_groups;+$i) 98 98 { 99 99 $GLOBALS['phpgw']->acl->add_repository('phpgw_group',$userData['account_groups'][$i],$userData['account_id'],1); -
trunk/admin/inc/class.solog.inc.php
r2 r7655 40 40 /* fields from phpgw_log table */ 41 41 $clist = $this->db->metadata('phpgw_log'); 42 for ($i=0; $i<count($clist); $i++)42 for ($i=0; $i<count($clist); ++$i) 43 43 { 44 44 $name = $clist[$i]['name']; … … 48 48 /* fields from phpgw_log_msg table */ 49 49 $clist = $this->db->metadata('phpgw_log_msg'); 50 for ($i=0; $i<count($clist); $i++)50 for ($i=0; $i<count($clist); ++$i) 51 51 { 52 52 $name = $clist[$i]['name']; … … 66 66 /* Enhance with Columns for phpgw_accounts */ 67 67 $clist = $this->db->metadata('phpgw_accounts'); 68 for ($i=0; $i<count($clist); $i++)68 for ($i=0; $i<count($clist); ++$i) 69 69 { 70 70 $name = $clist[$i]['name']; -
trunk/admin/inc/class.uiaccounts.inc.php
r5928 r7655 581 581 $c_users = count($users); 582 582 $str = ''; 583 for($i=0;$i<$c_users; $i++)583 for($i=0;$i<$c_users;++$i) 584 584 { 585 585 $str .= '<option value='.$users[$i]['account_id'].'>'.$GLOBALS['phpgw']->common->display_fullname($users[$i]['account_lid'],$users[$i]['account_firstname'],$users[$i]['account_lastname']).'</option>'."\n"; … … 806 806 $perm_display[$i]['appName'] = $app; 807 807 $perm_display[$i]['title'] = $data['title']; 808 $i++;808 ++$i; 809 809 } 810 810 } … … 816 816 @reset($db_perms); 817 817 818 for ($i=0;$i<count($perm_display); $i++)818 for ($i=0;$i<count($perm_display);++$i) 819 819 { 820 820 if ($perm_display[$i]['title']) … … 823 823 } 824 824 825 $i++;825 ++$i; 826 826 827 827 if ($perm_display[$i]['title']) … … 955 955 956 956 $tr_color = $GLOBALS['phpgw_info']['theme']['row_off']; 957 for ($i=0;$i < count($perm_display); $i++)957 for ($i=0;$i < count($perm_display);++$i) 958 958 { 959 959 $app = $perm_display[$i][0]; … … 1182 1182 { 1183 1183 $groups_select .= '<option value="' . $value['account_id'] . '"'; 1184 for ($i=0; $i<count($userGroups); $i++)1184 for ($i=0; $i<count($userGroups); ++$i) 1185 1185 { 1186 1186 /* print "Los1:".$userData["account_id"].$userGroups[$i]['account_id']." : ".$value['account_id']."<br>"; */ -
trunk/admin/inc/class.uiapplications.inc.php
r2 r7655 97 97 $applications[$app] = $data; 98 98 } 99 $i++;99 ++$i; 100 100 } 101 101 -
trunk/admin/inc/class.uiconfig.inc.php
r6528 r7655 407 407 $newvals = explode(' ',$newval); 408 408 $setting = end($newvals); 409 for ($i=0;$i<(count($newvals) - 1); $i++)409 for ($i=0;$i<(count($newvals) - 1); ++$i) 410 410 { 411 411 $configs[] = $newvals[$i]; -
trunk/admin/inc/class.uilog.inc.php
r2 r7655 63 63 { 64 64 $c = array(); 65 for ($i=0;$i<count($_cols); $i++)65 for ($i=0;$i<count($_cols);++$i) 66 66 { 67 67 if (!in_array($i, $_delcol)) -
trunk/admin/inc/class.uimenuclass.inc.php
r2 r7655 59 59 } 60 60 $this->section_item($link,lang($value['description']),$this->rowColor[($i % 2)]); 61 $i++;61 ++$i; 62 62 } 63 63
Note: See TracChangeset
for help on using the changeset viewer.