Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (41 sloc) 1.355 kb
47cd12f @lem9 redesign part 3
lem9 authored
1 <?php
817e790 synced/fixed vim line
Sebastian Mendel authored
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
374abd5 fixed/added page level docblock
Sebastian Mendel authored
3 /**
4 *
84ae042 @nijel Adding @package, third part.
nijel authored
5 * @package phpMyAdmin
374abd5 fixed/added page level docblock
Sebastian Mendel authored
6 */
7
8 /**
9 * get some globals
10 */
f700a73 @nijel No need for require_once in these files.
nijel authored
11 require './libraries/common.inc.php';
38e93a4 @lem9 use standard header for theme manager
lem9 authored
12
47cd12f @lem9 redesign part 3
lem9 authored
13 /* Theme Select */
b425d0e @nijel Do not prepend $cfg['ThemePath'] with another './'.
nijel authored
14 $path_to_themes = $cfg['ThemePath'] . '/';
38e93a4 @lem9 use standard header for theme manager
lem9 authored
15
16 /* set language and charset */
f700a73 @nijel No need for require_once in these files.
nijel authored
17 require './libraries/header_http.inc.php';
38e93a4 @lem9 use standard header for theme manager
lem9 authored
18
52bb3fd @nijel Use common header.
nijel authored
19 /* HTML header */
f55823f @lem9 strings to gettext, first batch
lem9 authored
20 $page_title = 'phpMyAdmin - ' . __('Theme / Style');
adb3916 coding standard: no braces around include
Sebastian Mendel authored
21 require './libraries/header_meta_style.inc.php';
47cd12f @lem9 redesign part 3
lem9 authored
22 ?>
75a16f4 @nijel Use same script tag, use CDATA for scripts (RFE #995065).
nijel authored
23 <script type="text/javascript" language="javascript">
8f1bb56 - moved styles into css
Sebastian Mendel authored
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 {
f55823f @lem9 strings to gettext, first batch
lem9 authored
31 alert('<?php echo sprintf(__('No themes support; please check your configuration and/or your themes in directory %s.'), $cfg['ThemePath']); ?>');
8f1bb56 - moved styles into css
Sebastian Mendel authored
32 self.close();
38e93a4 @lem9 use standard header for theme manager
lem9 authored
33 }
8f1bb56 - moved styles into css
Sebastian Mendel authored
34 }
35 // ]]>
38e93a4 @lem9 use standard header for theme manager
lem9 authored
36 </script>
37 </head>
47cd12f @lem9 redesign part 3
lem9 authored
38
8f1bb56 - moved styles into css
Sebastian Mendel authored
39 <body id="bodythemes">
f55823f @lem9 strings to gettext, first batch
lem9 authored
40 <h1>phpMyAdmin - <?php echo __('Theme / Style'); ?></h1>
67e4994 @nijel Single place to handle redirection.
nijel authored
41 <p><a href="<?php echo PMA_linkURL('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>
8f1bb56 - moved styles into css
Sebastian Mendel authored
42 <?php
6ac06df make use of new PMA_Theme and PMA_Theme_Manager classes
Sebastian Mendel authored
43 $_SESSION['PMA_Theme_Manager']->printPreviews();
47cd12f @lem9 redesign part 3
lem9 authored
44 ?>
38e93a4 @lem9 use standard header for theme manager
lem9 authored
45 </body>
47cd12f @lem9 redesign part 3
lem9 authored
46 </html>
Something went wrong with that request. Please try again.