mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-23 06:39:18 +00:00
Display status of DateTime support.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
bb1e22c9b5
commit
5e5fa2d44e
@ -127,6 +127,15 @@ include("page-header.php");
|
|||||||
|
|
||||||
require_once("AwlQuery.php");
|
require_once("AwlQuery.php");
|
||||||
|
|
||||||
|
|
||||||
|
function check_datetime() {
|
||||||
|
if ( class_exists('DatexTime') ) return new CheckResult(true);
|
||||||
|
$result = new CheckResult(false);
|
||||||
|
$result->setClass('dep_warning');
|
||||||
|
$result->setDescription(i18n('Most of DAViCal will work but upgrading to PHP 5.2 or later is strongly recommended.'));
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
function check_schema_version() {
|
function check_schema_version() {
|
||||||
global $c;
|
global $c;
|
||||||
if ( $c->want_dbversion[0] == $c->schema_major
|
if ( $c->want_dbversion[0] == $c->schema_major
|
||||||
@ -217,10 +226,12 @@ function build_dependencies_table( ) {
|
|||||||
translate('PDO PostgreSQL drivers') => 'check_pdo_pgsql',
|
translate('PDO PostgreSQL drivers') => 'check_pdo_pgsql',
|
||||||
translate('PHP PostgreSQL available') => 'check_pgsql',
|
translate('PHP PostgreSQL available') => 'check_pgsql',
|
||||||
translate('GNU gettext support') => 'check_gettext',
|
translate('GNU gettext support') => 'check_gettext',
|
||||||
|
translate('PHP iconv support') => 'check_iconv',
|
||||||
|
translate('PHP DateTime class') => 'check_datetime',
|
||||||
translate('Suhosin "server.strip" disabled') => 'check_suhosin_server_strip',
|
translate('Suhosin "server.strip" disabled') => 'check_suhosin_server_strip',
|
||||||
translate('PHP Magic Quotes GPC off') => 'check_magic_quotes_gpc',
|
translate('PHP Magic Quotes GPC off') => 'check_magic_quotes_gpc',
|
||||||
translate('PHP Magic Quotes runtime off') => 'check_magic_quotes_runtime'
|
translate('PHP Magic Quotes runtime off') => 'check_magic_quotes_runtime'
|
||||||
);
|
);
|
||||||
|
|
||||||
$dependencies_table = '';
|
$dependencies_table = '';
|
||||||
$dep_tpl = '<tr class="%s">
|
$dep_tpl = '<tr class="%s">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user