Merge from branch

This commit is contained in:
Loïc Chapeaux
2002-04-26 14:43:18 +00:00
parent 6c5fd827c0
commit caffe11457
5 changed files with 85 additions and 45 deletions

View File

@@ -5,6 +5,13 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-04-26 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* ## created 2.2.7 branch into the CVS tree ##
* lang/nowegian.inc.php: updated thanks to Sven-Erik Andersen.
* lang/brazilian_portuguese.inc.php3: updated thanks to Renato Lins.
* sql.php3; tbl_replace.php3: patch #547030 - file_exists $goto thanks to
Melvyn Sopacua <nyvlem at users.sourceforge.net>.
2002-04-26 Marc Delisle <lem9@users.sourceforge.net> 2002-04-26 Marc Delisle <lem9@users.sourceforge.net>
* tbl_qbe.php3: automatic joints from Relation table, thanks * tbl_qbe.php3: automatic joints from Relation table, thanks
to Mike Beck (mike.beck at ibmiller.de) to Mike Beck (mike.beck at ibmiller.de)

View File

@@ -1,6 +1,10 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* Translated by Renato Lins <thbest at information4u.com>
*/
$charset = 'iso-8859-1'; $charset = 'iso-8859-1';
$text_dir = 'ltr'; $text_dir = 'ltr';
$left_font_family = 'verdana, arial, helvetica, geneva, sans-serif'; $left_font_family = 'verdana, arial, helvetica, geneva, sans-serif';
@@ -51,6 +55,7 @@ $strAttr = 'Atributos';
$strBack = 'Voltar'; $strBack = 'Voltar';
$strBinary = ' Bin<69>rio '; $strBinary = ' Bin<69>rio ';
$strBinaryDoNotEdit = ' Bin<69>rio - n<>o edite '; $strBinaryDoNotEdit = ' Bin<69>rio - n<>o edite ';
$strBookmarkDeleted = 'O bookmark foi removido.';
$strBookmarkLabel = 'Nome'; $strBookmarkLabel = 'Nome';
$strBookmarkQuery = 'Procura de SQL salva'; $strBookmarkQuery = 'Procura de SQL salva';
$strBookmarkThis = 'Salvar essa procura de SQL'; $strBookmarkThis = 'Salvar essa procura de SQL';
@@ -63,6 +68,7 @@ $strCantRenameIdxToPrimary = 'N
$strCardinality = 'Cardinalidade'; $strCardinality = 'Cardinalidade';
$strCarriage = 'Caracter de retorno: \\r'; $strCarriage = 'Caracter de retorno: \\r';
$strChange = 'Muda'; $strChange = 'Muda';
$strChangePassword = 'Mude a senha';
$strCheckAll = 'Marcar All'; $strCheckAll = 'Marcar All';
$strCheckDbPriv = 'Verifica Privil<69>gios do Banco de Dados'; $strCheckDbPriv = 'Verifica Privil<69>gios do Banco de Dados';
$strCheckTable = 'Verifica tabela'; $strCheckTable = 'Verifica tabela';
@@ -222,6 +228,7 @@ $strPasswordEmpty = 'A senhas est
$strPasswordNotSame = 'As senhas n<>o s<>o a mesma!'; $strPasswordNotSame = 'As senhas n<>o s<>o a mesma!';
$strPHPVersion = 'Vers<72>o do PHP'; $strPHPVersion = 'Vers<72>o do PHP';
$strPmaDocumentation = 'Documenta<74><61>o do phpMyAdmin '; $strPmaDocumentation = 'Documenta<74><61>o do phpMyAdmin ';
$strPmaUriError = 'A diretiva <tt>$cfg[\'PmaAbsoluteUri\']</tt> Deve ser setada';
$strPos1 = 'In<49>cio'; $strPos1 = 'In<49>cio';
$strPrevious = 'Anterior'; $strPrevious = 'Anterior';
$strPrimary = 'Prim<69>ria'; $strPrimary = 'Prim<69>ria';
@@ -345,8 +352,5 @@ $strYes = 'Sim';
$strZip = '"compactado com zip"'; $strZip = '"compactado com zip"';
// To translate // To translate
$strBookmarkDeleted = 'The bookmark has been deleted.';
$strChangePassword = 'Change password'; //to translate
$strPmaUriError = 'The <tt>$cfg[\'PmaAbsoluteUri\']</tt> directive MUST be set in your configuration file!';
$strLinksTo = 'Links to'; //to translate $strLinksTo = 'Links to'; //to translate
?> ?>

