Пример #1
0
         if (isset($usuario)) {
             $login = $dao->loginUsuario($usuario);
         }
     }
     if ($controller == 2) {
         // Verifica Registro
         if (isset($correo)) {
             $registro = $dao->verificaRegistro($correo);
         }
     }
     if ($controller == 3) {
         // Registra
         // if(isset($correo)){
         // 	  echo 111;
         if (isset($_POST)) {
             $registro = $dao->crearNuevoUsuario($_POST);
         }
         // }
     }
 }
 //if(isset($_POST['carrera'])){
 //
 if (isset($_GET['accion']) == "mostrar") {
     $registro = $dao->mostrarUsuarios(999);
     //echo $registro;
     echo json_encode($registro);
 }
 if (isset($_GET['usuario'])) {
     //session_start();
     //if(isset($_SESSION['k_se'])){
     $registro = $dao->datosUsuario($_GET['usuario']);