Location: PHPKode > projects > Katropine DBmanager > dbmanager/bootstrap.php
<?php
include 'File/File.php';


$config_path = 'db2mysql2pro/db_config.php';
if(isset($_POST['newconfig'])){
	if($_POST['newconfig'] == "yes"){
		include 'File/Config.php';	
		$dbconfig["name"] = $_POST['name'];
		$dbconfig["host"] = $_POST['host'];
		$dbconfig["user"] = $_POST['user'];
		$dbconfig["pass"] = $_POST['password'];
		$msg = Config::__write($config_path, $dbconfig); // used in setconfig
	}
}
if(File::__file_exists($config_path)){
	
	include $config_path;
	include 'db2mysql2pro/Db_conncet.php';
	include 'db2mysql2pro/Mysql_DB_Manager.php';
	include 'db2mysql2pro/Mysql_Data_Handler.php';
	include 'db2mysql2pro/Sql_Export.php';
	include 'db2mysql2pro/Csv_Export.php';
	include 'db2mysql2pro/Xml_Export.php';
	include 'db2mysql2pro/Mysql_Export.php';
	include 'db2mysql2pro/Paging.php';
	include 'controllers/controller.php';
	
	// mysql conection
	$dbconn = new Db_Connect($dbconfig);
	$dbconnect_status = $dbconn->__connect();
	
	$link = $dbconn->__getLink();
	if($dbconnect_status == true){
		$db = new Mysql_DB($link, '');
	}
}
?>
Return current item: Katropine DBmanager