remove todo, after upgrade PHPExcel
[phpmyadmin/arisferyanto.git] / setup / index.php
blob1d5f2cb036015dce73aca73bd1390288234d96b8
1 <?php
2 /**
3 * Front controller for setup script
5 * @package phpMyAdmin-setup
6 * @author Piotr Przybylski <piotrprz@gmail.com>
7 * @copyright Copyright (c) 2008, Piotr Przybylski <piotrprz@gmail.com>
8 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
9 * @version $Id$
12 /**
13 * Core libraries.
15 require './lib/common.inc.php';
17 $page = filter_input(INPUT_GET, 'page');
18 $page = preg_replace('/[^a-z]/', '', $page);
19 if ($page === '') {
20 $page = 'index';
22 if (!file_exists("./setup/frames/$page.inc.php")) {
23 // it will happen only when enterung URL by hand, we don't care for these cases
24 die('Wrong GET file attribute value');
27 // send no-cache headers
28 require './libraries/header_http.inc.php';
30 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
31 <html xmlns="http://www.w3.org/1999/xhtml">
32 <head>
33 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
34 <title>phpMyAdmin <?php echo $_SESSION['PMA_Config']->get('PMA_VERSION'); ?> setup</title>
35 <link href="../favicon.ico" rel="icon" type="image/x-icon" />
36 <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon" />
37 <link href="styles.css" rel="stylesheet" type="text/css" />
38 <script type="text/javascript" src="../js/mootools.js"></script>
39 <script type="text/javascript" src="scripts.js"></script>
40 </head>
41 <body>
42 <h1><span class="blue">php</span><span class="orange">MyAdmin</span> <?php echo $_SESSION['PMA_Config']->get('PMA_VERSION'); ?> setup</h1>
43 <div id="menu">
44 <?php
45 require './setup/frames/menu.inc.php';
47 </div>
48 <div id="page">
49 <?php
50 require "./setup/frames/$page.inc.php";
52 </div>
53 </body>
54 </html>