core/functions.php
/*
	 * Ask for a password and authentify LOGGED(session) user
	 * Returns boolean
	 */
Ask for a password and authentify LOGGED(session) user
Returns boolean
Ask for a password and authentify LOGGED ( session ) user Returns boolean
function indoor_auth($password)
  {
    $query = 'SELECT count(*)
              FROM user
              WHERE user_login = \'' . $_SESSION['user']->getLogin() . '\' AND user_pwd = \'' . hash('sha512', $password, false) . '\';';
    $result = $dbsocket->query($query);
    if($result->fetchColumn() > 0)
    {
      return true;
    }
    else
    {
      return false;
    }
  }
function indoor_auth ( $ password ) { $ query = 'SELECT count(*)
              FROM user
              WHERE user_login = \'' . $ _SESSION [ 'user' ] -> getLogin ( ) . '\' AND user_pwd = \'' . hash ( 'sha512' , $ password , false ) . '\';' ; $ result = $ dbsocket -> query ( $ query ) ; if ( $ result -> fetchColumn ( ) > 0 ) { return true ; } else { return false ; } }
Ask for a password and authentify LOGGED(session) user
 Returns boolean
Ask for a password and authentify LOGGED ( session ) user Returns boolean