Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / setup / index.php
blob7c7c12c11be67a66ce28b2a587082e06d1fdece5
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Front controller for setup script
6 * @package PhpMyAdmin-Setup
7 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
8 */
10 /**
11 * Core libraries.
13 require './lib/common.inc.php';
15 $page = filter_input(INPUT_GET, 'page');
16 $page = preg_replace('/[^a-z]/', '', $page);
17 if ($page === '') {
18 $page = 'index';
20 if (!file_exists("./setup/frames/$page.inc.php")) {
21 // it will happen only when entering URL by hand, we don't care for these cases
22 PMA_fatalError(__('Wrong GET file attribute value'));
25 // Handle done action info
26 $action_done = filter_input(INPUT_GET, 'action_done');
27 $action_done = preg_replace('/[^a-z_]/', '', $action_done);
29 PMA_noCacheHeader();
32 <!DOCTYPE HTML>
33 <html xmlns="http://www.w3.org/1999/xhtml">
34 <head>
35 <meta charset="utf-8" />
36 <title>phpMyAdmin setup</title>
37 <link href="../favicon.ico" rel="icon" type="image/x-icon" />
38 <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon" />
39 <link href="styles.css" rel="stylesheet" type="text/css" />
40 <script type="text/javascript" src="../js/jquery/jquery-1.8.3.js"></script>
41 <script type="text/javascript" src="../js/jquery/jquery-ui-1.9.2.custom.js"></script>
42 <script type="text/javascript" src="../js/jquery/jquery.json-2.4.js"></script>
43 <script type="text/javascript" src="ajax.js"></script>
44 <script type="text/javascript" src="../js/config.js"></script>
45 <script type="text/javascript" src="scripts.js"></script>
46 </head>
47 <body>
48 <h1><span class="blue">php</span><span class="orange">MyAdmin</span> setup</h1>
49 <div id="menu">
50 <?php
51 require './setup/frames/menu.inc.php';
53 </div>
54 <div id="page">
55 <?php
56 require "./setup/frames/$page.inc.php";
58 </div>
59 </body>
60 </html>