Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
admin
statistics
server
php.php
Go to the documentation of this file.
1
<?php
6
$php_log
= ini_get(
'error_log'
);
7
if
(!
$php_log
) {
8
$php_log
=
elgg_echo
(
'admin:server:error_log'
);
9
}
10
11
$post_max_size
=
elgg_get_ini_setting_in_bytes
(
'post_max_size'
);
12
$upload_max_filesize
=
elgg_get_ini_setting_in_bytes
(
'upload_max_filesize'
);
13
14
$post_max_size_warning
=
''
;
15
if
(
$upload_max_filesize
>
$post_max_size
) {
16
// @todo show a link to something like http://nigel.mcnie.name/blog/uploadmaxfilesizepostmaxsize-experimentation ?
17
$post_max_size_warning
=
elgg_echo
(
'admin:server:warning:post_max_too_small'
);
18
}
19
20
?>
21
<
table
class
=
"elgg-table-alt"
>
22
<
tr
class
=
"odd"
>
23
<
td
><
b
><?php
echo
elgg_echo
(
'admin:server:label:php_version'
); ?> :</
b
></
td
>
24
<
td
><?php
echo
phpversion(); ?></
td
>
25
</
tr
>
26
<
tr
class
=
"even"
>
27
<
td
><
b
><?php
echo
elgg_echo
(
'admin:server:label:php_ini'
); ?> :</
b
></
td
>
28
<
td
><?php
echo
php_ini_loaded_file(); ?></
td
>
29
</tr>
30
<tr
class
=
"odd"
>
31
<
td
><
b
><?php
echo
elgg_echo
(
'admin:server:label:php_log'
); ?> :</
b
></
td
>
32
<
td
><?php
echo
$php_log
; ?></
td
>
33
</tr>
34
<tr
class
=
"even"
>
35
<
td
><
b
><?php
echo
elgg_echo
(
'admin:server:label:mem_avail'
); ?> :</
b
></
td
>
36
<
td
><?php
echo
number_format(
elgg_get_ini_setting_in_bytes
(
'memory_limit'
)); ?></
td
>
37
</tr>
38
<tr
class
=
"odd"
>
39
<
td
><
b
><?php
echo
elgg_echo
(
'admin:server:label:mem_used'
); ?> :</
b
></
td
>
40
<
td
><?php
echo
number_format(memory_get_peak_usage()); ?></
td
>
41
</tr>
42
<tr
class
=
"even"
>
43
<
td
><
b
><?php
echo
elgg_echo
(
'admin:server:label:post_max_size'
); ?> :</
b
></
td
>
44
<
td
><?php
echo
number_format(
$post_max_size
); ?></
td
>
45
</tr>
46
<tr
class
=
"odd"
>
47
<
td
><
b
><?php
echo
elgg_echo
(
'admin:server:label:upload_max_filesize'
); ?> :</
b
></
td
>
48
<
td
><?php
echo
number_format(
$upload_max_filesize
) .
' '
.
$post_max_size_warning
; ?></
td
>
49
</tr>
50
</
table
>
$post_max_size
if(!$php_log) $post_max_size
Definition:
php.php:11
$php_log
$php_log
Server PHP info.
Definition:
php.php:6
elgg_get_ini_setting_in_bytes
elgg_get_ini_setting_in_bytes($setting)
Returns a PHP INI setting in bytes.
Definition:
elgglib.php:1324
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
b
b
Definition:
admin.php:56
$post_max_size_warning
$post_max_size_warning
Definition:
php.php:14
echo
elgg echo
Translates a string.
Definition:
languages.js:43
td
td
Definition:
admin.php:63
$upload_max_filesize
$upload_max_filesize
Definition:
php.php:12
tr
elgg table alt tr
Definition:
admin.php:420
table
table
Definition:
admin.php:59
Generated on Sat Dec 21 2024 00:00:50 for Elgg by
1.8.11