Esempio n. 1
0
along with Bittytorrent.  If not, see <http://www.gnu.org/licenses/>. 
*/
require $path . '/libs/Smarty.class.php';
require $path . '/libs/db.php';
require $path . '/libs/database/ez_sql_core.php';
require $path . '/libs/database/ez_sql_mysql.php';
require $path . "/libs/categories.class.php";
require $path . '/libs/default.class.php';
require $path . '/libs/SmartyPaginate.class.php';
require $path . '/libs/Hooks.class.php';
$db = new ezSQL_mysql($dbuser, $dbpass, $dbname, $dbhost);
$smarty = new Smarty();
$hook = new phphooks();
$startUp = new Bittytorrent();
$conf = $startUp->getConfigs();
$startUp->I18n();
require $path . '/libs/lang/lang_' . $_SESSION['strLangue'] . '.php';
// Smarty config
$smarty->addPluginsDir($path . '/libs/plugins/');
// $smarty->template_dir = $path.'/themes/v2/';
$smarty->template_dir = $path . '/themes/' . $conf['theme'] . '/';
$smarty->compile_dir = $path . '/libs/cache/compile_tpl/';
$smarty->cache_dir = $path . '/libs/cache/';
$smarty->debugging = false;
//$smarty->caching = $conf['timecache'];
$smarty->caching = false;
$smarty->force_compile = false;
$smarty->cache_lifetime = $conf['timecache'];
$smarty->config_dir = $path . '/libs/lang/';
$smarty->assign("lang", $lang);
$userId = $startUp->isLogged();