@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Provides methods for password encryption |
|
| 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 Enc |
|
| 13 | - * @author Lars Tiedemann <[email protected]> |
|
| 14 | - * @author Thorsten Rinne <[email protected]> |
|
| 15 | - * @copyright 2005-2016 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 2005-09-18 |
|
| 19 | - */ |
|
| 3 | + * Provides methods for password encryption |
|
| 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 Enc |
|
| 13 | + * @author Lars Tiedemann <[email protected]> |
|
| 14 | + * @author Thorsten Rinne <[email protected]> |
|
| 15 | + * @copyright 2005-2016 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 2005-09-18 |
|
| 19 | + */ |
|
| 20 | 20 | |
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | exit(); |
@@ -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); |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The userdata class provides methods to manage user information. |
|
| 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 User |
|
| 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-18 |
|
| 18 | - */ |
|
| 3 | + * The userdata class provides methods to manage user information. |
|
| 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 User |
|
| 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-18 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | exit(); |
@@ -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(); |
@@ -1,27 +1,27 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Creates a new user object. |
|
| 4 | - * |
|
| 5 | - * A user are recognized by the session-id using getUserBySessionId(), by his |
|
| 6 | - * using getUserById() or by his nickname (login) using getUserByLogin(). New |
|
| 7 | - * are created using createNewUser(). |
|
| 8 | - * |
|
| 9 | - * PHP Version 5.3 |
|
| 10 | - * |
|
| 11 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 12 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 13 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 14 | - * |
|
| 15 | - * @category phpMyFAQ |
|
| 16 | - * @package User |
|
| 17 | - * @author Lars Tiedemann <[email protected]> |
|
| 18 | - * @author Thorsten Rinne <[email protected]> |
|
| 19 | - * @author Sarah Hermann <[email protected]> |
|
| 20 | - * @copyright 2005-2016 phpMyFAQ Team |
|
| 21 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 22 | - * @link http://www.phpmyfaq.de |
|
| 23 | - * @since 2005-09-17 |
|
| 24 | - */ |
|
| 3 | + * Creates a new user object. |
|
| 4 | + * |
|
| 5 | + * A user are recognized by the session-id using getUserBySessionId(), by his |
|
| 6 | + * using getUserById() or by his nickname (login) using getUserByLogin(). New |
|
| 7 | + * are created using createNewUser(). |
|
| 8 | + * |
|
| 9 | + * PHP Version 5.3 |
|
| 10 | + * |
|
| 11 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 12 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 13 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 14 | + * |
|
| 15 | + * @category phpMyFAQ |
|
| 16 | + * @package User |
|
| 17 | + * @author Lars Tiedemann <[email protected]> |
|
| 18 | + * @author Thorsten Rinne <[email protected]> |
|
| 19 | + * @author Sarah Hermann <[email protected]> |
|
| 20 | + * @copyright 2005-2016 phpMyFAQ Team |
|
| 21 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 22 | + * @link http://www.phpmyfaq.de |
|
| 23 | + * @since 2005-09-17 |
|
| 24 | + */ |
|
| 25 | 25 | |
| 26 | 26 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 27 | 27 | exit(); |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * phpMyFAQ main exception 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_Exception |
|
| 13 | - * @author Thorsten Rinne <[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-12-28 |
|
| 18 | - */ |
|
| 3 | + * phpMyFAQ main exception 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_Exception |
|
| 13 | + * @author Thorsten Rinne <[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-12-28 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | exit(); |
@@ -1,23 +1,23 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The PMF_Template class provides methods and functions for the |
|
| 4 | - * template parser |
|
| 5 | - * |
|
| 6 | - * PHP Version 5.3 |
|
| 7 | - * |
|
| 8 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 9 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 10 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 11 | - * |
|
| 12 | - * @category phpMyFAQ |
|
| 13 | - * @package PMF_Template |
|
| 14 | - * @author Thorsten Rinne <[email protected]> |
|
| 15 | - * @author Jan Mergler <[email protected]> |
|
| 16 | - * @copyright 2002-2016 phpMyFAQ Team |
|
| 17 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | - * @link http://www.phpmyfaq.de |
|
| 19 | - * @since 2002-08-22 |
|
| 20 | - */ |
|
| 3 | + * The PMF_Template class provides methods and functions for the |
|
| 4 | + * template parser |
|
| 5 | + * |
|
| 6 | + * PHP Version 5.3 |
|
| 7 | + * |
|
| 8 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 9 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 10 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 11 | + * |
|
| 12 | + * @category phpMyFAQ |
|
| 13 | + * @package PMF_Template |
|
| 14 | + * @author Thorsten Rinne <[email protected]> |
|
| 15 | + * @author Jan Mergler <[email protected]> |
|
| 16 | + * @copyright 2002-2016 phpMyFAQ Team |
|
| 17 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | + * @link http://www.phpmyfaq.de |
|
| 19 | + * @since 2002-08-22 |
|
| 20 | + */ |
|
| 21 | 21 | |
| 22 | 22 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 23 | 23 | exit(); |
@@ -1,21 +1,21 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The main User session 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_Session |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2007-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 2007-03-31 |
|
| 18 | - */ |
|
| 3 | + * The main User session 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_Session |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2007-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 2007-03-31 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | exit(); |
@@ -170,8 +170,8 @@ discard block |
||
| 170 | 170 | $result = $this->config->getDb()->query($query); |
| 171 | 171 | |
| 172 | 172 | if ($result) { |
| 173 | - $res = $this->config->getDb()->fetchObject($result); |
|
| 174 | - $timestamp = $res->time; |
|
| 173 | + $res = $this->config->getDb()->fetchObject($result); |
|
| 174 | + $timestamp = $res->time; |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | return $timestamp; |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Link management - Functions and Classes |
|
| 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_Link |
|
| 13 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 14 | - * @author Thorsten Rinne <[email protected]> |
|
| 15 | - * @copyright 2005-2016 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 2005-11-02 |
|
| 19 | - */ |
|
| 3 | + * Link management - Functions and Classes |
|
| 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_Link |
|
| 13 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 14 | + * @author Thorsten Rinne <[email protected]> |
|
| 15 | + * @copyright 2005-2016 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 2005-11-02 |
|
| 19 | + */ |
|
| 20 | 20 | |
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | exit(); |