Translation update done using Pootle.
[phpmyadmin/crack.git] / themes.php
blobe58933fa4c6a26b6db5fd41713a4cc276846cc9c
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package phpMyAdmin
6 */
8 /**
9 * get some globals
11 require './libraries/common.inc.php';
13 /* Theme Select */
14 $path_to_themes = $cfg['ThemePath'] . '/';
16 /* set language and charset */
17 require './libraries/header_http.inc.php';
19 /* HTML header */
20 $page_title = 'phpMyAdmin - ' . __('Theme / Style');
21 require './libraries/header_meta_style.inc.php';
23 <script type="text/javascript" language="javascript">
24 // <![CDATA[
25 function takeThis(what){
26 if (window.opener && window.opener.document.forms['setTheme'].elements['set_theme']) {
27 window.opener.document.forms['setTheme'].elements['set_theme'].value = what;
28 window.opener.document.forms['setTheme'].submit();
29 self.close();
30 } else {
31 alert('<?php echo sprintf(__('No themes support; please check your configuration and/or your themes in directory %s.'), $cfg['ThemePath']); ?>');
32 self.close();
35 // ]]>
36 </script>
37 </head>
39 <body id="bodythemes">
40 <h1>phpMyAdmin - <?php echo __('Theme / Style'); ?></h1>
41 <p><a href="http://www.phpmyadmin.net/home_page/themes.php#pma_<?php echo preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION); ?>"><?php echo __('Get more themes!'); ?></a></p>
42 <?php
43 $_SESSION['PMA_Theme_Manager']->printPreviews();
45 </body>
46 </html>