PHP Classes

File: Core/Globals.php

Recommend this page to a friend!
  Classes of jon   PHP Login Site with Cookie MD5 Hash   Core/Globals.php   Download  
File: Core/Globals.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Login Site with Cookie MD5 Hash
User login system using cookies with MD5 tokens
Author: By
Last change:
Date: 2 months ago
Size: 602 bytes
 

Contents

Class file image Download
<?php

//Page name: Globals.php
//Page function: Defines Config, Remember and Session
//Dependencies: Core/Define, Core/Init
//Executes AJAX from page:
//Includes:
//Techs:

//Define globals:
$GLOBALS['ConfigGlobal'] = array
(
   
'mysql' => array
    (
       
'host' => $_SESSION['DbHost'],
       
'username' => $_SESSION['DbUser'],
       
'password' => $_SESSION['DbPassword'],
       
'db' => $_SESSION['DbDatabase']
    ),
   
'Remember' => array
    (
       
'CookieName' => 'Hash',
       
'CookieExpiry' => 604800
   
),

   
'Session' => array
    (
       
'SessionName' => 'User',
       
'TokenName' => 'Token'
   
)
);



?>