@@ -52,18 +52,18 @@ discard block |
||
52 | 52 | $out .= '<table class="table table-striped table-hover table-condensed"><tr>'; |
53 | 53 | |
54 | 54 | if ($this->numberedList == true) { |
55 | - $out .= "<th>" . $this->numberedListTitle . "</th>"; |
|
55 | + $out .= "<th>".$this->numberedListTitle."</th>"; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | if ($this->overrideTableTitles != false) { |
59 | 59 | foreach ($this->overrideTableTitles as $value) { |
60 | - $out .= "<th>" . $value . "</th>"; |
|
60 | + $out .= "<th>".$value."</th>"; |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 | else { |
64 | 64 | if (count($results) > 0) { |
65 | 65 | foreach ($results[0] as $k => $v) { |
66 | - $out .= "<th>" . $k . "</th>"; |
|
66 | + $out .= "<th>".$k."</th>"; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | } |
@@ -80,13 +80,13 @@ discard block |
||
80 | 80 | $out .= '<tr>'; |
81 | 81 | |
82 | 82 | if ($this->numberedList == true) { |
83 | - $out .= "<th>" . $currentreq . "</th>"; |
|
83 | + $out .= "<th>".$currentreq."</th>"; |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | |
87 | 87 | foreach ($row as $cell) { |
88 | 88 | |
89 | - $out .= "<td>" . $cell . "</td>"; |
|
89 | + $out .= "<td>".$cell."</td>"; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | global $CORSallowed; |
17 | 17 | |
18 | 18 | if (in_array($httpOrigin, $CORSallowed)) { |
19 | - header("Access-Control-Allow-Origin: " . $httpOrigin); |
|
19 | + header("Access-Control-Allow-Origin: ".$httpOrigin); |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | } |
@@ -95,7 +95,7 @@ |
||
95 | 95 | |
96 | 96 | $statement = $this->database->prepare($query); |
97 | 97 | $statement->bindValue(":username", $this->user->getUsername()); |
98 | - $statement->bindValue(":date", date('Y-m-d') . "%"); |
|
98 | + $statement->bindValue(":date", date('Y-m-d')."%"); |
|
99 | 99 | $statement->execute(); |
100 | 100 | $today = $statement->fetchColumn(); |
101 | 101 | $statement->closeCursor(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | $substr = mb_substr($string, 0, 1); |
13 | 13 | $substr2 = mb_substr($string, 1, $strlen - 1); |
14 | 14 | $upstring = mb_strtoupper($substr); |
15 | - $ustring = $upstring . $substr2; |
|
15 | + $ustring = $upstring.$substr2; |
|
16 | 16 | return $ustring; |
17 | 17 | } |
18 | 18 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | catch (PDOException $ex) { |
53 | 53 | // wrap around any potential stack traces which may include passwords |
54 | - throw new Exception("Error connecting to database '$connectionName': " . $ex->getMessage()); |
|
54 | + throw new Exception("Error connecting to database '$connectionName': ".$ex->getMessage()); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | $databaseObject->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | ); |
186 | 186 | } |
187 | 187 | catch (Exception $ex) { |
188 | - trigger_error("Error logging query. Disabling for this request. " . $ex->getMessage(), E_USER_NOTICE); |
|
188 | + trigger_error("Error logging query. Disabling for this request. ".$ex->getMessage(), E_USER_NOTICE); |
|
189 | 189 | $enableQueryLog = false; |
190 | 190 | } |
191 | 191 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | { |
19 | 19 | global $smarty, $filepath; |
20 | 20 | |
21 | - $files = scandir($filepath . "/includes/statistics/"); |
|
21 | + $files = scandir($filepath."/includes/statistics/"); |
|
22 | 22 | |
23 | 23 | $statsPageDefinitions = preg_grep("/php$/", $files); |
24 | 24 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | foreach ($statsPageDefinitions as $i) { |
28 | 28 | // TODO: is this require still needed? AutoLoader ftw. |
29 | - require_once($filepath . "/includes/statistics/" . $i); |
|
29 | + require_once($filepath."/includes/statistics/".$i); |
|
30 | 30 | $expld = explode('.', $i); |
31 | 31 | $className = $expld[0]; |
32 | 32 |
@@ -180,8 +180,8 @@ discard block |
||
180 | 180 | |
181 | 181 | $out .= '>'; |
182 | 182 | |
183 | - $out .= '<td>' . $rowno . '</td>'; |
|
184 | - $out .= '<td>' . $row['COUNT(*)'] . '</td>'; |
|
183 | + $out .= '<td>'.$rowno.'</td>'; |
|
184 | + $out .= '<td>'.$row['COUNT(*)'].'</td>'; |
|
185 | 185 | |
186 | 186 | global $baseurl; |
187 | 187 | $out .= '<td><a '; |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $out .= 'class="text-success" '; |
194 | 194 | } |
195 | 195 | |
196 | - $out .= 'href="' . $baseurl . '/statistics.php?page=Users&user=' . $row['user_id'] . '">' . $row['log_user'] . '</a></td>'; |
|
196 | + $out .= 'href="'.$baseurl.'/statistics.php?page=Users&user='.$row['user_id'].'">'.$row['log_user'].'</a></td>'; |
|
197 | 197 | |
198 | 198 | $out .= '</tr>'; |
199 | 199 |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | global $showGraphs; |
35 | 35 | if ($showGraphs == 1) { |
36 | 36 | global $filepath; |
37 | - require_once($filepath . 'graph/pChart/pChart.class'); |
|
38 | - require_once($filepath . 'graph/pChart/pData.class'); |
|
37 | + require_once($filepath.'graph/pChart/pChart.class'); |
|
38 | + require_once($filepath.'graph/pChart/pData.class'); |
|
39 | 39 | |
40 | 40 | $queries = array(); |
41 | 41 | |
@@ -135,14 +135,14 @@ discard block |
||
135 | 135 | ORDER BY YEAR(timestamp) , MONTH(timestamp) ASC; |
136 | 136 | SQL |
137 | 137 | , |
138 | - 'series' => "Requests deferred to " . $state['deferto'] . " by month" |
|
138 | + 'series' => "Requests deferred to ".$state['deferto']." by month" |
|
139 | 139 | ); |
140 | 140 | } |
141 | 141 | |
142 | 142 | global $baseurl; |
143 | 143 | foreach ($this->createClosuresGraph($queries) as $i) { |
144 | 144 | |
145 | - $out .= '<img src="' . $baseurl . '/render/' . $i[0] . '" alt="' . $i[1] . '"/>'; |
|
145 | + $out .= '<img src="'.$baseurl.'/render/'.$i[0].'" alt="'.$i[1].'"/>'; |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | // Finish the graph |
217 | 217 | $Test->setFontProperties("graph/Fonts/tahoma.ttf", 10); |
218 | 218 | $Test->drawTitle(50, 22, $q['series'], 50, 50, 50, 585); |
219 | - $Test->Render("render/" . $chartname); |
|
219 | + $Test->Render("render/".$chartname); |
|
220 | 220 | } |
221 | 221 | } |
222 | 222 | } |
@@ -232,11 +232,11 @@ discard block |
||
232 | 232 | private function createPathFromHash($imghash, $basedirectory = "render/") |
233 | 233 | { |
234 | 234 | $imghashparts = str_split($imghash); |
235 | - $imgpath = array_shift($imghashparts) . "/"; |
|
236 | - $imgpath .= array_shift($imghashparts) . "/"; |
|
237 | - $imgpath .= array_shift($imghashparts) . "/"; |
|
235 | + $imgpath = array_shift($imghashparts)."/"; |
|
236 | + $imgpath .= array_shift($imghashparts)."/"; |
|
237 | + $imgpath .= array_shift($imghashparts)."/"; |
|
238 | 238 | |
239 | - is_dir($basedirectory . $imgpath) || mkdir($basedirectory . $imgpath, 0777, true); |
|
239 | + is_dir($basedirectory.$imgpath) || mkdir($basedirectory.$imgpath, 0777, true); |
|
240 | 240 | |
241 | 241 | $imgpath .= implode("", $imghashparts); |
242 | 242 | return $imgpath; |
@@ -87,10 +87,10 @@ |
||
87 | 87 | $out .= "<td>"; |
88 | 88 | |
89 | 89 | if ($colid == 0) { |
90 | - $out .= "<a href=\"" . $baseurl . "/acc.php?action=zoom&id=" . $cell . "\">"; |
|
90 | + $out .= "<a href=\"".$baseurl."/acc.php?action=zoom&id=".$cell."\">"; |
|
91 | 91 | } |
92 | 92 | if ($colid == 1) { |
93 | - $out .= "<a href=\"" . $baseurl . "/statistics.php/Users?user=" . $row[++$colid] . "\">"; |
|
93 | + $out .= "<a href=\"".$baseurl."/statistics.php/Users?user=".$row[++$colid]."\">"; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | $out .= $cell; |