@@ -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(); |
@@ -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-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 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-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(); |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Service class for Gravatar support |
|
| 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 Services |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2013-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 2013-01-14 |
|
| 18 | - */ |
|
| 3 | + * Service class for Gravatar support |
|
| 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 Services |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2013-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 2013-01-14 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | exit(); |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Service class for Twitter support |
|
| 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 Services |
|
| 13 | - * @author Thorsten Rinne <[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-09-05 |
|
| 18 | - */ |
|
| 3 | + * Service class for Twitter support |
|
| 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 Services |
|
| 13 | + * @author Thorsten Rinne <[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-09-05 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | exit(); |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Service class for Facebook support |
|
| 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 Services |
|
| 13 | - * @author Thorsten Rinne <[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-09-05 |
|
| 18 | - */ |
|
| 3 | + * Service class for Facebook support |
|
| 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 Services |
|
| 13 | + * @author Thorsten Rinne <[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-09-05 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | exit(); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
| 32 | 32 | * @link http://www.phpmyfaq.de |
| 33 | 33 | * @since 2009-09-11 |
| 34 | - */ |
|
| 34 | + */ |
|
| 35 | 35 | interface PMF_Mail_IMUA |
| 36 | 36 | { |
| 37 | 37 | /** |
@@ -1,21 +1,21 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * MUA (Mail User Agent) implementation using the PHP built-in mail() function. |
|
| 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 Mail |
|
| 13 | - * @author Matteo Scaramuccia <[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-09-11 |
|
| 18 | - */ |
|
| 3 | + * MUA (Mail User Agent) implementation using the PHP built-in mail() function. |
|
| 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 Mail |
|
| 13 | + * @author Matteo Scaramuccia <[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-09-11 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | exit(); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
| 32 | 32 | * @link http://www.phpmyfaq.de |
| 33 | 33 | * @since 2009-09-11 |
| 34 | - */ |
|
| 34 | + */ |
|
| 35 | 35 | class PMF_Mail_Builtin implements PMF_Mail_IMUA |
| 36 | 36 | { |
| 37 | 37 | /** |
@@ -1,24 +1,24 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The main category 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 Category |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Lars Tiedemann <[email protected]> |
|
| 15 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 16 | - * @author Rudi Ferrari <[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-02-16 |
|
| 21 | - */ |
|
| 3 | + * The main category 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 Category |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Lars Tiedemann <[email protected]> |
|
| 15 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 16 | + * @author Rudi Ferrari <[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-02-16 |
|
| 21 | + */ |
|
| 22 | 22 | |
| 23 | 23 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 24 | 24 | exit(); |
@@ -574,10 +574,10 @@ discard block |
||
| 574 | 574 | } |
| 575 | 575 | |
| 576 | 576 | /** |
| 577 | - * print the static tree with the number of records |
|
| 578 | - * |
|
| 579 | - * @return string |
|
| 580 | - */ |
|
| 577 | + * print the static tree with the number of records |
|
| 578 | + * |
|
| 579 | + * @return string |
|
| 580 | + */ |
|
| 581 | 581 | public function viewTree() |
| 582 | 582 | { |
| 583 | 583 | global $sids, $PMF_LANG, $plr; |
@@ -1225,7 +1225,7 @@ discard block |
||
| 1225 | 1225 | PMF_Db::getTablePrefix(), |
| 1226 | 1226 | $category_id); |
| 1227 | 1227 | if (!$delete_all) { |
| 1228 | - $query .= " AND lang = '".$category_lang."'"; |
|
| 1228 | + $query .= " AND lang = '".$category_lang."'"; |
|
| 1229 | 1229 | } |
| 1230 | 1230 | $this->_config->getDb()->query($query); |
| 1231 | 1231 | |
@@ -1249,7 +1249,7 @@ discard block |
||
| 1249 | 1249 | PMF_Db::getTablePrefix(), |
| 1250 | 1250 | $category_id); |
| 1251 | 1251 | if (!$delete_all) { |
| 1252 | - $query .= " AND category_lang = '".$category_lang."'"; |
|
| 1252 | + $query .= " AND category_lang = '".$category_lang."'"; |
|
| 1253 | 1253 | } |
| 1254 | 1254 | $this->_config->getDb()->query($query); |
| 1255 | 1255 | |
@@ -1273,7 +1273,7 @@ discard block |
||
| 1273 | 1273 | $translated = array(); |
| 1274 | 1274 | |
| 1275 | 1275 | foreach ($existcatlang as $language) { |
| 1276 | - $query = sprintf(" |
|
| 1276 | + $query = sprintf(" |
|
| 1277 | 1277 | SELECT |
| 1278 | 1278 | name, description |
| 1279 | 1279 | FROM |
@@ -1282,13 +1282,13 @@ discard block |
||
| 1282 | 1282 | id = %d |
| 1283 | 1283 | AND |
| 1284 | 1284 | lang = '%s'", |
| 1285 | - PMF_Db::getTablePrefix(), |
|
| 1286 | - $category_id, |
|
| 1287 | - $language); |
|
| 1288 | - $result = $this->_config->getDb()->query($query); |
|
| 1289 | - if ($row = $this->_config->getDb()->fetchArray($result)) { |
|
| 1290 | - $translated[$languageCodes[strtoupper($language)]] = $row['name'].('' == $row['description'] ? '' : ' ('.$row['description'].')'); |
|
| 1291 | - } |
|
| 1285 | + PMF_Db::getTablePrefix(), |
|
| 1286 | + $category_id, |
|
| 1287 | + $language); |
|
| 1288 | + $result = $this->_config->getDb()->query($query); |
|
| 1289 | + if ($row = $this->_config->getDb()->fetchArray($result)) { |
|
| 1290 | + $translated[$languageCodes[strtoupper($language)]] = $row['name'].('' == $row['description'] ? '' : ' ('.$row['description'].')'); |
|
| 1291 | + } |
|
| 1292 | 1292 | } |
| 1293 | 1293 | ksort($translated); |
| 1294 | 1294 | |
@@ -1342,9 +1342,9 @@ discard block |
||
| 1342 | 1342 | $result = $this->_config->getDb()->query($query); |
| 1343 | 1343 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 1344 | 1344 | if (!array_key_exists($row['id'],$this->categoryName)) { |
| 1345 | - $this->categoryName[$row['id']] = $row; |
|
| 1346 | - $this->categories[] =& $this->categoryName[$row['id']]; |
|
| 1347 | - $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
|
| 1345 | + $this->categoryName[$row['id']] = $row; |
|
| 1346 | + $this->categories[] =& $this->categoryName[$row['id']]; |
|
| 1347 | + $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
|
| 1348 | 1348 | } |
| 1349 | 1349 | } |
| 1350 | 1350 | } |
@@ -1540,8 +1540,8 @@ discard block |
||
| 1540 | 1540 | fd.lang = fcr.category_lang |
| 1541 | 1541 | ORDER BY |
| 1542 | 1542 | fcr.category_id, fd.id', |
| 1543 | - PMF_Db::getTablePrefix(), |
|
| 1544 | - PMF_Db::getTablePrefix()); |
|
| 1543 | + PMF_Db::getTablePrefix(), |
|
| 1544 | + PMF_Db::getTablePrefix()); |
|
| 1545 | 1545 | $result = $this->_config->getDb()->query($query); |
| 1546 | 1546 | |
| 1547 | 1547 | if ($this->_config->getDb()->numRows($result) > 0) { |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Interface for all PMF_Category_* classes |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.3.0 |
|
| 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 Category |
|
| 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 | + * Interface for all PMF_Category_* classes |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.3.0 |
|
| 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 Category |
|
| 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(); |