Translated using Weblate (Indonesian)
[phpmyadmin.git] / setup / index.php
blobcff91b448dfb67bc6c4f63035c7d8720919bb095
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 https://www.gnu.org/licenses/gpl.html GNU GPL 2.0
8 */
10 /**
11 * Core libraries.
13 require './lib/common.inc.php';
15 if (@file_exists(CONFIG_FILE) && ! $cfg['DBG']['demo']) {
16 PMA_fatalError(__('Configuration already exists, setup is disabled!'));
19 $page = PMA_isValid($_GET['page'], 'scalar') ? $_GET['page'] : null;
20 $page = preg_replace('/[^a-z]/', '', $page);
21 if ($page === '') {
22 $page = 'index';
24 if (!@file_exists("./setup/frames/$page.inc.php")) {
25 // it will happen only when entering URL by hand, we don't care for these cases
26 PMA_fatalError(__('Wrong GET file attribute value'));
29 // Handle done action info
30 $action_done = PMA_isValid($_GET['action_done'], 'scalar') ? $_GET['action_done'] : null;
31 $action_done = preg_replace('/[^a-z_]/', '', $action_done);
33 PMA_noCacheHeader();
36 <!DOCTYPE HTML>
37 <html xmlns="http://www.w3.org/1999/xhtml">
38 <head>
39 <meta charset="utf-8" />
40 <title>phpMyAdmin setup</title>
41 <link href="../favicon.ico" rel="icon" type="image/x-icon" />
42 <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon" />
43 <link href="styles.css" rel="stylesheet" type="text/css" />
44 <script type="text/javascript" src="../js/jquery/jquery.min.js"></script>
45 <script type="text/javascript" src="../js/jquery/jquery-ui.min.js">
46 </script>
47 <script type="text/javascript" src="ajax.js"></script>
48 <script type="text/javascript" src="../js/config.js"></script>
49 <script type="text/javascript" src="scripts.js"></script>
50 <script type="text/javascript" src="../js/messages.php"></script>
51 </head>
52 <body>
53 <h1><span class="blue">php</span><span class="orange">MyAdmin</span> setup</h1>
54 <div id="menu">
55 <?php
56 require './setup/frames/menu.inc.php';
58 </div>
59 <div id="page">
60 <?php
61 require "./setup/frames/$page.inc.php";
63 </div>
64 </body>
65 </html>