@@ -19,16 +19,16 @@ |
||
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
23 | 23 | $protocol = 'https'; |
24 | 24 | } |
25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
26 | 26 | exit(); |
27 | 27 | } |
28 | 28 | |
29 | 29 | $faqsession->userTracking('open_questions', 0); |
30 | 30 | |
31 | -$tpl->parse ( |
|
31 | +$tpl->parse( |
|
32 | 32 | 'writeContent', |
33 | 33 | array( |
34 | 34 | 'msgOpenQuestions' => $PMF_LANG['msgOpenQuestions'], |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | // |
25 | 25 | // Bootstrapping |
26 | 26 | // |
27 | -require PMF_ROOT_DIR . '/inc/Bootstrap.php'; |
|
27 | +require PMF_ROOT_DIR.'/inc/Bootstrap.php'; |
|
28 | 28 | |
29 | 29 | // |
30 | 30 | // get language (default: english) |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | } else { |
63 | 63 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
64 | - if (! $user instanceof PMF_User_CurrentUser) { |
|
64 | + if (!$user instanceof PMF_User_CurrentUser) { |
|
65 | 65 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
66 | 66 | } |
67 | 67 | } |
@@ -94,19 +94,19 @@ discard block |
||
94 | 94 | $rss->writeAttribute('version', '2.0'); |
95 | 95 | $rss->writeAttribute('xmlns:atom', 'http://www.w3.org/2005/Atom'); |
96 | 96 | $rss->startElement('channel'); |
97 | -$rss->writeElement('title', $faqConfig->get('main.titleFAQ') . ' - ' . $PMF_LANG['msgNews']); |
|
97 | +$rss->writeElement('title', $faqConfig->get('main.titleFAQ').' - '.$PMF_LANG['msgNews']); |
|
98 | 98 | $rss->writeElement('description', html_entity_decode($faqConfig->get('main.metaDescription'))); |
99 | 99 | $rss->writeElement('link', $faqConfig->get('main.referenceURL')); |
100 | 100 | $rss->startElementNS('atom', 'link', 'http://www.w3.org/2005/Atom'); |
101 | 101 | $rss->writeAttribute('rel', 'self'); |
102 | 102 | $rss->writeAttribute('type', 'application/rss+xml'); |
103 | -$rss->writeAttribute('href', $faqConfig->get('main.referenceURL') . 'feed/news/rss.php'); |
|
103 | +$rss->writeAttribute('href', $faqConfig->get('main.referenceURL').'feed/news/rss.php'); |
|
104 | 104 | $rss->endElement(); |
105 | 105 | |
106 | 106 | if ($num > 0) { |
107 | 107 | foreach ($rssData as $item) { |
108 | 108 | // Get the url |
109 | - $link = '/index.php?action=news&newsid=' . $item['id'] . '&newslang=' . $item['lang']; |
|
109 | + $link = '/index.php?action=news&newsid='.$item['id'].'&newslang='.$item['lang']; |
|
110 | 110 | if (PMF_RSS_USE_SEO) { |
111 | 111 | if (isset($item['header'])) { |
112 | 112 | $oLink = new PMF_Link($link, $faqConfig); |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | $rss->writeCdata($item['content']); |
123 | 123 | $rss->endElement(); |
124 | 124 | |
125 | - $rss->writeElement('link', $faqConfig->get('main.referenceURL') . $link); |
|
126 | - $rss->writeElement('guid', $faqConfig->get('main.referenceURL') . $link); |
|
125 | + $rss->writeElement('link', $faqConfig->get('main.referenceURL').$link); |
|
126 | + $rss->writeElement('guid', $faqConfig->get('main.referenceURL').$link); |
|
127 | 127 | $rss->writeElement('pubDate', PMF_Date::createRFC822Date($item['date'], true)); |
128 | 128 | $rss->endElement(); |
129 | 129 | } |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Implements resultsets for phpMyFAQ search 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 Search |
|
13 | - * @author Thorsten Rinne <[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-06-06 |
|
18 | - */ |
|
3 | + * Implements resultsets for phpMyFAQ search 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 Search |
|
13 | + * @author Thorsten Rinne <[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-06-06 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Provides methods for password encryption using crypt(). |
|
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 | - * @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-18 |
|
18 | - */ |
|
3 | + * Provides methods for password encryption using crypt(). |
|
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 | + * @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-18 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -1,20 +1,20 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * XML Export class for phpMyFAQ |
|
4 | - * |
|
5 | - * PHP 5.2 |
|
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 Export |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @since 2009-10-07 |
|
15 | - * @license Mozilla Public License 1.1 |
|
16 | - * @copyright 2009-2015 phpMyFAQ Team |
|
17 | - */ |
|
3 | + * XML Export class for phpMyFAQ |
|
4 | + * |
|
5 | + * PHP 5.2 |
|
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 Export |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @since 2009-10-07 |
|
15 | + * @license Mozilla Public License 1.1 |
|
16 | + * @copyright 2009-2015 phpMyFAQ Team |
|
17 | + */ |
|
18 | 18 | |
19 | 19 | if (!defined('IS_VALID_PHPMYFAQ')) { |
20 | 20 | exit(); |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | $faqdata = $this->faq->get(FAQ_QUERY_TYPE_EXPORT_XML, $categoryId, $downwards, $language); |
77 | 77 | $version = $this->_config->get('main.currentVersion'); |
78 | 78 | $comment = sprintf('XML output by phpMyFAQ %s | Date: %s', |
79 | - $version, |
|
80 | - PMF_Date::createIsoDate(date("YmdHis"))); |
|
79 | + $version, |
|
80 | + PMF_Date::createIsoDate(date("YmdHis"))); |
|
81 | 81 | |
82 | 82 | $this->xml->startDocument('1.0', 'utf-8', 'yes'); |
83 | 83 | $this->xml->writeComment($comment); |