First add this in your client.php after includes system:
PHP Code:
if (isset($_POST['pin'])) {
$sql = mysql_fetch_array(mysql_query("SELECT pin FROM users WHERE username='".$_SESSION['username']."' LIMIT 1"));
if ($sql['pin']==mysql_real_escape_string($_POST['pin'])) {
$_SESSION['pin'] = "1";
}
}
if (empty($_SESSION['pin'])) {
echo '<form method="post">';
echo 'Please, put your pin for continue on game:<br>';
echo '<input type="password" name="pin" id="pin" /><br>';
echo '<input type="submit" value="Continue" />';
echo '</form>';
}
And this on end of client.php
PHP Code:
unset($_SESSION['pin']);
Obs: All those codes must be placed between <?php and ?> tags
I don't have any certain if this works on revcms. I just create a very simple code of pin. If dont works look the session username.
Dont forget for add this in your table users:
pin int 11 dont null