Documentation TYPO3 par Ameos

display_create_database.lib.php

00001 <?php
00002 /* $Id: display_create_database.lib.php,v 1.1 2005/07/13 12:44:51 nijel Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 // Displays form for creating database (if user has priveleges for that)
00006 
00007 require_once('./libraries/check_user_privileges.lib.php');
00008 
00009 if ($is_create_priv) {
00010     // The user is allowed to create a db
00011     ?>
00012         <form method="post" action="db_create.php"><b>
00013             <?php echo $strCreateNewDatabase . '&nbsp;' . PMA_showMySQLDocu('Reference', 'CREATE_DATABASE'); ?></b><br />
00014             <?php echo PMA_generate_common_hidden_inputs('', '', 5); ?>
00015             <input type="hidden" name="reload" value="1" />
00016             <input type="text" name="db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" />
00017             <?php
00018     if (PMA_MYSQL_INT_VERSION >= 40101) {
00019         require_once('./libraries/mysql_charsets.lib.php');
00020         echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', NULL, NULL, TRUE, 5);
00021     }
00022             ?>
00023             <input type="submit" value="<?php echo $strCreate; ?>" id="buttonGo" />
00024         </form>
00025     <?php
00026 } else {
00027     ?>
00028     <!-- db creation no privileges message -->
00029         <b><?php echo $strCreateNewDatabase . ':&nbsp;' . PMA_showMySQLDocu('Reference', 'CREATE_DATABASE'); ?></b><br />
00030         <?php
00031               echo '<span class="noPrivileges">'
00032                  . ($cfg['ErrorIconic'] ? '<img src="' . $pmaThemeImage . 's_error2.png" width="11" height="11" hspace="2" border="0" align="middle" />' : '')
00033                  . '' . $strNoPrivileges .'</span>';
00034 } // end create db form or message
00035 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6