@@ -23,13 +23,13 @@ discard block |
||
23 | 23 | public static function Create($pageName) |
24 | 24 | { |
25 | 25 | // calculate the name of the statistics page |
26 | - $statsPage = "Stats" . $pageName; |
|
26 | + $statsPage = "Stats".$pageName; |
|
27 | 27 | |
28 | 28 | global $filepath; |
29 | 29 | // check the stats page definition exists... |
30 | - if (file_exists($filepath . "/includes/statistics/Stats" . $pageName . ".php")) { |
|
30 | + if (file_exists($filepath."/includes/statistics/Stats".$pageName.".php")) { |
|
31 | 31 | // and include it. |
32 | - require_once($filepath . "/includes/statistics/Stats" . $pageName . ".php"); |
|
32 | + require_once($filepath."/includes/statistics/Stats".$pageName.".php"); |
|
33 | 33 | } |
34 | 34 | else { |
35 | 35 | // class def doesn't exist: error |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | else { |
58 | 58 | // file exists, but no definition of the class |
59 | - die("No definition for statistics page: " . $statsPage); |
|
59 | + die("No definition for statistics page: ".$statsPage); |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | } |
146 | 146 | |
147 | 147 | // not protected or access allowed |
148 | - echo '<div class="page-header"><h1>' . $this->getPageTitle() . '</h1></div>'; |
|
148 | + echo '<div class="page-header"><h1>'.$this->getPageTitle().'</h1></div>'; |
|
149 | 149 | |
150 | 150 | if ($this->requiresSimpleHtmlEnvironment()) { |
151 | 151 | echo '<div class="row-fluid"><div class="span12">'; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | $BUbasefile = "backup"; // The basefile's name. |
143 | 143 | $BUdir = "/home/project/a/c/c/acc/backups"; // The directory where backups should be stored. |
144 | -$BUmonthdir = $BUdir . "/monthly"; // The directory where monthly backups should be stored. |
|
144 | +$BUmonthdir = $BUdir."/monthly"; // The directory where monthly backups should be stored. |
|
145 | 145 | $BUdumper = "/opt/ts/mysql/5.1/bin/mysqldump --defaults-file=~/.my.cnf p_acc_live"; // Add parameters here if they are needed. |
146 | 146 | $BUgzip = "/usr/bin/gzip"; // Add the gzip parameters here if needed. |
147 | 147 | $BUtar = "/bin/tar -cvf"; // Add the tar parameters here if needed. |
@@ -279,19 +279,19 @@ discard block |
||
279 | 279 | |
280 | 280 | $cDatabaseConfig = array( |
281 | 281 | "acc" => array( |
282 | - "dsrcname" => "mysql:host=" . $toolserver_host . ";dbname=" . $toolserver_database, |
|
282 | + "dsrcname" => "mysql:host=".$toolserver_host.";dbname=".$toolserver_database, |
|
283 | 283 | "username" => $toolserver_username, |
284 | 284 | "password" => $toolserver_password, |
285 | 285 | "options" => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'), |
286 | 286 | ), |
287 | 287 | "wikipedia" => array( |
288 | - "dsrcname" => "mysql:host=" . $antispoof_host . ";dbname=" . $antispoof_db, |
|
288 | + "dsrcname" => "mysql:host=".$antispoof_host.";dbname=".$antispoof_db, |
|
289 | 289 | "username" => $toolserver_username, |
290 | 290 | "password" => $toolserver_password, |
291 | 291 | "options" => array(), |
292 | 292 | ), |
293 | 293 | "notifications" => array( |
294 | - "dsrcname" => "mysql:host=" . $toolserver_notification_dbhost . ";dbname=" . $toolserver_notification_database, |
|
294 | + "dsrcname" => "mysql:host=".$toolserver_notification_dbhost.";dbname=".$toolserver_notification_database, |
|
295 | 295 | "username" => $notifications_username, |
296 | 296 | "password" => $notifications_password, |
297 | 297 | "options" => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'), |
@@ -314,11 +314,11 @@ discard block |
||
314 | 314 | "openssl", // email confirmation hash gen, oauth stuff |
315 | 315 | ) as $x) {if (!extension_loaded($x)) {die("extension $x is required."); }} |
316 | 316 | |
317 | -require_once($filepath . "includes/AutoLoader.php"); |
|
317 | +require_once($filepath."includes/AutoLoader.php"); |
|
318 | 318 | |
319 | 319 | spl_autoload_register("AutoLoader::load"); |
320 | 320 | |
321 | 321 | // Extra includes which are just plain awkward wherever they are. |
322 | -require_once($filepath . 'oauth/OAuthUtility.php'); |
|
323 | -require_once($filepath . 'lib/mediawiki-extensions-OAuth/lib/OAuth.php'); |
|
324 | -require_once($filepath . 'lib/mediawiki-extensions-OAuth/lib/JWT.php'); |
|
322 | +require_once($filepath.'oauth/OAuthUtility.php'); |
|
323 | +require_once($filepath.'lib/mediawiki-extensions-OAuth/lib/OAuth.php'); |
|
324 | +require_once($filepath.'lib/mediawiki-extensions-OAuth/lib/JWT.php'); |