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
|
<?php /************************* Coppermine Photo Gallery ************************ Copyright (c) 2003-2008 Dev Team v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. ******************************************** Coppermine version: 1.4.19 $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/phpinfo.php $ $Revision: 4392 $ $Author: gaugau $ $Date: 2008-04-16 09:25:35 +0200 (Mi, 16 Apr 2008) $ **********************************************/
error_reporting (E_ALL ^ E_NOTICE); define('IN_COPPERMINE', true); define('PHPINFO_PHP', true); require('include/init.inc.php');
$CONFIG['debug_mode']=0;
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied']);
pageheader($lang_cpg_debug_output['phpinfo']);
ob_start(); phpinfo(); $string = ob_get_contents(); $string = strchr($string, '</style>'); $string = str_replace('</style>','',$string); $string = str_replace('class="p"','',$string); $string = str_replace('class="e"','class="tableb"',$string); $string = str_replace('class="v"','class="tablef"',$string); $string = str_replace('class="h"','class="tableh2"',$string); $string = str_replace('class="center"','',$string); ob_end_clean();
print '<div align="left" style="overflow:hidden;width:800px;text-align:left;">'; starttable('100%', $lang_phpinfo_php['php_info'], 1); print '<tr><td class="tableb">'; print $lang_phpinfo_php['explanation']; print '<br />'; print $lang_phpinfo_php['no_link']; print '</td></tr>'; endtable(); print '<br />';
print $string; print "</div>\n";
pagefooter(); ob_end_flush();
?>
|