Guest User

Untitled

a guest
Dec 12th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. if($num == 1){     
  2.         switch($tipo_acesso):      
  3.         case "Administrador":
  4.         $_SESSION['logado_admin'] = true;
  5.         if(is_dir("logs_acesso")){
  6.                 //se existir a pasta logs_acesso
  7.                 $data = date("d/m/Y");
  8.                 $abrir = fopen("erro.txt","a+");
  9.                 if($abrir = fopen("logs_acesso/acoes_usuario.txt","a+")){
  10.                 fputs($abrir,"O Usuário ".$nome." LOGOU no site no dia ".$data." com nivel de " .$tipo_acesso." \r\n");                   
  11.                     }       }
  12.         header("Location: admin.php");
  13.         break;
Add Comment
Please, Sign In to add comment