2 /* vim: set expandtab sw=4 ts=4 sts=4: */
7 if (! defined('PHPMYADMIN')) {
12 * Gets a core script and starts output buffering work
14 require_once './libraries/common.inc.php';
15 require_once './libraries/ob.lib.php';
20 PMA_checkParameters(array('db', 'full_sql_query'));
23 // For re-usability, moved http-headers
24 // to a separate file. It can now be included by libraries/header.inc.php,
27 require_once './libraries/header_http.inc.php';
30 * Sends the beginning of the html page then returns to the calling script
32 // Defines the cell alignment values depending on text direction
33 if ($text_dir == 'ltr') {
34 $cell_align_left = 'left';
35 $cell_align_right = 'right';
37 $cell_align_left = 'right';
38 $cell_align_right = 'left';
41 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
42 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
43 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="<?php echo $available_languages[$lang][1]; ?>" lang
="<?php echo $available_languages[$lang][1]; ?>" dir
="<?php echo $text_dir; ?>">
46 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
47 <link rel
="icon" href
="./favicon.ico" type
="image/x-icon" />
48 <link rel
="shortcut icon" href
="./favicon.ico" type
="image/x-icon" />
49 <title
><?php
echo __('SQL result'); ?
> - phpMyAdmin
<?php
echo PMA_VERSION ?
></title
>
50 <link rel
="stylesheet" type
="text/css" href
="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&js_frame=print&nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
53 <body bgcolor
="#ffffff">
54 <h1
><?php
echo __('SQL result'); ?
></h1
>
56 <strong
><?php
echo __('Host'); ?
>:</strong
> <?php
echo $cfg['Server']['verbose'] ?
$cfg['Server']['verbose'] : $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ?
':' . $cfg['Server']['port'] : ''); ?
><br
/>
57 <strong
><?php
echo __('Database'); ?
>:</strong
> <?php
echo htmlspecialchars($db); ?
><br
/>
58 <strong
><?php
echo __('Generation Time'); ?
>:</strong
> <?php
echo PMA_localisedDate(); ?
><br
/>
59 <strong
><?php
echo __('Generated by'); ?
>:</strong
> phpMyAdmin
 
;<?php
echo PMA_VERSION
; ?
> 
;/ MySQL
 
;<?php
echo PMA_MYSQL_STR_VERSION
; ?
><br
/>
60 <strong
><?php
echo __('SQL query'); ?
>:</strong
> <?php
echo htmlspecialchars($full_sql_query); ?
>;
61 <?php
if (isset($num_rows)) { ?
><br
/>
62 <strong
><?php
echo __('Rows'); ?
>:</strong
> <?php
echo $num_rows; ?
>
70 * Sets a variable to remember headers have been sent
72 $is_header_sent = true;