@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | // |
29 | 29 | // Check if config/database.php exist -> if not, redirect to installer |
30 | 30 | // |
31 | -if (!file_exists(PMF_ROOT_DIR . '/config/database.php')) { |
|
31 | +if (!file_exists(PMF_ROOT_DIR.'/config/database.php')) { |
|
32 | 32 | RedirectResponse::create(str_replace('admin/index.php', '', $_SERVER['SCRIPT_NAME']).'setup/index.php') |
33 | 33 | ->send(); |
34 | 34 | exit; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | // |
43 | 43 | // Bootstrapping |
44 | 44 | // |
45 | -require PMF_ROOT_DIR . '/inc/Bootstrap.php'; |
|
45 | +require PMF_ROOT_DIR.'/inc/Bootstrap.php'; |
|
46 | 46 | |
47 | 47 | // get language (default: english) |
48 | 48 | $Language = new PMF_Language($faqConfig); |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | |
54 | 54 | if (isset($LANGCODE) && PMF_Language::isASupportedLanguage($LANGCODE)) { |
55 | 55 | // Overwrite English strings with the ones we have in the current language |
56 | - if (! file_exists(PMF_ROOT_DIR . '/lang/language_' . $LANGCODE . '.php')) { |
|
56 | + if (!file_exists(PMF_ROOT_DIR.'/lang/language_'.$LANGCODE.'.php')) { |
|
57 | 57 | $LANGCODE = 'en'; |
58 | 58 | } |
59 | - require PMF_ROOT_DIR . '/lang/language_' . $LANGCODE . '.php'; |
|
59 | + require PMF_ROOT_DIR.'/lang/language_'.$LANGCODE.'.php'; |
|
60 | 60 | } else { |
61 | 61 | $LANGCODE = 'en'; |
62 | 62 | } |
@@ -145,19 +145,19 @@ discard block |
||
145 | 145 | } else { |
146 | 146 | // error |
147 | 147 | $logging = new PMF_Logging($faqConfig); |
148 | - $logging->logAdmin($user, 'Loginerror\nLogin: '.$faqusername.'\nErrors: ' . implode(', ', $user->errors)); |
|
148 | + $logging->logAdmin($user, 'Loginerror\nLogin: '.$faqusername.'\nErrors: '.implode(', ', $user->errors)); |
|
149 | 149 | $error = $PMF_LANG['ad_auth_fail']; |
150 | 150 | } |
151 | 151 | } else { |
152 | 152 | // Try to authenticate with cookie information |
153 | 153 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
154 | 154 | // authenticate with session information |
155 | - if (! $user instanceof PMF_User_CurrentUser) { |
|
155 | + if (!$user instanceof PMF_User_CurrentUser) { |
|
156 | 156 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
157 | 157 | } |
158 | 158 | if ($user instanceof PMF_User_CurrentUser) { |
159 | 159 | $auth = true; |
160 | - } else { |
|
160 | + } else { |
|
161 | 161 | $user = new PMF_User_CurrentUser($faqConfig); |
162 | 162 | } |
163 | 163 | } |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $auth = null; |
169 | 169 | $ssoLogout = $faqConfig->get('security.ssoLogoutRedirect'); |
170 | 170 | if ($faqConfig->get('security.ssoSupport') && !empty ($ssoLogout)) { |
171 | - header ("Location: $ssoLogout"); |
|
171 | + header("Location: $ssoLogout"); |
|
172 | 172 | } |
173 | 173 | } |
174 | 174 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | // are we running a PMF export file request? |
237 | -switch($action) { |
|
237 | +switch ($action) { |
|
238 | 238 | case 'exportfile': |
239 | 239 | require 'export.file.php'; |
240 | 240 | exit(); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | //Initializing Twig |
249 | 249 | $twig = new Twig_Environment( |
250 | - new Twig_Loader_Filesystem(PMF_ROOT_DIR . '/admin/assets/twig') |
|
250 | + new Twig_Loader_Filesystem(PMF_ROOT_DIR.'/admin/assets/twig') |
|
251 | 251 | ); |
252 | 252 | |
253 | 253 | // Header of the admin page including the navigation |
@@ -157,7 +157,7 @@ |
||
157 | 157 | } |
158 | 158 | if ($user instanceof PMF_User_CurrentUser) { |
159 | 159 | $auth = true; |
160 | - } else { |
|
160 | + } else { |
|
161 | 161 | $user = new PMF_User_CurrentUser($faqConfig); |
162 | 162 | } |
163 | 163 | } |
@@ -22,10 +22,10 @@ discard block |
||
22 | 22 | |
23 | 23 | if (!defined('IS_VALID_PHPMYFAQ')) { |
24 | 24 | $protocol = 'http'; |
25 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
25 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
26 | 26 | $protocol = 'https'; |
27 | 27 | } |
28 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
28 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
29 | 29 | exit(); |
30 | 30 | } |
31 | 31 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $PMF_LANG['ad_msg_savedsuc_1'], |
78 | 78 | $user->getLogin(), |
79 | 79 | $PMF_LANG['ad_msg_savedsuc_2']); |
80 | - $message .= '<script type="text/javascript">updateUser(' . $userId . ');</script>'; |
|
80 | + $message .= '<script type="text/javascript">updateUser('.$userId.');</script>'; |
|
81 | 81 | $user = new PMF_User_CurrentUser($faqConfig); |
82 | 82 | } |
83 | 83 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $consonants = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "x", "y", "z"); |
106 | 106 | $vowels = array("a", "e", "i", "o", "u"); |
107 | 107 | $newPassword = ''; |
108 | - srand((double)microtime() * 1000000); |
|
108 | + srand((double)microtime()*1000000); |
|
109 | 109 | for ($i = 1; $i <= 4; $i++) { |
110 | 110 | $newPassword .= $consonants[rand(0, 19)]; |
111 | 111 | $newPassword .= $vowels[rand(0, 4)]; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $userData['display_name'], |
120 | 120 | $user->getLogin(), |
121 | 121 | $newPassword); |
122 | - $result = $mail->send(); |
|
122 | + $result = $mail->send(); |
|
123 | 123 | unset($mail); |
124 | 124 | } |
125 | 125 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $PMF_LANG['ad_msg_savedsuc_1'], |
131 | 131 | $user->getLogin(), |
132 | 132 | $PMF_LANG['ad_msg_savedsuc_2']); |
133 | - $message .= '<script type="text/javascript">updateUser(' . $userId . ');</script>'; |
|
133 | + $message .= '<script type="text/javascript">updateUser('.$userId.');</script>'; |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 | } |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | $userAction = 'add'; |
269 | 269 | $message = '<p class="alert alert-danger">'; |
270 | 270 | foreach ($messages as $err) { |
271 | - $message .= $err . '<br />'; |
|
271 | + $message .= $err.'<br />'; |
|
272 | 272 | } |
273 | 273 | $message .= '</p>'; |
274 | 274 | } |
@@ -328,8 +328,8 @@ discard block |
||
328 | 328 | $numUsers = count($allUsers); |
329 | 329 | $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 0); |
330 | 330 | $perPage = 10; |
331 | - $numPages = ceil($numUsers / $perPage); |
|
332 | - $lastPage = $page * $perPage; |
|
331 | + $numPages = ceil($numUsers/$perPage); |
|
332 | + $lastPage = $page*$perPage; |
|
333 | 333 | $firstPage = $lastPage - $perPage; |
334 | 334 | |
335 | 335 | $baseUrl = sprintf( |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | $templateVars['users'][] = array( |
382 | 382 | 'id' => $user->getUserId(), |
383 | 383 | 'displayName' => $user->getUserData('display_name'), |
384 | - 'editUrl' => '?action=user&user_id=' . $user->getUserData('user_id'), |
|
384 | + 'editUrl' => '?action=user&user_id='.$user->getUserData('user_id'), |
|
385 | 385 | 'email' => $user->getUserData('email'), |
386 | 386 | 'icon' => $icon, |
387 | 387 | 'loginName' => $user->getLogin(), |
@@ -19,10 +19,10 @@ discard block |
||
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 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | <h2 class="page-header"> |
33 | 33 | <i class="fa fa-wrench fa-fw"></i> <?php print $PMF_LANG['ad_menu_instances']; ?> |
34 | 34 | <?php if ($user->perm->checkRight($user->getUserId(), 'addinstances') && |
35 | - is_writable(PMF_ROOT_DIR . DIRECTORY_SEPARATOR . 'multisite')): ?> |
|
35 | + is_writable(PMF_ROOT_DIR.DIRECTORY_SEPARATOR.'multisite')): ?> |
|
36 | 36 | <div class="pull-right"> |
37 | 37 | <a class="btn btn-success" data-toggle="modal" href="#pmf-modal-add-instance"> |
38 | 38 | <i class="fa fa-plus"></i> <?php echo $PMF_LANG["ad_instance_add"] ?> |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $instanceId = PMF_Filter::filterInput(INPUT_POST, 'instance_id', FILTER_VALIDATE_INT); |
53 | 53 | |
54 | 54 | // Check, if /multisite is writeable |
55 | - if (! is_writable(PMF_ROOT_DIR . DIRECTORY_SEPARATOR . 'multisite')) { |
|
55 | + if (!is_writable(PMF_ROOT_DIR.DIRECTORY_SEPARATOR.'multisite')) { |
|
56 | 56 | printf( |
57 | 57 | '<p class="alert alert-danger">%s</p>', |
58 | 58 | $PMF_LANG["ad_instance_error_notwritable"] |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | ?> |
105 | 105 | <tr id="row-instance-<?php print $site->id ?>"> |
106 | 106 | <td><?php print $site->id ?></td> |
107 | - <td><a href="<?php print $site->url . $site->instance ?>"><?php print $site->url ?></a></td> |
|
107 | + <td><a href="<?php print $site->url.$site->instance ?>"><?php print $site->url ?></a></td> |
|
108 | 108 | <td><?php print $site->instance ?></td> |
109 | 109 | <td><?php print $site->comment ?></td> |
110 | 110 | <td> |
@@ -20,10 +20,10 @@ discard block |
||
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 | |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | |
32 | 32 | $templateVars = array( |
33 | 33 | 'PMF_LANG' => $PMF_LANG, |
34 | - 'dashboardArticles' => $faqTableInfo[PMF_Db::getTablePrefix() . "faqdata"], |
|
35 | - 'dashboardComments' => $faqTableInfo[PMF_Db::getTablePrefix() . "faqcomments"], |
|
36 | - 'dashboardNews' => $faqTableInfo[PMF_Db::getTablePrefix() . "faqnews"], |
|
37 | - 'dashboardOpenQuestions' => $faqTableInfo[PMF_Db::getTablePrefix() . "faqquestions"], |
|
38 | - 'dashboardUsers' => $faqTableInfo[PMF_Db::getTablePrefix() . 'faquser'] - 1, |
|
39 | - 'dashboardVisits' => $faqTableInfo[PMF_Db::getTablePrefix() . 'faqsessions'], |
|
34 | + 'dashboardArticles' => $faqTableInfo[PMF_Db::getTablePrefix()."faqdata"], |
|
35 | + 'dashboardComments' => $faqTableInfo[PMF_Db::getTablePrefix()."faqcomments"], |
|
36 | + 'dashboardNews' => $faqTableInfo[PMF_Db::getTablePrefix()."faqnews"], |
|
37 | + 'dashboardOpenQuestions' => $faqTableInfo[PMF_Db::getTablePrefix()."faqquestions"], |
|
38 | + 'dashboardUsers' => $faqTableInfo[PMF_Db::getTablePrefix().'faquser'] - 1, |
|
39 | + 'dashboardVisits' => $faqTableInfo[PMF_Db::getTablePrefix().'faqsessions'], |
|
40 | 40 | 'enableUserTracking' => $faqConfig->get('main.enableUserTracking'), |
41 | 41 | 'inMaintenanceMode' => $faqConfig->get('main.maintenanceMode'), |
42 | 42 | 'onlineVerificationActive' => false, |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $templateVars['onlineVerificationActive'] = true; |
76 | 76 | |
77 | 77 | set_error_handler( |
78 | - function ($severity, $message, $file, $line) |
|
78 | + function($severity, $message, $file, $line) |
|
79 | 79 | { |
80 | 80 | throw new ErrorException($message, $severity, $severity, $file, $line); |
81 | 81 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $versionCheckError = true; |
87 | 87 | try { |
88 | 88 | $remoteHashes = file_get_contents( |
89 | - 'http://www.phpmyfaq.de/api/verify/' . $faqConfig->get('main.currentVersion') |
|
89 | + 'http://www.phpmyfaq.de/api/verify/'.$faqConfig->get('main.currentVersion') |
|
90 | 90 | ); |
91 | 91 | if (!is_array(json_decode($remoteHashes, true))) { |
92 | 92 | $versionCheckError = true; |
@@ -31,15 +31,15 @@ discard block |
||
31 | 31 | // |
32 | 32 | // Bootstrapping |
33 | 33 | // |
34 | -require PMF_ROOT_DIR . '/inc/Bootstrap.php'; |
|
35 | -require PMF_ROOT_DIR . '/lang/language_en.php'; |
|
34 | +require PMF_ROOT_DIR.'/inc/Bootstrap.php'; |
|
35 | +require PMF_ROOT_DIR.'/lang/language_en.php'; |
|
36 | 36 | |
37 | 37 | // |
38 | 38 | // Get language (default: english) |
39 | 39 | // |
40 | 40 | $language = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING); |
41 | 41 | if (!is_null($language) && PMF_Language::isASupportedLanguage($language)) { |
42 | - require PMF_ROOT_DIR . '/lang/language_' . $language . '.php'; |
|
42 | + require PMF_ROOT_DIR.'/lang/language_'.$language.'.php'; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | // |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | PMF_String::init($language); |
49 | 49 | |
50 | 50 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
51 | -$refreshTime = (PMF_SESSION_ID_EXPIRES - PMF_SESSION_ID_REFRESH) * 60; |
|
51 | +$refreshTime = (PMF_SESSION_ID_EXPIRES - PMF_SESSION_ID_REFRESH)*60; |
|
52 | 52 | ?> |
53 | 53 | <!DOCTYPE html> |
54 | 54 | <html lang="<?php print $PMF_LANG['metaLanguage']; ?>" class="no-js"> |
@@ -19,10 +19,10 @@ discard block |
||
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 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | <select onchange="loadStopWordsByLang(this.options[this.selectedIndex].value)" |
47 | 47 | id="stopwords_lang_selector"> |
48 | 48 | <option value="none">---</option> |
49 | - <?php foreach($sortedLanguageCodes as $key => $value) { ?> |
|
49 | + <?php foreach ($sortedLanguageCodes as $key => $value) { ?> |
|
50 | 50 | <option value="<?php echo strtolower($key); ?>"><?php echo $value; ?></option> |
51 | 51 | <?php } ?> |
52 | 52 | </select> |
@@ -19,10 +19,10 @@ discard block |
||
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 | |
@@ -77,17 +77,17 @@ discard block |
||
77 | 77 | <td><?php echo $data['usr']; ?></td> |
78 | 78 | <td> |
79 | 79 | <?php |
80 | - if (round($data['num'] * 20) > 75) { |
|
80 | + if (round($data['num']*20) > 75) { |
|
81 | 81 | $progressBar = 'success'; |
82 | - } elseif (round($data['num'] * 20) < 25) { |
|
82 | + } elseif (round($data['num']*20) < 25) { |
|
83 | 83 | $progressBar = 'danger'; |
84 | 84 | } else { |
85 | 85 | $progressBar = 'info'; |
86 | 86 | } |
87 | 87 | ?> |
88 | - <meter value="<?php echo round($data['num'] * 20); ?>" max="100" min="0" low="25" optimum="75"></meter> |
|
88 | + <meter value="<?php echo round($data['num']*20); ?>" max="100" min="0" low="25" optimum="75"></meter> |
|
89 | 89 | </td> |
90 | - <td><?php echo round($data['num'] * 20); ?>%</td> |
|
90 | + <td><?php echo round($data['num']*20); ?>%</td> |
|
91 | 91 | </tr> |
92 | 92 | <?php |
93 | 93 | $oldcategory = $data['category_id']; |
@@ -21,10 +21,10 @@ discard block |
||
21 | 21 | |
22 | 22 | if (!defined('IS_VALID_PHPMYFAQ')) { |
23 | 23 | $protocol = 'http'; |
24 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
24 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
25 | 25 | $protocol = 'https'; |
26 | 26 | } |
27 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
27 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
28 | 28 | exit(); |
29 | 29 | } |
30 | 30 | |
@@ -34,19 +34,19 @@ discard block |
||
34 | 34 | |
35 | 35 | $templateVars = array( |
36 | 36 | 'PMF_LANG' => $PMF_LANG, |
37 | - 'appleTouchIcon' => '../assets/template/' . PMF_Template::getTplSetName() . '/apple-touch-icon.png', |
|
38 | - 'baseUrl' => $faqConfig->get('main.referenceURL') . '/admin/', |
|
37 | + 'appleTouchIcon' => '../assets/template/'.PMF_Template::getTplSetName().'/apple-touch-icon.png', |
|
38 | + 'baseUrl' => $faqConfig->get('main.referenceURL').'/admin/', |
|
39 | 39 | 'editorAutosaveActive' => ('editentry' === $action) && $faqConfig->get('records.autosaveActive'), |
40 | 40 | 'editorAutosaveSeconds' => $faqConfig->get('records.autosaveSecs'), |
41 | 41 | 'gravatarActive' => $faqConfig->get('main.enableGravatarSupport'), |
42 | 42 | 'isAuthenticated' => isset($auth) && in_array(true, $permission), |
43 | 43 | 'pmfVersion' => $faqConfig->get('main.currentVersion'), |
44 | 44 | 'secLevelEntries' => '', |
45 | - 'shortcutIcon' => '../assets/template/' . PMF_Template::getTplSetName() . '/favicon.ico', |
|
45 | + 'shortcutIcon' => '../assets/template/'.PMF_Template::getTplSetName().'/favicon.ico', |
|
46 | 46 | 'time' => time(), |
47 | 47 | 'titleFAQ' => $faqConfig->get('main.titleFAQ'), |
48 | - 'userDisplayName' => isset($user) ? $user->getUserData('display_name'): '', |
|
49 | - 'userTooltip' => isset($user) ? $PMF_LANG['ad_user_loggedin'] . $user->getLogin() : '', |
|
48 | + 'userDisplayName' => isset($user) ? $user->getUserData('display_name') : '', |
|
49 | + 'userTooltip' => isset($user) ? $PMF_LANG['ad_user_loggedin'].$user->getLogin() : '', |
|
50 | 50 | 'userEmail' => isset($user) ? $user->getUserData('email') : '' |
51 | 51 | ); |
52 | 52 |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | foreach ($userList as $single_user) { |
72 | 72 | $user->getUserById($single_user); |
73 | 73 | $users[] = array('user_id' => $user->getUserId(), |
74 | - 'login' => $user->getLogin()); |
|
74 | + 'login' => $user->getLogin()); |
|
75 | 75 | } |
76 | 76 | echo $response->setData($users); |
77 | 77 | break; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | foreach ($memberList as $single_member) { |
84 | 84 | $user->getUserById($single_member); |
85 | 85 | $members[] = array('user_id' => $user->getUserId(), |
86 | - 'login' => $user->getLogin()); |
|
86 | + 'login' => $user->getLogin()); |
|
87 | 87 | } |
88 | 88 | echo $response->setData($members); |
89 | 89 | break; |
@@ -19,10 +19,10 @@ |
||
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 |