diff --git a/handle_relation_schema.php b/handle_relation_schema.php new file mode 100644 index 000000000..043bef28c --- /dev/null +++ b/handle_relation_schema.php @@ -0,0 +1,48 @@ +stringCommands; diff --git a/libraries/schema/Svg_Relation_Schema.class.php b/libraries/schema/Svg_Relation_Schema.class.php index 397750f62..a6b809531 100644 --- a/libraries/schema/Svg_Relation_Schema.class.php +++ b/libraries/schema/Svg_Relation_Schema.class.php @@ -172,7 +172,7 @@ class PMA_SVG extends XMLWriter */ function showOutput($fileName) { - ob_get_clean(); + //ob_get_clean(); header('Content-type: image/svg+xml'); header('Content-Disposition: attachment; filename="'.$fileName.'.svg"'); $output = $this->flush(); @@ -349,7 +349,7 @@ class Table_Stats * @global array The relations settings * @global string The current db name * @access private - * @see PMA_PDF, Table_Stats::Table_Stats_setWidth, + * @see PMA_SVG, Table_Stats::Table_Stats_setWidth, Table_Stats::Table_Stats_setHeight */ function __construct($tableName, $font, $fontSize, $pageNumber, &$same_wide_width, $showKeys = false, $showInfo = false) diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php index 1d89ff628..6e41e782d 100644 --- a/libraries/schema/User_Schema.class.php +++ b/libraries/schema/User_Schema.class.php @@ -65,7 +65,7 @@ class PMA_User_Schema case 'edcoord': $this->choosenPage = $_POST['chpage']; $this->c_table_rows = $_POST['c_table_rows']; - $this->_editCoordinates($db, $cfgRelation); + $this->_editCoordinates($db, $cfgRelation,$query_default_option); break; case 'deleteCrap': $this->_deleteTableRows($delrow,$cfgRelation,$db,$this->choosenPage); @@ -341,7 +341,7 @@ class PMA_User_Schema { global $cfg,$pmaThemeImage,$db,$test_rs,$chpage; ?> -
+
c_table_rows; $i++) { $arrvalue = 'c_table_' . $i; diff --git a/libraries/schema/Visio_Relation_Schema.class.php b/libraries/schema/Visio_Relation_Schema.class.php index 7ced40047..e41cdcc4c 100644 --- a/libraries/schema/Visio_Relation_Schema.class.php +++ b/libraries/schema/Visio_Relation_Schema.class.php @@ -157,9 +157,9 @@ class PMA_VISIO extends XMLWriter */ function showOutput($fileName) { - if(ob_get_clean()){ - ob_end_clean(); - } + //if(ob_get_clean()){ + //ob_end_clean(); + //} //header('Content-type: text/xml'); header('Content-Disposition: attachment; filename="'.$fileName.'.vdx"'); $output = $this->flush(); @@ -535,7 +535,6 @@ class PMA_Visio_Relation_Schema extends PMA_Export_Relation_Schema if ($seen_a_relation) { $this->_drawRelations($this->showColor); } - $visio->endVisioDoc(); $visio->showOutput($db.'-'.$this->pageNumber); exit(); @@ -543,7 +542,6 @@ class PMA_Visio_Relation_Schema extends PMA_Export_Relation_Schema print_r(get_object_vars($visio)); print_r(get_object_vars($this)); print ''; - } /** diff --git a/libraries/tcpdf/tcpdf.php b/libraries/tcpdf/tcpdf.php index 98ab40445..b3881b31e 100644 --- a/libraries/tcpdf/tcpdf.php +++ b/libraries/tcpdf/tcpdf.php @@ -2977,11 +2977,11 @@ if(!class_exists('TCPDF', false)) { switch($dest) { case 'I': { //Send to standard output - //if(ob_get_contents()) { - // $this->Error('Some data has already been output, can\'t send PDF file'); - //} - ob_end_clean(); - ob_start(); + if(ob_get_contents()) { + $this->Error('Some data has already been output, can\'t send PDF file'); + } + //ob_end_clean(); + //ob_start(); if(php_sapi_name()!='cli') { //We send to a browser header('Content-Type: application/pdf'); @@ -2996,11 +2996,11 @@ if(!class_exists('TCPDF', false)) { } case 'D': { //Download file - // if(ob_get_contents()) { - // $this->Error(ob_get_contents().'Some data has already been output, can\'t send PDF file'); - //} - ob_end_clean(); - ob_start(); + if(ob_get_contents()) { + $this->Error(ob_get_contents().'Some data has already been output, can\'t send PDF file'); + } + //ob_end_clean(); + //ob_start(); if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) { header('Content-Type: application/force-download'); } else {