@@ -76,6 +76,12 @@ discard block |
||
| 76 | 76 | // prepare EMail-From |
| 77 | 77 | $emailheaders = 'From: "' . $emailaddr . '" <' . $emailaddr . '>'; |
| 78 | 78 | |
| 79 | +/** |
|
| 80 | + * @param string $module |
|
| 81 | + * @param integer $eventid |
|
| 82 | + * @param integer $objectid2 |
|
| 83 | + * @param string $logtext |
|
| 84 | + */ |
|
| 79 | 85 | function logentry($module, $eventid, $userid, $objectid1, $objectid2, $logtext, $details) |
| 80 | 86 | { |
| 81 | 87 | sql( |
@@ -148,6 +154,9 @@ discard block |
||
| 148 | 154 | return $start; |
| 149 | 155 | } |
| 150 | 156 | |
| 157 | +/** |
|
| 158 | + * @return string |
|
| 159 | + */ |
|
| 151 | 160 | function escape_javascript($text) |
| 152 | 161 | { |
| 153 | 162 | return str_replace('\'', '\\\'', str_replace('"', '"', $text)); |
@@ -159,6 +168,9 @@ discard block |
||
| 159 | 168 | sql_error(); |
| 160 | 169 | } |
| 161 | 170 | |
| 171 | +/** |
|
| 172 | + * @param string $sql |
|
| 173 | + */ |
|
| 162 | 174 | function sqlValue($sql, $default) |
| 163 | 175 | { |
| 164 | 176 | $rs = sql($sql); |
@@ -187,11 +199,21 @@ discard block |
||
| 187 | 199 | } |
| 188 | 200 | } |
| 189 | 201 | |
| 202 | +/** |
|
| 203 | + * @param string $name |
|
| 204 | + * @param string $default |
|
| 205 | + * |
|
| 206 | + * @return string |
|
| 207 | + */ |
|
| 190 | 208 | function getSysConfig($name, $default) |
| 191 | 209 | { |
| 192 | 210 | return sqlValue('SELECT `value` FROM `sysconfig` WHERE `name`=\'' . sql_escape($name) . '\'', $default); |
| 193 | 211 | } |
| 194 | 212 | |
| 213 | +/** |
|
| 214 | + * @param string $name |
|
| 215 | + * @param string $value |
|
| 216 | + */ |
|
| 195 | 217 | function setSysConfig($name, $value) |
| 196 | 218 | { |
| 197 | 219 | if (sqlValue('SELECT COUNT(*) FROM sysconfig WHERE name=\'' . sql_escape($name) . '\'', 0) == 1) { |
@@ -516,6 +538,9 @@ discard block |
||
| 516 | 538 | die('sql_error'); |
| 517 | 539 | } |
| 518 | 540 | |
| 541 | +/** |
|
| 542 | + * @param string $warnmessage |
|
| 543 | + */ |
|
| 519 | 544 | function sql_warn($warnmessage) |
| 520 | 545 | { |
| 521 | 546 | global $sql_errormail; |
@@ -549,6 +574,9 @@ discard block |
||
| 549 | 574 | return mysql_fetch_row($rs); |
| 550 | 575 | } |
| 551 | 576 | |
| 577 | +/** |
|
| 578 | + * @param resource $rs |
|
| 579 | + */ |
|
| 552 | 580 | function sql_fetch_column($rs) |
| 553 | 581 | { |
| 554 | 582 | $col = []; |
@@ -758,6 +786,9 @@ discard block |
||
| 758 | 786 | ]; |
| 759 | 787 | } |
| 760 | 788 | |
| 789 | +/** |
|
| 790 | + * @param string $filename |
|
| 791 | + */ |
|
| 761 | 792 | function fetch_email_template($filename, $language, $domain) |
| 762 | 793 | { |
| 763 | 794 | global $opt, $rootpath; |
@@ -323,6 +323,9 @@ discard block |
||
| 323 | 323 | //set no_eval true to prevent this contents from php-parsing. |
| 324 | 324 | //Important when replacing something that the user has posted |
| 325 | 325 | //in HTML code and could contain \<\? php-Code \?\> |
| 326 | +/** |
|
| 327 | + * @param string $name |
|
| 328 | + */ |
|
| 326 | 329 | function tpl_set_var($name, $value, $no_eval = true) |
| 327 | 330 | { |
| 328 | 331 | global $vars, $no_eval_vars; |
@@ -543,6 +546,9 @@ discard block |
||
| 543 | 546 | } |
| 544 | 547 | |
| 545 | 548 | //redirect to another site to display, i.e. to view a cache after logging |
| 549 | +/** |
|
| 550 | + * @param string $page |
|
| 551 | + */ |
|
| 546 | 552 | function tpl_redirect($page) |
| 547 | 553 | { |
| 548 | 554 | global $absolute_server_URI; |
@@ -562,6 +568,9 @@ discard block |
||
| 562 | 568 | //process the template replacements |
| 563 | 569 | //no_eval_replace - if true, variables will be replaced that are |
| 564 | 570 | // marked as "no_eval" |
| 571 | +/** |
|
| 572 | + * @param string $str |
|
| 573 | + */ |
|
| 565 | 574 | function tpl_do_replace($str) |
| 566 | 575 | { |
| 567 | 576 | global $vars, $no_eval_vars; |
@@ -589,6 +598,10 @@ discard block |
||
| 589 | 598 | return $str; |
| 590 | 599 | } |
| 591 | 600 | |
| 601 | +/** |
|
| 602 | + * @param string $tplnameError |
|
| 603 | + * @param string $msg |
|
| 604 | + */ |
|
| 592 | 605 | function tpl_errorMsg($tplnameError, $msg) |
| 593 | 606 | { |
| 594 | 607 | global $tplname; |
@@ -617,6 +630,9 @@ discard block |
||
| 617 | 630 | textdomain('messages'); |
| 618 | 631 | } |
| 619 | 632 | |
| 633 | +/** |
|
| 634 | + * @param string $sCode |
|
| 635 | + */ |
|
| 620 | 636 | function tpl_do_translation($sCode) |
| 621 | 637 | { |
| 622 | 638 | global $opt, $style, $tplname; |
@@ -645,6 +661,9 @@ discard block |
||
| 645 | 661 | return $sResultCode; |
| 646 | 662 | } |
| 647 | 663 | |
| 664 | +/** |
|
| 665 | + * @param string $sCode |
|
| 666 | + */ |
|
| 648 | 667 | function gettext_do_html($sCode) |
| 649 | 668 | { |
| 650 | 669 | $sResultCode = ''; |
@@ -674,6 +693,9 @@ discard block |
||
| 674 | 693 | return $sResultCode; |
| 675 | 694 | } |
| 676 | 695 | |
| 696 | +/** |
|
| 697 | + * @return string |
|
| 698 | + */ |
|
| 677 | 699 | function t($str) |
| 678 | 700 | { |
| 679 | 701 | global $translate; |
@@ -149,6 +149,9 @@ |
||
| 149 | 149 | <?php |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | +/** |
|
| 153 | + * @param string $sql |
|
| 154 | + */ |
|
| 152 | 155 | function sqldbg_execute($sql, $bSlave) |
| 153 | 156 | { |
| 154 | 157 | global $dblink; |
@@ -106,6 +106,10 @@ |
||
| 106 | 106 | // throttle admin error mails; |
| 107 | 107 | // currently used only for SQL errors and warnings |
| 108 | 108 | |
| 109 | +/** |
|
| 110 | + * @param string $errortype |
|
| 111 | + * @param string $message |
|
| 112 | + */ |
|
| 109 | 113 | function admin_errormail($to, $errortype, $message, $headers) |
| 110 | 114 | { |
| 111 | 115 | global $opt; |
@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | * Returns: if $file specified - true if OK |
| 27 | 27 | if $file not specified - image data |
| 28 | 28 | */ |
| 29 | +/** |
|
| 30 | + * @param resource $img |
|
| 31 | + */ |
|
| 29 | 32 | function imagebmp($img,$file="",$RLE=0) |
| 30 | 33 | { |
| 31 | 34 | |
@@ -463,6 +466,9 @@ discard block |
||
| 463 | 466 | |
| 464 | 467 | |
| 465 | 468 | |
| 469 | +/** |
|
| 470 | + * @param integer $byte |
|
| 471 | + */ |
|
| 466 | 472 | function RetBits($byte,$start,$len) |
| 467 | 473 | { |
| 468 | 474 | $bin=decbin8($byte); |
@@ -474,6 +480,10 @@ discard block |
||
| 474 | 480 | |
| 475 | 481 | |
| 476 | 482 | $CurrentBit=0; |
| 483 | +/** |
|
| 484 | + * @param resource $f |
|
| 485 | + * @param integer $count |
|
| 486 | + */ |
|
| 477 | 487 | function freadbits($f,$count) |
| 478 | 488 | { |
| 479 | 489 | global $CurrentBit,$SMode; |
@@ -505,6 +515,10 @@ discard block |
||
| 505 | 515 | { |
| 506 | 516 | return chr($n & 255).chr(($n >> 8) & 255).chr(($n >> 16) & 255).chr(($n >> 24) & 255); |
| 507 | 517 | } |
| 518 | + |
|
| 519 | + /** |
|
| 520 | + * @param integer $n |
|
| 521 | + */ |
|
| 508 | 522 | function int_to_word($n) |
| 509 | 523 | { |
| 510 | 524 | return chr($n & 255).chr(($n >> 8) & 255); |
@@ -516,6 +530,9 @@ discard block |
||
| 516 | 530 | return decbinx($d,8); |
| 517 | 531 | }; |
| 518 | 532 | |
| 533 | +/** |
|
| 534 | + * @param integer $n |
|
| 535 | + */ |
|
| 519 | 536 | function decbinx($d,$n) |
| 520 | 537 | { |
| 521 | 538 | $bin=decbin($d); |
@@ -36,7 +36,9 @@ discard block |
||
| 36 | 36 | $IsTransparent=$Transparent!=-1; |
| 37 | 37 | |
| 38 | 38 | |
| 39 | -if($IsTransparent) $ColorCount--; |
|
| 39 | +if($IsTransparent) { |
|
| 40 | + $ColorCount--; |
|
| 41 | +} |
|
| 40 | 42 | |
| 41 | 43 | if($ColorCount==0) {$ColorCount=0; $BitCount=24;}; |
| 42 | 44 | if(($ColorCount>0)and($ColorCount<=2)) {$ColorCount=2; $BitCount=1;}; |
@@ -49,7 +51,9 @@ discard block |
||
| 49 | 51 | |
| 50 | 52 | $Zbytek=(4-($Width/(8/$BitCount))%4)%4; |
| 51 | 53 | |
| 52 | - if($BitCount<24) $palsize=pow(2,$BitCount)*4; |
|
| 54 | + if($BitCount<24) { |
|
| 55 | + $palsize=pow(2,$BitCount)*4; |
|
| 56 | + } |
|
| 53 | 57 | |
| 54 | 58 | $size=(floor($Width/(8/$BitCount))+$Zbytek)*$Height+54; |
| 55 | 59 | $size+=$palsize; |
@@ -76,11 +80,15 @@ discard block |
||
| 76 | 80 | |
| 77 | 81 | $CC=$ColorCount; |
| 78 | 82 | $sl1=strlen($ret); |
| 79 | - if($CC==0) $CC=256; |
|
| 83 | + if($CC==0) { |
|
| 84 | + $CC=256; |
|
| 85 | + } |
|
| 80 | 86 | if($BitCount<24) |
| 81 | 87 | { |
| 82 | 88 | $ColorTotal=imagecolorstotal($img); |
| 83 | - if($IsTransparent) $ColorTotal--; |
|
| 89 | + if($IsTransparent) { |
|
| 90 | + $ColorTotal--; |
|
| 91 | + } |
|
| 84 | 92 | |
| 85 | 93 | for($p=0;$p<$ColorTotal;$p++) |
| 86 | 94 | { |
@@ -122,12 +130,14 @@ discard block |
||
| 122 | 130 | if((strlen($bWrite)<8)and(strlen($bWrite)!=0)) |
| 123 | 131 | { |
| 124 | 132 | $sl=strlen($bWrite); |
| 125 | - for($t=0;$t<8-$sl;$t++) |
|
| 126 | - $sl.="0"; |
|
| 133 | + for($t=0;$t<8-$sl;$t++) { |
|
| 134 | + $sl.="0"; |
|
| 135 | + } |
|
| 127 | 136 | $retd.=inttobyte(bindec($bWrite)); |
| 128 | 137 | }; |
| 129 | - for($z=0;$z<$Zbytek;$z++) |
|
| 130 | - $retd.=inttobyte(0); |
|
| 138 | + for($z=0;$z<$Zbytek;$z++) { |
|
| 139 | + $retd.=inttobyte(0); |
|
| 140 | + } |
|
| 131 | 141 | }; |
| 132 | 142 | }; |
| 133 | 143 | |
@@ -135,9 +145,10 @@ discard block |
||
| 135 | 145 | { |
| 136 | 146 | for($t=0;$t<strlen($retd);$t+=4) |
| 137 | 147 | { |
| 138 | - if($t!=0) |
|
| 139 | - if(($t)%$Width==0) |
|
| 148 | + if($t!=0) { |
|
| 149 | + if(($t)%$Width==0) |
|
| 140 | 150 | $ret.=chr(0).chr(0); |
| 151 | + } |
|
| 141 | 152 | |
| 142 | 153 | if(($t+5)%$Width==0) |
| 143 | 154 | { |
@@ -148,15 +159,13 @@ discard block |
||
| 148 | 159 | { |
| 149 | 160 | $ret.=chr(0).chr(6).substr($retd,$t,6); |
| 150 | 161 | $t+=2; |
| 151 | - } |
|
| 152 | - else |
|
| 162 | + } else |
|
| 153 | 163 | { |
| 154 | 164 | $ret.=chr(0).chr(4).substr($retd,$t,4); |
| 155 | 165 | }; |
| 156 | 166 | }; |
| 157 | 167 | $ret.=chr(0).chr(1); |
| 158 | -} |
|
| 159 | -else |
|
| 168 | +} else |
|
| 160 | 169 | { |
| 161 | 170 | $ret.=$retd; |
| 162 | 171 | }; |
@@ -164,8 +173,9 @@ discard block |
||
| 164 | 173 | |
| 165 | 174 | if($BitCount==24) |
| 166 | 175 | { |
| 167 | - for($z=0;$z<$Zbytek;$z++) |
|
| 168 | - $Dopl.=chr(0); |
|
| 176 | + for($z=0;$z<$Zbytek;$z++) { |
|
| 177 | + $Dopl.=chr(0); |
|
| 178 | + } |
|
| 169 | 179 | |
| 170 | 180 | for($y=$Height-1;$y>=0;$y--) |
| 171 | 181 | { |
@@ -185,8 +195,7 @@ discard block |
||
| 185 | 195 | $r=$r and fwrite($f,$ret); |
| 186 | 196 | $r=$r and fclose($f); |
| 187 | 197 | return $r; |
| 188 | - } |
|
| 189 | - else |
|
| 198 | + } else |
|
| 190 | 199 | { |
| 191 | 200 | echo $ret; |
| 192 | 201 | }; |
@@ -259,17 +268,20 @@ discard block |
||
| 259 | 268 | imagesetpixel($img,$x,$y,$Palette[$C]); |
| 260 | 269 | }; |
| 261 | 270 | if($CurrentBit!=0) {freadbyte($f);}; |
| 262 | - for($g=0;$g<$Zbytek;$g++) |
|
| 263 | - freadbyte($f); |
|
| 271 | + for($g=0;$g<$Zbytek;$g++) { |
|
| 272 | + freadbyte($f); |
|
| 273 | + } |
|
| 264 | 274 | }; |
| 265 | 275 | |
| 266 | 276 | }; |
| 267 | 277 | }; |
| 268 | 278 | |
| 269 | 279 | |
| 270 | -if($RLECompression==1) //$BI_RLE8 |
|
| 280 | +if($RLECompression==1) { |
|
| 281 | + //$BI_RLE8 |
|
| 271 | 282 | { |
| 272 | 283 | $y=$Height; |
| 284 | +} |
|
| 273 | 285 | |
| 274 | 286 | $pocetb=0; |
| 275 | 287 | |
@@ -282,9 +294,15 @@ discard block |
||
| 282 | 294 | |
| 283 | 295 | $echoit=false; |
| 284 | 296 | |
| 285 | -if($echoit)echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 286 | -if(($prefix==0)and($suffix==1)) break; |
|
| 287 | -if(feof($f)) break; |
|
| 297 | +if($echoit) { |
|
| 298 | + echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 299 | +} |
|
| 300 | +if(($prefix==0)and($suffix==1)) { |
|
| 301 | + break; |
|
| 302 | +} |
|
| 303 | +if(feof($f)) { |
|
| 304 | + break; |
|
| 305 | +} |
|
| 288 | 306 | |
| 289 | 307 | while(!(($prefix==0)and($suffix==0))) |
| 290 | 308 | { |
@@ -298,14 +316,17 @@ discard block |
||
| 298 | 316 | if($prefix>0) |
| 299 | 317 | { |
| 300 | 318 | $pocet=$prefix; |
| 301 | - for($r=0;$r<$pocet;$r++) |
|
| 302 | - $Data.=chr($suffix); |
|
| 319 | + for($r=0;$r<$pocet;$r++) { |
|
| 320 | + $Data.=chr($suffix); |
|
| 321 | + } |
|
| 303 | 322 | }; |
| 304 | 323 | $prefix=freadbyte($f); |
| 305 | 324 | $suffix=freadbyte($f); |
| 306 | 325 | $pocetb+=2; |
| 307 | - if($echoit) echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 308 | -}; |
|
| 326 | + if($echoit) { |
|
| 327 | + echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 328 | + } |
|
| 329 | + }; |
|
| 309 | 330 | |
| 310 | 331 | for($x=0;$x<strlen($Data);$x++) |
| 311 | 332 | { |
@@ -318,9 +339,11 @@ discard block |
||
| 318 | 339 | }; |
| 319 | 340 | |
| 320 | 341 | |
| 321 | -if($RLECompression==2) //$BI_RLE4 |
|
| 342 | +if($RLECompression==2) { |
|
| 343 | + //$BI_RLE4 |
|
| 322 | 344 | { |
| 323 | 345 | $y=$Height; |
| 346 | +} |
|
| 324 | 347 | $pocetb=0; |
| 325 | 348 | |
| 326 | 349 | /*while(!feof($f)) |
@@ -335,9 +358,15 @@ discard block |
||
| 335 | 358 | |
| 336 | 359 | $echoit=false; |
| 337 | 360 | |
| 338 | -if($echoit)echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 339 | -if(($prefix==0)and($suffix==1)) break; |
|
| 340 | -if(feof($f)) break; |
|
| 361 | +if($echoit) { |
|
| 362 | + echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 363 | +} |
|
| 364 | +if(($prefix==0)and($suffix==1)) { |
|
| 365 | + break; |
|
| 366 | +} |
|
| 367 | +if(feof($f)) { |
|
| 368 | + break; |
|
| 369 | +} |
|
| 341 | 370 | |
| 342 | 371 | while(!(($prefix==0)and($suffix==0))) |
| 343 | 372 | { |
@@ -346,9 +375,12 @@ discard block |
||
| 346 | 375 | $pocet=$suffix; |
| 347 | 376 | |
| 348 | 377 | $CurrentBit=0; |
| 349 | - for($h=0;$h<$pocet;$h++) |
|
| 350 | - $Data.=chr(freadbits($f,4)); |
|
| 351 | - if($CurrentBit!=0) freadbits($f,4); |
|
| 378 | + for($h=0;$h<$pocet;$h++) { |
|
| 379 | + $Data.=chr(freadbits($f,4)); |
|
| 380 | + } |
|
| 381 | + if($CurrentBit!=0) { |
|
| 382 | + freadbits($f,4); |
|
| 383 | + } |
|
| 352 | 384 | $pocetb+=ceil(($pocet/2)); |
| 353 | 385 | if($pocetb%2==1) {freadbyte($f); $pocetb++;}; |
| 354 | 386 | }; |
@@ -361,8 +393,7 @@ discard block |
||
| 361 | 393 | if($i%2==0) |
| 362 | 394 | { |
| 363 | 395 | $Data.=chr($suffix%16); |
| 364 | - } |
|
| 365 | - else |
|
| 396 | + } else |
|
| 366 | 397 | { |
| 367 | 398 | $Data.=chr(floor($suffix/16)); |
| 368 | 399 | }; |
@@ -372,8 +403,10 @@ discard block |
||
| 372 | 403 | $prefix=freadbyte($f); |
| 373 | 404 | $suffix=freadbyte($f); |
| 374 | 405 | $pocetb+=2; |
| 375 | - if($echoit) echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 376 | -}; |
|
| 406 | + if($echoit) { |
|
| 407 | + echo "Prefix: $prefix Suffix: $suffix<BR>"; |
|
| 408 | + } |
|
| 409 | + }; |
|
| 377 | 410 | |
| 378 | 411 | for($x=0;$x<strlen($Data);$x++) |
| 379 | 412 | { |
@@ -399,11 +432,14 @@ discard block |
||
| 399 | 432 | $G=freadbyte($f); |
| 400 | 433 | $R=freadbyte($f); |
| 401 | 434 | $color=imagecolorexact($img,$R,$G,$B); |
| 402 | - if($color==-1) $color=imagecolorallocate($img,$R,$G,$B); |
|
| 435 | + if($color==-1) { |
|
| 436 | + $color=imagecolorallocate($img,$R,$G,$B); |
|
| 437 | + } |
|
| 403 | 438 | imagesetpixel($img,$x,$y,$color); |
| 404 | 439 | } |
| 405 | - for($z=0;$z<$Zbytek;$z++) |
|
| 406 | - freadbyte($f); |
|
| 440 | + for($z=0;$z<$Zbytek;$z++) { |
|
| 441 | + freadbyte($f); |
|
| 442 | + } |
|
| 407 | 443 | }; |
| 408 | 444 | }; |
| 409 | 445 | return $img; |
@@ -483,8 +519,7 @@ discard block |
||
| 483 | 519 | if($CurrentBit==8) |
| 484 | 520 | { |
| 485 | 521 | $CurrentBit=0; |
| 486 | - } |
|
| 487 | - else |
|
| 522 | + } else |
|
| 488 | 523 | { |
| 489 | 524 | fseek($f,ftell($f)-1); |
| 490 | 525 | }; |
@@ -495,9 +530,15 @@ discard block |
||
| 495 | 530 | |
| 496 | 531 | function RGBToHex($Red,$Green,$Blue) |
| 497 | 532 | { |
| 498 | - $hRed=dechex($Red);if(strlen($hRed)==1) $hRed="0$hRed"; |
|
| 499 | - $hGreen=dechex($Green);if(strlen($hGreen)==1) $hGreen="0$hGreen"; |
|
| 500 | - $hBlue=dechex($Blue);if(strlen($hBlue)==1) $hBlue="0$hBlue"; |
|
| 533 | + $hRed=dechex($Red);if(strlen($hRed)==1) { |
|
| 534 | + $hRed="0$hRed"; |
|
| 535 | + } |
|
| 536 | + $hGreen=dechex($Green);if(strlen($hGreen)==1) { |
|
| 537 | + $hGreen="0$hGreen"; |
|
| 538 | + } |
|
| 539 | + $hBlue=dechex($Blue);if(strlen($hBlue)==1) { |
|
| 540 | + $hBlue="0$hBlue"; |
|
| 541 | + } |
|
| 501 | 542 | return($hRed.$hGreen.$hBlue); |
| 502 | 543 | }; |
| 503 | 544 | |
@@ -520,8 +561,9 @@ discard block |
||
| 520 | 561 | { |
| 521 | 562 | $bin=decbin($d); |
| 522 | 563 | $sbin=strlen($bin); |
| 523 | -for($j=0;$j<$n-$sbin;$j++) |
|
| 564 | +for($j=0;$j<$n-$sbin;$j++) { |
|
| 524 | 565 | $bin="0$bin"; |
| 566 | +} |
|
| 525 | 567 | return $bin; |
| 526 | 568 | }; |
| 527 | 569 | |
@@ -23,6 +23,10 @@ |
||
| 23 | 23 | return self::getAttrbutesListArrayInternal($cacheId, false, $firstLetterUppercase); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param boolean $bOnlySelectable |
|
| 28 | + * @param boolean $firstLetterUppercase |
|
| 29 | + */ |
|
| 26 | 30 | public static function getAttrbutesListArrayInternal($cacheId, $bOnlySelectable, $firstLetterUppercase) |
| 27 | 31 | { |
| 28 | 32 | global $opt; |
@@ -411,9 +411,9 @@ |
||
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | /** |
| 414 | - * @param $cacheId |
|
| 415 | - * @param $start |
|
| 416 | - * @param $count |
|
| 414 | + * @param integer $cacheId |
|
| 415 | + * @param integer $start |
|
| 416 | + * @param integer $count |
|
| 417 | 417 | * @param bool $deleted |
| 418 | 418 | * @param bool $protect_old_coords |
| 419 | 419 | * |
@@ -262,6 +262,9 @@ |
||
| 262 | 262 | return $this->reCacheLog->getValue('owner_notified') != 0; |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | + /** |
|
| 266 | + * @param integer $value |
|
| 267 | + */ |
|
| 265 | 268 | public function setOwnerNotified($value) |
| 266 | 269 | { |
| 267 | 270 | return $this->reCacheLog->setValue('owner_notified', $value ? 1 : 0); |
@@ -303,6 +303,10 @@ discard block |
||
| 303 | 303 | return 'R ' . floor($result[0]) . ' H ' . floor($result[1]); |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | + /** |
|
| 307 | + * @param integer $bw |
|
| 308 | + * @param integer $lw |
|
| 309 | + */ |
|
| 306 | 310 | public function wgs2pot($bw, $lw) |
| 307 | 311 | { |
| 308 | 312 | /* Copyright (c) 2006, HELMUT H. HEIMEIER |
@@ -602,6 +606,9 @@ discard block |
||
| 602 | 606 | ]; |
| 603 | 607 | } |
| 604 | 608 | |
| 609 | + /** |
|
| 610 | + * @param string $name |
|
| 611 | + */ |
|
| 605 | 612 | public static function parseRequestLat($name) |
| 606 | 613 | { |
| 607 | 614 | if (!isset($_REQUEST[$name . 'NS']) || !isset($_REQUEST[$name . 'Lat']) || !isset($_REQUEST[$name . 'LatMin'])) { |
@@ -620,6 +627,9 @@ discard block |
||
| 620 | 627 | return $lat; |
| 621 | 628 | } |
| 622 | 629 | |
| 630 | + /** |
|
| 631 | + * @param string $name |
|
| 632 | + */ |
|
| 623 | 633 | public static function parseRequestLon($name) |
| 624 | 634 | { |
| 625 | 635 | if (!isset($_REQUEST[$name . 'EW']) || !isset($_REQUEST[$name . 'Lon']) || !isset($_REQUEST[$name . 'LonMin'])) { |