View File

@@ -1,6 +1,10 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* Translated by Sven-Erik Andersen <sven_erik at andersen.as>
*/
$charset = 'iso-8859-1'; $charset = 'iso-8859-1';
$text_dir = 'ltr'; $text_dir = 'ltr';
$left_font_family = 'verdana, arial, helvetica, geneva, sans-serif'; $left_font_family = 'verdana, arial, helvetica, geneva, sans-serif';
@@ -57,7 +61,7 @@ $strBookmarkQuery = 'Lagret SQL-sp
$strBookmarkThis = 'Lagre denne SQL-sp<73>rringen'; $strBookmarkThis = 'Lagre denne SQL-sp<73>rringen';
$strBookmarkView = 'Bare se'; $strBookmarkView = 'Bare se';
$strBrowse = 'Se p<>'; $strBrowse = 'Se p<>';
$strBzip = '"bzipped"'; $strBzip = 'Komprimert (bz2)';
$strCantLoadMySQL = 'kan ikke starte MySQL modulen,<br />vennligst kontroller PHP konfigureringen.'; $strCantLoadMySQL = 'kan ikke starte MySQL modulen,<br />vennligst kontroller PHP konfigureringen.';
$strCantRenameIdxToPrimary = 'Kan ikke endre indeks til PRIMARY!'; $strCantRenameIdxToPrimary = 'Kan ikke endre indeks til PRIMARY!';
@@ -65,7 +69,7 @@ $strCardinality = 'Kardinalitet';
$strCarriage = 'Linjeskift (Mac): \\r'; $strCarriage = 'Linjeskift (Mac): \\r';
$strChange = 'Endre'; $strChange = 'Endre';
$strChangePassword = 'Endre passord'; $strChangePassword = 'Endre passord';
$strCheckAll = 'Kontroller alle'; $strCheckAll = 'Merk alle';
$strCheckDbPriv = 'Kontroller database privilegier'; $strCheckDbPriv = 'Kontroller database privilegier';
$strCheckTable = 'Kontroller tabell'; $strCheckTable = 'Kontroller tabell';
$strColumn = 'Kolonne'; $strColumn = 'Kolonne';
@@ -116,6 +120,7 @@ $strEnd = 'Slutt';
$strEnglishPrivileges = ' OBS: MySQL privilegie navn er p<> engelsk '; $strEnglishPrivileges = ' OBS: MySQL privilegie navn er p<> engelsk ';
$strError = 'Feil'; $strError = 'Feil';
$strExtra = 'Ekstra'; $strExtra = 'Ekstra';
$strExtendedInserts = 'Utvidete innlegg';
$strField = 'Felt'; $strField = 'Felt';
$strFieldHasBeenDropped = 'Feltet %s har blitt slettet'; $strFieldHasBeenDropped = 'Feltet %s har blitt slettet';
@@ -134,7 +139,7 @@ $strFunction = 'Funksjon';
$strGenTime = 'Generert den'; $strGenTime = 'Generert den';
$strGo = 'Utf<74>r'; $strGo = 'Utf<74>r';
$strGrants = 'Rettigheter'; $strGrants = 'Rettigheter';
$strGzip = '"gzipped"'; $strGzip = 'Komprimert (gz)';
$strHasBeenAltered = 'er endret.'; $strHasBeenAltered = 'er endret.';
$strHasBeenCreated = 'er opprettet.'; $strHasBeenCreated = 'er opprettet.';
@@ -231,11 +236,11 @@ $strPrimaryKey = 'Prim
$strPrimaryKeyHasBeenDropped = 'Prim<69>r-n<>kkelen har blitt slettet'; $strPrimaryKeyHasBeenDropped = 'Prim<69>r-n<>kkelen har blitt slettet';
$strPrimaryKeyName = 'Navnet til prim&aelig;rn&oslash;kkelen m&aring; v&aelig;re... PRIMARY!'; $strPrimaryKeyName = 'Navnet til prim&aelig;rn&oslash;kkelen m&aring; v&aelig;re... PRIMARY!';
$strPrimaryKeyWarning = '("PRIMARY" <b>m&aring;</b> v&aelig;re navnet til og <b>bare til</b> en prim&aelig;rn&oslash;kkel!)'; $strPrimaryKeyWarning = '("PRIMARY" <b>m&aring;</b> v&aelig;re navnet til og <b>bare til</b> en prim&aelig;rn&oslash;kkel!)';
$strPrintView = 'Forh<EFBFBD>ndsvisning'; $strPrintView = 'Utskriftsvennlig forh<EFBFBD>ndsvisning';
$strPrivileges = 'Privilegier'; $strPrivileges = 'Privilegier';
$strProperties = 'Egenskaper'; $strProperties = 'Egenskaper';
$strQBE = 'Sp<53>rring ved eksempel'; $strQBE = 'Sp<53>rring ved eksempel (Query by Example)';
$strQBEDel = 'Slett'; $strQBEDel = 'Slett';
$strQBEIns = 'Sett inn'; $strQBEIns = 'Sett inn';
$strQueryOnDb = 'SQL-sp<73>rring i database <b>%s</b>:'; $strQueryOnDb = 'SQL-sp<73>rring i database <b>%s</b>:';
@@ -275,7 +280,7 @@ $strSelectADb = 'Vennligst velg en database';
$strSelectAll = 'Velg alle'; $strSelectAll = 'Velg alle';
$strSelectFields = 'Velg felt (minst ett):'; $strSelectFields = 'Velg felt (minst ett):';
$strSelectNumRows = 'i sp<73>rring'; $strSelectNumRows = 'i sp<73>rring';
$strSend = 'Last ned og lagre som fil'; $strSend = 'Last ned som fil';
$strServerChoice = 'Server valg'; $strServerChoice = 'Server valg';
$strServerVersion = 'Server versjon'; $strServerVersion = 'Server versjon';
$strSetEnumVal = 'Hvis felttypen er "enum" eller "set", skriv inn verdien med dette formatet: \'a\',\'b\',\'c\'...<br />Hvis du skulle trenge <20> ha en skr<6B>strek ("\") eller en enkel apostrof ("\'") blant disse verdiene, skriv en skr<6B>strek foran (eks. \'\\\\xyz\' eller \'a\\\'b\').'; $strSetEnumVal = 'Hvis felttypen er "enum" eller "set", skriv inn verdien med dette formatet: \'a\',\'b\',\'c\'...<br />Hvis du skulle trenge <20> ha en skr<6B>strek ("\") eller en enkel apostrof ("\'") blant disse verdiene, skriv en skr<6B>strek foran (eks. \'\\\\xyz\' eller \'a\\\'b\').';
@@ -319,7 +324,7 @@ $strTheTerminator = 'Tegn som angir slutt p
$strTotal = 'totalt'; $strTotal = 'totalt';
$strType = 'Type'; $strType = 'Type';
$strUncheckAll = 'Fjern avmerking'; $strUncheckAll = 'Fjern merking';
$strUnique = 'Unik'; $strUnique = 'Unik';
$strUnselectAll = 'Fjern alle valgte'; $strUnselectAll = 'Fjern alle valgte';
$strUpdatePrivMessage = 'Du har oppdatert privilegiene til %s.'; $strUpdatePrivMessage = 'Du har oppdatert privilegiene til %s.';
@@ -344,7 +349,7 @@ $strWrongUser = 'Ugyldig brukernavn/passord. Ingen tilgang.';
$strYes = 'Ja'; $strYes = 'Ja';
$strZip = '"komprimert (zip)"'; $strZip = 'Komprimert (zip)';
// To translate // To translate
$strLinksTo = 'Links to'; //to translate $strLinksTo = 'Links to'; //to translate

