3 // vim: expandtab sw=4 ts=4 sts=4:
6 * Gets a core script and starts output buffering work
8 require_once('./libraries/common.lib.php');
9 require_once('./libraries/ob.lib.php');
11 $ob_mode = PMA_outBufferModeGet();
13 PMA_outBufferPre($ob_mode);
19 PMA_checkParameters(array('db', 'full_sql_query'));
22 // garvin: For re-usability, moved http-headers
23 // to a seperate file. It can now be included by libraries/header.inc.php,
26 require_once('./libraries/header_http.inc.php');
29 * Sends the beginning of the html page then returns to the calling script
31 // Defines the cell alignment values depending on text direction
32 if ($text_dir == 'ltr') {
33 $cell_align_left = 'left';
34 $cell_align_right = 'right';
36 $cell_align_left = 'right';
37 $cell_align_right = 'left';
40 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
41 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
42 <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; ?>">
45 <link rel
="icon" href
="./favicon.ico" type
="image/x-icon" />
46 <link rel
="shortcut icon" href
="./favicon.ico" type
="image/x-icon" />
47 <title
><?php
echo $strSQLResult; ?
> - phpMyAdmin
<?php
echo PMA_VERSION ?
></title
>
48 <meta http
-equiv
="Content-Type" content
="text/html; charset=<?php echo $charset; ?>" />
49 <link rel
="stylesheet" type
="text/css" href
="./css/phpmyadmin.css.php?<?php echo PMA_generate_common_url( '', '' ); ?>&js_frame=print" />
53 <body bgcolor
="#ffffff">
54 <h1
><?php
echo $strSQLResult; ?
></h1
>
56 <b
><?php
echo $strHost; ?
>:</b
> <?php
echo $cfg['Server']['verbose'] ?
$cfg['Server']['verbose'] : $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ?
':' . $cfg['Server']['port'] : ''); ?
><br
/>
57 <b
><?php
echo $strDatabase; ?
>:</b
> <?php
echo htmlspecialchars($db); ?
><br
/>
58 <b
><?php
echo $strGenTime; ?
>:</b
> <?php
echo PMA_localisedDate(); ?
><br
/>
59 <b
><?php
echo $strGenBy; ?
>:</b
> phpMyAdmin
 
;<?php
echo PMA_VERSION
; ?
> 
;/ MySQL
 
;<?php
echo PMA_MYSQL_STR_VERSION
; ?
><br
/>
60 <b
><?php
echo $strSQLQuery; ?
>:</b
> <?php
echo htmlspecialchars($full_sql_query); ?
>;
61 <?php
if (isset($num_rows)) { ?
><br
/>
62 <b
><?php
echo $strRows; ?
>:</b
> <?php
echo $num_rows; ?
>
70 * Sets a variable to remember headers have been sent
72 $is_header_sent = TRUE;