[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpsysinfo/includes/ -> system_header.php (source)

   1  <?php 
   2  
   3  // phpSysInfo - A PHP System Information Script
   4  // http://phpsysinfo.sourceforge.net/
   5  
   6  // This program is free software; you can redistribute it and/or
   7  // modify it under the terms of the GNU General Public License
   8  // as published by the Free Software Foundation; either version 2
   9  // of the License, or (at your option) any later version.
  10  
  11  // This program is distributed in the hope that it will be useful,
  12  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  // GNU General Public License for more details.
  15  
  16  // You should have received a copy of the GNU General Public License
  17  // along with this program; if not, write to the Free Software
  18  // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19  
  20  // $Id: system_header.php 21228 2006-04-06 13:52:08Z ralfbecker $
  21  if (!defined('IN_PHPSYSINFO')) {
  22      die("No Hacking");
  23  }
  24  
  25  header("Cache-Control: no-cache, must-revalidate");
  26  if (!isset($charset)) {
  27    $charset = 'iso-8859-1';
  28  } 
  29  
  30  setlocale (LC_ALL, $text['locale']);
  31  
  32  header('Content-Type: text/html; charset=' . $charset);
  33  
  34  global $XPath;
  35  
  36  echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
  37  echo "<html>\n";
  38  echo created_by();
  39  echo "<head>\n";
  40  echo "  <title>" . $text['title'], " -- ", $XPath->getData('/phpsysinfo/Vitals/Hostname'), " --</title>\n";
  41  
  42  if (isset($charset) && $charset == 'euc-jp') {
  43      echo "  <meta http-equiv=\"content-type\" content=\"text/html;charset=$charset\">\n";
  44  }
  45  if (isset($refresh) && ($refresh = intval($refresh))) {
  46    echo "  <meta http-equiv=\"Refresh\" content=\"$refresh\">\n";
  47  }
  48  if (file_exists(APP_ROOT . "/templates/$template/$template.css")) {
  49    echo "  <link rel=\"stylesheet\" type=\"text/css\" href=\"" . $webpath . "templates/" . $template . "/" . $template . ".css\">\n";
  50  }
  51  
  52  echo "</head>\n";
  53  
  54  if (file_exists(APP_ROOT . "/templates/$template/images/$template" . "_background.gif")) {
  55    echo "<body background=\"" . $webpath . "templates/" . $template . "/images/" . $template . "_background.gif\">";
  56  } else {
  57    echo "<body>\n";
  58  }
  59  
  60  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7