All pastes #826266 Raw Edit

Someone

public php v1 · immutable
#826266 ·published 2007-12-21 02:35 UTC
rendered paste body
<?phpsession_start();include('./config.php');if(!(isset($db)) || !(is_array($db))){	die("A valid database was not instantiated");}$db_conn = mysql_connect($db['host'], $db['user'], $db['pass'])	or die("Database not available due to: " . mysql_error());mysql_select_db($db['name'])	or die("Database not selectable due to: " . mysql_error());unset($db);global $template;require_once('./includes/template/Smarty.class.php');$template = new Smarty();$template->template_dir = './templates';$template->compile_dir = './templates_c';$template->cache_dir = './cache';$template->config_dir = './configs';/* Temp */define('IN_RSS', '1');if(defined('IN_RSS')){	require_once('./includes/rss/rss_fetch.inc');}require_once('./includes/profile.php');$profile = new user;require_once('./includes/feeds.php');$feeds = new feeds();if(defined('TESTING')){	if(!$profile->is_auth())	{		if($_SERVER["REQUEST_URI"] != ("/index.php" || "/profile.php"))		{			header('location: /index.php');		}	}}?>