Translation update done using Pootle.
[phpmyadmin/dkf.git] / schema_export.php
blob9f74feaaae7f5c95a7642b81da53a94b831f2571
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 /**
10 * Gets some core libraries
12 require_once './libraries/common.inc.php';
13 require './libraries/StorageEngine.class.php';
15 /**
16 * Include settings for relation stuff
17 * get all variables needed for exporting relational schema
18 * in $cfgRelation
20 require_once './libraries/relation.lib.php';
21 $cfgRelation = PMA_getRelationsParam();
23 require_once './libraries/transformations.lib.php';
24 require_once './libraries/Index.class.php';
26 /**
27 * This is to avoid "Command out of sync" errors. Before switching this to
28 * a value of 0 (for MYSQLI_USE_RESULT), please check the logic
29 * to free results wherever needed.
31 $query_default_option = PMA_DBI_QUERY_STORE;
33 include_once("./libraries/schema/Export_Relation_Schema.class.php");
35 /**
36 * get all the export options and verify
37 * call and include the appropriate Schema Class depending on $export_type
38 * default is PDF
40 global $db,$export_type;
41 $export_type = isset($export_type) ? $export_type : 'pdf';
42 PMA_DBI_select_db($db);
44 $path = PMA_securePath(ucfirst($export_type));
45 if (!file_exists('./libraries/schema/' . $path . '_Relation_Schema.class.php')) {
46 PMA_Export_Relation_Schema::dieSchema($_POST['chpage'],$export_type,__('File doesn\'t exist'));
48 include("./libraries/schema/".$path."_Relation_Schema.class.php");
49 $obj_schema = eval("new PMA_".$path."_Relation_Schema();");