Marc outsource some strings in main.php3 & kill the bug in main.php3 about Create privilege

This commit is contained in:
Loïc Chapeaux
2001-05-04 21:39:50 +00:00
parent 333758c100
commit 2aa34f98ce
4 changed files with 24 additions and 11 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-05-04 Marc Delisle <lem9@users.sourceforge.net>
* outsource some strings in main.php3
* kill the bug in main.php3 about Create privilege
2001-05-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* build a js library that contains all the functions used to collapse/expand
databases list stuff and improve them

View File

@@ -57,6 +57,8 @@ $strHasBeenCreated = "has been created.";
$strHasBeenDropped = "has been dropped.";
$strHasBeenEmptied = "has been emptied.";
$strHome = "Home";
$strHomepageOfficial = "Official phpMyAdmin Homepage"; //lem9
$strHomepageSourceforge = "new (but still unofficial) phpMyAdmin Homepage"; //lem9
$strHost = "Host";
$strIfYouWish = "If you wish to load only some of a table's columns, specify a comma separated field list.";
$strIndex = "Index";

View File

@@ -15,7 +15,7 @@ $strAnd = "et";
$strAscending = "Croissant";
$strAtBeginningOfTable = "En d<>but de Table";
$strAtEndOfTable = "En fin de Table";
$strAttr = "Attributes";
$strAttr = "Attributs";
$strBack = "Retour";
$strBrowse = "Afficher";
$strCarriage = "Retour de chariot: \\r";
@@ -30,7 +30,7 @@ $strCreateNewTable = "Cr
$strCriteria = "Crit<EFBFBD>re";
$strDatabase = "Base de donn<6E>es";
$strDatabases = "bases de donn<6E>es";
$strDefault = "Defaut";
$strDefault = "D<EFBFBD>faut";
$strDelete = "Effacer";
$strDeleted = "L'enregistrement a <20>t<EFBFBD> effac<61>";
$strDescending = "D<EFBFBD>croissant";
@@ -60,6 +60,8 @@ $strHasBeenCreated = "a
$strHasBeenDropped = "a <20>t<EFBFBD> effac<61>.";
$strHasBeenEmptied = "a <20>t<EFBFBD> vid<69>.";
$strHome = "Accueil";
$strHomepageOfficial = "Site officiel de phpMyAdmin";
$strHomepageSourceforge = "Nouveau site (non encore officiel) de phpMyAdmin";
$strHost = "Serveur";
$strIfYouWish = "Si vous d<>sirez ne charger que certaines colonnes, indiquez leurs noms, s<>par<61>s par des virgules.";
$strIndex = "Index";
@@ -130,6 +132,7 @@ $strSuccess = "Votre requ
$strTable = "table ";
$strTableComments = "Commentaires sur la table";
$strTableStructure = "Structure de la table";
$strTableType = "Table en format"; // Robbat2, lem9
$strTerminatedBy = "termin<EFBFBD>(e)s par";
$strTheContent = "Le contenu de votre fichier a <20>t<EFBFBD> ins<6E>r<EFBFBD>.";
$strTheContents = "Le contenu du fichier remplacera le contenu de la table pour les enregistrements ayant une valeur de cl<63> primaire ou unique identique.";

View File

@@ -89,13 +89,17 @@ if($server > 0) {
$result_db=mysql_fetch_array($rs_db);
}
if($result_usr['Create_priv']=='Y') {
$CREATE=TRUE;
} elseif(!empty($result_db) && $result_db['Create_priv']=='Y') {
$CREATE=TRUE;
} else {
$CREATE=FALSE;
}
if($result_usr['Create_priv']=='Y') {
$CREATE=TRUE;
// BEGIN
// 2001-05-04, Lem9: The create_priv on a single database does not allow
// to create a database
// } elseif(!empty($result_db) && $result_db['Create_priv']=='Y') {
// $CREATE=TRUE;
// END
} else {
$CREATE=FALSE;
}
if($CREATE) {
?>
@@ -151,10 +155,10 @@ if($server > 0) {
?>
<li>
<a href="http://phpmyadmin.sourceforge.net/" target="_top">new (but still unofficial) phpMyAdmin-Homepage</a> (sourceforge)
<a href="http://phpmyadmin.sourceforge.net/" target="_top"><?php print $strHomepageSourceforge; ?> </a> (sourceforge)
&nbsp;&nbsp;&nbsp;&nbsp; [ <a href="ChangeLog" target="_top">ChangeLog</a> ]
<li>
<a href="http://phpwizard.net/projects/phpMyAdmin/" target="_top">Official phpMyAdmin-Homepage</a>
<a href="http://phpwizard.net/projects/phpMyAdmin/" target="_top"><?php print $strHomepageOfficial; ?> </a>
<li>
<a href="Documentation.html" target="_top">phpMyAdmin <?php print $strDocu;?></a>