@@ -46,6 +46,9 @@ discard block |
||
| 46 | 46 | return $handle; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param resource $handle |
|
| 51 | + */ |
|
| 49 | 52 | protected function readLog($handle) |
| 50 | 53 | { |
| 51 | 54 | print("\n[Daemon]: +++ readLog() +++"); |
@@ -116,6 +119,9 @@ discard block |
||
| 116 | 119 | |
| 117 | 120 | } |
| 118 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $buffer |
|
| 124 | + */ |
|
| 119 | 125 | protected function parseIP($buffer) |
| 120 | 126 | { |
| 121 | 127 | $ip = ""; |
@@ -134,6 +140,9 @@ discard block |
||
| 134 | 140 | return $ip; |
| 135 | 141 | } |
| 136 | 142 | |
| 143 | + /** |
|
| 144 | + * @param string $buffer |
|
| 145 | + */ |
|
| 137 | 146 | protected function parseHostname($buffer) |
| 138 | 147 | { |
| 139 | 148 | $hostname = ""; |
@@ -152,6 +161,9 @@ discard block |
||
| 152 | 161 | return $hostname; |
| 153 | 162 | } |
| 154 | 163 | |
| 164 | + /** |
|
| 165 | + * @param string $line |
|
| 166 | + */ |
|
| 155 | 167 | protected function parseExit($line) |
| 156 | 168 | { |
| 157 | 169 | $exit = 0; |
@@ -196,6 +208,9 @@ discard block |
||
| 196 | 208 | |
| 197 | 209 | } |
| 198 | 210 | |
| 211 | + /** |
|
| 212 | + * @param integer $id |
|
| 213 | + */ |
|
| 199 | 214 | protected function sendVncWindowToNuc($id, $vncclient) |
| 200 | 215 | { |
| 201 | 216 | print("\n[Daemon]: +++sendVncWindowToNuc() +++ "); |
@@ -86,8 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | if (locale_emulation()) { |
| 88 | 88 | print "locale '$locale' is not supported on your system, using custom gettext implementation.\n"; |
| 89 | - } |
|
| 90 | - else { |
|
| 89 | + } else { |
|
| 91 | 90 | print "locale '$locale' is supported on your system, using native gettext implementation.\n"; |
| 92 | 91 | } |
| 93 | 92 | |
@@ -145,8 +145,7 @@ |
||
| 145 | 145 | if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') { |
| 146 | 146 | if (php_sapi_name() == 'cgi') { |
| 147 | 147 | header('Status: 303 See Other'); |
| 148 | - } |
|
| 149 | - else { |
|
| 148 | + } else { |
|
| 150 | 149 | header('HTTP/1.1 303 See Other'); |
| 151 | 150 | } |
| 152 | 151 | } |