2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 if (! defined('PHPMYADMIN')) {
13 * Gets a core script and starts output buffering work
15 require_once './libraries/common.inc.php';
16 require_once './libraries/ob.lib.php';
21 PMA_checkParameters(array('db', 'full_sql_query'));
24 // garvin: For re-usability, moved http-headers
25 // to a seperate file. It can now be included by libraries/header.inc.php,
28 require_once './libraries/header_http.inc.php';
31 * Sends the beginning of the html page then returns to the calling script
33 // Defines the cell alignment values depending on text direction
34 if ($text_dir == 'ltr') {
35 $cell_align_left = 'left';
36 $cell_align_right = 'right';
38 $cell_align_left = 'right';
39 $cell_align_right = 'left';
42 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
43 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
44 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="<?php echo $available_languages[$lang][2]; ?>" lang
="<?php echo $available_languages[$lang][2]; ?>" dir
="<?php echo $text_dir; ?>">
47 <meta http
-equiv
="Content-Type" content
="text/html; charset=<?php echo $charset; ?>" />
48 <link rel
="icon" href
="./favicon.ico" type
="image/x-icon" />
49 <link rel
="shortcut icon" href
="./favicon.ico" type
="image/x-icon" />
50 <title
><?php
echo $strSQLResult; ?
> - phpMyAdmin
<?php
echo PMA_VERSION ?
></title
>
51 <link rel
="stylesheet" type
="text/css" href
="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&js_frame=print&nocache=<?php echo $_SESSION['PMA_Config']->getThemeUniqueValue(); ?>" />
54 <body bgcolor
="#ffffff">
55 <h1
><?php
echo $strSQLResult; ?
></h1
>
57 <strong
><?php
echo $strHost; ?
>:</strong
> <?php
echo $cfg['Server']['verbose'] ?
$cfg['Server']['verbose'] : $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ?
':' . $cfg['Server']['port'] : ''); ?
><br
/>
58 <strong
><?php
echo $strDatabase; ?
>:</strong
> <?php
echo htmlspecialchars($db); ?
><br
/>
59 <strong
><?php
echo $strGenTime; ?
>:</strong
> <?php
echo PMA_localisedDate(); ?
><br
/>
60 <strong
><?php
echo $strGenBy; ?
>:</strong
> phpMyAdmin
 
;<?php
echo PMA_VERSION
; ?
> 
;/ MySQL
 
;<?php
echo PMA_MYSQL_STR_VERSION
; ?
><br
/>
61 <strong
><?php
echo $strSQLQuery; ?
>:</strong
> <?php
echo htmlspecialchars($full_sql_query); ?
>;
62 <?php
if (isset($num_rows)) { ?
><br
/>
63 <strong
><?php
echo $strRows; ?
>:</strong
> <?php
echo $num_rows; ?
>
71 * Sets a variable to remember headers have been sent
73 $is_header_sent = TRUE;