-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
44 lines (42 loc) · 1.15 KB
/
config.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
<?php
$CONFIG = array();
$CONFIG['development'] = array(
'persistentManager' => 'UrlShortener\PersistentManager',
'loginManager' => 'UrlShortener\SimpleLoginManager',
'shortenerConnector'=> 'UrlShortener\BitlyConnector',
'connection' => array(
'server' => "localhost",
'user' => "root",
'password' => "",
'database' => "url_shortener",
'table' => 'url_shorten'
),
'shortenerConnectorConfig' => array(
'url' => 'http://bit.ly/',
'login' => 'test',
'apikey' => 'R_xxx'
),
'shortenUrl' => 'http://example.com/',
'users' => array(
"admin" => '$2a$08$axn4BPiiWmNCg.iqusznxOs.RUSejWqvlBA364cFUOYGUdzq/vGeS'//admin:admin
)
);
$CONFIG['production'] = array(
'persistentManager' => 'UrlShortener\PersistentManager',
'loginManager' => 'UrlShortener\CzechdesignLoginManager',
'shortenerConnector'=> 'UrlShortener\BitlyConnector',
'connection' => array(
'server' => 'localhost',
'user' => 'root',
'password' => '',
'database' => 'url_shortener',
'table' => 'url_shorten'
),
'shortenerConnectorConfig' => array(
'url' => 'http://bit.ly/',
'login' => 'test',
'apikey' => 'R_xxx'
),
'shortenUrl' => 'http://example.com/'
);
?>