Changeset 7655 for trunk/expressoAdmin1_2
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/expressoAdmin1_2
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/controller.php
r7194 r7655 26 26 $count_files = $_POST['countFiles']; 27 27 $array_files = array(); 28 for($idx = 1; $idx <= $count_files; $idx++) {28 for($idx = 1; $idx <= $count_files; ++$idx) { 29 29 if($_FILES['file_'.$idx] && !$_FILES['file_'.$idx]['error']) 30 30 $array_files[] = $_FILES['file_'.$idx]; -
trunk/expressoAdmin1_2/inc/class.bomessages_size.inc.php
r5593 r7655 285 285 $rules_tr = ''; 286 286 287 for ($i = 0; $i<count($rules); $i++)287 for ($i = 0; $i<count($rules); ++$i) 288 288 { 289 289 $name_link = (string)str_replace(" ", "%", $rules[$i]['email_recipient']); … … 311 311 $rules_tr = ''; 312 312 313 for ($i = 0; $i<count($rules); $i++)313 for ($i = 0; $i<count($rules); ++$i) 314 314 { 315 315 $name_link = (string)str_replace(" ", "%", $rules[$i]['email_recipient']); … … 403 403 $entries = ldap_get_entries($this->ldap_functions, $sr); 404 404 405 for ($i=0; $i<$entries["count"]; $i++){405 for ($i=0; $i<$entries["count"]; ++$i){ 406 406 $u_tmp[$entries[$i]["uid"][0]] = $entries[$i]["cn"][0]; 407 407 } … … 449 449 $info = ldap_get_entries($this->ds, $sr); 450 450 451 for ($i=0; $i<$info["count"]; $i++)451 for ($i=0; $i<$info["count"]; ++$i) 452 452 $groups[$uids=$info[$i]["gidnumber"][0]] = Array('name' => $uids=$info[$i]["cn"][0], 'type' => g); 453 453 … … 457 457 $info = ldap_get_entries($this->ds, $sr); 458 458 459 for ($i=0; $i<$info["count"]; $i++)459 for ($i=0; $i<$info["count"]; ++$i) 460 460 { 461 461 if ($info[$i]["phpgwaccountvisible"][0] == '-1') -
trunk/expressoAdmin1_2/inc/class.bosectors.inc.php
r6917 r7655 162 162 $sector_users = $this->so->get_sector_users($sector_dn); 163 163 164 for ($i=0; $i<count($sector_users)-1; $i++)164 for ($i=0; $i<count($sector_users)-1; ++$i) 165 165 { 166 166 //_debug_array($user); … … 174 174 175 175 $sector_groups = $this->so->get_sector_groups($sector_dn); 176 for ($i=0; $i<count($sector_groups)-1; $i++)176 for ($i=0; $i<count($sector_groups)-1; ++$i) 177 177 { 178 178 $dn = $sector_groups[$i]['dn']; -
trunk/expressoAdmin1_2/inc/class.db_functions.inc.php
r6553 r7655 141 141 142 142 //Escrevre no Banco as aplicações que o gerente tem direito de disponibilizar aos seus usuarios. 143 for ($i=0; $i<count($aplications); $i++)143 for ($i=0; $i<count($aplications); ++$i) 144 144 { 145 145 $sql = "INSERT INTO phpgw_expressoadmin_apps (manager_lid, context, app) " … … 416 416 $user_app[] = $this->db->row(); 417 417 418 for ($i=0; $i<count($user_app); $i++)418 for ($i=0; $i<count($user_app); ++$i) 419 419 $return['groups'][] = $user_app[$i]['acl_location']; 420 420 … … 644 644 $serverList[$i]['imapsieveserver'] = $this->db->f(2); 645 645 $serverList[$i]['imapsieveport'] = $this->db->f(3); 646 $i++;646 ++$i; 647 647 } 648 648 -
trunk/expressoAdmin1_2/inc/class.functions.inc.php
r6697 r7655 353 353 $info = ldap_get_entries($ldap_conn, $search); 354 354 355 for ($i=0; $i < $info['count']; $i++)355 for ($i=0; $i < $info['count']; ++$i) 356 356 { 357 357 $tmp[$info[$i]['uid'][0]]['account_id'] = $info[$i]['uidnumber'][0]; … … 383 383 $search=ldap_search($ldap_conn, $context, $filter, $justthese); 384 384 $info = ldap_get_entries($ldap_conn, $search); 385 for ($i=0; $i < $info['count']; $i++)385 for ($i=0; $i < $info['count']; ++$i) 386 386 { 387 387 $tmp[$info[$i]['cn'][0]]['cn']= $info[$i]['cn'][0]; … … 410 410 $info = ldap_get_entries($ldap_conn, $search); 411 411 412 for ($i=0; $i < $info['count']; $i++)412 for ($i=0; $i < $info['count']; ++$i) 413 413 { 414 414 $tmp[$info[$i]['uid'][0]]['uid'] = $info[$i]['uid'][0]; … … 437 437 $search=ldap_search($ldap_conn, $context, $filter, $justthese); 438 438 $info = ldap_get_entries($ldap_conn, $search); 439 for ($i=0; $i < $info['count']; $i++)439 for ($i=0; $i < $info['count']; ++$i) 440 440 { 441 441 $tmp[$info[$i]['cn'][0]]['cn'] = $info[$i]['cn'][0]; … … 496 496 497 497 // Retiro o count do array info e inverto o array para ordenaçãoo. 498 for ($i=0; $i<$info["count"]; $i++)498 for ($i=0; $i<$info["count"]; ++$i) 499 499 { 500 500 $dn = $info[$i]["dn"]; … … 533 533 else 534 534 { 535 for ($i=0; $i<$level; $i++)535 for ($i=0; $i<$level; ++$i) 536 536 $display .= '---'; 537 537 } … … 667 667 $search=ldap_search($ldap_conn, $context, $filter, $justthese); 668 668 $info = ldap_get_entries($ldap_conn, $search); 669 for ($i=0; $i<$info["count"]; $i++)669 for ($i=0; $i<$info["count"]; ++$i) 670 670 { 671 671 $a_sectors[] = $info[$i]['dn']; … … 712 712 else 713 713 { 714 for ($i=0; $i<$level; $i++)714 for ($i=0; $i<$level; ++$i) 715 715 $display .= '---'; 716 716 } … … 855 855 $applications_list .= sprintf('<tr bgcolor="%s">%s%s%s</tr>','#DDDDDD', $app_col1, $app_col2, $app_col3); 856 856 } 857 $i++;857 ++$i; 858 858 } 859 859 return $applications_list; … … 911 911 /*Calcula o penúltimo dígito verificador*/ 912 912 $acum=0; 913 for($i=0; $i<9; $i++)913 for($i=0; $i<9; ++$i) 914 914 { 915 915 $acum+= $cpf[$i]*(10-$i); … … 924 924 /*Calcula o último dígito verificador*/ 925 925 $acum=0; 926 for ($i=0; $i<10; $i++)926 for ($i=0; $i<10; ++$i) 927 927 { 928 928 $acum+= $cpf[$i]*(11-$i); -
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r6917 r7655 690 690 $entries = ldap_get_entries($ldap_connection, $search); 691 691 692 for ($i=0; $i<$entries['count']; $i++)692 for ($i=0; $i<$entries['count']; ++$i) 693 693 { 694 694 $users .= $entries[$i]['cn'][0] . ' - ' . $entries[$i]['mail'][0] . "\n"; … … 844 844 { 845 845 $result['question'] = $this->functions->lang('Field CPF used by') . ":\n"; 846 for ($i=0; $i<$entries['count']; $i++)846 for ($i=0; $i<$entries['count']; ++$i) 847 847 { 848 848 if (strcasecmp($uid, $entries[$i]['uid'][0]) != 0) … … 910 910 else 911 911 $login.=$i; 912 $i++;912 ++$i; 913 913 } 914 914 } … … 1260 1260 1261 1261 $options = ''; 1262 for ($i=0; $i<$entries['count']; $i++)1262 for ($i=0; $i<$entries['count']; ++$i) 1263 1263 { 1264 1264 $options .= "<option value=" . $entries[$i]['uid'][0] . ">" . $entries[$i]['uid'][0] . " (" . $entries[$i]['mail'][0] . ")" . "</option>"; … … 1283 1283 1284 1284 $options = ''; 1285 for ($i=0; $i<$entries['count']; $i++)1285 for ($i=0; $i<$entries['count']; ++$i) 1286 1286 { 1287 1287 $options .= "<option value=" . $entries[$i]['mail'][0] . ">" . $entries[$i]['mail'][0] . "</option>"; … … 1308 1308 1309 1309 $options = ''; 1310 for ($i=0; $i<$entries['count']; $i++)1310 for ($i=0; $i<$entries['count']; ++$i) 1311 1311 { 1312 1312 $options .= "<option value=" . $entries[$i]['mail'][0] . ">" . $entries[$i]['mail'][0] . "</option>"; … … 1541 1541 $entries = ldap_get_entries($this->ldap, $search); 1542 1542 $result['status'] = true; 1543 for ($i=0; $i<$entries['count']; $i++)1543 for ($i=0; $i<$entries['count']; ++$i) 1544 1544 { 1545 1545 $attrs['mailforwardingaddress'] = $old_mail; … … 1571 1571 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1572 1572 $sector_dn_array = explode(",", $entry[0]['dn']); 1573 for($i=1; $i<count($sector_dn_array); $i++)1573 for($i=1; $i<count($sector_dn_array); ++$i) 1574 1574 $sector_dn .= $sector_dn_array[$i] . ','; 1575 1575 //Retira ultimo pipe. … … 1599 1599 1600 1600 // Samba 1601 for ($i=0; $i<$entry[0]['objectclass']['count']; $i++)1601 for ($i=0; $i<$entry[0]['objectclass']['count']; ++$i) 1602 1602 { 1603 1603 if ($entry[0]['objectclass'][$i] == 'sambaSamAccount') … … 1640 1640 ldap_sort($this->ldap, $search, "cn"); 1641 1641 $entries = ldap_get_entries($this->ldap, $search); 1642 for ($i=0; $i<$entries['count']; $i++)1642 for ($i=0; $i<$entries['count']; ++$i) 1643 1643 { 1644 1644 $result['groups_ldap'][ $entries[$i]['gidnumber'][0] ] = utf8_decode($entries[$i]['cn'][0]); … … 1698 1698 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1699 1699 $sector_dn_array = explode(",", $entry[0]['dn']); 1700 for($i=1; $i<count($sector_dn_array); $i++)1700 for($i=1; $i<count($sector_dn_array); ++$i) 1701 1701 $sector_dn .= $sector_dn_array[$i] . ','; 1702 1702 //Retira ultimo pipe. … … 1727 1727 1728 1728 // Samba 1729 for ($i=0; $i<$entry[0]['objectclass']['count']; $i++)1729 for ($i=0; $i<$entry[0]['objectclass']['count']; ++$i) 1730 1730 { 1731 1731 if ($entry[0]['objectclass'][$i] == 'sambaSamAccount') … … 1768 1768 ldap_sort($this->ldap, $search, "cn"); 1769 1769 $entries = ldap_get_entries($this->ldap, $search); 1770 for ($i=0; $i<$entries['count']; $i++)1770 for ($i=0; $i<$entries['count']; ++$i) 1771 1771 { 1772 1772 $result['groups_ldap'][ $entries[$i]['gidnumber'][0] ] = utf8_decode($entries[$i]['cn'][0]); … … 1796 1796 $entries = ldap_get_entries($ldapMasterConnect, $search); 1797 1797 1798 for ($i=0; $i<$entries['count']; $i++)1798 for ($i=0; $i<$entries['count']; ++$i) 1799 1799 { 1800 1800 $result[ $entries[$i]['uid'][0] ]['uid'] = $entries[$i]['uid'][0]; … … 1831 1831 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1832 1832 $sector_dn_array = explode(",", $entry[0]['dn']); 1833 for($i=1; $i<count($sector_dn_array); $i++)1833 for($i=1; $i<count($sector_dn_array); ++$i) 1834 1834 $sector_dn .= $sector_dn_array[$i] . ','; 1835 1835 //Retira ultimo pipe. … … 1844 1844 1845 1845 //MemberUid 1846 for ($i=0; $i<$entry[0]['memberuid']['count']; $i++)1846 for ($i=0; $i<$entry[0]['memberuid']['count']; ++$i) 1847 1847 { 1848 1848 $justthese = array("cn","uid","uidnumber"); … … 1850 1850 // Montagem dinamica do filtro 1851 1851 $filter="(&(|(phpgwAccountType=u)(phpgwAccountType=s))(|"; 1852 for ($k=0; (($k<10) && ($i<$entry[0]['memberuid']['count'])); $k++)1852 for ($k=0; (($k<10) && ($i<$entry[0]['memberuid']['count'])); ++$k) 1853 1853 { 1854 1854 $filter .= "(uid=".$entry[0]['memberuid'][$i].")"; 1855 $i++;1855 ++$i; 1856 1856 } 1857 1857 $i--; … … 1861 1861 $user_entry = ldap_get_entries($this->ldap, $search); 1862 1862 1863 for ($j=0; $j<$user_entry['count']; $j++)1863 for ($j=0; $j<$user_entry['count']; ++$j) 1864 1864 { 1865 1865 $result['memberuid_info'][$user_entry[$j]['uid'][0]]['cn'] = $user_entry[$j]['cn'][0]; … … 1891 1891 1892 1892 // Samba 1893 for ($i=0; $i<$entry[0]['objectclass']['count']; $i++)1893 for ($i=0; $i<$entry[0]['objectclass']['count']; ++$i) 1894 1894 { 1895 1895 if ($entry[0]['objectclass'][$i] == 'sambaGroupMapping') … … 1929 1929 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1930 1930 $sector_dn_array = explode(",", $entry[0]['dn']); 1931 for($i=1; $i<count($sector_dn_array); $i++)1931 for($i=1; $i<count($sector_dn_array); ++$i) 1932 1932 $sector_dn .= $sector_dn_array[$i] . ','; 1933 1933 //Retira ultimo pipe. … … 1944 1944 1945 1945 //Members 1946 for ($i=0; $i<$entry[0]['mailforwardingaddress']['count']; $i++)1946 for ($i=0; $i<$entry[0]['mailforwardingaddress']['count']; ++$i) 1947 1947 { 1948 1948 $justthese = array("cn", "uidnumber", "uid", "phpgwaccounttype", "mail"); … … 1950 1950 // Montagem dinamica do filtro, para nao ter muitas conexoes com o ldap 1951 1951 $filter="(&(|(phpgwAccountType=u)(phpgwAccountType=l))(|"; 1952 for ($k=0; (($k<10) && ($i<$entry[0]['mailforwardingaddress']['count'])); $k++)1952 for ($k=0; (($k<10) && ($i<$entry[0]['mailforwardingaddress']['count'])); ++$k) 1953 1953 { 1954 1954 $filter .= "(mail=".$entry[0]['mailforwardingaddress'][$i].")"; 1955 $i++;1955 ++$i; 1956 1956 } 1957 1957 $i--; … … 1961 1961 $user_entry = ldap_get_entries($ldap_conn_following_ref, $search); 1962 1962 1963 for ($j=0; $j<$user_entry['count']; $j++)1963 for ($j=0; $j<$user_entry['count']; ++$j) 1964 1964 { 1965 1965 $result['mailForwardingAddress_info'][$user_entry[$j]['mail'][0]]['uid'] = $user_entry[$j]['uid'][0]; … … 2001 2001 $entry[0]['dn'] = strtolower($entry[0]['dn']); 2002 2002 $sector_dn_array = explode(",", $entry[0]['dn']); 2003 for($i=1; $i<count($sector_dn_array); $i++)2003 for($i=1; $i<count($sector_dn_array); ++$i) 2004 2004 $sector_dn .= $sector_dn_array[$i] . ','; 2005 2005 //Retira ultimo pipe. … … 2018 2018 2019 2019 //Senders 2020 for ($i=0; $i<$entry[0]['mailsenderaddress']['count']; $i++)2020 for ($i=0; $i<$entry[0]['mailsenderaddress']['count']; ++$i) 2021 2021 { 2022 2022 $justthese = array("cn", "uidnumber", "uid", "mail"); … … 2081 2081 } 2082 2082 2083 $i++;2083 ++$i; 2084 2084 } 2085 2085 } … … 2254 2254 $entries = ldap_get_entries($this->ldap, $search); 2255 2255 2256 for ($i=0; $i<$entries['count']; $i++)2256 for ($i=0; $i<$entries['count']; ++$i) 2257 2257 { 2258 2258 if ( !@ldap_mod_del($this->ldap, $entries[$i]['dn'], $attrs) ) … … 2325 2325 $entry = ldap_get_entries($this->ldap, $search); 2326 2326 $attrs['mailForwardingAddress'] = $mail; 2327 for ($i=0; $i<=$entry['count']; $i++)2327 for ($i=0; $i<=$entry['count']; ++$i) 2328 2328 { 2329 2329 $dn = $entry[$i]['dn']; … … 2410 2410 2411 2411 $parent = array(); 2412 for ($j=1; $j<(count($explode_dn)-1); $j++)2412 for ($j=1; $j<(count($explode_dn)-1); ++$j) 2413 2413 $parent[] = $explode_dn[$j]; 2414 2414 $parent = implode(",", $parent); … … 2430 2430 $array_mod_del['memberUid'] = $uid; 2431 2431 2432 for ($i=0; $i<=$entry['count']; $i++)2432 for ($i=0; $i<=$entry['count']; ++$i) 2433 2433 { 2434 2434 $dn = $entry[$i]['dn']; … … 2453 2453 2454 2454 $parent = array(); 2455 for ($j=1; $j<(count($explode_dn)-1); $j++)2455 for ($j=1; $j<(count($explode_dn)-1); ++$j) 2456 2456 $parent[] = $explode_dn[$j]; 2457 2457 $parent = implode(",", $parent); … … 2516 2516 $entry = ldap_get_entries($this->ldap, $search); 2517 2517 2518 for ($i=0; $i<$entry['count']; $i++)2518 for ($i=0; $i<$entry['count']; ++$i) 2519 2519 { 2520 2520 $return['sambaDomains'][$i] = $entry[$i]['sambadomainname'][0]; … … 2622 2622 $entries = ldap_get_entries($this->ldap, $institutional_accounts); 2623 2623 2624 for ($i=0; $i<$entries['count']; $i++)2624 for ($i=0; $i<$entries['count']; ++$i) 2625 2625 { 2626 2626 $tr = "<tr class='normal' onMouseOver=this.className='selected' onMouseOut=this.className='normal'><td onClick=edit_institutional_account('".$entries[$i]['uid'][0]."')>" . utf8_decode($entries[$i]['cn'][0]) . "</td><td onClick=edit_institutional_account('".$entries[$i]['uid'][0]."')>" . $entries[$i]['mail'][0] . "</td><td align='center' onClick=delete_institutional_accounts('".$entries[$i]['uid'][0]."')><img HEIGHT='16' WIDTH='16' src=./expressoAdmin1_2/templates/default/images/delete.png></td></tr>"; … … 2681 2681 { 2682 2682 $a_cn = array(); 2683 for ($i=0; $i<$entrie[0]['mailforwardingaddress']['count']; $i++)2683 for ($i=0; $i<$entrie[0]['mailforwardingaddress']['count']; ++$i) 2684 2684 { 2685 2685 $tmp = $this->mailforwardingaddress2uidnumber($entrie[0]['mailforwardingaddress'][$i]); … … 2716 2716 $entries = ldap_get_entries($this->ldap, $institutional_accounts); 2717 2717 2718 for ($i=0; $i<$entries['count']; $i++)2718 for ($i=0; $i<$entries['count']; ++$i) 2719 2719 { 2720 2720 $tr = "<tr class='normal' onMouseOver=this.className='selected' onMouseOut=this.className='normal'><td onClick=edit_shared_account('".$entries[$i]['uid'][0]."')>" . utf8_decode($entries[$i]['cn'][0]) . "</td><td onClick=edit_shared_account('".$entries[$i]['uid'][0]."')>" . utf8_decode($entries[$i]['cn'][0]). " (" . $entries[$i]['uid'][0] . ")" . "</td><td onClick=edit_shared_account('".$entries[$i]['uid'][0]."')>" . $entries[$i]['mail'][0] . "<td align='center' onClick=delete_shared_accounts('".$entries[$i]['uid'][0]."','".$entries[$i]['mail'][0]."')><img HEIGHT='16' WIDTH='16' src=./expressoAdmin1_2/templates/default/images/delete.png></td></tr>"; … … 2858 2858 $entries = ldap_get_entries($this->ldap, $search); 2859 2859 $result['status'] = true; 2860 for ($i=0; $i<$entries['count']; $i++)2860 for ($i=0; $i<$entries['count']; ++$i) 2861 2861 { 2862 2862 $attrs['mailforwardingaddress'] = $oldMail; -
trunk/expressoAdmin1_2/inc/class.shared_accounts.inc.php
r5942 r7655 95 95 $entries = ldap_get_entries($this->ldap, $shared_accounts); 96 96 97 for ($i=0; $i<$entries['count']; $i++)97 for ($i=0; $i<$entries['count']; ++$i) 98 98 { 99 99 $tr = "<tr class='normal' onMouseOver=this.className='selected' onMouseOut=this.className='normal'><td onClick=edit_shared_account('".$entries[$i]['uid'][0]."')>" . $entries[$i]['cn'][0] . "</td><td onClick=edit_shared_account('".$entries[$i]['uid'][0]."')>" . $entries[$i]['mail'][0] . "</td><td align='center' onClick=delete_shared_accounts('".$entries[$i]['uid'][0]."')><img HEIGHT='16' WIDTH='16' src=./expressoAdmin1_2/templates/default/images/delete.png></td></tr>"; … … 145 145 $return['owners_acl'][$i] .= $value; 146 146 $return['owners_calendar_acl'][$i] .= $calendarAcls[$key]; 147 $i++;147 ++$i; 148 148 } 149 149 } else { -
trunk/expressoAdmin1_2/inc/class.socomputers.inc.php
r493 r7655 86 86 // Recupera o contexto do email_list 87 87 $tmp = explode(",", $computer_data['dn']); 88 for ($i = 1; $i < count($tmp); $i++)88 for ($i = 1; $i < count($tmp); ++$i) 89 89 $computer_data['context'] .= $tmp[$i] . ','; 90 90 $computer_data['context'] = substr($computer_data['context'],0,(strlen($computer_data['context']) - 1)); -
trunk/expressoAdmin1_2/inc/class.somessages_size.inc.php
r5144 r7655 203 203 204 204 while($this->db->next_record()) 205 $i++;205 ++$i; 206 206 207 207 if($i==0) -
trunk/expressoAdmin1_2/inc/class.sosectors.inc.php
r6553 r7655 97 97 $info = ldap_get_entries($connection, $search); 98 98 99 for($i=0;$i<$info['count']; $i++)99 for($i=0;$i<$info['count'];++$i) 100 100 { 101 101 //deleting recursively sub entries -
trunk/expressoAdmin1_2/inc/class.totalsessions.inc.php
r5233 r7655 79 79 } 80 80 81 $total++;81 ++$total; 82 82 } 83 83 -
trunk/expressoAdmin1_2/inc/class.uiaccounts.inc.php
r5593 r7655 585 585 if (is_array($user_info['mailalternateaddress'])) 586 586 { 587 for ($i = 0; $i < $user_info['mailalternateaddress']['count']; $i++)587 for ($i = 0; $i < $user_info['mailalternateaddress']['count']; ++$i) 588 588 { 589 589 if ($i > 0) … … 599 599 if (is_array($user_info['mailforwardingaddress'])) 600 600 { 601 for ($i = 0; $i < $user_info['mailforwardingaddress']['count']; $i++)601 for ($i = 0; $i < $user_info['mailforwardingaddress']['count']; ++$i) 602 602 { 603 603 if ($i > 0) -
trunk/expressoAdmin1_2/inc/class.uigroups.inc.php
r6157 r7655 294 294 foreach ($array_users as $uidnumber=>$cn) 295 295 { 296 $user_count++;296 ++$user_count; 297 297 if ($array_users_type[$uidnumber] == 'u') 298 298 { -
trunk/expressoAdmin1_2/inc/class.uimaillists.inc.php
r6803 r7655 254 254 foreach ($array_users as $mail=>$cn) 255 255 { 256 $user_count++;256 ++$user_count; 257 257 if ($array_users_type[$mail] == 'u') 258 258 { -
trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php
r6517 r7655 263 263 $manager_acl = $this->functions->read_acl($_GET['manager_lid']); 264 264 //Pesquisa no Banco e pega os valores dos apps. 265 $query = "SELECT * FROM phpgw_expressoadmin_apps WHERE manager_lid = '" . $_GET['manager_lid'] . "' AND context = '" . $_GET['context']. "'";265 $query = "SELECT * FROM phpgw_expressoadmin_apps WHERE manager_lid = '" . addslashes($_GET['manager_lid']) . "' AND context = '" . addslashes($_GET['context']) . "'"; 266 266 $GLOBALS['phpgw']->db->query($query); 267 267 $i=0; … … 272 272 $_POST['applications_list'][$tmp[$i]['app']] = 1; 273 273 $manager[0]['apps'][$tmp[$i]['app']] = 1; 274 $i++;275 } 276 } 277 274 ++$i; 275 } 276 } 277 278 278 // Seta o template 279 279 $p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); … … 415 415 $applications_list .= sprintf('<tr bgcolor="%s">%s%s%s</tr>',$this->nextmatchs->alternate_row_color(), $app_col1, $app_col2, $app_col3); 416 416 } 417 $i++;417 ++$i; 418 418 } 419 419 return $applications_list; -
trunk/expressoAdmin1_2/inc/class.uimessages_size.inc.php
r5144 r7655 115 115 $all_rules = $this->bo->get_all_rules(); 116 116 117 for ($i = 0; $i<count($all_rules); $i++)117 for ($i = 0; $i<count($all_rules); ++$i) 118 118 { 119 119 /* Verificação para não listar a regra default */ -
trunk/expressoAdmin1_2/inc/sieve-php.lib.php
r5593 r7655 285 285 $index = 0; 286 286 287 for($ptr = 0; $ptr < strlen($string); $ptr++){287 for($ptr = 0; $ptr < strlen($string); ++$ptr){ 288 288 if($string[$ptr] == '"' and $string[$ptr] != '\\'){ 289 289 if($start == -1){ -
trunk/expressoAdmin1_2/setup/tables_update.inc.php
r7516 r7655 281 281 { 282 282 $bin = ''; 283 for ($i=0; $i<$index; $i++)283 for ($i=0; $i<$index; ++$i) 284 284 { 285 285 $bin .= '0';
Note: See TracChangeset
for help on using the changeset viewer.