-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-default.php
36 lines (29 loc) · 1.74 KB
/
config-default.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/* Database */
// fields handled in the data base
$fields = array(
// "name" and "firstname" are needed, for the rest it's up to you
"name" => array ( "input" => "text", "label" => "Nom"),
"firstname" => array( "input" => "text", "label" => "Prénom"),
// your fields from here ----------------------------------------
"phone" => array( "input" => "text", "label" => "Téléphone"),
"email" => array( "input" => "email", "label" => "Adresse email"),
"address" => array( "input" => "text", "label" => "Adresse postale"),
// if you want to add extra properties, add other field as array
'bday' => array('input' => 'date', 'label' => 'Date de naissance', 'other' => array('pattern' => '\d{4}-\d{2}-\d{2}', 'required' => 'required')),
'comments' => array('input' => 'textarea', 'label' => 'Informations diverses')
);
if (!defined('DB_PATH')) {define('DB_PATH', './database/contacts.db');} // SQLite data base file path
if (!defined('TABLE_NAME')) {define('TABLE_NAME',"contacts");} // name of the table in the data base
if (!defined('KEY_SALT')) {define('KEY_SALT','./seasoning/'.'.FKj8D98FUF8S0978Sdfdpodf');} // name of the file for salt
$bDispLoginLink = true ; // shall we display a link to login page at the bottom of the page?
/* Site identity */
$siteTitle = "Titre trombinoscope";
$siteSubtitle = "Sous-titre pour mon trombinoscope";
$siteLogo = "i/logo-lr.jpg"; // path to the logo image. Remove it if you don't want to display a logo
/* according to your place */
setlocale(LC_ALL, 'fr_FR.UTF-8');
/* Pagination : number of displayed contacts per page */
if (!defined('NB_PER_PAGE')) {define("NB_PER_PAGE", 8);}
/* User default anonymous avatar */
if (!defined('DEFAULT_PIC')) {define('DEFAULT_PIC','avatars/user.png');}