@@ -1,13 +1,13 @@ |
||
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 |
@@ -1,5 +1,5 @@ |
||
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 |
@@ -2,22 +2,22 @@ |
||
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{ |
@@ -32,7 +32,7 @@ discard block |
||
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 |
||
56 | 56 | echo'</ul>'; |
57 | 57 | } |
58 | 58 | |
59 | - ?> |
|
59 | + ?> |
|
60 | 60 | |
61 | 61 | |
62 | 62 |
@@ -35,12 +35,12 @@ |
||
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 | } |
@@ -84,28 +84,28 @@ |
||
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 |
@@ -464,7 +464,7 @@ |
||
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, // |
@@ -419,7 +419,7 @@ |
||
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, |
@@ -1460,7 +1460,7 @@ |
||
1460 | 1460 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
1461 | 1461 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
1462 | 1462 | 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, |
1463 | - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, |
|
1463 | + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, |
|
1464 | 1464 | -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
1465 | 1465 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, |
1466 | 1466 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |