PHP Classes
elePHPant
Icontem

File: config.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  PHP Mnemonic Secret Path Login  >  config.php  >  Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: config file
Class: PHP Mnemonic Secret Path Login
Detect human users telling to click on page places
Author: By
Last change:
Date: 1 year ago
Size: 833 bytes
 

Contents

Class file image Download
<?php
//DATABASE DETAILS
define('hostname','localhost',true);
define('username','root',true);
define('password','',true);
define('database','clicktoc',true);
define('salt','CliCKtoC',true);


//DATABASE CONNECTION


try
{
   
$bdd=new PDO('mysql:host='.hostname.';dbname='.database,username,password,array(PDO::ATTR_ERRMODE=> PDO::ERRMODE_EXCEPTION));
}
catch(
Exception $e)
{
    die(
'Erreur:'.$e->getMessage());
}

//DATABASE CONNECTION CODE END

//ctc complexity details and upload path
define('helpuser',false,true);
define('complexity',50,true);//max 100 it is sufficient and allows pow(100,100) cases to check...
define('ctc_pict_path','users-images',true);//Default ctc upload path if changed here must be also changed in the database data...
if(!file_exists(ctc_pict_path)) mkdir(ctc_pict_path,0777);
?>