2 /* vim: set expandtab sw=4 ts=4 sts=4: */
6 * @package PhpMyAdmin-Designer
12 require_once './libraries/common.inc.php';
13 require_once 'libraries/pmd_common.php';
15 $cfgRelation = PMA_getRelationsParam();
17 if (! $cfgRelation['pdfwork']) {
22 * Sets globals from $_POST
28 foreach ($post_params as $one_post_param) {
29 if (isset($_POST[$one_post_param])) {
30 $GLOBALS[$one_post_param] = $_POST[$one_post_param];
34 PMA_saveTablePositions($_REQUEST['selected_page']);
41 function PMD_errorSave()
43 global $die_save_pos; // if this file included
44 if (! empty($die_save_pos)) {
45 header("Content-Type: text/xml; charset=utf-8");
46 header("Cache-Control: no-cache");
48 '<root act="save_pos" return="'
49 . __('Error saving coordinates for Designer.')
55 if (! empty($die_save_pos)) {
56 header("Content-Type: text/xml; charset=utf-8");
57 header("Cache-Control: no-cache");
58 echo '<root act="save_pos" return="'
59 . __('Modifications have been saved') . '"></root>';