PHP Classes

File: config/config.php

Recommend this page to a friend!
  Classes of Martin Latter   Noter   config/config.php   Download  
File: config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Noter
Create and manage notes shared between users
Author: By
Last change: Update of config/config.php
Date: 1 year ago
Size: 1,753 bytes
 

Contents

Class file image Download
<?php

/**
    * Configuration file for Noter.
    * @author Martin Latter
    * @link https://github.com/Tinram/noter.git
*/

declare(strict_types=1);

##################################################
## SQLITE DB
##################################################
define('CONFIG_DATABASE', 'db/noter.sqlite3');
define('CONFIG_TABLE', 'notes');
##################################################


##################################################
## APP
##################################################
define('CONFIG_NUM_NOTES_DISPLAYED', 10);
define('CONFIG_MAX_TITLE_LEN', 80);
define('CONFIG_MAX_BODY_LEN', 8192);
define('TIMEZONE', 'Europe/London');
define('CONFIG_APP_NAME', 'Noter');
##################################################


##################################################
## ENCODING
##################################################
define('CONFIG_UNICODE', true);
define('CONFIG_ENCODING', 'UTF-8');
##################################################


##################################################
## SESSION
##################################################
define('CONFIG_CACHE_EXPIRY', 30); # 30 mins
define('CONFIG_SESSION_TIMEOUT', 1800); # 30 mins
define('CONFIG_HACK_DELAY', 3600);
define('CONFIG_HASH', 'sha256');
##################################################


##################################################
## USERS
##################################################
define('CONFIG_USER1', 'martin');
define('CONFIG_USER1_PASS', 'fd74bdd901857b89f5737e5352a2a8a2d1f000aa4bed4aee47c95afaa37d0f99'); # SHA-256
define('CONFIG_USER2', 'alison');
define('CONFIG_USER2_PASS', 'fd74bdd901857b89f5737e5352a2a8a2d1f000aa4bed4aee47c95afaa37d0f99');
##################################################