Location: PHPKode > scripts > EncapsGallery > encapsgallery/admin/common.ini.php
<?php 
session_start(); 
ini_set("safe_mode","Off");
ini_set("memory_limit","256M");
ini_set("upload_max_filesize","8M");
ini_set("max_execution_time",0);
set_time_limit(0);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); 
header("Cache-Control: no-store, no-cache, must-revalidate"); 
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); 

require_once(dirname(__FILE__)."/catalog_auth.php");
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"],1);
if($db->result !== true 
&& !preg_match("#catalog_db_install.php#",$_SERVER["SCRIPT_NAME"])
//&& !preg_match("#catalog_cfg.php#",$_SERVER["SCRIPT_NAME"])
)
{
	?><a href="catalog_db_install.php"><?php echo $db->result?></a><?php
	exit;
}
$catalog = new Catalog($config,$db,"catalog_categs","catalog_items",$admin=true,$_FILES);
$catalog->think();
?>
Return current item: EncapsGallery