[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/modules/Forums/admin/ -> page_footer_admin.php (source)

   1  <?php
   2  /***************************************************************************
   3   *                           page_footer_admin.php
   4   *                            -------------------
   5   *   begin                : Saturday, Jul 14, 2001
   6   *   copyright            : (C) 2001 The phpBB Group
   7   *   email                : support@phpbb.com
   8   *
   9   *   $Id: page_footer_admin.php,v 1.9.2.3 2005/04/15 20:15:47 acydburn Exp $
  10   *
  11   *
  12   ***************************************************************************/
  13  
  14  /***************************************************************************
  15   *
  16   *   This program is free software; you can redistribute it and/or modify
  17   *   it under the terms of the GNU General Public License as published by
  18   *   the Free Software Foundation; either version 2 of the License, or
  19   *   (at your option) any later version.
  20   *
  21   ***************************************************************************/
  22  
  23  if ( !defined('IN_PHPBB') )
  24  {
  25          die("Hacking attempt");
  26  }
  27  
  28  //
  29  // Show the overall footer.
  30  //
  31  $template->set_filenames(array(
  32          'page_footer' => 'admin/page_footer.tpl')
  33  );
  34  
  35  $template->assign_vars(array(
  36      'PHPBB_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? '2' . $board_config['version'] : '',
  37          'TRANSLATION_INFO' => $lang['TRANSLATION_INFO'])
  38  );
  39  
  40  $template->pparse('page_footer');
  41  
  42  //
  43  // Close our DB connection.
  44  //
  45  $db->sql_close();
  46  
  47  //
  48  // Compress buffered output if required
  49  // and send to browser
  50  //
  51  if( $do_gzip_compress )
  52  {
  53          //
  54          // Borrowed from php.net!
  55          //
  56          $gzip_contents = ob_get_contents();
  57          ob_end_clean();
  58  
  59          $gzip_size = strlen($gzip_contents);
  60          $gzip_crc = crc32($gzip_contents);
  61  
  62          $gzip_contents = gzcompress($gzip_contents, 9);
  63          $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
  64  
  65          echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
  66          echo $gzip_contents;
  67          echo pack('V', $gzip_crc);
  68          echo pack('V', $gzip_size);
  69  }
  70  
  71  exit;
  72  
  73  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7