2 /* vim: set expandtab sw=4 ts=4 sts=4: */
9 * Gets some core libraries
11 require_once './libraries/common.inc.php';
12 require './libraries/StorageEngine.class.php';
15 * Include settings for relation stuff
16 * get all variables needed for exporting relational schema
19 require_once './libraries/relation.lib.php';
20 $cfgRelation = PMA_getRelationsParam();
22 require_once './libraries/transformations.lib.php';
23 require_once './libraries/Index.class.php';
24 require_once "./libraries/schema/Export_Relation_Schema.class.php";
27 * get all the export options and verify
28 * call and include the appropriate Schema Class depending on $export_type
31 global $db, $export_type;
32 if (!isset($export_type) ||
!preg_match('/^[a-zA-Z]+$/', $export_type)) {
35 PMA_DBI_select_db($db);
37 $path = PMA_securePath(ucfirst($export_type));
38 if (!file_exists('./libraries/schema/' . $path . '_Relation_Schema.class.php')) {
39 PMA_Export_Relation_Schema
::dieSchema($_POST['chpage'], $export_type, __('File doesn\'t exist'));
41 require "./libraries/schema/".$path."_Relation_Schema.class.php";
42 $obj_schema = eval("new PMA_".$path."_Relation_Schema();");