Хранилища Subversion ant

Редакция

Редакция 2 | Авторство | Сравнить с предыдущей | Последнее изменение | Открыть журнал | Скачать | RSS

<?php

require_once "DB.php";
require_once "config.inc.php";
require "Smarty.class.php";

$dsn = "mysql://".$DBuser.":".$DBpass."@".$DBhost."/".$DBname;
$options = array(
        'debug'         => 2,
        'portability'   => DB_PORTABILITY_ALL,
);

$db =& DB::connect($dsn,$options);
if (PEAR::isError($db)) {
        die($db->getMessage());
}

$smarty = new Smarty;
$smarty->compile_check = true;

?>