PHP Classes

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: Update of examples/basic/config.php
Date: 8 months 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',
    ),
));