Passed
Push — master ( 25c5f3...d91862 )
by Saepul
07:05 queued 02:03
created
menu.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -2,39 +2,39 @@  discard block
 block discarded – undo
2 2
 session_start();
3 3
 include 'config/koneksi.php';
4 4
 
5
-  if ($_SESSION['role'] == 'SA') {
6
-      $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
5
+    if ($_SESSION['role'] == 'SA') {
6
+        $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
7 7
 
8
-      $gjml = '1';
9
-  } else {
10
-      $sql = mysql_query("select distinct c.* from groupmodul b
8
+        $gjml = '1';
9
+    } else {
10
+        $sql = mysql_query("select distinct c.* from groupmodul b
11 11
                                                      inner join modul c
12 12
                                                      on b.id_modul = c.id_modul 
13 13
                                                      where b.id_groups = '$groups'  and c.aktif='Y' and status_menu='M'
14 14
                                                      order by c.urutan");
15 15
 
16
-      $gsql = mysql_query("select * 
16
+        $gsql = mysql_query("select * 
17 17
                                                       from modul a inner join groupmodul b
18 18
                                                       on a.id_modul = b.id_modul
19 19
                                                        where link = 'general_setting'
20 20
                                                        and b.id_groups = '$groups' 
21 21
                                                        ");
22
-      $gjml = mysql_num_rows($gsql);
23
-  }
24
-
25
-                             while ($r = mysql_fetch_array($sql)) {
26
-                                 if ($r[status_menu] == 'M' and !empty($r[link])) {
27
-                                     echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>";
28
-                                 } elseif ($r[status_menu] == 'M' and empty($r[link])) {
29
-                                     echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
30
-                                 }
31
-
32
-                                 echo'<ul class="nav child_menu" style="display: none">';
33
-
34
-                                 if ($_SESSION['role'] == 'SA') {
35
-                                     $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
36
-                                 } else {
37
-                                     $detil = mysql_query("select distinct c.* 
22
+        $gjml = mysql_num_rows($gsql);
23
+    }
24
+
25
+                                while ($r = mysql_fetch_array($sql)) {
26
+                                    if ($r[status_menu] == 'M' and !empty($r[link])) {
27
+                                        echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>";
28
+                                    } elseif ($r[status_menu] == 'M' and empty($r[link])) {
29
+                                        echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
30
+                                    }
31
+
32
+                                    echo'<ul class="nav child_menu" style="display: none">';
33
+
34
+                                    if ($_SESSION['role'] == 'SA') {
35
+                                        $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
36
+                                    } else {
37
+                                        $detil = mysql_query("select distinct c.* 
38 38
                                                          from groupmodul b
39 39
                                                          inner join modul c
40 40
                                                          on b.id_modul = c.id_modul    
@@ -43,17 +43,17 @@  discard block
 block discarded – undo
43 43
                                                          and c.status_menu='C'
44 44
                                                          and c.parentid = '$r[id_modul]'
45 45
                                                          order by c.urutan");
46
-                                 }
47
-                                 while ($d = mysql_fetch_array($detil)) {
48
-                                     if ($d[is_form] == 'Y') {
49
-                                         echo"<li><a href='modul/mod_$d[link]/form_$d[link].php?width=$d[f_width]&height=$d[f_height]&module=$d[link]&imodule=$imodule&id_module=$id&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' ><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
50
-                                     } else {
51
-                                         echo"<li><a href='$d[link]&id_module=$d[id_modul]'><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
52
-                                     }
53
-                                 }
54
-
55
-                                 echo'</ul>';
56
-                             }
46
+                                    }
47
+                                    while ($d = mysql_fetch_array($detil)) {
48
+                                        if ($d[is_form] == 'Y') {
49
+                                            echo"<li><a href='modul/mod_$d[link]/form_$d[link].php?width=$d[f_width]&height=$d[f_height]&module=$d[link]&imodule=$imodule&id_module=$id&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' ><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
50
+                                        } else {
51
+                                            echo"<li><a href='$d[link]&id_module=$d[id_modul]'><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
52
+                                        }
53
+                                    }
54
+
55
+                                    echo'</ul>';
56
+                                }
57 57
 
58 58
 ?>
59 59
 
Please login to merge, or discard this patch.
logout.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-  session_start();
3
+    session_start();
4 4
 
5
-  session_destroy();
5
+    session_destroy();
6 6
 
7
-  $userid = $_GET['userid'];
8
-  $module = $_GET['module'];
7
+    $userid = $_GET['userid'];
8
+    $module = $_GET['module'];
9 9
 
10
-  header('location:index.php?userid='.$userid.'&module='.$module.'');
10
+    header('location:index.php?userid='.$userid.'&module='.$module.'');
11 11
 
12 12
 // Apabila setelah logout langsung menuju halaman utama website, aktifkan baris di bawah ini:
13 13
 
Please login to merge, or discard this patch.
js/datatables/unit_testing/performance/large.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-  /* MySQL connection */
2
+    /* MySQL connection */
3 3
     include $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; /* ;-) */
4 4
 
5 5
     $gaSql['link'] = mysql_pconnect($gaSql['server'], $gaSql['user'], $gaSql['password']) or
Please login to merge, or discard this patch.
content.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,22 +2,22 @@
 block discarded – undo
2 2
 
3 3
 include 'config/koneksi.php';
4 4
 
5
-  $tampil = mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan");
5
+    $tampil = mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan");
6 6
 
7
-  while ($r = mysql_fetch_array($tampil)) {
8
-      $p = strlen($r['link']);
9
-      $mod = substr($r['link'], 8, $p);
7
+    while ($r = mysql_fetch_array($tampil)) {
8
+        $p = strlen($r['link']);
9
+        $mod = substr($r['link'], 8, $p);
10 10
 
11
-      //  echo"$mod<br>";
12
-      //  echo"$_GET[module]<br>";
13
-      //  echo"modul/mod_$mod.php<br>";
11
+        //  echo"$mod<br>";
12
+        //  echo"$_GET[module]<br>";
13
+        //  echo"modul/mod_$mod.php<br>";
14 14
 //
15 15
 
16
-      if ($_GET['module'] == $mod) {
17
-          //include "modul/mod_$mod.php";
18
-          include "modul/mod_$mod/$mod.php";
19
-      }
20
-  }
16
+        if ($_GET['module'] == $mod) {
17
+            //include "modul/mod_$mod.php";
18
+            include "modul/mod_$mod/$mod.php";
19
+        }
20
+    }
21 21
 
22 22
 // Apabila modul tidak ditemukan
23 23
 //else{
Please login to merge, or discard this patch.
topmenu.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     $user = $_SESSION['userid'];
34 34
 
35
-          $sql = mysql_query("select * from modul where aktif='Y' order by urutan");
35
+            $sql = mysql_query("select * from modul where aktif='Y' order by urutan");
36 36
 
37 37
     while ($r = mysql_fetch_array($sql)) {
38 38
         if ($r[status_menu] == 'M' and !empty($r[link])) {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         echo'</ul>';
57 57
     }
58 58
 
59
-  ?>
59
+    ?>
60 60
   
61 61
   
62 62
   
Please login to merge, or discard this patch.
config/bar128.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@
 block discarded – undo
35 35
 ////Define Function
36 36
 function bar128($text)
37 37
 {						// Part 1, make list of widths
38
-  global $char128asc,$char128wid;
38
+    global $char128asc,$char128wid;
39 39
     $w = $char128wid[$sum = 104];							// START symbol
40 40
     $onChar = 1;
41 41
     for ($x = 0; $x < strlen($text); $x++) {								// GO THRU TEXT GET LETTERS
42 42
     if (!(($pos = strpos($char128asc, $text[$x])) === false)) {	// SKIP NOT FOUND CHARS
43
-      $w .= $char128wid[$pos];
43
+        $w .= $char128wid[$pos];
44 44
         $sum += $onChar++ * $pos;
45 45
     }
46 46
     }
Please login to merge, or discard this patch.
config/functions.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -84,28 +84,28 @@
 block discarded – undo
84 84
     }
85 85
 
86 86
     switch ($size[2]) {
87
-       case 1:       //GIF
87
+        case 1:       //GIF
88 88
            $src = imagecreatefromgif($srcFile);
89
-           break;
90
-       case 2:       //JPEG
89
+            break;
90
+        case 2:       //JPEG
91 91
            $src = imagecreatefromjpeg($srcFile);
92
-           break;
93
-       case 3:       //PNG
92
+            break;
93
+        case 3:       //PNG
94 94
            $src = imagecreatefrompng($srcFile);
95
-           break;
96
-       default:
95
+            break;
96
+        default:
97 97
            return false;
98
-           break;
98
+            break;
99 99
     }
100 100
 
101 101
     imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]);
102 102
 
103 103
     switch ($size[2]) {
104
-       case 1:
104
+        case 1:
105 105
        case 2:
106 106
            imagejpeg($dest, $destFile, $quality);
107
-           break;
108
-       case 3:
107
+            break;
108
+        case 3:
109 109
            imagepng($dest, $destFile);
110 110
     }
111 111
 
Please login to merge, or discard this patch.
config/qrcode/bindings/tcpdf/qrcode.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -464,7 +464,7 @@
 block discarded – undo
464 464
             -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //
465 465
             -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //
466 466
             36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, //
467
-             0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 44, -1, -1, -1, -1, -1, //
467
+                0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 44, -1, -1, -1, -1, -1, //
468 468
             -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, //
469 469
             25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, //
470 470
             -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //
Please login to merge, or discard this patch.
config/qrcode/qrinput.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@
 block discarded – undo
419 419
             -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
420 420
             -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
421 421
             36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43,
422
-             0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 44, -1, -1, -1, -1, -1,
422
+                0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 44, -1, -1, -1, -1, -1,
423 423
             -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
424 424
             25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1,
425 425
             -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
Please login to merge, or discard this patch.