-
Notifications
You must be signed in to change notification settings - Fork 9
/
config-sample.inc.php
111 lines (98 loc) · 3.66 KB
/
config-sample.inc.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/* IMPORTANT - SET THIS TO TRUE IF YOU ARE EDITING THIS FILE
* INSTEAD OF USING THE INSTALLER
*/
$manual_install = FALSE;
/*** MANUAL INSTALLATION INSTRUCTIONS: ********************************
*
* 1. Edit this config file to suit your needs
* 2. If not writable by PHP, CHMOD cache/ to 777
* 3. If not writable by PHP, CHMOD persist.inc.php, config.inc.php to 666
* 4. Log in using the username 'Admin' and no password
* 5. Go to Account Settings and set a password
*
*** ABOUT DIRECT MODE: ***********************************************
*
* Direct mode is recommended only for users running PHP under the
* same user as their FTP server (which is NOT the case under many
* hosting services), or users with no FTP server.
*
* To install using direct mode, you'll need to install manually
* (remember to set $manual_install above to TRUE, and $write_method
* to 'direct'). In direct mode, you'll need to either CHMOD any
* folders you want Filecharger to manage to 777, or you'll need to
* run PHP as a user with write permissions to all folders you want
* Filecharger to access.
*
**********************************************************************/
/* The full URL of the directory File Manager is in.
* Example: $fmurl = "http://www.example.com/fileman/";
*/
$fmurl = 'http://example.com/fileman/';
/* The path from PHP root to www.yoursite.com. Should end with "/"
* Should start with "/" in everything but Windows. In Windows, should start
* with "C:/" or "D:/" or something like that.
* Example: $prepath = "/home/example/public_html/";
*/
$prepath = '/home/example/public_html/';
/* The domain of your site. Should start with "http://" or something like that
* and end with "/"
* Example: $preurl = "http://www.example.com/";
*/
$preurl = 'http://example.com/';
/* The subdirectory the filemanager is allowed to access.
* Leave blank to allow the whole site to be accessible
* Example: $presub = "subdir/othersubdir/";
*/
$presub = NULL;
/* Whether people should see the login screen or enter Fileman as a
* guest when not logged in.
* Note: Only has effect when guest account is enabled
* Example: $loginfirst = TRUE;
*/
$loginfirst = TRUE;
/* Whether or not the user has permission to use Fileman
* Example: $isauth = is_admin();
* Or: $isauth = TRUE;
* Unless you do not want to use File Manager's built-in user
* management, this should be set to TRUE.
*/
$isauth = NULL;
/* Whether or not you allow PHP.
* Notice: PHP allows you to do anything the account running PHP can do,
* so this gives users full control over your website.
* Leave FALSE unless you're absolutely sure you know what you're doing.
*/
$allow_php = FALSE;
/* Is the jw_flv_player addon installed?
* Controls viewing FLV videos in-browser.
* (It should be installed by default)
*/
$ext_jw_flv = NULL;
/* Is the CodeMirror addon installed?
* Allows syntax highlighting.
*/
$ext_codemirror = NULL;
/* Is the PclZip addon installed?
* Controls zipping/unzipping functionality.
* (It should be installed by default)
*/
$ext_pclzip = NULL;
/* How files are edited. Can be "direct" or "ftp" or "fullftp".
* direct - Read and write locally on the server.
* ftp - Read locally from the server, write using FTP.
* Default. Most hosts don't allow direct PHP
* writing.
* fullftp - Read and write using FTP. This diminishes many
* features and slows down File Manager significantly.
* Should be used if editing files on a remote server.
*/
$write_method = 'ftp';
/* FTP options
*/
$ftp_server = 'localhost';
$ftp_port = NULL;
$ftp_username = 'username';
$ftp_password = 'password';
$ftp_prepath = 'public_html/';
$ftp_ftps = false;