@@ -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 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | 21 | // Datamapping - in this example for an ADS |
| 22 | -$PMF_LDAP['ldap_mapping'] = array ( |
|
| 22 | +$PMF_LDAP['ldap_mapping'] = array( |
|
| 23 | 23 | 'name' => 'cn', |
| 24 | 24 | 'username' => 'samAccountName', |
| 25 | 25 | 'mail' => 'mail' |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | // LDAP-options to set |
| 34 | 34 | // refer to the documentation of ldap_set_option() for information on available options |
| 35 | -$PMF_LDAP["ldap_options"] = array ( |
|
| 35 | +$PMF_LDAP["ldap_options"] = array( |
|
| 36 | 36 | 'LDAP_OPT_PROTOCOL_VERSION' => 3, |
| 37 | 37 | 'LDAP_OPT_REFERRALS' => 0 |
| 38 | 38 | ); |
@@ -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 | // @todo handle the exception |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | -$tpl->parse ( |
|
| 35 | +$tpl->parse( |
|
| 36 | 36 | 'writeContent', |
| 37 | 37 | array( |
| 38 | 38 | 'msgOpenQuestions' => $PMF_LANG['msgOpenQuestions'], |
@@ -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 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * @param string $pass Password |
| 63 | 63 | * |
| 64 | 64 | * @return boolean |
| 65 | - */ |
|
| 65 | + */ |
|
| 66 | 66 | public function changePassword($login, $pass) |
| 67 | 67 | { |
| 68 | 68 | return true; |
@@ -57,7 +57,7 @@ |
||
| 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 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | public function __construct(PMF_Configuration $config) |
| 64 | 64 | { |
| 65 | 65 | $this->_config = $config; |
| 66 | - $this->table_name = PMF_Db::getTablePrefix() . "faqstopwords"; |
|
| 66 | + $this->table_name = PMF_Db::getTablePrefix()."faqstopwords"; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | $retval = []; |
| 207 | 207 | |
| 208 | 208 | if ($wordsOnly) { |
| 209 | - while(($row = $this->_config->getDb()->fetchObject($result)) == true) { |
|
| 209 | + while (($row = $this->_config->getDb()->fetchObject($result)) == true) { |
|
| 210 | 210 | $retval[] = $row->stopword; |
| 211 | 211 | } |
| 212 | 212 | } else { |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | private function getBannedWords() |
| 287 | 287 | { |
| 288 | 288 | $bannedTrimmedWords = []; |
| 289 | - $bannedWordsFile = PMF_INCLUDE_DIR . '/blockedwords.txt'; |
|
| 289 | + $bannedWordsFile = PMF_INCLUDE_DIR.'/blockedwords.txt'; |
|
| 290 | 290 | $bannedWords = []; |
| 291 | 291 | |
| 292 | 292 | // Read the dictionary |
@@ -59,18 +59,18 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function getImage($email, $params = []) |
| 61 | 61 | { |
| 62 | - $imageUrl = $this->getUrl() . 'avatar/' . $this->getHash($email); |
|
| 62 | + $imageUrl = $this->getUrl().'avatar/'.$this->getHash($email); |
|
| 63 | 63 | |
| 64 | 64 | $opts = []; |
| 65 | 65 | |
| 66 | 66 | if (isset($params['default'])) { |
| 67 | - $opts[] = 'default='. $params['default']; |
|
| 67 | + $opts[] = 'default='.$params['default']; |
|
| 68 | 68 | } |
| 69 | 69 | if (isset($params['size'])) { |
| 70 | - $opts[] = 'size='. $params['size']; |
|
| 70 | + $opts[] = 'size='.$params['size']; |
|
| 71 | 71 | } |
| 72 | 72 | if (isset($params['rating'])) { |
| 73 | - $opts[] = 'rating='. $params['rating']; |
|
| 73 | + $opts[] = 'rating='.$params['rating']; |
|
| 74 | 74 | } |
| 75 | 75 | if (isset($params['force_default']) && $params['force_default'] === true) { |
| 76 | 76 | $opts[] = 'forcedefault=y'; |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $params['class'] = ''; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - $gravatar = $imageUrl . (sizeof($opts) > 0 ? '?' . implode($opts, '&') : false); |
|
| 82 | + $gravatar = $imageUrl.(sizeof($opts) > 0 ? '?'.implode($opts, '&') : false); |
|
| 83 | 83 | |
| 84 | 84 | return sprintf( |
| 85 | 85 | '<img src="%s" class="%s" alt="Gravatar">', |
@@ -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 | } |