Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
/*************************
3
  Coppermine Photo Gallery
4
  ************************
5
  Copyright (c) 2003-2005 Coppermine Dev Team
6
  v1.1 originaly 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 as published by
10
  the Free Software Foundation; either version 2 of the License, or
11
  (at your option) any later version.
12
  ********************************************
13
  Coppermine version: 1.3.3
14
  $Source: /cvsroot/coppermine/stable/phpinfo.php,v $
15
  $Revision: 1.6 $
16
  $Author: gaugau $
17
  $Date: 2005/04/19 03:17:11 $
18
**********************************************/
19
 
20
error_reporting (E_ALL ^ E_NOTICE);
21
define('IN_COPPERMINE', true);
22
define('PHPINFO_PHP', true);
23
require('include/init.inc.php');
24
 
25
$CONFIG['debug_mode']=0;
26
 
27
 
28
 
29
pageheader($lang_cpg_debug_output['phpinfo']);
30
 
31
if (!GALLERY_ADMIN_MODE) {
32
cpg_die(ERROR, $lang_errors['access_denied'] );
33
 
34
} else {
35
 
36
    ob_start();
37
    phpinfo();
38
    $string = ob_get_contents();
39
    $string = strchr($string, '</style>');
40
    $string = str_replace('</style>','',$string);
41
    $string = str_replace('class="p"','',$string);
42
    $string = str_replace('class="e"','class="tableb"',$string);
43
    $string = str_replace('class="v"','class="tablef"',$string);
44
    $string = str_replace('class="h"','class="tableh2"',$string);
45
    $string = str_replace('class="center"','',$string);
46
    ob_end_clean();
47
 
48
print '<div align="left" style="overflow:hidden;width:800px;text-align:left;">';
49
starttable('100%', $lang_phpinfo_php['php_info'], 1);
50
print '<tr><td class="tableb">';
51
print $lang_phpinfo_php['explanation'];
52
print '<br />';
53
print $lang_phpinfo_php['no_link'];
54
print '</td></tr>';
55
endtable();
56
print '<br />';
57
 
58
 
59
print $string;
60
print "</div>\n";
61
 
62
 
63
pagefooter();
64
ob_end_flush();
65
}
66
?>