Changeset 7655 for trunk/workflow/inc/local/classes
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/workflow/inc/local/classes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/local/classes/class.wf_crypt.php
r795 r7655 63 63 $iv = $this->_generate_iv(); 64 64 $out = ''; 65 for($c=0;$c < $this->hash_length; $c++) {65 for($c=0;$c < $this->hash_length;++$c) { 66 66 $out .= chr(ord($iv[$c]) ^ ord($this->hash_key[$c])); 67 67 } … … 73 73 } 74 74 $out .= chr(ord($key[$c % $this->hash_length]) ^ ord($string[$c])); 75 $c++;75 ++$c; 76 76 } 77 77 if($this->base64) $out = base64_encode($out); … … 90 90 $string = substr($string,$this->hash_length,strlen($string) - $this->hash_length); 91 91 $iv = $out = ''; 92 for($c=0;$c < $this->hash_length; $c++) {92 for($c=0;$c < $this->hash_length;++$c) { 93 93 $iv .= chr(ord($tmp_iv[$c]) ^ ord($this->hash_key[$c])); 94 94 } … … 100 100 } 101 101 $out .= chr(ord($key[$c % $this->hash_length]) ^ ord($string[$c])); 102 $c++;102 ++$c; 103 103 } 104 104 return $out; -
trunk/workflow/inc/local/classes/class.wf_date.php
r5921 r7655 213 213 // Adiciona os anos 214 214 $years = intval($years); 215 for ($i = 1; $i <= $years; $i++) {216 $year++;215 for ($i = 1; $i <= $years; ++$i) { 216 ++$year; 217 217 $daysInc += ($this->isLeapYear($year)) ? 366 : 365; 218 218 } 219 219 // Adiciona os meses de acordo com o número de dias em cada um 220 220 $months = intval($months); 221 for ($i = 1; $i <= $months; $i++) {221 for ($i = 1; $i <= $months; ++$i) { 222 222 $mTemp = $i % 12 - 1; 223 223 $yTemp = intval($i / 12); 224 224 if (($month + $mTemp) > 12) { 225 $yTemp++;225 ++$yTemp; 226 226 $mTemp = ($month + $mTemp) - 12; 227 227 } else { … … 286 286 $daysDec = 0; 287 287 // Adiciona os anos 288 for ($i = 1; $i <= $years; $i++) {288 for ($i = 1; $i <= $years; ++$i) { 289 289 $s = ($this->isLeapYear($year)) ? 366 : 365; 290 290 $daysDec += ($this->isLeapYear($year)) ? 366 : 365; … … 292 292 } 293 293 // Adiciona os meses de acordo com os dias de cada mês 294 for ($i = 1; $i <= $months; $i++) {294 for ($i = 1; $i <= $months; ++$i) { 295 295 $mTemp = $i % 12; 296 296 $yTemp = intval($i / 12); 297 297 if (($month - $mTemp) <= 0) { 298 $yTemp++;298 ++$yTemp; 299 299 $mTemp = 12 + ($month - $mTemp); 300 300 } else { … … 611 611 if ($year++ == 99) { 612 612 $year = 0; 613 $century++;613 ++$century; 614 614 } 615 615 } -
trunk/workflow/inc/local/classes/class.wf_ldap.php
r3167 r7655 142 142 /* prepara a saída */ 143 143 $output = array(); 144 for ($i = 0; $i < $result['count']; $i++)144 for ($i = 0; $i < $result['count']; ++$i) 145 145 $output[] = array( 146 146 'id' => $result[$i]['uidnumber'][0], -
trunk/workflow/inc/local/classes/class.wf_paging.php
r795 r7655 215 215 { 216 216 $output = parent::paginationResult(); 217 if (isset($this->originalRequest['s_co']) && isset($this->originalRequest['s_so'])) 218 for ($i = 0; $i < count($output); $i++) 217 if (isset($this->originalRequest['s_co']) && isset($this->originalRequest['s_so'])){ 218 $output_count = count($output); 219 for ($i = 0; $i < $output_count; ++$i) 219 220 $output[$i]['link'] .= "&s_co=" . $this->storage['s_co'] . "&s_so=" . $this->storage['s_so']; 221 } 220 222 return $output; 221 223 }
Note: See TracChangeset
for help on using the changeset viewer.