@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | |
210 | 210 | // Set the correct HTTP headers: |
211 | 211 | // 1. Prevent proxies&browsers caching |
212 | - header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
|
212 | + header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); |
|
213 | 213 | header("Expires: 0"); |
214 | 214 | header("Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); |
215 | 215 | header("Pragma: no-cache"); |
@@ -221,13 +221,13 @@ discard block |
||
221 | 221 | header("Content-Type: application/force-download"); |
222 | 222 | } |
223 | 223 | // RFC2616, �19.5.1: $filename must be a quoted-string |
224 | - header("Content-Disposition: " . $this->disposition."; filename=\"" . PMF_Export::getExportTimestamp() . "_" . $filename."\""); |
|
224 | + header("Content-Disposition: ".$this->disposition."; filename=\"".PMF_Export::getExportTimestamp()."_".$filename."\""); |
|
225 | 225 | if (!empty($description)) { |
226 | - header("Content-Description: " . $description); |
|
226 | + header("Content-Description: ".$description); |
|
227 | 227 | } |
228 | 228 | header("Content-Transfer-Encoding: binary"); |
229 | 229 | header("Accept-Ranges: none"); |
230 | - header("Content-Length: " . $this->size); |
|
230 | + header("Content-Length: ".$this->size); |
|
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Simple HTTP Streamer |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @package PMF_HttpStreamer |
|
13 | - * @author Matteo Scaramuccia <[email protected]> |
|
14 | - * @copyright 2005-2016 phpMyFAQ Team |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2005-11-02 |
|
18 | - */ |
|
3 | + * Simple HTTP Streamer |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @package PMF_HttpStreamer |
|
13 | + * @author Matteo Scaramuccia <[email protected]> |
|
14 | + * @copyright 2005-2016 phpMyFAQ Team |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2005-11-02 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $message = ''; |
131 | 131 | |
132 | 132 | if (!is_array($this->errors)) { |
133 | - $this->errors = array((string) $this->errors); |
|
133 | + $this->errors = array((string)$this->errors); |
|
134 | 134 | } |
135 | 135 | foreach ($this->errors as $error) { |
136 | 136 | $message .= $error."\n"; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return $this; |
166 | 166 | } |
167 | 167 | |
168 | - $authClass = 'PMF_Auth_' . $method; |
|
168 | + $authClass = 'PMF_Auth_'.$method; |
|
169 | 169 | if (!class_exists($authClass)) { |
170 | 170 | $this->errors[] = self::PMF_ERROR_USER_NO_AUTHTYPE; |
171 | 171 | return $this; |
@@ -39,14 +39,14 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @const string |
41 | 41 | */ |
42 | - const COMMENT_TYPE_FAQ = 'faq'; |
|
42 | + const COMMENT_TYPE_FAQ = 'faq'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * News type |
46 | 46 | * |
47 | 47 | * @const string |
48 | 48 | */ |
49 | - const COMMENT_TYPE_NEWS ='news'; |
|
49 | + const COMMENT_TYPE_NEWS = 'news'; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * @var PMF_Configuration |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $mail->safeEmail($item['email']), |
183 | 183 | $item['user'], |
184 | 184 | $this->showShortComment($id, $item['content']), |
185 | - $this->pmfStr['newsCommentDate'] . |
|
185 | + $this->pmfStr['newsCommentDate']. |
|
186 | 186 | $date->format( |
187 | 187 | PMF_Date::createIsoDate($item['date'], 'Y-m-d H:i', false) |
188 | 188 | ) |
@@ -355,12 +355,12 @@ discard block |
||
355 | 355 | |
356 | 356 | $comment = ''; |
357 | 357 | foreach ($words as $word) { |
358 | - $comment .= $word . ' '; |
|
358 | + $comment .= $word.' '; |
|
359 | 359 | if (15 === $numWords) { |
360 | - $comment .= '<span class="comment-dots-' . $id . '">... </span>' . |
|
361 | - '<a onclick="showLongComment(' . $id . ')" class="comment-show-more-' . $id . |
|
362 | - ' pointer">' . $this->pmfStr['msgShowMore'] . '</a>' . |
|
363 | - '<span class="comment-more-' . $id . ' hide">'; |
|
360 | + $comment .= '<span class="comment-dots-'.$id.'">... </span>'. |
|
361 | + '<a onclick="showLongComment('.$id.')" class="comment-show-more-'.$id. |
|
362 | + ' pointer">'.$this->pmfStr['msgShowMore'].'</a>'. |
|
363 | + '<span class="comment-more-'.$id.' hide">'; |
|
364 | 364 | } |
365 | 365 | $numWords++; |
366 | 366 | } |
@@ -368,6 +368,6 @@ discard block |
||
368 | 368 | // Convert URLs to HTML anchors |
369 | 369 | |
370 | 370 | |
371 | - return PMF_Utils::parseUrl($comment) . '</span>'; |
|
371 | + return PMF_Utils::parseUrl($comment).'</span>'; |
|
372 | 372 | } |
373 | 373 | } |
374 | 374 | \ No newline at end of file |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The main Comment class |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @package PMF_Comment |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @copyright 2006-2016 phpMyFAQ Team |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2006-07-23 |
|
18 | - */ |
|
3 | + * The main Comment class |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @package PMF_Comment |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @copyright 2006-2016 phpMyFAQ Team |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2006-07-23 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $this->base = $ldapBase; |
107 | 107 | $this->ds = ldap_connect($ldapServer, $ldapPort); |
108 | 108 | |
109 | - if (! $this->ds) { |
|
109 | + if (!$this->ds) { |
|
110 | 110 | $this->error = sprintf( |
111 | 111 | 'Unable to connect to LDAP server (Error: %s)', |
112 | 112 | ldap_error($this->ds) |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | // optionally set Bind version |
120 | 120 | if (isset($this->_ldapConfig['ldap_options'])) { |
121 | 121 | foreach ($this->_ldapConfig['ldap_options'] as $key => $value) { |
122 | - if (! ldap_set_option($this->ds, $key, $value)) { |
|
122 | + if (!ldap_set_option($this->ds, $key, $value)) { |
|
123 | 123 | $this->errno = ldap_errno($this->ds); |
124 | 124 | $this->error = sprintf( |
125 | 125 | 'Unable to set LDAP option "%s" to "%s" (Error: %s).', |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | if (isset($this->_ldapConfig['ldap_use_dynamic_login']) && $this->_ldapConfig['ldap_use_dynamic_login']) { |
137 | 137 | // Check for dynamic user binding |
138 | - $ldapRdn = $this->_ldapConfig['ldap_dynamic_login_attribute'] . '=' . $ldapUser . ',' . $ldapBase; |
|
138 | + $ldapRdn = $this->_ldapConfig['ldap_dynamic_login_attribute'].'='.$ldapUser.','.$ldapBase; |
|
139 | 139 | $ldapBind = $this->bind($ldapRdn, $ldapPassword); |
140 | 140 | } elseif (isset($this->_ldapConfig['ldap_use_anonymous_login']) && $this->_ldapConfig['ldap_use_anonymous_login']) { |
141 | 141 | // Check for anonymous binding |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * |
241 | 241 | * @return string|false |
242 | 242 | */ |
243 | - private function getLdapData ($username, $data) |
|
243 | + private function getLdapData($username, $data) |
|
244 | 244 | { |
245 | 245 | if (!is_resource($this->ds)) { |
246 | 246 | $this->error = 'The LDAP connection handler is not a valid resource.'; |
@@ -358,8 +358,8 @@ discard block |
||
358 | 358 | public function quote($string) |
359 | 359 | { |
360 | 360 | return str_replace( |
361 | - array( '\\', ' ', '*', '(', ')' ), |
|
362 | - array( '\\5c', '\\20', '\\2a', '\\28', '\\29' ), |
|
361 | + array('\\', ' ', '*', '(', ')'), |
|
362 | + array('\\5c', '\\20', '\\2a', '\\28', '\\29'), |
|
363 | 363 | $string |
364 | 364 | ); |
365 | 365 | } |
@@ -1,24 +1,24 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The PMF_Ldap class provides methods and functions for a LDAP database |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @package PMF_Ldap |
|
13 | - * @author Adam Greene <[email protected]> |
|
14 | - * @author Thorsten Rinne <[email protected]> |
|
15 | - * @author Alberto Cabello Sanchez <[email protected]> |
|
16 | - * @author Lars Scheithauer <[email protected]> |
|
17 | - * @copyright 2004-2016 phpMyFAQ Team |
|
18 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
19 | - * @link http://www.phpmyfaq.de |
|
20 | - * @since 2004-12-16 |
|
21 | - */ |
|
3 | + * The PMF_Ldap class provides methods and functions for a LDAP database |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @package PMF_Ldap |
|
13 | + * @author Adam Greene <[email protected]> |
|
14 | + * @author Thorsten Rinne <[email protected]> |
|
15 | + * @author Alberto Cabello Sanchez <[email protected]> |
|
16 | + * @author Lars Scheithauer <[email protected]> |
|
17 | + * @copyright 2004-2016 phpMyFAQ Team |
|
18 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
19 | + * @link http://www.phpmyfaq.de |
|
20 | + * @since 2004-12-16 |
|
21 | + */ |
|
22 | 22 | |
23 | 23 | if (!defined('IS_VALID_PHPMYFAQ')) { |
24 | 24 | exit(); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | if (!isset($_SESSION[PMF_SESSION_ID_TIMESTAMP])) { |
272 | 272 | return 0; |
273 | 273 | } |
274 | - return ($_SERVER['REQUEST_TIME'] - $_SESSION[PMF_SESSION_ID_TIMESTAMP]) / 60; |
|
274 | + return ($_SERVER['REQUEST_TIME'] - $_SESSION[PMF_SESSION_ID_TIMESTAMP])/60; |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | /** |
@@ -319,10 +319,10 @@ discard block |
||
319 | 319 | $oldSessionId = session_id(); |
320 | 320 | if (session_regenerate_id(true)) { |
321 | 321 | $sessionPath = session_save_path(); |
322 | - if (strpos ($sessionPath, ';') !== false) { |
|
323 | - $sessionPath = substr ($sessionPath, strpos ($sessionPath, ';') + 1); |
|
322 | + if (strpos($sessionPath, ';') !== false) { |
|
323 | + $sessionPath = substr($sessionPath, strpos($sessionPath, ';') + 1); |
|
324 | 324 | } |
325 | - $sessionFilename = $sessionPath . '/sess_' . $oldSessionId; |
|
325 | + $sessionFilename = $sessionPath.'/sess_'.$oldSessionId; |
|
326 | 326 | if (@file_exists($sessionFilename)) { |
327 | 327 | @unlink($sessionFilename); |
328 | 328 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | PMF_Db::getTablePrefix(), |
344 | 344 | session_id(), |
345 | 345 | $_SERVER['REQUEST_TIME'], |
346 | - $updateLastlogin ? "last_login = '".date('YmdHis', $_SERVER['REQUEST_TIME'])."'," : '', |
|
346 | + $updateLastlogin ? "last_login = '".date('YmdHis', $_SERVER['REQUEST_TIME'])."'," : '', |
|
347 | 347 | $_SERVER['REMOTE_ADDR'], |
348 | 348 | $this->getUserId() |
349 | 349 | ); |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | */ |
491 | 491 | public static function getFromCookie(PMF_Configuration $config) |
492 | 492 | { |
493 | - if (! isset($_COOKIE[PMF_Session::PMF_COOKIE_NAME_REMEMBERME])) { |
|
493 | + if (!isset($_COOKIE[PMF_Session::PMF_COOKIE_NAME_REMEMBERME])) { |
|
494 | 494 | return null; |
495 | 495 | } |
496 | 496 | |
@@ -612,6 +612,6 @@ discard block |
||
612 | 612 | */ |
613 | 613 | private function createCsrfToken() |
614 | 614 | { |
615 | - return sha1(microtime() . $this->getLogin()); |
|
615 | + return sha1(microtime().$this->getLogin()); |
|
616 | 616 | } |
617 | 617 | } |
@@ -1,28 +1,28 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Manages authentication process using PHP sessions. |
|
4 | - * |
|
5 | - * The CurrentUser class is an extension of the User class. It provides methods |
|
6 | - * manage user authentication using multiple database accesses. There are three |
|
7 | - * ways of making a new current user object, using the login(), getFromSession(), |
|
8 | - * getFromCookie() or manually. login(), getFromSession() and getFromCookie() may |
|
9 | - * be combined. |
|
10 | - * |
|
11 | - * PHP Version 5.3 |
|
12 | - * |
|
13 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
14 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
15 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
16 | - * |
|
17 | - * @category phpMyFAQ |
|
18 | - * @package User |
|
19 | - * @author Lars Tiedemann <[email protected]> |
|
20 | - * @author Thorsten Rinne <[email protected]> |
|
21 | - * @copyright 2005-2016 phpMyFAQ Team |
|
22 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
23 | - * @link http://www.phpmyfaq.de |
|
24 | - * @since 2005-09-28 |
|
25 | - */ |
|
3 | + * Manages authentication process using PHP sessions. |
|
4 | + * |
|
5 | + * The CurrentUser class is an extension of the User class. It provides methods |
|
6 | + * manage user authentication using multiple database accesses. There are three |
|
7 | + * ways of making a new current user object, using the login(), getFromSession(), |
|
8 | + * getFromCookie() or manually. login(), getFromSession() and getFromCookie() may |
|
9 | + * be combined. |
|
10 | + * |
|
11 | + * PHP Version 5.3 |
|
12 | + * |
|
13 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
14 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
15 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
16 | + * |
|
17 | + * @category phpMyFAQ |
|
18 | + * @package User |
|
19 | + * @author Lars Tiedemann <[email protected]> |
|
20 | + * @author Thorsten Rinne <[email protected]> |
|
21 | + * @copyright 2005-2016 phpMyFAQ Team |
|
22 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
23 | + * @link http://www.phpmyfaq.de |
|
24 | + * @since 2005-09-28 |
|
25 | + */ |
|
26 | 26 | |
27 | 27 | if (!defined('IS_VALID_PHPMYFAQ')) { |
28 | 28 | exit(); |
@@ -292,8 +292,8 @@ discard block |
||
292 | 292 | %sfaquser |
293 | 293 | WHERE |
294 | 294 | user_id = %d", |
295 | - PMF_Db::getTablePrefix(), |
|
296 | - $this->getUserId() |
|
295 | + PMF_Db::getTablePrefix(), |
|
296 | + $this->getUserId() |
|
297 | 297 | ); |
298 | 298 | |
299 | 299 | $res = $this->config->getDb()->query($select); |
@@ -318,7 +318,7 @@ |
||
318 | 318 | isset($rightData['for_groups']) ? (int)$rightData['for_groups'] : 1 |
319 | 319 | ); |
320 | 320 | |
321 | - if (! $this->config->getDb()->query($insert)) { |
|
321 | + if (!$this->config->getDb()->query($insert)) { |
|
322 | 322 | return 0; |
323 | 323 | } |
324 | 324 |
@@ -258,7 +258,7 @@ |
||
258 | 258 | |
259 | 259 | $nextId = $this->config->getDb()->nextId(PMF_Db::getTablePrefix()."faqgroup", "group_id"); |
260 | 260 | $groupData = $this->checkGroupData($groupData); |
261 | - $insert = sprintf(" |
|
261 | + $insert = sprintf(" |
|
262 | 262 | INSERT INTO |
263 | 263 | %sfaqgroup |
264 | 264 | (group_id, name, description, auto_join) |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The medium permission class provides group rights. |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @package Perm |
|
13 | - * @author Lars Tiedemann <[email protected]> |
|
14 | - * @copyright 2005-2016 phpMyFAQ Team |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2005-09-17 |
|
18 | - */ |
|
3 | + * The medium permission class provides group rights. |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @package Perm |
|
13 | + * @author Lars Tiedemann <[email protected]> |
|
14 | + * @copyright 2005-2016 phpMyFAQ Team |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2005-09-17 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -79,8 +79,8 @@ |
||
79 | 79 | fa.record_id = fd.id |
80 | 80 | GROUP BY |
81 | 81 | fa.id", |
82 | - PMF_Db::getTablePrefix() . 'faqattachment', |
|
83 | - PMF_Db::getTablePrefix() . 'faqdata' |
|
82 | + PMF_Db::getTablePrefix().'faqattachment', |
|
83 | + PMF_Db::getTablePrefix().'faqdata' |
|
84 | 84 | ); |
85 | 85 | |
86 | 86 | $result = $this->config->getDb()->query($query); |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Attachment collection class |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @package Attachment |
|
13 | - * @author Anatoliy Belsky <[email protected]> |
|
14 | - * @copyright 2010-2016 phpMyFAQ Team |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2010-12-13 |
|
18 | - */ |
|
3 | + * Attachment collection class |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @package Attachment |
|
13 | + * @author Anatoliy Belsky <[email protected]> |
|
14 | + * @copyright 2010-2016 phpMyFAQ Team |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2010-12-13 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $this->handle = @fopen($this->path, $this->mode); |
67 | 67 | |
68 | 68 | if (!is_resource($this->handle)) { |
69 | - throw new PMF_Attachment_Filesystem_File_Exception('Could not open file: ' . $this->path); |
|
69 | + throw new PMF_Attachment_Filesystem_File_Exception('Could not open file: '.$this->path); |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | { |
152 | 152 | $retval = false; |
153 | 153 | |
154 | - if(in_array($mode, array(self::MODE_WRITE, self::MODE_READ, self::MODE_APPEND))) { |
|
154 | + if (in_array($mode, array(self::MODE_WRITE, self::MODE_READ, self::MODE_APPEND))) { |
|
155 | 155 | fclose($this->handle); |
156 | 156 | $this->handle = fopen($this->path, $mode); |
157 | 157 |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * File handler class |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @package Attachment |
|
13 | - * @author Anatoliy Belsky <[email protected]> |
|
14 | - * @copyright 2009-2016 phpMyFAQ Team |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2009-08-21 |
|
18 | - */ |
|
3 | + * File handler class |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @package Attachment |
|
13 | + * @author Anatoliy Belsky <[email protected]> |
|
14 | + * @copyright 2009-2016 phpMyFAQ Team |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2009-08-21 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |