All pastes #962541 Raw Edit

index

public text v1 · immutable
#962541 ·published 2008-03-29 20:48 UTC
rendered paste body
<?php
session_start();
require_once('constants.php');
//$db = mysql_connect(_SQL_HOST,_SQL_USER,_SQL_PASS);
//@mysql_select_db(_SQL_DB, $db) or die ("Error selecting database");

/**
 * Init Libraries
 */
$handle = opendir(_LIBDIR);
while($data = readdir($handle))
{
	if($data != '.' && $data != '..')
		include_once(_LIBDIR.$data);
}
closedir($handle);

$core = new Core();
$user = new User();

if($_POST)
	ob_start();
	
if(!array_key_exists('nohead',$_GET))
	$core->outputHead();
if(!array_key_exists('noskin',$_GET))
	$core->outputSkin();
else
	$core->outputModule($core->module, $_GET['edit']);

//$error->save();
	
if($_POST)
{
	ob_clean();
	g_redirect($_SERVER['HTTP_REFERER']);
	exit;
}
?>