Location: PHPKode > scripts > EncapsGallery > encapsgallery/common.ini.php
<?php 
session_start();
require_once(dirname(__FILE__)."/core/core.php");
require_once(dirname(__FILE__)."/config.ini.php");
$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["categ"] = $catalog->categs_get();
$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: EncapsGallery