@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'");
|
| 194 | 194 | $r = mysql_fetch_array($tampil); |
| 195 | 195 | |
| 196 | - if ($r[orientation] == 'P') {
|
|
| 196 | + if ($r[orientation]=='P') {
|
|
| 197 | 197 | ?> |
| 198 | 198 | |
| 199 | 199 | <SCRIPT TYPE="text/javascript"> |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | </SCRIPT> |
| 210 | 210 | |
| 211 | 211 | <?php |
| 212 | - } elseif ($r[orientation] == 'A') {
|
|
| 212 | + } elseif ($r[orientation]=='A') {
|
|
| 213 | 213 | ?> |
| 214 | 214 | |
| 215 | 215 | <SCRIPT TYPE="text/javascript"> |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | mysql_connect($server, $username, $password) or die('Koneksi gagal'); |
| 8 | 8 | mysql_select_db($database) or die('Database tidak bisa dibuka'); |
| 9 | 9 | |
| 10 | -if (! function_exists('user_log')) { |
|
| 10 | +if (!function_exists('user_log')) { |
|
| 11 | 11 | function user_log($log) |
| 12 | 12 | { |
| 13 | 13 | $id_user = $_SESSION['userid']; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $r = mysql_fetch_array($login); |
| 23 | 23 | |
| 24 | 24 | // Apabila userid dan password ditemukan |
| 25 | -if ($find > 0) { |
|
| 25 | +if ($find>0) { |
|
| 26 | 26 | session_start(); |
| 27 | 27 | |
| 28 | 28 | $id_user = $r['id_user']; |