PHP Classes
elePHPant
Icontem

File: examples/basic/config.php

Recommend this page to a friend!
  Classes of Subin Siby  >  Secure PHP Login System  >  examples/basic/config.php  >  Download  
File: examples/basic/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Secure PHP Login System
Register and login users using a database via PDO
Author: By
Last change: Changed session library

* Now uses non-blocking sessions
* Removed usage of native PHP sessions
* Allow to rename session cookie
* Removed defunct TwoStepLogin tests
Merge branch 'MaterializeExample' into dev
Date: 1 year ago
Size: 791 bytes
 

 

Contents

Class file image Download
<?php
/**
 * For Development Purposes
 */
ini_set('display_errors', 'on');

require
__DIR__ . '/../../vendor/autoload.php';

$LS = new \Fr\LS(array(
   
'db' => array(
       
'host' => 'localhost',
       
'port' => 3306,
       
'username' => 'root',
       
'password' => '',
       
'name' => 'test',
       
'table' => 'users',
    ),
   
'features' => array(
       
'auto_init' => true,
    ),
   
'pages' => array(
       
'no_login' => array(
           
'/',
           
'/examples/basic/reset.php',
           
'/examples/basic/register.php',
        ),
       
'everyone' => array(
           
'/examples/basic/status.php',
        ),
       
'login_page' => '/examples/basic/login.php',
       
'home_page' => '/examples/basic/home.php',
    ),
));