mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
59
html/phpmyad/setup/index.php
Normal file
59
html/phpmyad/setup/index.php
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Front controller for setup script
|
||||
*
|
||||
* @package phpMyAdmin-setup
|
||||
* @copyright Copyright (c) 2008, Piotr Przybylski <piotrprz@gmail.com>
|
||||
* @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 enterung URL by hand, we don't care for these cases
|
||||
die(__('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);
|
||||
|
||||
// send no-cache headers
|
||||
require './libraries/header_http.inc.php';
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; 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.6.2.js"></script>
|
||||
<script type="text/javascript" src="../js/jquery/jquery-ui-1.8.16.custom.js"></script>
|
||||
<script type="text/javascript" src="../js/jquery/jquery.json-2.2.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>
|
Reference in New Issue
Block a user