Passed
Push — master ( 25c5f3...d91862 )
by Saepul
07:05 queued 02:03
created
menu.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 session_start();
3 3
 include 'config/koneksi.php';
4 4
 
5
-  if ($_SESSION['role'] == 'SA') {
5
+  if ($_SESSION['role']=='SA') {
6 6
       $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
7 7
 
8 8
       $gjml = '1';
@@ -23,15 +23,15 @@  discard block
 block discarded – undo
23 23
   }
24 24
 
25 25
                              while ($r = mysql_fetch_array($sql)) {
26
-                                 if ($r[status_menu] == 'M' and !empty($r[link])) {
26
+                                 if ($r[status_menu]=='M' and !empty($r[link])) {
27 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])) {
28
+                                 } elseif ($r[status_menu]=='M' and empty($r[link])) {
29 29
                                      echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
30 30
                                  }
31 31
 
32 32
                                  echo'<ul class="nav child_menu" style="display: none">';
33 33
 
34
-                                 if ($_SESSION['role'] == 'SA') {
34
+                                 if ($_SESSION['role']=='SA') {
35 35
                                      $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
36 36
                                  } else {
37 37
                                      $detil = mysql_query("select distinct c.* 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                                                          order by c.urutan");
46 46
                                  }
47 47
                                  while ($d = mysql_fetch_array($detil)) {
48
-                                     if ($d[is_form] == 'Y') {
48
+                                     if ($d[is_form]=='Y') {
49 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 50
                                      } else {
51 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>";
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     ?>
63 63
                 
64 64
 	<div class="wifi" style="font-size: 33px;"><?php echo $app; ?></div>
65
-		<!-- <p class="copyright">Version : <?php echo $versi;?></p> -->
65
+		<!-- <p class="copyright">Version : <?php echo $versi; ?></p> -->
66 66
 	</footer>
67 67
 </body>
68 68
 </html>
69 69
\ No newline at end of file
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/controller.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
                 function fnReadDir(&$aReturn, $path)
48 48
                 {
49 49
                     $rDir = opendir($path);
50
-                    while (($file = readdir($rDir)) !== false) {
51
-                        if ($file == '.' || $file == '..' || $file == '.DS_Store') {
50
+                    while (($file = readdir($rDir))!==false) {
51
+                        if ($file=='.' || $file=='..' || $file=='.DS_Store') {
52 52
                             continue;
53 53
                         } elseif (is_dir($path.'/'.$file)) {
54 54
                             fnReadDir($aReturn, $path.'/'.$file);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 $aFiles = [];
64 64
                 fnReadDir($aFiles, 'tests');
65 65
 
66
-                for ($i = 0; $i < count($aFiles); $i++) {
66
+                for ($i = 0; $i<count($aFiles); $i++) {
67 67
                     $sTemplate;
68 68
                     $fp = fopen($aFiles[$i], 'r');
69 69
                     fscanf($fp, '// DATA_TEMPLATE: %s', $sTemplate);
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.
js/datatables/unit_testing/templates/empty_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22 22
             $aScripts = explode(':', $_GET['scripts']);
23
-            for ($i = 0; $i < count($aScripts); $i++) {
23
+            for ($i = 0; $i<count($aScripts); $i++) {
24 24
                 echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
25 25
             }
26 26
         ?>
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/js_data_mixed_types.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 		</script>
83 83
 		<?php
84 84
             $aScripts = explode(':', $_GET['scripts']);
85
-            for ($i = 0; $i < count($aScripts); $i++) {
85
+            for ($i = 0; $i<count($aScripts); $i++) {
86 86
                 echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
87 87
             }
88 88
         ?>
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/dom_data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22 22
             $aScripts = explode(':', $_GET['scripts']);
23
-            for ($i = 0; $i < count($aScripts); $i++) {
23
+            for ($i = 0; $i<count($aScripts); $i++) {
24 24
                 echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
25 25
             }
26 26
         ?>
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/dymanic_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 		</script>
26 26
 		<?php
27 27
             $aScripts = explode(':', $_GET['scripts']);
28
-            for ($i = 0; $i < count($aScripts); $i++) {
28
+            for ($i = 0; $i<count($aScripts); $i++) {
29 29
                 echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
30 30
             }
31 31
         ?>
Please login to merge, or discard this patch.