PHP Classes

File: pliki/zaloguj-user.php

Recommend this page to a friend!
  Classes of adam berger   Separation Database Queries   pliki/zaloguj-user.php   Download  
File: pliki/zaloguj-user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Separation Database Queries
Database access trait using PDO
Author: By
Last change:
Date: 7 years ago
Size: 1,148 bytes
 

Contents

Class file image Download
<?php

  
require_once(dirname(__DIR__) . '/lib-traid/SeparationDatabaseQueries.php');
   require_once(
dirname(__DIR__) . '/lib-traid/ValidateClass.php');
   require_once(
dirname(__DIR__) . '/lib-traid/SuperError.php');
   require_once(
dirname(__DIR__) . '/lib-interface/InterfDb.php');
   require_once(
dirname(__DIR__) . '/db-conect/DatabaseClass.php');
   require_once(
dirname(__DIR__) . '/db-insert/DbInsertSesion.php');
   require_once(
dirname(__DIR__) . '/lib/UserSesionClass.php');
   require_once(
dirname(__DIR__) . '/db-select/DbSelectSesion.php');
   require_once(
dirname(__DIR__) . '/db-update/DbUpdateSesion.php');
   require_once(
dirname(__DIR__) . '/lib/ErrorLogiClass.php');
   require_once(
dirname(__DIR__) . '/db-select/DbSelectUser.php');
  

//$_POST['pass']= "ladmin";
///$_POST['sesia']="12345";
       
$SelectUser = new DbSelectUser();

  if(!empty(
$_POST['email']) && !empty($_POST['pass'])){
 
    
$dd = $SelectUser->select_user_logowanie($_POST['email'], $_POST['pass'], $_POST['sesia']);

       echo
json_encode(array('Login'=>$dd));
      
   }else{
      
       echo
json_encode(array('Login'=>'sukces'));
   }