@@ -20,7 +20,7 @@ |
||
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 | ?> |
@@ -20,7 +20,7 @@ |
||
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 | ?> |
@@ -20,7 +20,7 @@ |
||
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 | ?> |
@@ -20,7 +20,7 @@ |
||
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 | ?> |
@@ -20,7 +20,7 @@ |
||
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 | ?> |
@@ -20,7 +20,7 @@ |
||
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 | ?> |
@@ -82,7 +82,7 @@ |
||
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 | ?> |
@@ -13,7 +13,7 @@ |
||
13 | 13 | // echo"modul/mod_$mod.php<br>"; |
14 | 14 | // |
15 | 15 | |
16 | - if ($_GET['module'] == $mod) { |
|
16 | + if ($_GET['module']==$mod) { |
|
17 | 17 | //include "modul/mod_$mod.php"; |
18 | 18 | include "modul/mod_$mod/$mod.php"; |
19 | 19 | } |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | session_start(); |
3 | 3 | include 'config/koneksi.php'; |
4 | 4 | |
5 | -if ($_SESSION[role] == 'dev') { |
|
5 | +if ($_SESSION[role]=='dev') { |
|
6 | 6 | $sql = mysql_query("select * from modul where aktif='Y' order by urutan"); |
7 | -} elseif ($_SESSION[role] == 'admin') { |
|
7 | +} elseif ($_SESSION[role]=='admin') { |
|
8 | 8 | $sql = mysql_query("select * from modul where status !='dev' and aktif='Y' order by urutan"); |
9 | -} elseif ($_SESSION[role] == 'user') { |
|
9 | +} elseif ($_SESSION[role]=='user') { |
|
10 | 10 | $sql = mysql_query("select * from modul where status='user' and aktif='Y' order by urutan"); |
11 | 11 | } else { |
12 | 12 | $sql = mysql_query("SELECT * FROM modul a inner join usermenu b on a.id_modul = b.id_modul where a.status='user' and a.aktif='Y' and b.m_aktif='Y' and b.username='$_SESSION[id_user]' ORDER BY a.urutan"); |
@@ -23,16 +23,16 @@ discard block |
||
23 | 23 | //$njml = '('.$cjml.')'; |
24 | 24 | //} |
25 | 25 | |
26 | - if ($r[status_menu] == 'M' and !empty($r[link])) { |
|
27 | - if ($r[nama_modul] == 'Notice') { |
|
26 | + if ($r[status_menu]=='M' and !empty($r[link])) { |
|
27 | + if ($r[nama_modul]=='Notice') { |
|
28 | 28 | echo "<a class='menuitem' href='$r[link]'>$r[nama_modul] $njml</a>"; |
29 | 29 | } else { |
30 | 30 | echo "<a class='menuitem' href='$r[link]'>$r[nama_modul]</a>"; |
31 | 31 | } |
32 | - } elseif ($r[status_menu] == 'M' and empty($r[link])) { |
|
32 | + } elseif ($r[status_menu]=='M' and empty($r[link])) { |
|
33 | 33 | echo "<a class='menuitem submenuheader' href='$r[link]'>$r[nama_modul]</a> "; |
34 | 34 | |
35 | - if ($_SESSION[role] == 'dev' or $_SESSION[role] == 'admin') { |
|
35 | + if ($_SESSION[role]=='dev' or $_SESSION[role]=='admin') { |
|
36 | 36 | $detil = mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); |
37 | 37 | } else { |
38 | 38 | $detil = mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' and (id_role = '5' or id_role = '$_SESSION[role]') and (id_group = '1' or id_group = '$_SESSION[group]')order by urutan"); |