Редакция 31 | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 31 | Редакция 40 | ||
---|---|---|---|
Строка 1... | Строка 1... | ||
1 | <?php
|
1 | <?php
|
2 | 2 | ||
3 | /**
|
- | |
4 | * Project: Ant: sources.list generator
|
- | |
5 | * File: init.php
|
- | |
6 | *
|
- | |
7 | * This library is free software; you can redistribute it and/or
|
- | |
8 | * modify it under the terms of the GNU Lesser General Public
|
- | |
9 | * License as published by the Free Software Foundation; either
|
- | |
10 | * version 2.1 of the License, or (at your option) any later version.
|
- | |
11 | *
|
- | |
12 | * This library is distributed in the hope that it will be useful,
|
- | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
- | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
- | |
15 | * Lesser General Public License for more details.
|
- | |
16 | *
|
- | |
17 | * You should have received a copy of the GNU Lesser General Public
|
- | |
18 | * License along with this library; if not, write to the Free Software
|
- | |
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
- | |
20 | *
|
- | |
21 | */
|
- | |
22 | - | ||
23 | - | ||
24 | require_once "DB.php"; |
3 | require_once "DB.php"; |
25 | require_once "config.inc.php"; |
4 | require_once "config.inc.php"; |
26 | require "Smarty.class.php"; |
5 | require "Smarty.class.php"; |
- | 6 | require "core.php"; |
|
27 | 7 | ||
28 | $dsn = "mysql://".$DBuser.":".$DBpass."@".$DBhost."/".$DBname; |
8 | $dsn = "mysql://".$DBuser.":".$DBpass."@".$DBhost."/".$DBname; |
29 | $options = array( |
9 | $options = array( |
30 | 'debug' => 2, |
10 | 'debug' => 2, |
31 | 'portability' => DB_PORTABILITY_ALL, |
11 | 'portability' => DB_PORTABILITY_ALL, |
Строка 36... | Строка 16... | ||
36 | die($db->getMessage()); |
16 | die($db->getMessage()); |
37 | }
|
17 | }
|
38 | 18 | ||
39 | $query =& $db->query("SET NAMES utf8"); |
19 | $query =& $db->query("SET NAMES utf8"); |
40 | 20 | ||
- | 21 | $core = new Core; |
|
- | 22 | ||
41 | $smarty = new Smarty; |
23 | $smarty = new Smarty; |
42 | $smarty->compile_check = true; |
24 | $smarty->compile_check = true; |
43 | 25 | ||
44 | ?>
|
26 | ?>
|