Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-04-09 10:58:35 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-04-09 10:58:35 +0300
commit214e54ceec5210a7f881ae987d05431bbf6d3ddd (patch)
treeb691a7b99c201b71212274fe5c7817c32260a949 /js/get_image.js.php
parentc28dbb5970f5fc3b1b429ec00c46d5a8963e84cf (diff)
Output buffering for dynamic scripts
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/get_image.js.php')
-rw-r--r--js/get_image.js.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/get_image.js.php b/js/get_image.js.php
index c541bdd496..7ac1ffd410 100644
--- a/js/get_image.js.php
+++ b/js/get_image.js.php
@@ -17,6 +17,13 @@ header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
define('PMA_MINIMUM_COMMON', true);
require_once './libraries/common.inc.php';
+require_once './libraries/OutputBuffering.class.php';
+$buffer = PMA_OutputBuffering::getInstance();
+$buffer->start();
+register_shutdown_function(function() {
+ echo PMA_OutputBuffering::getInstance()->getContents();
+});
+
// Get the data for the sprites, if it's available
if (is_readable($_SESSION['PMA_Theme']->getPath() . '/sprites.lib.php')) {
include $_SESSION['PMA_Theme']->getPath() . '/sprites.lib.php';