-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp-default.php
More file actions
56 lines (48 loc) · 1.57 KB
/
app-default.php
File metadata and controls
56 lines (48 loc) · 1.57 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
49
50
51
52
53
54
55
56
<?php
//DOMAIN INFO
$SITE_NAME = 'my site';
$DOMAIN = 'mysite.com';
$DOMAIN_URL = 'http://mysite.com/';
date_default_timezone_set('America/New_York');
//ENCRYPTION KEYS
//MK = 64 char hexadecimal
$MK = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
//PATH KEYS (20 char hexadecimal)
$ACTIVATE_USER = 'xxxxxxxxxxxxxxxxxxxx';
$BAN_IP = 'xxxxxxxxxxxxxxxxxxxx';
$CHANGE_PASSWORD = 'xxxxxxxxxxxxxxxxxxxx';
//CONSTANTS
$PASSWORD_KEY_LIFETIME = 5; //in minutes
//DATABASE CREDENTIALS
$dbhost = "xxxx";
$dbname = "xxxx";
$dbuser = "xxxx";
$dbpass = "xxxx";
//REGEX VALIDATION
$VALID_EMAIL = "/.+@.+\..{1,254}/";
//DATABASE CONFIG
$database = array(
"users" => array(
"id" => "INT(25) UNSIGNED AUTO_INCREMENT PRIMARY KEY",
"role" => "TINYINT(1) DEFAULT 0",
"banned" => "TINYINT(1) DEFAULT 0",
"email" => "VARCHAR(254) NOT NULL",
"username" => "VARCHAR(70) NOT NULL",
"name" => "VARCHAR(70) NOT NULL",
"created" => "DATETIME NOT NULL",
"updated" => "DATETIME NOT NULL",
"password" => "VARCHAR(255) NOT NULL"
)
);
//EMAIL CONFIG
$EMAIL_HEADER =
'<body style="width:100%;max-width:600px;background-color:gainsboro;">
<div style="width:100%;height:100px;background-color:#00baff;">
<img style="margin:20px 0 20px 40px;" src="'.$DOMAIN_URL.'img/email-logo.png" />
</div>
<div style="width:80%;margin:0 auto;background-color:white;padding:20px;font-family:Verdana;border-bottom:10px solid gainsboro">
';
$EMAIL_FOOT = '</div></body></html>';
//STRINGS
$FAILURE = ' failed for an unknown reason, try again and contact customer service if the issue persists';
?>