summaryrefslogtreecommitdiff
path: root/hugo/setup/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'hugo/setup/index.php')
-rw-r--r--hugo/setup/index.php60
1 files changed, 60 insertions, 0 deletions
diff --git a/hugo/setup/index.php b/hugo/setup/index.php
new file mode 100644
index 0000000..373825b
--- /dev/null
+++ b/hugo/setup/index.php
@@ -0,0 +1,60 @@
+<?php
+/* vim: set expandtab sw=4 ts=4 sts=4: */
+/**
+ * Front controller for setup script
+ *
+ * @package PhpMyAdmin-Setup
+ * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
+ */
+
+/**
+ * Core libraries.
+ */
+require './lib/common.inc.php';
+
+$page = filter_input(INPUT_GET, 'page');
+$page = preg_replace('/[^a-z]/', '', $page);
+if ($page === '') {
+ $page = 'index';
+}
+if (!file_exists("./setup/frames/$page.inc.php")) {
+ // it will happen only when entering URL by hand, we don't care for these cases
+ PMA_fatalError(__('Wrong GET file attribute value'));
+}
+
+// Handle done action info
+$action_done = filter_input(INPUT_GET, 'action_done');
+$action_done = preg_replace('/[^a-z_]/', '', $action_done);
+
+PMA_noCacheHeader();
+
+?>
+<!DOCTYPE HTML>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta charset="utf-8" />
+<title>phpMyAdmin setup</title>
+<link href="../favicon.ico" rel="icon" type="image/x-icon" />
+<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon" />
+<link href="styles.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" src="../js/jquery/jquery-1.8.3.min.js"></script>
+<script type="text/javascript" src="../js/jquery/jquery-ui-1.9.2.custom.min.js"></script>
+<script type="text/javascript" src="../js/jquery/jquery.json-2.4.js"></script>
+<script type="text/javascript" src="ajax.js"></script>
+<script type="text/javascript" src="../js/config.js"></script>
+<script type="text/javascript" src="scripts.js"></script>
+</head>
+<body>
+<h1><span class="blue">php</span><span class="orange">MyAdmin</span> setup</h1>
+<div id="menu">
+<?php
+require './setup/frames/menu.inc.php';
+?>
+</div>
+<div id="page">
+<?php
+require "./setup/frames/$page.inc.php";
+?>
+</div>
+</body>
+</html>