Passed
Push — master ( d6c0c0...b57efa )
by Stefan
03:48
created
download.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     // file exists: return file for download
24 24
     header('Content-Type: application/octet-stream');
25 25
     header('Content-Disposition: attachment; filename="' .
26
-           addslashes($filename) . '"');
26
+            addslashes($filename) . '"');
27 27
     readfile($filepath);
28 28
 } else {
29 29
     // file does not exist: 404 Not Found
Please login to merge, or discard this patch.
upload.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,10 +111,10 @@
 block discarded – undo
111 111
 $curl = curl_init();
112 112
 // Set some options - we are passing in a useragent too here
113 113
 curl_setopt_array($curl, array(
114
-                      CURLOPT_RETURNTRANSFER => 1,
115
-                      CURLOPT_URL => CONFIG_CONTROL_FILE . '?newWindow=' . $sw,
116
-                      CURLOPT_USERAGENT => 'PalMA cURL Request'
117
-                               ));
114
+                        CURLOPT_RETURNTRANSFER => 1,
115
+                        CURLOPT_URL => CONFIG_CONTROL_FILE . '?newWindow=' . $sw,
116
+                        CURLOPT_USERAGENT => 'PalMA cURL Request'
117
+                                ));
118 118
 // Send the request & save response to $resp
119 119
 $resp = curl_exec($curl);
120 120
 // Close request to clear up some resources
Please login to merge, or discard this patch.
login.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         $_SESSION['monitor'] = CONFIG_STATIONNAME;
149 149
         $dbcon->addUser($username, $dbcon->ipAddress(), getDevice());
150 150
 
151
-       // Weiterleitung zur geschützten Startseite
151
+        // Weiterleitung zur geschützten Startseite
152 152
         if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {
153 153
             if (php_sapi_name() == 'cgi') {
154 154
                 header('Status: 303 See Other');
Please login to merge, or discard this patch.
globals.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 function monitor($action)
14 14
 {
15 15
     if (!defined('CONFIG_MONITOR_URL')) {
16
-      //trace('CONFIG_MONITOR_URL is undefined');
16
+        //trace('CONFIG_MONITOR_URL is undefined');
17 17
         return;
18 18
     }
19
-  //trace("monitor $action");
19
+    //trace("monitor $action");
20 20
     $ch = curl_init();
21 21
     $url = CONFIG_MONITOR_URL;
22 22
   
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                         CURLOPT_RETURNTRANSFER => 1,
25 25
                         CURLOPT_URL => CONFIG_MONITOR_URL . '/' . CONFIG_STATIONNAME . '/' . base64_encode($action),
26 26
                         CURLOPT_USERAGENT => 'PalMA cURL Request'
27
-                               ));
27
+                                ));
28 28
     $resp = curl_exec($ch);
29 29
     curl_close($ch);
30 30
 }
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1391,11 +1391,11 @@
 block discarded – undo
1391 1391
 
1392 1392
 <div id="footer">
1393 1393
     <?php
1394
-      # Show authorized user name (and address) and allow logout.
1394
+        # Show authorized user name (and address) and allow logout.
1395 1395
     if ($user) {
1396 1396
         echo("<a href=\"logout.php\" title=\"" .
1397
-          addslashes(__('Disconnect the current user')) .
1398
-          "\">" . addslashes(__('Log out')) . "<i class=\"fa fa-sign-out\"></i></a>");
1397
+            addslashes(__('Disconnect the current user')) .
1398
+            "\">" . addslashes(__('Log out')) . "<i class=\"fa fa-sign-out\"></i></a>");
1399 1399
     }
1400 1400
     ?>
1401 1401
 </div> <!-- Footer -->
Please login to merge, or discard this patch.
control.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -331,18 +331,18 @@  discard block
 block discarded – undo
331 331
   
332 332
     require_once('FileHandler.class.php');
333 333
     list ($handler, $targetFile) =
334
-      palma\FileHandler::getFileHandler($inFile);
334
+        palma\FileHandler::getFileHandler($inFile);
335 335
     trace("file is now $targetFile, its handler is $handler");
336 336
 
337 337
     $window = array(
338
-      "id" => "",
339
-      "win_id" => "",
340
-      "name" => "",
341
-      "state" => "",
342
-      "file" => $targetFile,
343
-      "handler" => $handler,
344
-      "userid" => "",
345
-      "date" => $w['date']);
338
+        "id" => "",
339
+        "win_id" => "",
340
+        "name" => "",
341
+        "state" => "",
342
+        "file" => $targetFile,
343
+        "handler" => $handler,
344
+        "userid" => "",
345
+        "date" => $w['date']);
346 346
   
347 347
     createNewWindow($db, $window);
348 348
 }
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 
402 402
             // trying mousemove and click for better vnc control
403 403
             displayCommand("xdotool mousemove --window $windowhex 100 100 " .
404
-                       "key $key");
404
+                        "key $key");
405 405
         }
406 406
 
407 407
         if ($windowname && array_key_exists('keydown', $_REQUEST)) {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 
417 417
             // trying mousemove and click for better vnc control
418 418
             displayCommand("xdotool mousemove --window $windowhex 100 100 " .
419
-                       "key $key");
419
+                        "key $key");
420 420
             //~ displayCommand("xdotool windowfocus $windowhex keydown $key");
421 421
         }
422 422
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
                 "section" => "",
567 567
                 "state" => "",
568 568
                 "file" => $openURL,
569
-		"handler" => "palma-browser",
569
+        "handler" => "palma-browser",
570 570
                 "userid" => "",
571 571
                 "date" => $date
572 572
             );
Please login to merge, or discard this patch.