Documentation TYPO3 par Ameos

db_details_common.php

00001 <?php
00002 /* $Id: db_details_common.php,v 2.10 2004/10/21 10:18:12 nijel Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00008 require_once('./libraries/grab_globals.lib.php');
00009 require_once('./libraries/common.lib.php');
00010 require_once('./libraries/bookmark.lib.php');
00011 
00012 PMA_checkParameters(array('db'));
00013 
00017 $err_url_0 = 'main.php?' . PMA_generate_common_url();
00018 $err_url   = $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db);
00019 
00020 
00025 if (!isset($is_db) || !$is_db) {
00026     // Not a valid db name -> back to the welcome page
00027     if (!empty($db)) {
00028         $is_db = PMA_DBI_select_db($db);
00029     }
00030     if (empty($db) || !$is_db) {
00031         PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
00032         exit;
00033     }
00034 } // end if (ensures db exists)
00035 
00039 if (isset($submitcollation) && !empty($db_collation) && PMA_MYSQL_INT_VERSION >= 40101) {
00040     list($db_charset) = explode('_', $db_collation);
00041     $sql_query        = 'ALTER DATABASE ' . PMA_backquote($db) . ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation);
00042     $result           = PMA_DBI_query($sql_query);
00043     $message          = $strSuccess;
00044     unset($db_charset, $db_collation);
00045 }
00046 
00047 $js_to_run = 'functions.js';
00048 require_once('./header.inc.php');
00049 
00053 $url_query = PMA_generate_common_url($db);
00054 
00055 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6