Advertisement
elvenbyte

Untitled

Nov 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. include($_SERVER["DOCUMENT_ROOT"] . "/atramento/atraback/model/dao/UsuariosDAO.php");
  3.  
  4. $user = $_POST["user"];
  5. $password = $_POST["contrapass"];
  6. $uDao = new UsuariosDAO();
  7.  
  8. if($uDao->isAdministrador($user, $password)){
  9.     $json = '{"result":"ok"}';
  10. }else{
  11.     $json = '{"result":"no_ok"}';
  12. }
  13.  
  14. echo $json;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement