Guest User

Untitled

a guest
May 26th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.60 KB | None | 0 0
  1. <?php
  2. /* $Id: display_create_database.lib.php,v 1.1 2005/07/13 12:44:51 nijel Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. // Displays form for creating database (if user has priveleges for that)
  6.  
  7. require_once('./libraries/check_user_privileges.lib.php');
  8.  
  9. if ($is_create_priv) {
  10.     // The user is allowed to create a db
  11.     ?>
  12.         <form method="post" action="db_create.php"><b>
  13.             <?php echo $strCreateNewDatabase . '&nbsp;' . PMA_showMySQLDocu('Reference', 'CREATE_DATABASE'); ?></b><br />
  14.             <?php echo PMA_generate_common_hidden_inputs('', '', 5); ?>
  15.             <input type="hidden" name="reload" value="1" />
  16.             <input type="text" name="db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" />
  17.             <?php
  18.     if (PMA_MYSQL_INT_VERSION >= 40101) {
  19.         require_once('./libraries/mysql_charsets.lib.php');
  20.         echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', NULL, NULL, TRUE, 5);
  21.     }
  22.             ?>
  23.             <input type="submit" value="<?php echo $strCreate; ?>" id="buttonGo" />
  24.         </form>
  25.     <?php
  26. } else {
  27.     ?>
  28.     <!-- db creation no privileges message -->
  29.         <b><?php echo $strCreateNewDatabase . ':&nbsp;' . PMA_showMySQLDocu('Reference', 'CREATE_DATABASE'); ?></b><br />
  30.         <?php
  31.               echo '<span class="noPrivileges">'
  32.                  . ($cfg['ErrorIconic'] ? '<img src="' . $pmaThemeImage . 's_error2.png" width="11" height="11" hspace="2" border="0" align="middle" />' : '')
  33.                  . '' . $strNoPrivileges .'</span>';
  34. } // end create db form or message
  35. ?>
Add Comment
Please, Sign In to add comment