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 * get all variables needed for exporting relational schema
18 $cfgRelation = PMA_getRelationsParam();
20 require_once 'libraries/transformations.lib.php';
21 require_once 'libraries/Index.class.php';
22 require_once 'libraries/schema/Export_Relation_Schema.class.php';
25 * get all the export options and verify
26 * call and include the appropriate Schema Class depending on $export_type
31 'all_tables_same_width',
43 'show_table_dimension',
46 foreach ($post_params as $one_post_param) {
47 if (isset($_POST[$one_post_param])) {
48 $GLOBALS[$one_post_param] = $_POST[$one_post_param];
52 if (! isset($export_type) ||
! preg_match('/^[a-zA-Z]+$/', $export_type)) {
55 PMA_DBI_select_db($db);
57 $path = PMA_securePath(ucfirst($export_type));
58 if (!file_exists('libraries/schema/' . $path . '_Relation_Schema.class.php')) {
59 PMA_Export_Relation_Schema
::dieSchema(
62 __('File doesn\'t exist')
65 require "libraries/schema/".$path.'_Relation_Schema.class.php';
66 $obj_schema = eval("new PMA_".$path."_Relation_Schema();");