@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | PRIMARY KEY (id))"; |
64 | 64 | |
65 | 65 | //faqattachment |
66 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment ( |
|
66 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment ( |
|
67 | 67 | id INTEGER NOT NULL, |
68 | 68 | record_id INTEGER NOT NULL, |
69 | 69 | record_lang VARCHAR(5) NOT NULL, |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | PRIMARY KEY (id))"; |
78 | 78 | |
79 | 79 | //faqattachment file |
80 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file ( |
|
80 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file ( |
|
81 | 81 | virtual_hash CHAR(32) NOT NULL, |
82 | 82 | contents BLOB NOT NULL, |
83 | 83 | PRIMARY KEY (virtual_hash))"; |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | )"; |
240 | 240 | |
241 | 241 | //faqinstances |
242 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances ( |
|
242 | +$query[] = "CREATE TABLE ".$sqltblpre."faqinstances ( |
|
243 | 243 | id INT(11) NOT NULL, |
244 | 244 | url VARCHAR(255) NOT NULL, |
245 | 245 | instance VARCHAR(255) NOT NULL, |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * CREATE TABLE instructions for SQLite |
|
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 Setup |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Johannes Schlüter <[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-08-18 |
|
19 | - */ |
|
3 | + * CREATE TABLE instructions for SQLite |
|
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 Setup |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Johannes Schlüter <[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-08-18 |
|
19 | + */ |
|
20 | 20 | |
21 | 21 | $uninst[] = "DROP TABLE ".$sqltblpre."faqadminlog"; |
22 | 22 | $uninst[] = "DROP TABLE ".$sqltblpre."faqattachment"; |
@@ -20,10 +20,10 @@ |
||
20 | 20 | |
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
23 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
24 | 24 | $protocol = 'https'; |
25 | 25 | } |
26 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
26 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
27 | 27 | exit(); |
28 | 28 | } |
29 | 29 |
@@ -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'], |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | } else { |
61 | 61 | $enableRelevance = $this->_config->get('search.enableRelevance'); |
62 | 62 | |
63 | - $columns = $this->getResultColumns(); |
|
63 | + $columns = $this->getResultColumns(); |
|
64 | 64 | $columns .= ($enableRelevance) ? $this->getMatchingColumnsAsResult($searchTerm) : ''; |
65 | - $orderBy = ($enableRelevance) ? 'ORDER BY ' . $this->getMatchingOrder() . ' DESC' : ''; |
|
65 | + $orderBy = ($enableRelevance) ? 'ORDER BY '.$this->getMatchingOrder().' DESC' : ''; |
|
66 | 66 | $chars = array( |
67 | 67 | "\xe2\x80\x98", |
68 | 68 | "\xe2\x80\x99", |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $this->_config->getDb()->escape($searchterm), |
141 | 141 | substr(strstr($matchColumn, '.'), 1)); |
142 | 142 | |
143 | - $resultColumns .= ', ' . $column; |
|
143 | + $resultColumns .= ', '.$column; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | return $resultColumns; |
@@ -160,11 +160,11 @@ discard block |
||
160 | 160 | $order = ''; |
161 | 161 | |
162 | 162 | foreach ($list as $field) { |
163 | - $string = '(rel_' . $field . '*' . $count .')'; |
|
163 | + $string = '(rel_'.$field.'*'.$count.')'; |
|
164 | 164 | if (empty($order)) { |
165 | 165 | $order .= $string; |
166 | 166 | } else { |
167 | - $order .= '+' . $string; |
|
167 | + $order .= '+'.$string; |
|
168 | 168 | } |
169 | 169 | $count--; |
170 | 170 | } |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * phpMyFAQ MySQL (ext/mysql) 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 PMF_Search_Database |
|
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-06-06 |
|
18 | - */ |
|
3 | + * phpMyFAQ MySQL (ext/mysql) 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 PMF_Search_Database |
|
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-06-06 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -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,22 +1,22 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Manages user authentication with Apache's SSO authentication, e.g. mod_sspi |
|
4 | - * or mod_auth_kerb |
|
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 Auth |
|
14 | - * @author Thorsten Rinne <[email protected]> |
|
15 | - * @copyright 2011-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 2011-06-22 |
|
19 | - */ |
|
3 | + * Manages user authentication with Apache's SSO authentication, e.g. mod_sspi |
|
4 | + * or mod_auth_kerb |
|
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 Auth |
|
14 | + * @author Thorsten Rinne <[email protected]> |
|
15 | + * @copyright 2011-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 2011-06-22 |
|
19 | + */ |
|
20 | 20 | |
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | exit(); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * @param string $pass Password |
79 | 79 | * |
80 | 80 | * @return boolean |
81 | - */ |
|
81 | + */ |
|
82 | 82 | public function changePassword($login, $pass) |
83 | 83 | { |
84 | 84 | return true; |
@@ -1,22 +1,22 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Interface for managing user authentication |
|
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 Auth |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Alberto Cabello <[email protected]> |
|
15 | - * @copyright 2009-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 2009-03-01 |
|
19 | - */ |
|
3 | + * Interface for managing user authentication |
|
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 Auth |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Alberto Cabello <[email protected]> |
|
15 | + * @copyright 2009-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 2009-03-01 |
|
19 | + */ |
|
20 | 20 | |
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | exit(); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * @param string $login Loginname |
58 | 58 | * @param string $pass Password |
59 | 59 | * @return boolean |
60 | - */ |
|
60 | + */ |
|
61 | 61 | public function changePassword($login, $pass); |
62 | 62 | |
63 | 63 | /** |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Helper class for phpMyFAQ setup |
|
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 Helper |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @copyright 2012-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 2012-02-15 |
|
18 | - */ |
|
3 | + * Helper class for phpMyFAQ setup |
|
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 Helper |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @copyright 2012-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 2012-02-15 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * PMF_Helper_Setup |