-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.php
executable file
·76 lines (61 loc) · 3.2 KB
/
config.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* PHP Phone Book
* @Version: 1.0
* @Author: ramin moradi . github.com/ramoures
* @Email: ramoures@gmail.com
* @License: MIT
*/
//MySQL Information
define("DB_HOST","localhost");
define("DB_USER","root");
define("DB_PASSWORD","");
define("DB_NAME","php_phone_book");
define("TABLE_PREFIX","phbk_");
//Project Setting
define("PROJECT_URL","https://localhost/PHP-Phone-Book/");
define('SESSION_NAME',"Phone-Book");
define('PHONE_NUMBER_PATTERN','[0-9]{11}'); #Ex.09121234567
// Captcha
#Please get your api keys from:
# Cloudflare: https://developers.cloudflare.com/turnstile/get-started/
// or
# Google: https://www.google.com/recaptcha/
// required google reCaptcha type: v2 Checkbox
define('CAPTCHA_API_URL','https://challenges.cloudflare.com/turnstile/v0/siteverify');
#Google recaptcha api url = https://www.google.com/recaptcha/api/siteverify
define('CAPTCHA_JS_URL','https://challenges.cloudflare.com/turnstile/v0/api.js');
#Google recaptcha js url = https://www.google.com/recaptcha/api.js
define('CAPTCHA_SITE_KEY','1x00000000000000000000AA');
define('CAPTCHA_SECRET_KEY','1x0000000000000000000000000000000AA');
// Default Directories
define("ADMIN_DIR_NAME","admin2023");
define("FRONTEND_THEME_DIR_NAME", "default");
define("BACKEND_THEME_DIR_NAME", "default");
define('AVATARS_DIR_NAME',"avatars");
define('IMAGES_DIR_NAME','images');
// Password validation
define('PASSWORD_PATTERN','(?=(.*[a-z]){1,})(?=(.*[A-Z]){1,})(?=(.*[0-9]){2,})(?=(.*[!@#$%^&*_=+\-]){2,}).{8,16}');
# 8-16 min-max character, [a-z]=(1 min char.), [A-Z]=(1 min char.), [0-9]=(2 min number.), [!@#$%^&*_=+\-]=(2 min char.)
# If you changed the pattern: Please find #newPassword keyup function, in /view/assets/js/backend.js (UI validation)
// define('PASSWORD_PATTERN',false); # Uncomment this define and delete previous define, to disable strong password.
// Upload
define('ALLOW_FILES_TYPE', array('image/jpg'=>'jpg','image/jpeg'=>'jpeg','image/png'=>'png'));
# Mime types list: https://www.iana.org/assignments/media-types/media-types.xhtml
define('MAX_FILE_SIZE','3000000'); # 3 Megabytes = 3,000,000 Byte
// Date and Time
define('TIMEZONE_TO_DISPLAY','UTC'); # Set ASIA/TEHRAN for Tehran timezone
# List of Supported Timezones : https://www.php.net/manual/en/timezones.php
define('DATE_FORMAT_TO_DISPLAY',"Y-m-d");
define('TIME_FORMAT_TO_DISPLAY',"H:i:s");
define('JALALI_CALENDAR',false); # true or false
// Security
define("DEBUG",false); # true or false
define('SECRET_KEY','D76B2B6FA02385F2B42085D3963E6A'); #important: please change this value for your project.
// Backend Pages Setting
define("B_DEFAULT_LANG",'en'); # cookie set before
define("B_LIMIT",'10'); # Limit post per pages
// Frontend Pages Setting
define("DEFAULT_LANG",'en'); # cookie set before
define("LIMIT",'10'); # Limit post per pages
?>