@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | - // core font definition file for TCPDF (www.tcpdf.org) |
|
2 | + // core font definition file for TCPDF (www.tcpdf.org) |
|
3 | 3 | $type='core'; |
4 | 4 | $dw=600; |
5 | 5 | $cw=array(0=>600,1=>600,2=>600,3=>600,4=>600,5=>600,6=>600,7=>600,8=>600,9=>600, |
@@ -1,33 +1,33 @@ |
||
1 | 1 | <?php |
2 | 2 | // core font definition file for TCPDF (www.tcpdf.org) |
3 | -$type='core'; |
|
4 | -$dw=556; |
|
5 | -$cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278, |
|
6 | -10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278, |
|
7 | -20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278, |
|
8 | -30=>278,31=>278,32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191, |
|
9 | -40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556, |
|
10 | -50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>278,59=>278, |
|
11 | -60=>584,61=>584,62=>584,63=>556,64=>1015,65=>667,66=>667,67=>722,68=>722,69=>667, |
|
12 | -70=>611,71=>778,72=>722,73=>278,74=>500,75=>667,76=>556,77=>833,78=>722,79=>778, |
|
13 | -80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667, |
|
14 | -90=>611,91=>278,92=>278,93=>278,94=>469,95=>556,96=>333,97=>556,98=>556,99=>500, |
|
15 | -100=>556,101=>556,102=>278,103=>556,104=>556,105=>222,106=>222,107=>500,108=>222, |
|
16 | -109=>833,110=>556,111=>556,112=>556,113=>556,114=>333,115=>500,116=>278,117=>556, |
|
17 | -118=>500,119=>722,120=>500,121=>500,122=>500,123=>334,124=>260,125=>334,126=>584, |
|
18 | -127=>350,128=>556,129=>350,130=>222,131=>556,132=>333,133=>1000,134=>556,135=>556, |
|
19 | -136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350, |
|
20 | -145=>222,146=>222,147=>333,148=>333,149=>350,150=>556,151=>1000,152=>333,153=>1000, |
|
21 | -154=>500,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556, |
|
22 | -163=>556,164=>556,165=>556,166=>260,167=>556,168=>333,169=>737,170=>370,171=>556, |
|
23 | -172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333, |
|
24 | -181=>556,182=>537,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834, |
|
25 | -190=>834,191=>611,192=>667,193=>667,194=>667,195=>667,196=>667,197=>667,198=>1000, |
|
26 | -199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278, |
|
27 | -208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778, |
|
28 | -217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556, |
|
29 | -226=>556,227=>556,228=>556,229=>556,230=>889,231=>500,232=>556,233=>556,234=>556, |
|
30 | -235=>556,236=>278,237=>278,238=>278,239=>278,240=>556,241=>556,242=>556,243=>556, |
|
31 | -244=>556,245=>556,246=>556,247=>584,248=>611,249=>556,250=>556,251=>556,252=>556, |
|
32 | -253=>500,254=>556,255=>500); |
|
3 | +$type = 'core'; |
|
4 | +$dw = 556; |
|
5 | +$cw = array(0=>278, 1=>278, 2=>278, 3=>278, 4=>278, 5=>278, 6=>278, 7=>278, 8=>278, 9=>278, |
|
6 | +10=>278, 11=>278, 12=>278, 13=>278, 14=>278, 15=>278, 16=>278, 17=>278, 18=>278, 19=>278, |
|
7 | +20=>278, 21=>278, 22=>278, 23=>278, 24=>278, 25=>278, 26=>278, 27=>278, 28=>278, 29=>278, |
|
8 | +30=>278, 31=>278, 32=>278, 33=>278, 34=>355, 35=>556, 36=>556, 37=>889, 38=>667, 39=>191, |
|
9 | +40=>333, 41=>333, 42=>389, 43=>584, 44=>278, 45=>333, 46=>278, 47=>278, 48=>556, 49=>556, |
|
10 | +50=>556, 51=>556, 52=>556, 53=>556, 54=>556, 55=>556, 56=>556, 57=>556, 58=>278, 59=>278, |
|
11 | +60=>584, 61=>584, 62=>584, 63=>556, 64=>1015, 65=>667, 66=>667, 67=>722, 68=>722, 69=>667, |
|
12 | +70=>611, 71=>778, 72=>722, 73=>278, 74=>500, 75=>667, 76=>556, 77=>833, 78=>722, 79=>778, |
|
13 | +80=>667, 81=>778, 82=>722, 83=>667, 84=>611, 85=>722, 86=>667, 87=>944, 88=>667, 89=>667, |
|
14 | +90=>611, 91=>278, 92=>278, 93=>278, 94=>469, 95=>556, 96=>333, 97=>556, 98=>556, 99=>500, |
|
15 | +100=>556, 101=>556, 102=>278, 103=>556, 104=>556, 105=>222, 106=>222, 107=>500, 108=>222, |
|
16 | +109=>833, 110=>556, 111=>556, 112=>556, 113=>556, 114=>333, 115=>500, 116=>278, 117=>556, |
|
17 | +118=>500, 119=>722, 120=>500, 121=>500, 122=>500, 123=>334, 124=>260, 125=>334, 126=>584, |
|
18 | +127=>350, 128=>556, 129=>350, 130=>222, 131=>556, 132=>333, 133=>1000, 134=>556, 135=>556, |
|
19 | +136=>333, 137=>1000, 138=>667, 139=>333, 140=>1000, 141=>350, 142=>611, 143=>350, 144=>350, |
|
20 | +145=>222, 146=>222, 147=>333, 148=>333, 149=>350, 150=>556, 151=>1000, 152=>333, 153=>1000, |
|
21 | +154=>500, 155=>333, 156=>944, 157=>350, 158=>500, 159=>667, 160=>278, 161=>333, 162=>556, |
|
22 | +163=>556, 164=>556, 165=>556, 166=>260, 167=>556, 168=>333, 169=>737, 170=>370, 171=>556, |
|
23 | +172=>584, 173=>333, 174=>737, 175=>333, 176=>400, 177=>584, 178=>333, 179=>333, 180=>333, |
|
24 | +181=>556, 182=>537, 183=>278, 184=>333, 185=>333, 186=>365, 187=>556, 188=>834, 189=>834, |
|
25 | +190=>834, 191=>611, 192=>667, 193=>667, 194=>667, 195=>667, 196=>667, 197=>667, 198=>1000, |
|
26 | +199=>722, 200=>667, 201=>667, 202=>667, 203=>667, 204=>278, 205=>278, 206=>278, 207=>278, |
|
27 | +208=>722, 209=>722, 210=>778, 211=>778, 212=>778, 213=>778, 214=>778, 215=>584, 216=>778, |
|
28 | +217=>722, 218=>722, 219=>722, 220=>722, 221=>667, 222=>667, 223=>611, 224=>556, 225=>556, |
|
29 | +226=>556, 227=>556, 228=>556, 229=>556, 230=>889, 231=>500, 232=>556, 233=>556, 234=>556, |
|
30 | +235=>556, 236=>278, 237=>278, 238=>278, 239=>278, 240=>556, 241=>556, 242=>556, 243=>556, |
|
31 | +244=>556, 245=>556, 246=>556, 247=>584, 248=>611, 249=>556, 250=>556, 251=>556, 252=>556, |
|
32 | +253=>500, 254=>556, 255=>500); |
|
33 | 33 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | - // core font definition file for TCPDF (www.tcpdf.org) |
|
2 | + // core font definition file for TCPDF (www.tcpdf.org) |
|
3 | 3 | $type='core'; |
4 | 4 | $dw=600; |
5 | 5 | $cw=array(0=>600,1=>600,2=>600,3=>600,4=>600,5=>600,6=>600,7=>600,8=>600,9=>600, |
@@ -1,33 +1,33 @@ |
||
1 | 1 | <?php |
2 | 2 | // core font definition file for TCPDF (www.tcpdf.org) |
3 | -$type='core'; |
|
4 | -$dw=556; |
|
5 | -$cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278, |
|
6 | -10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278, |
|
7 | -20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278, |
|
8 | -30=>278,31=>278,32=>278,33=>333,34=>474,35=>556,36=>556,37=>889,38=>722,39=>238, |
|
9 | -40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556, |
|
10 | -50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>333,59=>333, |
|
11 | -60=>584,61=>584,62=>584,63=>611,64=>975,65=>722,66=>722,67=>722,68=>722,69=>667, |
|
12 | -70=>611,71=>778,72=>722,73=>278,74=>556,75=>722,76=>611,77=>833,78=>722,79=>778, |
|
13 | -80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667, |
|
14 | -90=>611,91=>333,92=>278,93=>333,94=>584,95=>556,96=>333,97=>556,98=>611,99=>556, |
|
15 | -100=>611,101=>556,102=>333,103=>611,104=>611,105=>278,106=>278,107=>556,108=>278, |
|
16 | -109=>889,110=>611,111=>611,112=>611,113=>611,114=>389,115=>556,116=>333,117=>611, |
|
17 | -118=>556,119=>778,120=>556,121=>556,122=>500,123=>389,124=>280,125=>389,126=>584, |
|
18 | -127=>350,128=>556,129=>350,130=>278,131=>556,132=>500,133=>1000,134=>556,135=>556, |
|
19 | -136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350, |
|
20 | -145=>278,146=>278,147=>500,148=>500,149=>350,150=>556,151=>1000,152=>333,153=>1000, |
|
21 | -154=>556,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556, |
|
22 | -163=>556,164=>556,165=>556,166=>280,167=>556,168=>333,169=>737,170=>370,171=>556, |
|
23 | -172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333, |
|
24 | -181=>611,182=>556,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834, |
|
25 | -190=>834,191=>611,192=>722,193=>722,194=>722,195=>722,196=>722,197=>722,198=>1000, |
|
26 | -199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278, |
|
27 | -208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778, |
|
28 | -217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556, |
|
29 | -226=>556,227=>556,228=>556,229=>556,230=>889,231=>556,232=>556,233=>556,234=>556, |
|
30 | -235=>556,236=>278,237=>278,238=>278,239=>278,240=>611,241=>611,242=>611,243=>611, |
|
31 | -244=>611,245=>611,246=>611,247=>584,248=>611,249=>611,250=>611,251=>611,252=>611, |
|
32 | -253=>556,254=>611,255=>556); |
|
3 | +$type = 'core'; |
|
4 | +$dw = 556; |
|
5 | +$cw = array(0=>278, 1=>278, 2=>278, 3=>278, 4=>278, 5=>278, 6=>278, 7=>278, 8=>278, 9=>278, |
|
6 | +10=>278, 11=>278, 12=>278, 13=>278, 14=>278, 15=>278, 16=>278, 17=>278, 18=>278, 19=>278, |
|
7 | +20=>278, 21=>278, 22=>278, 23=>278, 24=>278, 25=>278, 26=>278, 27=>278, 28=>278, 29=>278, |
|
8 | +30=>278, 31=>278, 32=>278, 33=>333, 34=>474, 35=>556, 36=>556, 37=>889, 38=>722, 39=>238, |
|
9 | +40=>333, 41=>333, 42=>389, 43=>584, 44=>278, 45=>333, 46=>278, 47=>278, 48=>556, 49=>556, |
|
10 | +50=>556, 51=>556, 52=>556, 53=>556, 54=>556, 55=>556, 56=>556, 57=>556, 58=>333, 59=>333, |
|
11 | +60=>584, 61=>584, 62=>584, 63=>611, 64=>975, 65=>722, 66=>722, 67=>722, 68=>722, 69=>667, |
|
12 | +70=>611, 71=>778, 72=>722, 73=>278, 74=>556, 75=>722, 76=>611, 77=>833, 78=>722, 79=>778, |
|
13 | +80=>667, 81=>778, 82=>722, 83=>667, 84=>611, 85=>722, 86=>667, 87=>944, 88=>667, 89=>667, |
|
14 | +90=>611, 91=>333, 92=>278, 93=>333, 94=>584, 95=>556, 96=>333, 97=>556, 98=>611, 99=>556, |
|
15 | +100=>611, 101=>556, 102=>333, 103=>611, 104=>611, 105=>278, 106=>278, 107=>556, 108=>278, |
|
16 | +109=>889, 110=>611, 111=>611, 112=>611, 113=>611, 114=>389, 115=>556, 116=>333, 117=>611, |
|
17 | +118=>556, 119=>778, 120=>556, 121=>556, 122=>500, 123=>389, 124=>280, 125=>389, 126=>584, |
|
18 | +127=>350, 128=>556, 129=>350, 130=>278, 131=>556, 132=>500, 133=>1000, 134=>556, 135=>556, |
|
19 | +136=>333, 137=>1000, 138=>667, 139=>333, 140=>1000, 141=>350, 142=>611, 143=>350, 144=>350, |
|
20 | +145=>278, 146=>278, 147=>500, 148=>500, 149=>350, 150=>556, 151=>1000, 152=>333, 153=>1000, |
|
21 | +154=>556, 155=>333, 156=>944, 157=>350, 158=>500, 159=>667, 160=>278, 161=>333, 162=>556, |
|
22 | +163=>556, 164=>556, 165=>556, 166=>280, 167=>556, 168=>333, 169=>737, 170=>370, 171=>556, |
|
23 | +172=>584, 173=>333, 174=>737, 175=>333, 176=>400, 177=>584, 178=>333, 179=>333, 180=>333, |
|
24 | +181=>611, 182=>556, 183=>278, 184=>333, 185=>333, 186=>365, 187=>556, 188=>834, 189=>834, |
|
25 | +190=>834, 191=>611, 192=>722, 193=>722, 194=>722, 195=>722, 196=>722, 197=>722, 198=>1000, |
|
26 | +199=>722, 200=>667, 201=>667, 202=>667, 203=>667, 204=>278, 205=>278, 206=>278, 207=>278, |
|
27 | +208=>722, 209=>722, 210=>778, 211=>778, 212=>778, 213=>778, 214=>778, 215=>584, 216=>778, |
|
28 | +217=>722, 218=>722, 219=>722, 220=>722, 221=>667, 222=>667, 223=>611, 224=>556, 225=>556, |
|
29 | +226=>556, 227=>556, 228=>556, 229=>556, 230=>889, 231=>556, 232=>556, 233=>556, 234=>556, |
|
30 | +235=>556, 236=>278, 237=>278, 238=>278, 239=>278, 240=>611, 241=>611, 242=>611, 243=>611, |
|
31 | +244=>611, 245=>611, 246=>611, 247=>584, 248=>611, 249=>611, 250=>611, 251=>611, 252=>611, |
|
32 | +253=>556, 254=>611, 255=>556); |
|
33 | 33 | ?> |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * Array of WEB safe colors |
44 | 44 | */ |
45 | -$webcolor = array ( |
|
45 | +$webcolor = array( |
|
46 | 46 | 'aliceblue' => 'f0f8ff', |
47 | 47 | 'antiquewhite' => 'faebd7', |
48 | 48 | 'aqua' => '00ffff', |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param string $login Loginname |
109 | 109 | * @param string $pass Password |
110 | 110 | * @return boolean |
111 | - */ |
|
111 | + */ |
|
112 | 112 | public function changePassword($login, $pass) |
113 | 113 | { |
114 | 114 | $change = sprintf(" |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param string $login Loginname |
109 | 109 | * @param string $pass Password |
110 | 110 | * @return boolean |
111 | - */ |
|
111 | + */ |
|
112 | 112 | public function changePassword($login, $pass) |
113 | 113 | { |
114 | 114 | $change = sprintf(" |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param string $login Loginname |
109 | 109 | * @param string $pass Password |
110 | 110 | * @return boolean |
111 | - */ |
|
111 | + */ |
|
112 | 112 | public function changePassword($login, $pass) |
113 | 113 | { |
114 | 114 | $change = sprintf(" |
@@ -215,7 +215,7 @@ |
||
215 | 215 | $bindLogin = $login; |
216 | 216 | if ($this->_ldapConfig['ldap_use_domain_prefix']) { |
217 | 217 | if (array_key_exists('domain', $optionalData)) { |
218 | - $bindLogin = $optionalData['domain'] . '\\' . $login; |
|
218 | + $bindLogin = $optionalData['domain'].'\\'.$login; |
|
219 | 219 | } |
220 | 220 | } else { |
221 | 221 | $this->ldap->connect( |
@@ -70,14 +70,14 @@ |
||
70 | 70 | public static function isUTF8($str) |
71 | 71 | { |
72 | 72 | $regex = '/^([\x00-\x7f]|' |
73 | - . '[\xc2-\xdf][\x80-\xbf]|' |
|
74 | - . '\xe0[\xa0-\xbf][\x80-\xbf]|' |
|
75 | - . '[\xe1-\xec][\x80-\xbf]{2}|' |
|
76 | - . '\xed[\x80-\x9f][\x80-\xbf]|' |
|
77 | - . '[\xee-\xef][\x80-\xbf]{2}|' |
|
78 | - . 'f0[\x90-\xbf][\x80-\xbf]{2}|' |
|
79 | - . '[\xf1-\xf3][\x80-\xbf]{3}|' |
|
80 | - . '\xf4[\x80-\x8f][\x80-\xbf]{2})*$/'; |
|
73 | + . '[\xc2-\xdf][\x80-\xbf]|' |
|
74 | + . '\xe0[\xa0-\xbf][\x80-\xbf]|' |
|
75 | + . '[\xe1-\xec][\x80-\xbf]{2}|' |
|
76 | + . '\xed[\x80-\x9f][\x80-\xbf]|' |
|
77 | + . '[\xee-\xef][\x80-\xbf]{2}|' |
|
78 | + . 'f0[\x90-\xbf][\x80-\xbf]{2}|' |
|
79 | + . '[\xf1-\xf3][\x80-\xbf]{3}|' |
|
80 | + . '\xf4[\x80-\x8f][\x80-\xbf]{2})*$/'; |
|
81 | 81 | |
82 | 82 | return preg_match($regex, $str) === 1; |
83 | 83 | } |
@@ -133,18 +133,18 @@ |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | $search->setTable($fdTable) |
136 | - ->setResultColumns(array( |
|
136 | + ->setResultColumns(array( |
|
137 | 137 | $fdTable . '.id AS id', |
138 | 138 | $fdTable . '.lang AS lang', |
139 | 139 | $fdTable . '.solution_id AS solution_id', |
140 | 140 | $fcrTable . '.category_id AS category_id', |
141 | 141 | $fdTable . '.thema AS question', |
142 | 142 | $fdTable . '.content AS answer')) |
143 | - ->setJoinedTable($fcrTable) |
|
144 | - ->setJoinedColumns(array( |
|
143 | + ->setJoinedTable($fcrTable) |
|
144 | + ->setJoinedColumns(array( |
|
145 | 145 | $fdTable . '.id = ' . $fcrTable . '.record_id', |
146 | 146 | $fdTable . '.lang = ' . $fcrTable . '.record_lang')) |
147 | - ->setConditions($condition); |
|
147 | + ->setConditions($condition); |
|
148 | 148 | |
149 | 149 | if (is_numeric($searchTerm)) { |
150 | 150 | $search->setMatchingColumns(array($fdTable . '.solution_id')); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | public function __construct(PMF_Configuration $config) |
75 | 75 | { |
76 | 76 | $this->_config = $config; |
77 | - $this->_table = PMF_Db::getTablePrefix() . 'faqsearches'; |
|
77 | + $this->_table = PMF_Db::getTablePrefix().'faqsearches'; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -108,48 +108,48 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function search($searchTerm, $allLanguages = true) |
110 | 110 | { |
111 | - $fdTable = PMF_Db::getTablePrefix() . 'faqdata'; |
|
112 | - $fcrTable = PMF_Db::getTablePrefix() . 'faqcategoryrelations'; |
|
113 | - $condition = array($fdTable . '.active' => "'yes'"); |
|
111 | + $fdTable = PMF_Db::getTablePrefix().'faqdata'; |
|
112 | + $fcrTable = PMF_Db::getTablePrefix().'faqcategoryrelations'; |
|
113 | + $condition = array($fdTable.'.active' => "'yes'"); |
|
114 | 114 | $search = PMF_Search_Factory::create($this->_config, array('database' => PMF_Db::getType())); |
115 | 115 | |
116 | 116 | if (!is_null($this->getCategoryId()) && 0 < $this->getCategoryId()) { |
117 | 117 | if ($this->getCategory() instanceof PMF_Category) { |
118 | 118 | $children = $this->getCategory()->getChildNodes($this->getCategoryId()); |
119 | 119 | $selectedCategory = array( |
120 | - $fcrTable . '.category_id' => array_merge((array)$this->getCategoryId(), $children) |
|
120 | + $fcrTable.'.category_id' => array_merge((array)$this->getCategoryId(), $children) |
|
121 | 121 | ); |
122 | 122 | } else { |
123 | 123 | $selectedCategory = array( |
124 | - $fcrTable . '.category_id' => $this->getCategoryId() |
|
124 | + $fcrTable.'.category_id' => $this->getCategoryId() |
|
125 | 125 | ); |
126 | 126 | } |
127 | 127 | $condition = array_merge($selectedCategory, $condition); |
128 | 128 | } |
129 | 129 | |
130 | 130 | if ((!$allLanguages) && (!is_numeric($searchTerm))) { |
131 | - $selectedLanguage = array($fdTable . '.lang' => "'" . $this->_config->getLanguage()->getLanguage() . "'"); |
|
131 | + $selectedLanguage = array($fdTable.'.lang' => "'".$this->_config->getLanguage()->getLanguage()."'"); |
|
132 | 132 | $condition = array_merge($selectedLanguage, $condition); |
133 | 133 | } |
134 | 134 | |
135 | 135 | $search->setTable($fdTable) |
136 | 136 | ->setResultColumns(array( |
137 | - $fdTable . '.id AS id', |
|
138 | - $fdTable . '.lang AS lang', |
|
139 | - $fdTable . '.solution_id AS solution_id', |
|
140 | - $fcrTable . '.category_id AS category_id', |
|
141 | - $fdTable . '.thema AS question', |
|
142 | - $fdTable . '.content AS answer')) |
|
137 | + $fdTable.'.id AS id', |
|
138 | + $fdTable.'.lang AS lang', |
|
139 | + $fdTable.'.solution_id AS solution_id', |
|
140 | + $fcrTable.'.category_id AS category_id', |
|
141 | + $fdTable.'.thema AS question', |
|
142 | + $fdTable.'.content AS answer')) |
|
143 | 143 | ->setJoinedTable($fcrTable) |
144 | 144 | ->setJoinedColumns(array( |
145 | - $fdTable . '.id = ' . $fcrTable . '.record_id', |
|
146 | - $fdTable . '.lang = ' . $fcrTable . '.record_lang')) |
|
145 | + $fdTable.'.id = '.$fcrTable.'.record_id', |
|
146 | + $fdTable.'.lang = '.$fcrTable.'.record_lang')) |
|
147 | 147 | ->setConditions($condition); |
148 | 148 | |
149 | 149 | if (is_numeric($searchTerm)) { |
150 | - $search->setMatchingColumns(array($fdTable . '.solution_id')); |
|
150 | + $search->setMatchingColumns(array($fdTable.'.solution_id')); |
|
151 | 151 | } else { |
152 | - $search->setMatchingColumns(array($fdTable . '.thema', $fdTable . '.content', $fdTable . '.keywords')); |
|
152 | + $search->setMatchingColumns(array($fdTable.'.thema', $fdTable.'.content', $fdTable.'.keywords')); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | $result = $search->search($searchTerm); |
@@ -77,16 +77,16 @@ discard block |
||
77 | 77 | self::$dbType = $type; |
78 | 78 | |
79 | 79 | if (0 === strpos($type, 'pdo_')) { |
80 | - $class = 'PMF_DB_Pdo_' . ucfirst(substr($type, 4)); |
|
80 | + $class = 'PMF_DB_Pdo_'.ucfirst(substr($type, 4)); |
|
81 | 81 | } else { |
82 | - $class = 'PMF_DB_' . ucfirst($type); |
|
82 | + $class = 'PMF_DB_'.ucfirst($type); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | if (class_exists($class)) { |
86 | 86 | self::$instance = new $class; |
87 | 87 | return self::$instance; |
88 | 88 | } else { |
89 | - throw new PMF_Exception('Invalid Database Type: ' . $type); |
|
89 | + throw new PMF_Exception('Invalid Database Type: '.$type); |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public static function checkOnEmptyTable($tableName) |
134 | 134 | { |
135 | - if (self::$instance->numRows(self::$instance->query('SELECT * FROM ' . PMF_Db::getTablePrefix() . $tableName)) < 1) { |
|
135 | + if (self::$instance->numRows(self::$instance->query('SELECT * FROM '.PMF_Db::getTablePrefix().$tableName)) < 1) { |
|
136 | 136 | return true; |
137 | 137 | } else { |
138 | 138 | return false; |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | <body> |
161 | 161 | <div class="container"> |
162 | 162 | <p class="alert alert-danger">The connection to the database server could not be established.</p> |
163 | - <p class="alert alert-danger">The error message of the database server:<br />' . $method . '</p> |
|
163 | + <p class="alert alert-danger">The error message of the database server:<br />' . $method.'</p> |
|
164 | 164 | </div> |
165 | 165 | </body> |
166 | 166 | </html>'; |