Syntax highlighting
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@124 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
2d8002b7d0
commit
de5e18c2fd
|
@ -104,6 +104,8 @@ function lang($idf = null, $number = null) {
|
||||||
'None of supported PHP extensions (%s) are available.' => 'Není dostupná žádná z podporovaných PHP extenzí (%s).',
|
'None of supported PHP extensions (%s) are available.' => 'Není dostupná žádná z podporovaných PHP extenzí (%s).',
|
||||||
'Sessions must be enabled.' => 'Session proměnné musí být povolené.',
|
'Sessions must be enabled.' => 'Session proměnné musí být povolené.',
|
||||||
'Session expired, please login again.' => 'Session vypršela, přihlašte se prosím znovu.',
|
'Session expired, please login again.' => 'Session vypršela, přihlašte se prosím znovu.',
|
||||||
|
'Text length' => 'Délka textů',
|
||||||
|
'Syntax highlighting' => 'Zvýrazňování syntaxe',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (!isset($idf)) {
|
if (!isset($idf)) {
|
||||||
|
|
12
sql.inc.php
12
sql.inc.php
|
@ -1,4 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
if (isset($_POST["query"])) {
|
||||||
|
$_SESSION["highlight"] = $_POST["highlight"];
|
||||||
|
}
|
||||||
|
|
||||||
page_header(lang('SQL command'));
|
page_header(lang('SQL command'));
|
||||||
|
|
||||||
if ($_POST && $error) {
|
if ($_POST && $error) {
|
||||||
|
@ -45,7 +49,13 @@ if ($_POST && $error) {
|
||||||
|
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<p><textarea name="query" rows="20" cols="80"><?php echo htmlspecialchars($_POST["query"]); ?></textarea></p>
|
<p><textarea name="query" rows="20" cols="80"><?php echo htmlspecialchars($_POST["query"]); ?></textarea></p>
|
||||||
<p><input type="hidden" name="token" value="<?php echo $token; ?>" /><input type="submit" value="<?php echo lang('Execute'); ?>" /></p>
|
<p>
|
||||||
|
<input type="hidden" name="token" value="<?php echo $token; ?>" />
|
||||||
|
<input type="submit" value="<?php echo lang('Execute'); ?>" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.write('<label for="highlight"><input type="checkbox" name="highlight" id="highlight" value="jush"<?php echo ($_SESSION["highlight"] == "jush" ? ' checked="checked"' : ''); ?> /><?php echo addcslashes(lang('Syntax highlighting'), "\r\n'\\"); ?></label>');
|
||||||
|
</script>
|
||||||
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in a new issue