update
[phpmyadmin/crack.git] / header_printview.inc.php3
blob07756d851ff42f5ac9aa6a5d4265ec4a3d93f728
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 /**
6 * Gets a core script and starts output buffering work
7 */
8 require('./libraries/common.lib.php3');
9 require('./libraries/ob.lib.php3');
10 if ($cfg['OBGzip']) {
11 $ob_mode = PMA_outBufferModeGet();
12 if ($ob_mode) {
13 PMA_outBufferPre($ob_mode);
18 /**
19 * Sends http headers
21 // Don't use cache (required for Opera)
22 $now = gmdate('D, d M Y H:i:s') . ' GMT';
23 header('Expires: ' . $now); // rfc2616 - Section 14.21
24 header('Last-Modified: ' . $now);
25 header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
26 header('Pragma: no-cache'); // HTTP/1.0
27 // Define the charset to be used
28 header('Content-Type: text/html; charset=' . $charset);
31 /**
32 * Sends the beginning of the html page then returns to the calling script
34 // Gets the font sizes to use
35 PMA_setFontSizes();
36 // Defines the cell alignment values depending on text direction
37 if ($text_dir == 'ltr') {
38 $cell_align_left = 'left';
39 $cell_align_right = 'right';
40 } else {
41 $cell_align_left = 'right';
42 $cell_align_right = 'left';
45 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
46 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
47 <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; ?>">
49 <head>
50 <title><?php echo $strSQLResult; ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
51 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
52 <style type="text/css">
53 <!--
54 body {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>; color: #000000; background-color: #ffffff}
55 h1 {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_bigger; ?>; font-weight: bold}
56 table {border-width:1px; border-color:#000000; border-style:solid; border-collapse:collapse; border-spacing:0}
57 th {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>; font-weight: bold; color: #000000; background-color: #ffffff; border-width:1px; border-color:#000000; border-style:solid; padding:2px}
58 td {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>; color: #000000; background-color: #ffffff; border-width:1px; border-color:#000000; border-style:solid; padding:2px}
59 //-->
60 </style>
61 </head>
64 <body bgcolor="#ffffff">
65 <h1><?php echo $strSQLResult; ?></h1>
66 <p>
67 <b><?php echo $strHost; ?>:</b> <?php echo $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
68 <b><?php echo $strDatabase; ?>:</b> <?php echo htmlspecialchars($db); ?><br />
69 <b><?php echo $strGenTime; ?>:</b> <?php echo PMA_localisedDate(); ?><br />
70 <b><?php echo $strGenBy; ?>:</b> phpMyAdmin <?php echo PMA_VERSION; ?><br />
71 <b><?php echo $strSQLQuery; ?>:</b> <?php echo htmlspecialchars($full_sql_query); ?>;
72 </p>
75 <?php
77 /**
78 * Sets a variable to remember headers have been sent
80 $is_header_sent = TRUE;