@@ -1,23 +1,23 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * build table of all categories in all languages. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Rudi Ferrari <[email protected]> |
|
15 | - * @copyright 2006-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2006-09-18 |
|
20 | - */ |
|
3 | + * build table of all categories in all languages. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Rudi Ferrari <[email protected]> |
|
15 | + * @copyright 2006-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2006-09-18 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -99,14 +99,14 @@ discard block |
||
99 | 99 | print '<td>'; |
100 | 100 | if ($cat['lang'] != $LANGCODE) { |
101 | 101 | // translate category |
102 | - printf( |
|
103 | - '<a href="%s?action=translatecategory&cat=%s&trlang=%s" title="%s"><span title="%s" class="fa fa-share"></span></a></a>', |
|
104 | - $currentLink, |
|
105 | - $cat['id'], |
|
106 | - $LANGCODE, |
|
107 | - $PMF_LANG['ad_categ_translate'], |
|
108 | - $PMF_LANG['ad_categ_translate'] |
|
109 | - ); |
|
102 | + printf( |
|
103 | + '<a href="%s?action=translatecategory&cat=%s&trlang=%s" title="%s"><span title="%s" class="fa fa-share"></span></a></a>', |
|
104 | + $currentLink, |
|
105 | + $cat['id'], |
|
106 | + $LANGCODE, |
|
107 | + $PMF_LANG['ad_categ_translate'], |
|
108 | + $PMF_LANG['ad_categ_translate'] |
|
109 | + ); |
|
110 | 110 | } |
111 | 111 | printf(' %s<strong>%s</strong>', |
112 | 112 | $indent, |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'parent_id' => $parent_id, |
52 | 52 | 'name' => PMF_Filter::filterInput(INPUT_POST, 'name', FILTER_SANITIZE_STRING), |
53 | 53 | 'description' => PMF_Filter::filterInput(INPUT_POST, 'description', FILTER_SANITIZE_STRING), |
54 | - 'user_id' => PMF_Filter::filterInput(INPUT_POST, 'user_id', FILTER_VALIDATE_INT), ); |
|
54 | + 'user_id' => PMF_Filter::filterInput(INPUT_POST, 'user_id', FILTER_VALIDATE_INT),); |
|
55 | 55 | |
56 | 56 | // translate.category only returns non-existent languages to translate too |
57 | 57 | if ($category->addCategory($category_data, $parent_id, $category_data['id'])) { |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Translates a category. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Rudi Ferrari <[email protected]> |
|
15 | - * @copyright 2006-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2006-09-10 |
|
20 | - */ |
|
3 | + * Translates a category. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Rudi Ferrari <[email protected]> |
|
15 | + * @copyright 2006-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2006-09-10 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -68,9 +68,11 @@ |
||
68 | 68 | <?php if ($faqConfig->get('security.permLevel') !== 'basic'): ?> |
69 | 69 | <input type="hidden" name="restricted_groups" value="<?php print $group_permission[0]; |
70 | 70 | ?>" /> |
71 | - <?php else: ?> |
|
71 | + <?php else { |
|
72 | + : ?> |
|
72 | 73 | <input type="hidden" name="restricted_groups" value="-1" /> |
73 | 74 | <?php endif; |
75 | +} |
|
74 | 76 | ?> |
75 | 77 | <input type="hidden" name="restricted_users" value="<?php print $user_permission[0]; |
76 | 78 | ?>" /> |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The main configuration frontend. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Matteo Scaramuccia <[email protected]> |
|
15 | - * @copyright 2005-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2005-12-26 |
|
20 | - */ |
|
3 | + * The main configuration frontend. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Matteo Scaramuccia <[email protected]> |
|
15 | + * @copyright 2005-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2005-12-26 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The start page with some information about the FAQ. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Alexander M. Turek <[email protected]> |
|
15 | - * @copyright 2005-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2013-02-05 |
|
20 | - */ |
|
3 | + * The start page with some information about the FAQ. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Alexander M. Turek <[email protected]> |
|
15 | + * @copyright 2005-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2013-02-05 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -190,7 +190,7 @@ |
||
190 | 190 | $getJson = PMF_Filter::filterInput(INPUT_POST, 'getJson', FILTER_SANITIZE_STRING); |
191 | 191 | if (!is_null($getJson) && 'verify' === $getJson) { |
192 | 192 | set_error_handler( |
193 | - function ($severity, $message, $file, $line) { |
|
193 | + function($severity, $message, $file, $line) { |
|
194 | 194 | throw new ErrorException($message, $severity, $severity, $file, $line); |
195 | 195 | } |
196 | 196 | ); |
@@ -38,8 +38,11 @@ |
||
38 | 38 | <a href="?action=config"> |
39 | 39 | <?php if ($faqConfig->get('main.maintenanceMode')): ?> |
40 | 40 | <span class="label label-important"><?php print $PMF_LANG['msgMaintenanceMode']; ?></span> |
41 | - <?php else: ?> |
|
42 | - <span class="label label-success"><?php print $PMF_LANG['msgOnlineMode']; ?></span> |
|
41 | + <?php else { |
|
42 | + : ?> |
|
43 | + <span class="label label-success"><?php print $PMF_LANG['msgOnlineMode']; |
|
44 | +} |
|
45 | +?></span> |
|
43 | 46 | <?php endif; ?> |
44 | 47 | </a> |
45 | 48 | </div> |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * XML, XHTML and PDF export - main page. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Matteo Scaramuccia <[email protected]> |
|
15 | - * @copyright 2003-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2003-04-17 |
|
20 | - */ |
|
3 | + * XML, XHTML and PDF export - main page. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Matteo Scaramuccia <[email protected]> |
|
15 | + * @copyright 2003-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2003-04-17 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Footer of the admin area. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Matteo Scaramuccia <[email protected]> |
|
15 | - * @copyright 2003-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2003-02-26 |
|
20 | - */ |
|
3 | + * Footer of the admin area. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Matteo Scaramuccia <[email protected]> |
|
15 | + * @copyright 2003-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2003-02-26 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | <iframe id="keepPMFSessionAlive" src="session.keepalive.php?lang=<?php echo $LANGCODE; |
61 | 61 | ?>" width="0" height="0"></iframe> |
62 | 62 | <?php |
63 | - if (isset($auth) && (('takequestion' == $action) || ('editentry' == $action) || ('editpreview' == $action) || |
|
63 | + if (isset($auth) && (('takequestion' == $action) || ('editentry' == $action) || ('editpreview' == $action) || |
|
64 | 64 | ('addnews' == $action) || ('editnews' == $action) || ('copyentry' == $action))) { |
65 | 65 | if ($faqConfig->get('main.enableWysiwygEditor') == true) { |
66 | 66 | ?> |
@@ -165,9 +165,11 @@ |
||
165 | 165 | // Submit the form by an ajax request |
166 | 166 | <?php if (isset($faqData['id']) && $faqData['id'] == 0): ?> |
167 | 167 | var data = {action: "ajax", ajax: 'recordAdd'}; |
168 | - <?php else: ?> |
|
168 | + <?php else { |
|
169 | + : ?> |
|
169 | 170 | var data = {action: "ajax", ajax: 'recordSave'}; |
170 | 171 | <?php endif; |
172 | +} |
|
171 | 173 | ?> |
172 | 174 | var id = $('#answer')[0].parentNode.parentNode.id; |
173 | 175 | $.each($('#' + id).serialize[], function(i, field) { |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Displays a form to edit an existing glossary item. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
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 | - * |
|
17 | - * @link http://www.phpmyfaq.de |
|
18 | - * @since 2005-09-15 |
|
19 | - */ |
|
3 | + * Displays a form to edit an existing glossary item. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
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 | + * |
|
17 | + * @link http://www.phpmyfaq.de |
|
18 | + * @since 2005-09-15 |
|
19 | + */ |
|
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The main glossary index file. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
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 | - * |
|
17 | - * @link http://www.phpmyfaq.de |
|
18 | - * @since 2005-09-15 |
|
19 | - */ |
|
3 | + * The main glossary index file. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
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 | + * |
|
17 | + * @link http://www.phpmyfaq.de |
|
18 | + * @since 2005-09-15 |
|
19 | + */ |
|
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Displays the group management frontend. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
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 | - * |
|
13 | - * @author Lars Tiedemann <[email protected]> |
|
14 | - * @author Thorsten Rinne <[email protected]> |
|
15 | - * @copyright 2005-2015 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2005-12-15 |
|
20 | - */ |
|
3 | + * Displays the group management frontend. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
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 | + * |
|
13 | + * @author Lars Tiedemann <[email protected]> |
|
14 | + * @author Thorsten Rinne <[email protected]> |
|
15 | + * @copyright 2005-2015 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2005-12-15 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $message .= sprintf('<p class="alert alert-danger">%s</p>', $PMF_LANG['ad_msg_mysqlerr']); |
68 | 68 | } |
69 | 69 | foreach ($groupMembers as $memberId) { |
70 | - $perm->addToGroup((int) $memberId, $groupId); |
|
70 | + $perm->addToGroup((int)$memberId, $groupId); |
|
71 | 71 | } |
72 | 72 | $message .= sprintf('<p class="alert alert-success">%s <strong>%s</strong> %s</p>', |
73 | 73 | $PMF_LANG['ad_msg_savedsuc_1'], |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $message .= sprintf('<p class="alert alert-danger">%s</p>', $PMF_LANG['ad_msg_mysqlerr']); |
92 | 92 | } |
93 | 93 | foreach ($groupRights as $rightId) { |
94 | - $perm->grantGroupRight($groupId, (int) $rightId); |
|
94 | + $perm->grantGroupRight($groupId, (int)$rightId); |
|
95 | 95 | } |
96 | 96 | $message .= sprintf('<p class="alert alert-success">%s <strong>%s</strong> %s</p>', |
97 | 97 | $PMF_LANG['ad_msg_savedsuc_1'], |