3 * generate an WebApp file for Prism / WebRunner
5 * @see http://wiki.mozilla.org/Prism
11 define('PMA_MINIMUM_COMMON', true);
12 require_once './libraries/common.inc.php';
13 require_once './libraries/zip.lib.php';
17 'id' => 'phpMyAdmin@' . $_SERVER['HTTP_HOST'],
18 'uri' => $_SESSION['PMA_Config']->get('PmaAbsoluteUri'),
23 'icon' => 'phpMyAdmin',
30 $icon = 'favicon.ico';
33 $name = 'phpMyAdmin.webapp';
35 $ini_file = "[Parameters]\n";
36 foreach ($parameters as $key => $value) {
37 $ini_file .= $key . '=' . $value . "\n";
41 $zip->addFile($ini_file, 'webapp.ini');
42 $zip->addFile(file_get_contents($icon), 'phpMyAdmin.ico');
44 header('Content-Type: application/webapp');
45 header('Content-Disposition: attachment; filename="' . $name . '"');