@@ -292,8 +292,8 @@ |
||
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); |
@@ -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,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The reporting class for simple report generation |
|
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_Report |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Gustavo Solt <[email protected]> |
|
15 | - * @copyright 2011-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * @link http://www.phpmyfaq.de |
|
18 | - * @since 2011-02-04 |
|
19 | - */ |
|
3 | + * The reporting class for simple report generation |
|
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_Report |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Gustavo Solt <[email protected]> |
|
15 | + * @copyright 2011-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * @link http://www.phpmyfaq.de |
|
18 | + * @since 2011-02-04 |
|
19 | + */ |
|
20 | 20 | |
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | exit(); |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The main glossary 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_Glossary |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @copyright 2005-2015 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-15 |
|
18 | - */ |
|
3 | + * The main glossary 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_Glossary |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @copyright 2005-2015 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-15 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Handles all the stuff for visits |
|
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_Visits |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @copyright 2009-2015 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-03-08 |
|
18 | - */ |
|
3 | + * Handles all the stuff for visits |
|
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_Visits |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @copyright 2009-2015 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-03-08 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The basic permission class provides user 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-2015 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 basic permission class provides user 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-2015 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(); |
@@ -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 |
@@ -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-2015 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-2015 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(); |
@@ -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 large permission class is not yet implemented in phpMyFAQ. |
|
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-2015 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 large permission class is not yet implemented in phpMyFAQ. |
|
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-2015 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(); |
@@ -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-2015 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-2015 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(); |
@@ -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 | - * Unencrypted 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-2015 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 | + * Unencrypted 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-2015 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(); |