Location: PHPKode > scripts > Encaps Gallery > encaps-2.3.22s/common.ini.php
<?php 
session_start();
require_once(dirname(__FILE__)."/core/core.php");
require_once(dirname(__FILE__)."/config.ini.php");
//date_default_timezone_set('UTC'); 
$postget = $_POST?$_POST:$_GET;
//var_dump($postget);
$db = new DB_sql($config["db_host"],$config["db_user"],$config["db_pass"],$config["db_name"],0);
if($db->result !== true)
{
	?><a href="admin/catalog_db_install.php"><h1><?php echo $db->result?></h1></a><?php
	exit;
}
$catalog = new Catalog($config,$db,"catalog_categs","catalog_items");
$html = array();
$html['categ'] = $catalog->categs_get("WHERE id=".(int)@$postget["categ_id"]);
$html["categs"] = $catalog->categs_gets();        
$html["categs_parents"] = $catalog->categs->get_parents_($html["categ"]["id"]);
$html["categs_parents_ids"] = $catalog->categs->get_parents_ids($html["categs_parents"]);
?>
Return current item: Encaps Gallery