Issues (4542)

index.php (2 issues)

Languages
Severity
1
<?php
2
include 'config/koneksi.php';
3
?>
4
<!DOCTYPE html>
5
<html>
6
<head>
7
	<meta charset="utf-8">
8
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
    <meta name="viewport" content="width=device-width, initial-scale=1">
10
	<title>.:: Halaman Login ::.</title>
11
	<link rel="stylesheet" href="style.css">
12
	<link rel="stylesheet" href="fw/css/font-awesome.min.css">
13
</head>
14
<body>
15
16
<?php
17
if (isset($_GET['userid']) && $_GET['userid']) {
18
    $userid = $_GET['userid'];
19
    $module = $_GET['module'];
20
} else {
21
    $userid = '';
22
    $module = 'home';
23
}
24
25
?>
26
	<section class="login-content">
27
	<div class="header-title">
28
		<h3>PUSKESMAS KELURAHAN PULAU PANGGANG</h3>
29
	</div>
30
	<div style='text-align:center;'>
31
		<img src='images/logo/logo.png' height='100' style='margin-top:20px;margin-bottom:-50px;'>	
32
	</div>	
33
		<form method="post" action="cek_login.php" accept-charset="utf-8">
34
		
35
		<label id="username">
36
			<input type="text" name="userid" value='<?php echo $userid; ?>' <?php if (!$userid) {
37
    echo 'autofocus';
38
} ?> placeholder="Pengguna" required autofocus onKeyUp="" >
39
		</label>
40
			<br>
41
		<label id="password">	
42
			<input type="password" name="password" <?php if ($userid) {
43
    echo 'autofocus';
44
} ?> placeholder="Sandi" required>
45
		</label>	
46
			<br><br>
47
			<button name="login"><i class="fa fa-sign-in"></i>&nbsp;Masuk	</button>
48
			<br>
49
			<input type="hidden"  name="module" value='<?php echo $module?>'><br>
50
		</form>
51
	</section><br>
52
	<footer>
53
	<br><br><br>
54
	<?php
55
    $SQL = "SELECT* FROM versi WHERE status = 'A' ";
56
    $tampil = mysql_query($SQL);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

56
    $tampil = /** @scrutinizer ignore-deprecated */ mysql_query($SQL);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
57
    $p = mysql_fetch_array($tampil);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

57
    $p = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($tampil);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
58
59
    $app = $p['aplikasi'];
60
61
    $versi = $p['versi'];
62
    ?>
63
                
64
	<div class="wifi" style="font-size: 33px;"><?php echo $app; ?></div>
65
		<!-- <p class="copyright">Version : <?php echo $versi; ?></p> -->
66
	</footer>
67
</body>
68
</html>