Rename to Adminer
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@662 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
0cd2afbb6b
commit
1fe2f33e32
|
@ -157,13 +157,13 @@ if ($_SERVER["argc"] > 1) {
|
|||
$_COOKIE["lang"] = $_SERVER["argv"][1];
|
||||
include dirname(__FILE__) . "/include/lang.inc.php";
|
||||
if ($_SERVER["argc"] != 2 || !isset($langs[$_COOKIE["lang"]])) {
|
||||
echo "Usage: php _compile.php [lang]\nPurpose: Compile phpMinAdmin[-lang].php from index.php.\n";
|
||||
echo "Usage: php _compile.php [lang]\nPurpose: Compile adminer[-lang].php from index.php.\n";
|
||||
exit(1);
|
||||
}
|
||||
include dirname(__FILE__) . "/lang/$_COOKIE[lang].inc.php";
|
||||
}
|
||||
|
||||
$filename = "phpMinAdmin" . ($_COOKIE["lang"] ? "-$_COOKIE[lang]" : "") . ".php";
|
||||
$filename = "adminer" . ($_COOKIE["lang"] ? "-$_COOKIE[lang]" : "") . ".php";
|
||||
$file = file_get_contents(dirname(__FILE__) . "/index.php");
|
||||
$file = preg_replace_callback('~\\b(include|require) "([^"]*)";~', 'put_file', $file);
|
||||
$file = preg_replace("~if \\(isset\\(\\\$_SESSION\\[\"coverage.*\n}\n| && !isset\\(\\\$_SESSION\\[\"coverage\"\\]\\)~sU", '', $file);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
if (!ini_get("session.auto_start")) {
|
||||
session_name("phpMinAdmin_SID");
|
||||
session_name("adminer_sid");
|
||||
session_set_cookie_params(ini_get("session.cookie_lifetime"), preg_replace('~_coverage\\.php(\\?.*)?$~', '', $_SERVER["REQUEST_URI"]));
|
||||
session_start();
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
phpMinAdmin 1.11.0:
|
||||
Adminer 1.11.0:
|
||||
Connection through socket by server :/path/to/socket
|
||||
Simplify export
|
||||
Display execution time in SQL query
|
||||
|
|
|
@ -87,7 +87,7 @@ if ($_POST) {
|
|||
$query = "SELECT TABLE_NAME, ENGINE, TABLE_COLLATION, TABLE_COMMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE()";
|
||||
?>
|
||||
DELIMITER ;;
|
||||
CREATE PROCEDURE phpminadmin_drop () BEGIN
|
||||
CREATE PROCEDURE adminer_drop () BEGIN
|
||||
DECLARE _table_name, _engine, _table_collation varchar(64);
|
||||
DECLARE _table_comment varchar(64);
|
||||
DECLARE done bool DEFAULT 0;
|
||||
|
@ -121,8 +121,8 @@ $result->free();
|
|||
CLOSE tables;
|
||||
END;;
|
||||
DELIMITER ;
|
||||
CALL phpminadmin_drop;
|
||||
DROP PROCEDURE phpminadmin_drop;
|
||||
CALL adminer_drop;
|
||||
DROP PROCEDURE adminer_drop;
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,9 +15,9 @@ function popdown(el) {
|
|||
}
|
||||
|
||||
function verify_version(version) {
|
||||
document.cookie = 'phpMinAdmin_version=0';
|
||||
document.cookie = 'adminer_version=0';
|
||||
var script = document.createElement('script');
|
||||
script.src = 'http://www.phpminadmin.net/version.php?version=' + version;
|
||||
script.src = 'http://www.adminer.org/version.php?version=' + version;
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,15 +9,15 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<title><?php echo $title . (strlen($title2) ? ": " . htmlspecialchars($title2) : "") . " - " . lang('phpMinAdmin'); ?></title>
|
||||
<title><?php echo $title . (strlen($title2) ? ": " . htmlspecialchars($title2) : "") . " - " . lang('Adminer'); ?></title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="default.css<?php // Ondrej Valka, http://valka.info ?>" />
|
||||
<?php if (file_exists("phpMinAdmin.css")) { ?>
|
||||
<link rel="stylesheet" type="text/css" href="phpMinAdmin.css" />
|
||||
<?php if (file_exists("adminer.css")) { ?>
|
||||
<link rel="stylesheet" type="text/css" href="adminer.css" />
|
||||
<?php } ?>
|
||||
</head>
|
||||
|
||||
<body onload="load_jush();<?php echo (isset($_COOKIE["phpMinAdmin_version"]) ? "" : " verify_version('$VERSION');"); ?>">
|
||||
<body onload="load_jush();<?php echo (isset($_COOKIE["adminer_version"]) ? "" : " verify_version('$VERSION');"); ?>">
|
||||
<script type="text/javascript" src="functions.js"></script>
|
||||
|
||||
<div id="content">
|
||||
|
@ -61,8 +61,8 @@ function page_footer($missing = false) {
|
|||
|
||||
<?php switch_lang(); ?>
|
||||
<div id="menu">
|
||||
<h1><a href="http://www.phpminadmin.net/"><?php echo lang('phpMinAdmin'); ?></a> <?php echo $VERSION; ?></h1>
|
||||
<div class="version"><a href='http://www.phpminadmin.net/#download' id="version"><?php echo (version_compare($VERSION, $_COOKIE["phpMinAdmin_version"]) < 0 ? htmlspecialchars($_COOKIE["phpMinAdmin_version"]) : ""); ?></a></div>
|
||||
<h1><a href="http://www.adminer.org/"><?php echo lang('Adminer'); ?></a> <?php echo $VERSION; ?></h1>
|
||||
<div class="version"><a href='http://www.adminer.org/#download' id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? htmlspecialchars($_COOKIE["adminer_version"]) : ""); ?></a></div>
|
||||
<?php if ($missing != "auth") { ?>
|
||||
<form action="" method="post">
|
||||
<p>
|
||||
|
|
|
@ -29,7 +29,7 @@ function dump_table($table, $style, $is_view = false) {
|
|||
$query = "SELECT COLUMN_NAME, COLUMN_DEFAULT, IS_NULLABLE, COLLATION_NAME, COLUMN_TYPE, EXTRA, COLUMN_COMMENT FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = '" . $dbh->escape_string($table) . "' ORDER BY ORDINAL_POSITION";
|
||||
?>
|
||||
DELIMITER ;;
|
||||
CREATE PROCEDURE phpminadmin_alter () BEGIN
|
||||
CREATE PROCEDURE adminer_alter () BEGIN
|
||||
DECLARE _column_name, _collation_name, _column_type, after varchar(64) DEFAULT '';
|
||||
DECLARE _column_default longtext;
|
||||
DECLARE _is_nullable char(3);
|
||||
|
@ -95,8 +95,8 @@ foreach ($fields as $row) {
|
|||
END IF;
|
||||
END;;
|
||||
DELIMITER ;
|
||||
CALL phpminadmin_alter;
|
||||
DROP PROCEDURE phpminadmin_alter;
|
||||
CALL adminer_alter;
|
||||
DROP PROCEDURE adminer_alter;
|
||||
|
||||
<?php
|
||||
//! indexes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/** phpMinAdmin - Compact MySQL management
|
||||
* @link http://www.phpminadmin.net/
|
||||
/** Adminer - Compact MySQL management
|
||||
* @link http://www.adminer.org/
|
||||
* @author Jakub Vrana, http://php.vrana.cz/
|
||||
* @copyright 2007 Jakub Vrana
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
|
||||
|
@ -8,7 +8,7 @@
|
|||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
if (!ini_get("session.auto_start")) {
|
||||
session_name("phpMinAdmin_SID");
|
||||
session_name("adminer_sid");
|
||||
session_set_cookie_params(0, preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
|
||||
session_start();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Přihlásit se',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Odhlášení proběhlo v pořádku.',
|
||||
'Invalid credentials.' => 'Neplatné přihlašovací údaje.',
|
||||
'Server' => 'Server',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Login',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Abmeldung erfolgreich.',
|
||||
'Invalid credentials.' => 'Ungültige Anmelde-Informationen.',
|
||||
'Server' => 'Server',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Login',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Salida exitosa.',
|
||||
'Invalid credentials.' => 'Autenticación fallada.',
|
||||
'Server' => 'Servidor',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Logi sisse',
|
||||
'phpMinAdmin' => 'Andmebaasi haldaja',
|
||||
'Adminer' => 'Andmebaasi haldaja',
|
||||
'Logout successful.' => 'Väljalogimine õnnestus.',
|
||||
'Invalid credentials.' => 'Ebasobivad andmed.',
|
||||
'Server' => 'Server',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Authentification',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Aurevoir!',
|
||||
'Invalid credentials.' => 'Authentification échoué',
|
||||
'Server' => 'Serveur',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Autenticazione',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Uscita effettuata con successo.',
|
||||
'Invalid credentials.' => 'Credenziali non valide.',
|
||||
'Server' => 'Server',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Inloggen',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Uitloggen geslaagd.',
|
||||
'Invalid credentials.' => 'Ongeldige logingegevens.',
|
||||
'Server' => 'Server',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Записаться',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Логаут в порядке.',
|
||||
'Invalid credentials.' => 'Недействительное заявительное факты.',
|
||||
'Server' => 'Сервер',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => 'Prihlásiť sa',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => 'Odhlásenie prebehlo v poriadku.',
|
||||
'Invalid credentials.' => 'Neplatné prihlasovacie údaje.',
|
||||
'Server' => 'Server',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$translations = array(
|
||||
'Login' => '登录',
|
||||
'phpMinAdmin' => 'phpMinAdmin',
|
||||
'Adminer' => 'Adminer',
|
||||
'Logout successful.' => '注销成功。',
|
||||
'Invalid credentials.' => '无效凭据。',
|
||||
'Server' => '服务器',
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/_coverage.php?start=1</td>
|
||||
<td>/adminer/_coverage.php?start=1</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?lang=en&username=</td>
|
||||
<td>/adminer/?lang=en&username=</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/</td>
|
||||
<td>/adminer/</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&select=albums</td>
|
||||
<td>/adminer/?db=selenium&select=albums</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&select=albums</td>
|
||||
<td>/adminer/?db=selenium&select=albums</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&edit=albums&where%5Bid%5D=2</td>
|
||||
<td>/adminer/?db=selenium&edit=albums&where%5Bid%5D=2</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&edit=albums&where%5Bid%5D=2</td>
|
||||
<td>/adminer/?db=selenium&edit=albums&where%5Bid%5D=2</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&select=albums</td>
|
||||
<td>/adminer/?db=selenium&select=albums</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?user=</td>
|
||||
<td>/adminer/?user=</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?processlist=</td>
|
||||
<td>/adminer/?processlist=</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&dump=</td>
|
||||
<td>/adminer/?db=selenium&dump=</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&event=</td>
|
||||
<td>/adminer/?db=selenium&event=</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&procedure=</td>
|
||||
<td>/adminer/?db=selenium&procedure=</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium</td>
|
||||
<td>/adminer/?db=selenium</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&table=interprets</td>
|
||||
<td>/adminer/?db=selenium&table=interprets</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&table=interprets</td>
|
||||
<td>/adminer/?db=selenium&table=interprets</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&table=interprets&lang=en</td>
|
||||
<td>/adminer/?db=selenium&table=interprets&lang=en</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&table=albums</td>
|
||||
<td>/adminer/?db=selenium&table=albums</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&table=interprets</td>
|
||||
<td>/adminer/?db=selenium&table=interprets</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&trigger=albums</td>
|
||||
<td>/adminer/?db=selenium&trigger=albums</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&createv=</td>
|
||||
<td>/adminer/?db=selenium&createv=</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&edit=interprets</td>
|
||||
<td>/adminer/?db=selenium&edit=interprets</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -33,7 +33,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/?db=selenium&edit=albums</td>
|
||||
<td>/adminer/?db=selenium&edit=albums</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead><tbody>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/</td>
|
||||
<td>/adminer/</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -38,7 +38,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>open</td>
|
||||
<td>/phpMinAdmin/_coverage.php</td>
|
||||
<td>/adminer/_coverage.php</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
|
Loading…
Reference in a new issue