Pin System

Results 1 to 5 of 5
  1. #1
    Valued Member iTzScronnie is offline
    MemberRank
    Sep 2013 Join Date
    104Posts

    Pin System

    Is it possible for a pin system RevCMS?


  2. #2
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    Re: Pin System

    You want add a system pin every time when user enter in client?

  3. #3
    HostSavor.com Lewislol is offline
    MemberRank
    Jul 2013 Join Date
    498Posts

    Re: Pin System

    Make one or ask someone to make you one.

  4. #4
    Valued Member iTzScronnie is offline
    MemberRank
    Sep 2013 Join Date
    104Posts

    Re: Pin System

    Quote Originally Posted by CelsoNetto View Post
    You want add a system pin every time when user enter in client?
    Yeah I want one made for that reason

  5. #5
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    Re: Pin System

    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



Advertisement