View File

@@ -12,8 +12,19 @@ require('./libraries/common.lib.php3');
/** /**
* Defines the url to return to in case of error in a sql statement * Defines the url to return to in case of error in a sql statement
*/ */
// Security checkings
if (!empty($goto)) {
$is_gotofile = ereg_replace('^([^?]+).*$', '\\1', $goto);
if (!@file_exists('./' . $is_gotofile)) {
unset($goto);
} else {
$is_gotofile = ($is_gotofile == $goto);
}
} // end if (security checkings)
if (empty($goto)) { if (empty($goto)) {
$goto = (empty($table)) ? 'db_details.php3' : 'tbl_properties.php3'; $goto = (empty($table)) ? 'db_details.php3' : 'tbl_properties.php3';
$is_gotofile = TRUE;
} }
if (!isset($err_url)) { if (!isset($err_url)) {
$err_url = $goto $err_url = $goto
@@ -110,7 +121,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) {
if (!empty($back)) { if (!empty($back)) {
$goto = $back; $goto = $back;
} }
if (@file_exists('./' . $goto)) { if ($is_gotofile) {
if ($goto == 'db_details.php3' && !empty($table)) { if ($goto == 'db_details.php3' && !empty($table)) {
unset($table); unset($table);
} }
@@ -319,7 +330,7 @@ else {
$message = $strEmptyResultSet; $message = $strEmptyResultSet;
} }
if (@file_exists('./' . $goto)) { if ($is_gotofile) {
$goto = ereg_replace('\.\.*', '.', $goto); $goto = ereg_replace('\.\.*', '.', $goto);
// Checks for a valid target script // Checks for a valid target script
if (isset($table) && $table == '') { if (isset($table) && $table == '') {

View File

@@ -16,6 +16,7 @@ require('./libraries/common.lib.php3');
if (isset($sql_query)) { if (isset($sql_query)) {
$sql_query = urldecode($sql_query); $sql_query = urldecode($sql_query);
} }
$is_gotofile = FALSE;
if (isset($after_insert) && $after_insert == 'new_insert') { if (isset($after_insert) && $after_insert == 'new_insert') {
$goto = 'tbl_change.php3' $goto = 'tbl_change.php3'
. '?lang=' . $lang . '?lang=' . $lang
@@ -39,7 +40,17 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
. '&disp_direction=' . $disp_direction . '&disp_direction=' . $disp_direction
. '&repeat_cells=' . $repeat_cells . '&repeat_cells=' . $repeat_cells
. '&sql_query=' . urlencode($sql_query); . '&sql_query=' . urlencode($sql_query);
} else if (!empty($goto)) {
// Security checkings
$is_gotofile = ereg_replace('^([^?]+).*$', '\\1', $goto);
if (!@file_exists('./' . $is_gotofile)) {
$goto = (empty($table)) ? 'db_details.php3' : 'tbl_properties.php3';
$is_gotofile = TRUE;
} else {
$is_gotofile = ($is_gotofile == $goto);
}
} }
// Defines the url to return in case of failure of the query // Defines the url to return in case of failure of the query
if (isset($err_url)) { if (isset($err_url)) {
$err_url = urldecode($err_url); $err_url = urldecode($err_url);
@@ -47,11 +58,13 @@ if (isset($err_url)) {
$err_url = str_replace('&', '&amp;', $goto) $err_url = str_replace('&', '&amp;', $goto)
. (empty($primary_key) ? '' : '&amp;primary_key=' . $primary_key); . (empty($primary_key) ? '' : '&amp;primary_key=' . $primary_key);
} }
// Resets tables defined in the configuration file // Resets tables defined in the configuration file
reset($fields); reset($fields);
if (isset($funcs)) { if (isset($funcs)) {
reset($funcs); reset($funcs);
} }
// Misc // Misc
if (get_magic_quotes_gpc()) { if (get_magic_quotes_gpc()) {
$submit_type = stripslashes($submit_type); $submit_type = stripslashes($submit_type);
@@ -140,7 +153,7 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
// No change -> move back to the calling script // No change -> move back to the calling script
else { else {
$message = $strNoModification; $message = $strNoModification;
if (@file_exists('./' . $goto)) { if ($is_gotofile) {
$js_to_run = 'functions.js'; $js_to_run = 'functions.js';
include('./header.inc.php3'); include('./header.inc.php3');
include('./' . ereg_replace('\.\.*', '.', $goto)); include('./' . ereg_replace('\.\.*', '.', $goto));
@@ -240,7 +253,7 @@ if (!$result) {
} else { } else {
$message = $strModifications; $message = $strModifications;
} }
if (@file_exists('./' . $goto)) { if ($is_gotofile) {
if ($goto == 'db_details.php3' && !empty($table)) { if ($goto == 'db_details.php3' && !empty($table)) {
unset($table); unset($table);
} }