2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * generate an WebApp file for Prism / WebRunner
7 * @see http://wiki.mozilla.org/Prism
13 define('PMA_MINIMUM_COMMON', true);
15 * Gets core libraries and defines some variables
17 require './libraries/common.inc.php';
21 require './libraries/zip.lib.php';
25 'id' => 'phpMyAdmin@' . $_SERVER['HTTP_HOST'],
26 'uri' => $GLOBALS['PMA_Config']->get('PmaAbsoluteUri'),
31 'icon' => 'phpMyAdmin',
38 $icon = 'favicon.ico';
41 $name = 'phpMyAdmin.webapp';
43 $ini_file = "[Parameters]\n";
44 foreach ($parameters as $key => $value) {
45 $ini_file .= $key . '=' . $value . "\n";
48 PMA_downloadHeader($name, 'application/webapp', 0, false);
52 $zip->addFile($ini_file, 'webapp.ini');
53 $zip->addFile(file_get_contents($icon), 'phpMyAdmin.ico');