Coppermine PHP Cross Reference Image Galleries

Source: /phpinfo.php - 62 lines - 2113 bytes - Summary - Text - Print

   1  <?php
   2  /*************************

   3    Coppermine Photo Gallery

   4    ************************

   5    Copyright (c) 2003-2014 Coppermine Dev Team

   6    v1.0 originally written by Gregory Demar

   7  

   8    This program is free software; you can redistribute it and/or modify

   9    it under the terms of the GNU General Public License version 3

  10    as published by the Free Software Foundation.

  11  

  12    ********************************************

  13    Coppermine version: 1.5.28

  14    $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/phpinfo.php $

  15    $Revision: 8683 $

  16  **********************************************/
  17  
  18  error_reporting (E_ALL ^ E_NOTICE);
  19  define('IN_COPPERMINE', true);
  20  define('PHPINFO_PHP', true);
  21  require ('include/init.inc.php');
  22  
  23  $CONFIG['debug_mode']=0;
  24  
  25  if (!GALLERY_ADMIN_MODE) {
  26      cpg_die(ERROR, $lang_errors['access_denied']);
  27  }
  28  
  29  pageheader($lang_cpg_debug_output['phpinfo']);
  30  
  31  ob_start();
  32  phpinfo();
  33  preg_match('#<body>(.*)</body>#s', ob_get_clean(), $matches);
  34  $string = $matches[1];
  35  
  36  $string = str_replace(' class="p"','',$string);
  37  $string = str_replace(' class="e"','',$string);
  38  $string = str_replace(' class="v"','',$string);
  39  $string = str_replace(' class="h"',' class="tableh2"',$string);
  40  $string = str_replace(' class="center"','',$string);
  41  $string = str_replace(' width="600"','',$string);
  42  $string = str_replace(' cellpadding="3"','',$string);
  43  $string = str_replace('<table border="0"','<table',$string);
  44  $string = str_replace('<table>','<table border="0" cellspacing="0" cellpadding="0" class="cpg_zebra" style="table-layout:fixed;width:100%">',$string);
  45  $string = str_replace('<td>','<td style="text-align:left;vertical-align:top">',$string);
  46  
  47  print '<div align="left" style="overflow:hidden;width:100%;text-align:left;">';
  48  starttable('100%', cpg_fetch_icon('phpinfo', 2) . $lang_phpinfo_php['php_info'], 1);
  49  print '<tr><td class="tableb">';
  50  print $lang_phpinfo_php['explanation'];
  51  print '<br />';
  52  print $lang_phpinfo_php['no_link'];
  53  print '</td></tr>';
  54  endtable();
  55  print '<br />';
  56  
  57  print $string;
  58  print '</div>' . $LINEBREAK;
  59  
  60  pagefooter();
  61  
  62  ?>

title

Description

title

Description

title

Description

title

title

Body