PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of adam berger   Separation Database Queries   index.php   Download  
File: index.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: 936 bytes
 

Contents

Class file image Download
<?php
## Pobieramy Super Globaln? ##
///error_reporting(defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL);
  
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_ALL);
//$cookieName="Ksiazka";
  
$start1 = microtime(true);
  
require_once(
dirname(__FILE__) . '/lib/Autoload.php');
 
$sessia = new UserSesionClass();
      
     
$sessia->isSesion();
     
//okresl jezyk 1 lub 2
 
if(isset($_GET['lang'])){
    
$_SESSION['lang'] = $_GET['lang'];
    
$lang = new ClassLang($_SESSION['lang']);
    }else{
    
$lang = new ClassLang(@$_SESSION['lang']);
    }

   
$url = new UrlClass();
           
      if(
$sessia->IdSesionUserGet()){

           include_once(
dirname(__FILE__) . '/template/zalogowani.php');
        
// echo "<br>Zalogowany<br>";
     
}else{
        
// unset($_SESSION);
         
include_once(dirname(__FILE__) . '/template/niezalogowani.php');
         
///echo "<br>Nie Zalogowany<br>";
     
}