-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcredentials.php
More file actions
50 lines (41 loc) · 1.36 KB
/
credentials.php
File metadata and controls
50 lines (41 loc) · 1.36 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
<?php
if ($GLOBALS['CANARY_TOKEN'] == true) {
// User:hash pairs
$auth_users = array(
// admin:admin
'admin' => '$2y$10$.jacIgYkMGuyimTFW8BlBu/o.mVtDYPEuM.1Pdw7NKy0uNyTq8/qC'
);
// Readonly users
// e.g. array('users', 'guest', ...)
$readonly_users = array(
'user',
'admin'
);
// Has access to deletion of files
$admin_users = array(
'admin'
);
// IP-addresses, both ipv4 and ipv6
$ip_whitelist = array(
'127.0.0.1', // local ipv4
'::1', // local ipv6
);
$GLOBALS['ip_whitelist'] = $ip_whitelist;
// IP-addresses, both ipv4 and ipv6
$ip_blacklist = array(
'0.0.0.0', // non-routable meta ipv4
'::' // non-routable meta ipv6
);
// Root path for file manager
// use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder'
$root_path = "/var/www/secret";
// Name to show in the title of the website
$APP_NAME = "Public Drive";
// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'
// Will not working if $root_path will be outside of server document root
$root_url = 'index.php?p=';
} else {
?><b>Access denied.</b> <?php
throw Exception('Access denied.');
}
?>