-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConfig.php
52 lines (45 loc) · 1.71 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
45
46
47
48
49
50
51
52
<?php
/**
* Habrahabr.ru Habrometr.
* Copyright (C) 2009 Leontyev Valera
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* This config script defines secret values (username, pass, db name)
* for DB connection.
*
* All the values was excluded from svn repository. I've put them into
* simple php-file ./config.local.php as constants. If you like to define your
* values right here, you can do it. I this case delete first three
* lines of code in this file and replace constants in bottom with real
* values. But, be carefully with svn updates in this way.
*/
if (!file_exists(dirname(__FILE__) . '/config.local.php'))
{
die('Read some comments in Config.php!');
}
require(dirname(__FILE__) . '/config.local.php');
class Config
{
const DEBUG_MODE = DEBUG_MODE;
const LOG_LEVEL = LOG_LEVEL;
const DB_USER = DB_USER;
const DB_PASS = DB_PASS;
const DB_NAME = DB_NAME;
const RE_CAPTCHA_KEY_PRIVATE = RE_CAPTCHA_KEY_PRIVATE;
const RE_CAPTCHA_KEY_PUBLIC = RE_CAPTCHA_KEY_PUBLIC;
const SERVICE_URL = SERVICE_URL;
const SERVICE_NAME = 'Хаброметр';
}