PHP Classes

File: main/config.php

Recommend this page to a friend!
  Classes of Zamani   PHP Login System with Email Verification   main/config.php   Download  
File: main/config.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Login System with Email Verification
Register and login users activated using email
Author: By
Last change:
Date: 2 years ago
Size: 815 bytes
 

Contents

Class file image Download
<?php
session_start
();
define('conString', 'mysql:host=localhost;dbname=login');
define('dbUser', 'root');
define('dbPass', 'root');


define('userfile', 'user.php');
define('loginfile', 'login.php');
define('activatefile', 'activate.php');
define('registerfile', 'register.php');


//template files
define('indexHead', 'inc/indexhead.htm');
define('indexTop', 'inc/indextop.htm');
define('loginForm', 'inc/loginform.php');
define('activationForm', 'inc/activationform.php');
define('indexMiddle', 'inc/indexmiddle.htm');
define('registerForm', 'inc/registerform.php');
define('indexFooter', 'inc/indexfooter.htm');
define('userPage', 'inc/userpage.php');

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

$user = new User();
$user->dbConnect(conString, dbUser, dbPass);