function require_auth() { global $password_hash, $GAMEID; # already authenticated if (is_admin()) { return; } # in the process of authentication if (array_key_exists('password', $_REQUEST)) { $pwd_given = $_REQUEST['password']; $pwd_hash = md5($pwd_given); if ($pwd_hash == $password_hash) { $_SESSION['hash'] = $password_hash; header("Location: " . $_REQUEST['goto']); return; } } # before authentication myhead("Enter password"); #echo '<pre>'.print_r($_SERVER,True).'</pre>'; echo "\n\t\t<form method=post>\n\t\t\t<input type=hidden name=goto value='" . $_SERVER['REQUEST_URI'] . "'>\n\t\t\t<p>Enter password: <input type=password name=password></p>\n\t\t\t<p><input type=submit value='Login'></p>\n\t\t</form>\n\t"; myfooter(); exit; }
)</td> <td align="right"><?php echo $db['qty']; ?> <?php echo $db['sing_sat_kecil_obat']; ?> </td> </tr> <?php $no++; } ?> <?php myfooter(); ?> </table> <div class="page" > <br /> <table> <!--<tr> <td style="text-align: left; height: 60px">Pemeriksa</td> </tr> <tr> <td style="text-align: left;">-----------------------</td> </tr>--> <!--<tr> <td>No. Antrian</td><td>:</td><td></td> </tr>--> <tr>