Viewing file: display_create_database.lib.php (1.69 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Displays form for creating database (if user has privileges for that) * * @version $Id: display_create_database.lib.php 12237 2009-02-16 10:13:51Z lem9 $ * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; }
/** * */ require_once './libraries/check_user_privileges.lib.php';
if ($is_create_db_priv) { // The user is allowed to create a db ?> <form method="post" action="db_create.php"><strong> <?php echo '<label for="text_create_db">' . $strCreateNewDatabase . '</label> ' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br /> <?php echo PMA_generate_common_hidden_inputs('', '', 5); ?> <input type="hidden" name="reload" value="1" /> <input type="text" name="new_db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" id="text_create_db"/> <?php require_once './libraries/mysql_charsets.lib.php'; echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', null, null, TRUE, 5); ?> <input type="submit" value="<?php echo $strCreate; ?>" id="buttonGo" /> </form> <?php } else { ?> <!-- db creation no privileges message --> <strong><?php echo $strCreateNewDatabase . ': ' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br /> <?php echo '<span class="noPrivileges">' . ($cfg['ErrorIconic'] ? '<img src="' . $pmaThemeImage . 's_error2.png" alt="" width="11" height="11" hspace="2" border="0" align="middle" />' : '') . '' . $strNoPrivileges .'</span>'; } // end create db form or message ?>
|