lang
[phpmyadmin/crack.git] / header_printview.inc.php3
blobb4b0383b0dbf05efdcc6c5b702652cca1ff944ba
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 // garvin: For re-usability, moved http-headers
19 // to a seperate file. It can now be included by header.inc.php3,
20 // queryframe.php3, querywindow.php3.
22 include('./libraries/header_http.inc.php3');
24 /**
25 * Sends the beginning of the html page then returns to the calling script
27 // Gets the font sizes to use
28 PMA_setFontSizes();
29 // Defines the cell alignment values depending on text direction
30 if ($text_dir == 'ltr') {
31 $cell_align_left = 'left';
32 $cell_align_right = 'right';
33 } else {
34 $cell_align_left = 'right';
35 $cell_align_right = 'left';
38 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
39 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
40 <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; ?>">
42 <head>
43 <title><?php echo $strSQLResult; ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
44 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
45 <link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php3?lang=<?php echo $lang; ?>&amp;js_frame=print" />
46 </style>
47 </head>
50 <body bgcolor="#ffffff">
51 <h1><?php echo $strSQLResult; ?></h1>
52 <p>
53 <b><?php echo $strHost; ?>:</b> <?php echo $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
54 <b><?php echo $strDatabase; ?>:</b> <?php echo htmlspecialchars($db); ?><br />
55 <b><?php echo $strGenTime; ?>:</b> <?php echo PMA_localisedDate(); ?><br />
56 <b><?php echo $strGenBy; ?>:</b> phpMyAdmin <?php echo PMA_VERSION; ?><br />
57 <b><?php echo $strSQLQuery; ?>:</b> <?php echo htmlspecialchars($full_sql_query); ?>;
58 </p>
61 <?php
63 /**
64 * Sets a variable to remember headers have been sent
66 $is_header_sent = TRUE;