-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathconfig.local.php
More file actions
73 lines (64 loc) · 1.1 KB
/
config.local.php
File metadata and controls
73 lines (64 loc) · 1.1 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
// Local configuration overrides
$PASSWORD_PROTECTION_ENABLED = false;
$HOME_URL = '..';
$PAGE_TITLE = "Python for Everybody Code Samples";
// File extensions to hide from the listing
$HIDDEN_EXTENSIONS = array(
// PHP and web files
'.php',
'.php3',
'.php4',
'.php5',
'.php7',
'.php8',
'.phtml',
'.phar',
'.inc',
'.htaccess',
'.gitignore',
'.config.php',
// Scripting languages
'.pl',
'.rb',
'.sh',
'.bash',
// Executables and binaries
'.exe',
'.com',
'.bat',
'.cmd',
'.vbs',
'.ps1',
'.jar',
'.war',
'.ear',
'.class',
'.so',
'.dll',
'.dylib',
'.bin',
'.msi',
'.app',
'.deb',
'.rpm',
'.pkg',
'.apk',
'.ipa',
// Temporary and system files
'.swp',
'.swo',
'.tmp',
'.temp',
'.bak',
'.backup',
'.orig',
'.rej',
'.log',
'.cache',
'.DS_Store'
);
// Include local configuration overrides if file exists
if (file_exists(__DIR__ . '/config.local.php')) {
require_once __DIR__ . '/config.local.php';
}