-
-
- $cache_flushed,
+ 'admins' => User_Adapter::get_sys_admins(),
+ 'email_status' => $email_status,
+ 'search_engine_status' => $search_engine_status,
+ 'php_version_constraints' => $php_version_constraints,
+ 'writability_constraints' => $writability_constraints,
+ 'binaries_constraints' => $binaries_constraints,
+ 'php_extension_constraints' => $php_extension_constraints,
+ 'cache_constraints' => $cache_constraints,
+ 'phrasea_constraints' => $phrasea_constraints,
+ 'cache_opcode_constraints' => $cache_opcode_constraints,
+ 'php_configuration_constraints' => $php_configuration_constraints,
+);
- if ($parm['email']) {
- echo 'result : ';
- var_dump(mail::mail_test($parm['email']));
- }
+$Core['Twig']->display('admin/dashboard.html.twig', $parameters);
- $php_constraints = setup::check_php_version();
- foreach ($php_constraints as $php_constraint) {
- echo '
' . $php_constraint->get_name() . '
';
- echo '
';
- ?>
- -
- get_message(); ?>
-
- ';
- }
-
- $php_constraints = setup::check_writability($registry);
- echo '' . _('setup::Filesystem configuration') . '
';
- echo '';
- foreach ($php_constraints as $constraint) {
- ?>
- -
- get_message(); ?>
-
- ';
-
- $php_constraints = setup::check_binaries($registry);
- echo '' . _('setup::Executables') . '
';
- echo '';
- foreach ($php_constraints as $constraint) {
- ?>
- -
- get_message(); ?>
-
- ';
-
- $php_constraints = setup::check_php_extension();
- echo '' . _('setup::PHP extensions') . '
';
- echo '';
- foreach ($php_constraints as $constraint) {
- ?>
- -
- get_message(); ?>
-
- ';
-
- $php_constraints = setup::check_cache_server();
- echo '' . _('setup::Serveur de cache') . '
';
- echo '';
- foreach ($php_constraints as $constraint) {
- ?>
- -
- get_message(); ?>
-
- ';
- ?>
-
- ' . _('Phrasea Module') . '';
- echo '
';
- foreach ($php_constraints as $constraint) {
- ?>
- -
- get_message(); ?>
-
- ';
-
- setup::check_apache();
- setup::check_mod_auth_token();
- setup::check_cache_opcode();
- setup::check_cache_memcache();
-
- if ($Core->getCache()->isServer()) {
- ?>
-
- ' . _('OPCode cache') . '';
- echo '
';
- if ($Core['OpcodeCache']->getName() == 'array') {
- echo '- ' . _('Array opcode cache is activated, but phrasea strongly recommand the use of APC or Xcache in production') . '
';
- } else {
- echo '- ' . $Core['OpcodeCache']->getName() . '
';
- }
- echo '
';
-
- setup::check_sphinx_search();
- setup::check_php_configuration();
- ?>
-