Blame view

pma/libraries/header_printview.inc.php 2.67 KB
a1684257   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  <?php
  /* vim: set expandtab sw=4 ts=4 sts=4: */
  /**
   *
   * @package PhpMyAdmin
   */
  if (! defined('PHPMYADMIN')) {
      exit;
  }
  
  /**
   * Gets a core script and starts output buffering work
   */
  require_once './libraries/common.inc.php';
  require_once './libraries/ob.lib.php';
  PMA_outBufferPre();
  
  // Check parameters
  
  PMA_checkParameters(array('db', 'full_sql_query'));
  
  
  // For re-usability, moved http-headers
  // to a separate file. It can now be included by libraries/header.inc.php,
  // querywindow.php.
  
  require_once './libraries/header_http.inc.php';
  
  /**
   * Sends the beginning of the html page then returns to the calling script
   */
  // Defines the cell alignment values depending on text direction
  if ($text_dir == 'ltr') {
      $cell_align_left  = 'left';
      $cell_align_right = 'right';
  } else {
      $cell_align_left  = 'right';
      $cell_align_right = 'left';
  }
  ?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <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; ?>">
  
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="icon" href="./favicon.ico" type="image/x-icon" />
  <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  <title><?php echo __('SQL result'); ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
  <link rel="stylesheet" type="text/css" href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&amp;js_frame=print&amp;nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
  <?php
  require_once './libraries/header_scripts.inc.php';
  ?>
  </head>
  
  <body bgcolor="#ffffff">
  <h1><?php echo __('SQL result'); ?></h1>
  <p>
      <strong><?php echo __('Host'); ?>:</strong> <?php echo $cfg['Server']['verbose'] ? $cfg['Server']['verbose'] : $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
      <strong><?php echo __('Database'); ?>:</strong> <?php echo htmlspecialchars($db); ?><br />
      <strong><?php echo __('Generation Time'); ?>:</strong> <?php echo PMA_localisedDate(); ?><br />
      <strong><?php echo __('Generated by'); ?>:</strong> phpMyAdmin&nbsp;<?php echo PMA_VERSION; ?>&nbsp;/ MySQL&nbsp;<?php echo PMA_MYSQL_STR_VERSION; ?><br />
      <strong><?php echo __('SQL query'); ?>:</strong> <?php echo htmlspecialchars($full_sql_query); ?>;
      <?php if (isset($num_rows)) { ?><br />
      <strong><?php echo __('Rows'); ?>:</strong> <?php echo $num_rows; ?>
      <?php } ?>
  </p>
  
  
  <?php
  
  /**
   * Sets a variable to remember headers have been sent
   */
  $is_header_sent = true;
  ?>