XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
page_modcheck.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
27
require_once __DIR__ .
'/include/common.inc.php'
;
28
29
/* @var $wizard XoopsInstallWizard */
30
$wizard
=
$_SESSION
[
'wizard'
];
31
32
foreach
(
$wizard
->configs[
'extensions'
] as
$ext
=> $value) {
33
if
(extension_loaded(
$ext
)) {
34
if
(is_array($value[0])) {
35
$wizard
->configs[
'extensions'
][
$ext
][] =
xoDiag
(1, implode(
','
, $value[0]));
36
}
else
{
37
$wizard
->configs[
'extensions'
][
$ext
][] =
xoDiag
(1, $value[0]);
38
}
39
}
else
{
40
$wizard
->configs[
'extensions'
][
$ext
][] =
xoDiag
(0,
NONE
);
41
}
42
}
43
ob_start();
44
?>
45
<div
class
=
"caption"
><?php echo
REQUIREMENTS
; ?></div>
46
<table
class
=
"diags"
>
47
<tbody>
48
<tr>
49
<th><?php echo
SERVER_API
; ?></th>
50
<td><?php echo php_sapi_name(); ?><br />
51
<?php echo
$_SERVER
[
"SERVER_SOFTWARE"
]; ?></td>
52
</tr>
53
54
<tr>
55
<th><?php echo
_PHP_VERSION
; ?></th>
56
<td><?php echo
xoPhpVersion
(); ?></td>
57
</tr>
58
59
<tr>
60
<th><?php echo
COMPOSER
; ?></th>
61
<td><?php echo
xoDiag
(class_exists(
'\Composer\Autoload\ClassLoader'
) ? 1 : -1,
COMPOSER_ENVIRONMENT
); ?></td>
62
</tr>
63
64
<tr>
65
<th><?php printf(
PHP_EXTENSION
,
'PDO'
); ?></th>
66
<td><?php echo
xoDiag
(extension_loaded(
'PDO'
) ? 1 : -1,
'PDO::getAvailableDrivers() = '
. @implode(
', '
, PDO::getAvailableDrivers())); ?></td>
67
</tr>
68
69
<tr>
70
<th><?php printf(
PHP_EXTENSION
,
'Session'
); ?></th>
71
<td><?php echo
xoDiag
(extension_loaded(
'session'
) ? 1 : -1); ?></td>
72
</tr>
73
74
<tr>
75
<th><?php printf(
PHP_EXTENSION
,
'PCRE'
); ?></th>
76
<td><?php echo
xoDiag
(extension_loaded(
'pcre'
) ? 1 : -1); ?></td>
77
</tr>
78
79
<tr>
80
<th><?php printf(
PHP_EXTENSION
,
'OpenSSL'
); ?></th>
81
<td><?php echo
xoDiag
(extension_loaded(
'openssl'
) ? 1 : -1); ?></td>
82
</tr>
83
84
<tr>
85
<th><?php printf(
PHP_EXTENSION
,
'JSON'
); ?></th>
86
<td><?php echo
xoDiag
(extension_loaded(
'json'
) ? 1 : -1); ?></td>
87
</tr>
88
89
<tr>
90
<th scope=
"row"
>file_uploads</th>
91
<td><?php echo
xoDiagBoolSetting
(
'file_uploads'
,
true
); ?></td>
92
</tr>
93
</tbody>
94
</table>
95
96
<div
class
=
"caption"
><?php echo
RECOMMENDED_EXTENSIONS
; ?></div>
97
<div
class
=
'confirmMsg'
><?php echo
RECOMMENDED_EXTENSIONS_MSG
; ?></div>
98
<table
class
=
"diags"
>
99
<tbody>
100
<?php
101
foreach
(
$wizard
->configs[
'extensions'
] as $key => $value) {
102
echo
"<tr><th>"
. $value[1] .
"</th><td>"
. $value[2] .
"</td></tr>"
;
103
}
104
?>
105
106
</tbody>
107
</table>
108
<?php
109
$content
= ob_get_contents();
110
ob_end_clean();
111
112
$_SESSION
[
'pageHasHelp'
] =
false
;
113
$_SESSION
[
'pageHasForm'
] =
false
;
114
$_SESSION
[
'content'
] =
$content
;
115
include
XOOPS_INSTALL_PATH
.
'/include/install_tpl.php'
;
RECOMMENDED_EXTENSIONS
const RECOMMENDED_EXTENSIONS
Definition:
install.php:29
PHP_EXTENSION
const PHP_EXTENSION
Definition:
install.php:24
COMPOSER_ENVIRONMENT
const COMPOSER_ENVIRONMENT
Definition:
install.php:33
NONE
const NONE
Definition:
install.php:37
REQUIREMENTS
const REQUIREMENTS
Definition:
install.php:27
$_SERVER
$_SERVER['REQUEST_URI']
Definition:
comment_delete.php:23
_PHP_VERSION
const _PHP_VERSION
Definition:
install.php:28
$_SESSION
$_SESSION['pageHasHelp']
Definition:
page_modcheck.php:112
$wizard
$wizard
Definition:
page_modcheck.php:30
COMPOSER
const COMPOSER
Definition:
install.php:32
xoPhpVersion
xoPhpVersion()
Definition:
functions.php:226
XOOPS_INSTALL_PATH
const XOOPS_INSTALL_PATH
Definition:
common.inc.php:33
$content
foreach($wizard->configs['extensions'] as $key=> $value) $content
Definition:
page_modcheck.php:109
xoDiagBoolSetting
xoDiagBoolSetting($name, $wanted=false, $severe=false)
Definition:
functions.php:192
RECOMMENDED_EXTENSIONS_MSG
const RECOMMENDED_EXTENSIONS_MSG
Definition:
install.php:35
$ext
$ext
Definition:
browse.php:87
include
xoDiag
xoDiag($status=-1, $str= '')
Definition:
functions.php:173
SERVER_API
const SERVER_API
Definition:
install.php:23
usr64
htdocs
install
page_modcheck.php
Generated on Fri May 22 2015 03:07:02 for XOOPS by
1.8.9.1