-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.php
More file actions
executable file
·48 lines (37 loc) · 2.01 KB
/
config.sample.php
File metadata and controls
executable file
·48 lines (37 loc) · 2.01 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
<?php
// Hostname for your database server
$_['db_host'] = 'localhost';
// Username to connect to the database server with
$_['db_user'] = 'root';
// Password to connect to the database server with
$_['db_pass'] = 'november';
// The name of the database for Arcfolder
$_['db_name'] = 'arcfolder';
// The prefix to use
$_['table_prefix'] = 'af_';
// Location of the Arcfolder installation on the filesystem
$_['fs_root'] = '';
// Turns debug mode within Arcfolder on/off. Can be true or false.
$_['debug'] = false;
// Auth-specific config. This is independent from the application this is being paired with. In most cases the default values are suitable.
// reCAPTCHA
$auth['recaptcha']['enable'] = true;
$auth['recaptcha']['public_key'] = '';
$auth['recaptcha']['private_key'] = '';
// Password
$auth['validate_password']['min_length'] = '8'; // Min length. Numerical values only.
$auth['validate_password']['max_length'] = '64'; // Max length. Numerical values only.
/* From the character categories letters, numbers, and symbols, how many types have to be used when creating a password
Numerical values ranging from 1 to 3 inclusive only */
$auth['validate_password']['strength'] = '2';
// Username
$auth['validate_username']['min_length'] = '3'; // Min length. Numerical values only.
$auth['validate_username']['max_length'] = '20'; // Max length. Numerical values only.
$auth['validate_username']['regex'] = '/[^a-zA-Z0123456789\-_]/'; // Regex for valid characters.
// Password hashing
// $auth['hash']['preference']='SHA512'; // Uncomment to use. Comment to deactivate. Can be 'SHA512', 'SHA256', or 'BLOWFISH'
// default for SHA512 and SHA256 is 'rounds=5000'
// default for BLOWFISH is '10'
// refer to http://php.net/manual/en/function.crypt.php if you are unsure about this
$auth['hash']['cost'] = 'rounds=5000';
require_once $_['fs_root'].'init.php'; // No touchy