aspect ratio
[phpmyadmin/crack.git] / header_printview.inc.php3
blob197c30eb0115a14ccdfc84987ca73ba587fb201a
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);
17 // Check parameters
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 header.inc.php3,
24 // queryframe.php3, querywindow.php3.
26 include('./libraries/header_http.inc.php3');
28 /**
29 * Sends the beginning of the html page then returns to the calling script
31 // Gets the font sizes to use
32 PMA_setFontSizes();
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';
37 } else {
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; ?>">
46 <head>
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.php3?lang=<?php echo $lang; ?>&amp;js_frame=print" />
50 </style>
51 </head>
54 <body bgcolor="#ffffff">
55 <h1><?php echo $strSQLResult; ?></h1>
56 <p>
57 <b><?php echo $strHost; ?>:</b> <?php echo $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
58 <b><?php echo $strDatabase; ?>:</b> <?php echo htmlspecialchars($db); ?><br />
59 <b><?php echo $strGenTime; ?>:</b> <?php echo PMA_localisedDate(); ?><br />
60 <b><?php echo $strGenBy; ?>:</b> phpMyAdmin <?php echo PMA_VERSION; ?><br />
61 <b><?php echo $strSQLQuery; ?>:</b> <?php echo htmlspecialchars($full_sql_query); ?>;
62 </p>
65 <?php
67 /**
68 * Sets a variable to remember headers have been sent
70 $is_header_sent = TRUE;