-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-sample.php
More file actions
41 lines (38 loc) · 1.13 KB
/
config-sample.php
File metadata and controls
41 lines (38 loc) · 1.13 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
<?php
/**
* The main config.
*
* NOTE: Make sure this file is not accessible in your public_html directory and only readable
* by the user that executes the script (e.g. www-data or root).
*/
/**
* Usernames and passwords.
*
* An example of usage would be https://yoursite.com/?pass=ok-password
*
* This is a simple option for storing creds. Another option would be to store the info below in a
* database.
*/
$config['users'] = array(
array(
'username' => 'edward',
'password' => 'kind-of-good-password',
'privs' => 'user',
'custom1' => 'You can add any other custom keys/pairs for users.'
),
array(
'username' => 'gottfrid',
'password' => 'somewhat-strong@r-pazzword',
'privs' => 'admin',
'custom1' => 'Diff value for this guy.'
),
);
/**
* The HTTP method to listen for when someone attempts to authenticate.
*
* GET is insecure since the password will appears in server logs. Use GET only for things that
* do not need to be truly secure.
*
* POST is the secure way to do things but a little more complicated.
*/
$config['method'] = 'GET';