250 |
kaklik |
1 |
<?php |
|
|
2 |
/* $Id: header_printview.inc.php,v 2.1 2005/11/24 09:12:17 nijel Exp $ */ |
|
|
3 |
// vim: expandtab sw=4 ts=4 sts=4: |
|
|
4 |
|
|
|
5 |
/** |
|
|
6 |
* Gets a core script and starts output buffering work |
|
|
7 |
*/ |
|
|
8 |
require_once('./libraries/common.lib.php'); |
|
|
9 |
require_once('./libraries/ob.lib.php'); |
|
|
10 |
if ($cfg['OBGzip']) { |
|
|
11 |
$ob_mode = PMA_outBufferModeGet(); |
|
|
12 |
if ($ob_mode) { |
|
|
13 |
PMA_outBufferPre($ob_mode); |
|
|
14 |
} |
|
|
15 |
} |
|
|
16 |
|
|
|
17 |
// Check parameters |
|
|
18 |
|
|
|
19 |
PMA_checkParameters(array('db', 'full_sql_query')); |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
// garvin: For re-usability, moved http-headers |
|
|
23 |
// to a seperate file. It can now be included by libraries/header.inc.php, |
|
|
24 |
// querywindow.php. |
|
|
25 |
|
|
|
26 |
require_once('./libraries/header_http.inc.php'); |
|
|
27 |
|
|
|
28 |
/** |
|
|
29 |
* Sends the beginning of the html page then returns to the calling script |
|
|
30 |
*/ |
|
|
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'; |
|
|
35 |
} else { |
|
|
36 |
$cell_align_left = 'right'; |
|
|
37 |
$cell_align_right = 'left'; |
|
|
38 |
} |
|
|
39 |
?> |
|
|
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; ?>"> |
|
|
43 |
|
|
|
44 |
<head> |
|
|
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" /> |
|
|
50 |
</style> |
|
|
51 |
</head> |
|
|
52 |
|
|
|
53 |
<body bgcolor="#ffffff"> |
|
|
54 |
<h1><?php echo $strSQLResult; ?></h1> |
|
|
55 |
<p> |
|
|
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; ?> |
|
|
63 |
<?php } ?> |
|
|
64 |
</p> |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
<?php |
|
|
68 |
|
|
|
69 |
/** |
|
|
70 |
* Sets a variable to remember headers have been sent |
|
|
71 |
*/ |
|
|
72 |
$is_header_sent = TRUE; |
|
|
73 |
?> |