@set_time_limit($cfg['ExecTimeLimit']); if (!empty($cfg['MemoryLimit'])) { @ini_set('memory_limit', $cfg['MemoryLimit']); } // Start with empty buffer $dump_buffer = ''; $dump_buffer_len = 0; // We send fake headers to avoid browser timeout when buffering $time_start = microtime(true); $death_time = $time_start + ini_get('max_execution_time'); /** * Output handler for all exports, if needed buffering, it stores data into * $dump_buffer, otherwise it prints thems out. * * @param string the insert statement * * @return bool Whether output suceeded */ function PMA_exportOutputHandler($line) { global $time_start, $death_time , $dump_buffer, $dump_buffer_len, $save_filename; $time_now = microtime(true); if(ini_get('safe_mode') && ($death_time - $time_now) <= 2 ) { echo "\nIt's gonna blow!!!\n"; } // Kanji encoding convert feature