<?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);
?>
|