PHP Classes

File: account/index.php

Recommend this page to a friend!
  Classes of Mohamed Elbahja  >  PHP Secure Login Library  >  account/index.php  >  Download  
File: account/index.php
Role: Application script
Content type: text/plain
Description: Application script
Class: PHP Secure Login Library
Login users and start sessions in a MySQL database
Author: By
Last change:
Date: 5 years ago
Size: 247 bytes
 

Contents

Class file image Download
<?php
define
('INC_FILES', true); // for security

require_once('config.php');
require_once(
SLS_DIR . '/global_sls.php');

if(
$sls->is_login() === true ) {

$sls->redirect(LOGIN_TO);
exit;

} else {

$sls->redirect(WEB_URL . '/login.php');
exit;

}

For more information send a message to info at phpclasses dot org.