@@ -52,6 +52,9 @@ |
||
| 52 | 52 | return implode("\n", $result); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | +/** |
|
| 56 | + * @param string $text |
|
| 57 | + */ |
|
| 55 | 58 | function system_error($text, $system = 1, $strace = 0) |
| 56 | 59 | { |
| 57 | 60 | |
@@ -7,6 +7,9 @@ |
||
| 7 | 7 | $folders = array('../../', '../../admin/', '../../src/', '../../src/func/'); |
| 8 | 8 | $count = 0; |
| 9 | 9 | |
| 10 | +/** |
|
| 11 | + * @param string $file |
|
| 12 | + */ |
|
| 10 | 13 | function extractVariablesFromTemplate($file) |
| 11 | 14 | { |
| 12 | 15 | $content = file_get_contents($file); |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | |
| 46 | 46 | define("PAGETITLE","PAGETITLE"); |
| 47 | 47 | |
| 48 | +/** |
|
| 49 | + * @param string $string |
|
| 50 | + */ |
|
| 48 | 51 | function fixGlobals($string) |
| 49 | 52 | { |
| 50 | 53 | return str_replace("PAGETITLE", "'.PAGETITLE.'", $string); |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | $this->success = true; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $query |
|
| 42 | + */ |
|
| 40 | 43 | function addQuery($query) |
| 41 | 44 | { |
| 42 | 45 | if (!mysqli_query($this->database, $query)) { |
@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | ########################################################################## |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +/** |
|
| 29 | + * @return string |
|
| 30 | + */ |
|
| 28 | 31 | function unhtmlspecialchars($input) |
| 29 | 32 | { |
| 30 | 33 | $input = preg_replace("/>/i", ">", $input); |
@@ -115,6 +118,9 @@ discard block |
||
| 115 | 118 | return $text; |
| 116 | 119 | } |
| 117 | 120 | |
| 121 | +/** |
|
| 122 | + * @return string |
|
| 123 | + */ |
|
| 118 | 124 | function htmlnl($text) |
| 119 | 125 | { |
| 120 | 126 | preg_match_all( |
@@ -249,6 +255,9 @@ discard block |
||
| 249 | 255 | } |
| 250 | 256 | |
| 251 | 257 | //replace inside [code]-tags |
| 258 | +/** |
|
| 259 | + * @param string $content |
|
| 260 | + */ |
|
| 252 | 261 | function insideCode($content) |
| 253 | 262 | { |
| 254 | 263 | |
@@ -308,6 +317,9 @@ discard block |
||
| 308 | 317 | 'alt="'.fixJavaEvents($match[1].$match[2]).'" />'; |
| 309 | 318 | } |
| 310 | 319 | |
| 320 | +/** |
|
| 321 | + * @param string $content |
|
| 322 | + */ |
|
| 311 | 323 | function imgreplace($content) |
| 312 | 324 | { |
| 313 | 325 | global $_language; |
@@ -538,6 +550,9 @@ discard block |
||
| 538 | 550 | } |
| 539 | 551 | |
| 540 | 552 | //insert member links |
| 553 | +/** |
|
| 554 | + * @param string $content |
|
| 555 | + */ |
|
| 541 | 556 | function insertlinks($content, $calledfrom = 'root') |
| 542 | 557 | { |
| 543 | 558 | global $insertlinks; |
@@ -696,6 +711,9 @@ discard block |
||
| 696 | 711 | return $content; |
| 697 | 712 | } |
| 698 | 713 | |
| 714 | +/** |
|
| 715 | + * @param string $content |
|
| 716 | + */ |
|
| 699 | 717 | function toggle($content, $id) |
| 700 | 718 | { |
| 701 | 719 | global $_language; |
@@ -135,6 +135,9 @@ |
||
| 135 | 135 | return array('text' => $captcha_shown, 'result' => $catpcha_result); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + /** |
|
| 139 | + * @param string $text |
|
| 140 | + */ |
|
| 138 | 141 | private function createCatpchaImage($text) |
| 139 | 142 | { |
| 140 | 143 | global $_language; |
@@ -31,6 +31,10 @@ |
||
| 31 | 31 | require 'PHPMailer/PHPMailerAutoload.php'; |
| 32 | 32 | class Email |
| 33 | 33 | { |
| 34 | + /** |
|
| 35 | + * @param string $module |
|
| 36 | + * @param string $subject |
|
| 37 | + */ |
|
| 34 | 38 | public static function sendEmail($from, $module, $to, $subject, $message, $pop = true) |
| 35 | 39 | { |
| 36 | 40 | $GLOBALS['mail_debug'] = ''; |
@@ -59,6 +59,9 @@ |
||
| 59 | 59 | return $this->language_path; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $module |
|
| 64 | + */ |
|
| 62 | 65 | public function readModule($module, $add = false, $admin = false) |
| 63 | 66 | { |
| 64 | 67 | |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | ########################################################################## |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +/** |
|
| 29 | + * @param string $url |
|
| 30 | + */ |
|
| 28 | 31 | function redirect($url, $info, $time = 1) |
| 29 | 32 | { |
| 30 | 33 | if ($url == "back" && $info != '' && isset($_SERVER['HTTP_REFERER'])) { |