Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2007-07-18 19:55:11 +0400
committerMarc Delisle <marc@infomarc.info>2007-07-18 19:55:11 +0400
commit609d38a9cdb6f0e638242b8cf44de6e96890637e (patch)
tree080c7ad3b71fa46f7b9f10066d12119688ac7b6c /themes.php
parente2599e32c51deb6c38dfb2d40bc8eb7b8603c226 (diff)
start QA_11
Diffstat (limited to 'themes.php')
-rw-r--r--themes.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/themes.php b/themes.php
new file mode 100644
index 0000000000..d12c9fe85a
--- /dev/null
+++ b/themes.php
@@ -0,0 +1,45 @@
+<?php
+/* vim: set expandtab sw=4 ts=4 sts=4: */
+/**
+ *
+ * @version $Id$
+ */
+
+/**
+ * get some globals
+ */
+require_once './libraries/common.inc.php';
+
+/* Theme Select */
+$path_to_themes = $cfg['ThemePath'] . '/';
+
+/* set language and charset */
+require_once './libraries/header_http.inc.php';
+
+/* HTML header */
+$page_title = 'phpMyAdmin - ' . $strTheme;
+require './libraries/header_meta_style.inc.php';
+?>
+<script type="text/javascript" language="javascript">
+// <![CDATA[
+function takeThis(what){
+ if (window.opener && window.opener.document.forms['setTheme'].elements['set_theme']) {
+ window.opener.document.forms['setTheme'].elements['set_theme'].value = what;
+ window.opener.document.forms['setTheme'].submit();
+ self.close();
+ } else {
+ alert('<?php echo sprintf($strNoThemeSupport, $cfg['ThemePath']); ?>');
+ self.close();
+ }
+}
+// ]]>
+</script>
+</head>
+
+<body id="bodythemes">
+<h1>phpMyAdmin - <?php echo $strTheme; ?></h1>
+<?php
+$_SESSION['PMA_Theme_Manager']->printPreviews();
+?>
+</body>
+</html>