[Feed-collector-svn] SF.net SVN: feed-collector: [118] trunk/inc
Status: Beta
Brought to you by:
c167
From: <C1...@us...> - 2007-06-04 14:41:44
|
Revision: 118 http://feed-collector.svn.sourceforge.net/feed-collector/?rev=118&view=rev Author: C167 Date: 2007-06-04 07:41:40 -0700 (Mon, 04 Jun 2007) Log Message: ----------- some changes the third Modified Paths: -------------- trunk/inc/config.php Added Paths: ----------- trunk/inc/smarty.php Modified: trunk/inc/config.php =================================================================== --- trunk/inc/config.php 2007-06-04 14:26:40 UTC (rev 117) +++ trunk/inc/config.php 2007-06-04 14:41:40 UTC (rev 118) @@ -13,31 +13,31 @@ */ // Database-configuration -$db['type'] = "mysql"; // SQL_DB-Type -$db['host'] = "localhost"; // The hostname -$db['port'] = ""; // The Port. Nomally, the default port is right. -$db['user'] = "feed-collector"; // The User that has access to the DB -$db['passwd'] = "feed-collector"; // The password of this user +$db['type'] = "mysql"; // SQL_DB-Type +$db['host'] = "localhost"; // The hostname +$db['port'] = "3306"; // The Port. Nomally, the default port is right. +$db['user'] = "feed-collector"; // The User that has access to the DB +$db['passwd'] = "feed-collector"; // The password of this user $db['database'] = "feed-collector"; // The name of the database // Session-configuration -$session['time']['expire'] = 60 * 60 * 24; -$session['time']['idle'] = 60 * 60; -$session['container']['tablename'] = "sessiondata"; +$session['time']['expire'] = 60 * 60 * 24; +$session['time']['idle'] = 60 * 60; +$session['container']['tablename'] = "sessiondata"; $session['container']['autooptimisation_allowed'] = true; // Update-configuration -$update['enabled'] = true; +$update['enabled'] = true; $update['difference'] = 1800; -$update['loglevel'] = PEAR_LOG_NOTICE; +$update['loglevel'] = PEAR_LOG_NOTICE; // Smarty settings define('SMARTY_DIR', '/usr/share/php/smarty/libs/'); // these folders should be outside the document root $sm['template_dir'] = "./styles/$style/"; -$sm['compile_dir'] = "./templates_c/"; +$sm['compile_dir'] = "./smarty/emplates_c/"; $sm['config_dir'] = "./inc/"; -$sm['cache_dir'] = "./cache/"; +$sm['cache_dir'] = "./smarty/cache/"; // Valid pages $validPages = array ( @@ -63,7 +63,7 @@ */ // Database-configuration -$db['dsn'] = $db['type'] . "://" . $db['user'] . ":" . $db['passwd'] . "@" . $db['host'] . "/" . $db['database']; +$db['dsn'] = sprintf("%s://%s:%s@%s:%d/%s", $db['type'], $db['user'], $db['passwd'], $db['host'], $db['port'], $db['database']); // Session-configuration if (($db['type'] == "mysql" or $db['type'] == "postgresql") and $session['container']['autooptimisation_allowed']) { Added: trunk/inc/smarty.php =================================================================== --- trunk/inc/smarty.php (rev 0) +++ trunk/inc/smarty.php 2007-06-04 14:41:40 UTC (rev 118) @@ -0,0 +1,17 @@ +<?php +/* + * Created on 04.06.2007 + * This file contains the smarty-options + * @since 115 - 04.06.2007 + * @author C167 <c1...@us...> + * @package feed-collector + */ + + +require_once "smarty/libs/Smarty.class.php"; +$smarty = new Smarty(); + +$smarty->template_dir = $sm['template_dir']; +$smarty->compile_dir = $sm['compile_dir']; +$smarty->config_dir = $sm['config_dir']; +$smarty->cache_dir = $sm['cache_dir']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |