3 * Front controller for setup script
5 * @package phpMyAdmin-setup
6 * @copyright Copyright (c) 2008, Piotr Przybylski <piotrprz@gmail.com>
7 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
13 require './lib/common.inc.php';
15 $page = filter_input(INPUT_GET
, 'page');
16 $page = preg_replace('/[^a-z]/', '', $page);
20 if (!file_exists("./setup/frames/$page.inc.php")) {
21 // it will happen only when enterung URL by hand, we don't care for these cases
22 die(__('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 // send no-cache headers
30 require './libraries/header_http.inc.php';
32 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
33 <html xmlns
="http://www.w3.org/1999/xhtml">
35 <meta http
-equiv
="Content-Type" content
="text/html; 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.6.2.js"></script
>
41 <script type
="text/javascript" src
="../js/jquery/jquery-ui-1.8.custom.js"></script
>
42 <script type
="text/javascript" src
="../js/jquery/jquery.json-2.2.js"></script
>
43 <script type
="text/javascript" src
="../js/config.js"></script
>
44 <script type
="text/javascript" src
="scripts.js"></script
>
47 <h1
><span
class="blue">php
</span
><span
class="orange">MyAdmin
</span
> setup
</h1
>
50 require './setup/frames/menu.inc.php';
55 require "./setup/frames/$page.inc.php";