本文整理汇总了PHP中Requirements::check_requirements方法的典型用法代码示例。如果您正苦于以下问题:PHP Requirements::check_requirements方法的具体用法?PHP Requirements::check_requirements怎么用?PHP Requirements::check_requirements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Requirements
的用法示例。
在下文中一共展示了Requirements::check_requirements方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unquote
return TRUE;
}
}
// turning of 'magic_quotes_runtime' (for outputting information)
@ini_set('magic_quotes_runtime', false);
// unquoting request data if 'get_magic_quotes_gpc' is turned on
if (@ini_get('magic_quotes_gpc')) {
unquote($_REQUEST);
}
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = 'check_minimal_requirements';
}
/* Checking minimal requirements. If server does not satisfy minimal requirements then it will stopped */
if ($_REQUEST['action'] == 'check_minimal_requirements') {
$requirements = new Requirements();
if ($requirements->check_requirements() === false) {
logging(ERROR, "Server configuration doesn't satisfy minimal requirements");
return;
}
}
// Checking if installation has not been processed yet
if ($_REQUEST['action'] != 'continue') {
/**
* Outputting form and checking it's data. If form data is invalid then it will
* stopped asking user to input valid data
**/
$form = new Form($_REQUEST);
if ($form->check_form_data() === false) {
$timezones = '';
foreach (timezone_identifiers_list() as $timezonesItem) {
if ($timezonesItem == $_REQUEST['timezone']) {