1 <?php
if (!defined('CIVI_SETUP')): exit("Installation plugins must only be loaded by the installer.\n");
3 <h2 id
="requirements"><?php
echo ts('System Requirements'); ?
></h2
>
6 if (count($reqs->getErrors()) > 0):
7 ?
><p
class="error"><?php
echo ts('We are not able to install the software. Please review the errors and warnings below.'); ?
></p
><?php
8 elseif (count($reqs->getWarnings()) > 0):
9 ?
><p
class="warning"><?php
echo ts('There are some issues that we recommend you look at before installing. However, you are still able to install the software.'); ?
></p
><?php
11 ?
><p
class="good"><?php
echo ts("You're ready to install!"); ?
></p
><?php
16 $msgs = array_filter($reqs->getMessages(), function($m) {
17 return $m['severity'] != 'info';
19 uasort($msgs, function($a, $b) {
21 $a['severity'] . '-' . $a['section'] . '-' . $a['name'],
22 $b['severity'] . '-' . $b['section'] . '-' . $b['name']
27 <table
class="reqTable">
30 <th width
="10%"><?php
echo ts('Severity'); ?
></th
>
31 <th width
="10%"><?php
echo ts('Section'); ?
></th
>
32 <th width
="20%"><?php
echo ts('Name'); ?
></th
>
33 <th width
="69%"><?php
echo ts('Details'); ?
></th
>
37 <?php
foreach ($msgs as $msg):?
>
38 <tr
class="<?php echo 'reqSeverity-' . $msg['severity']; ?>">
39 <td
><?php
echo htmlentities($_tpl_block['severity_labels'][$msg['severity']]); ?
></td
>
40 <td
><?php
echo htmlentities($_tpl_block['section_labels'][$msg['section']] ??
$msg['section']); ?
></td
>
41 <td
><?php
echo htmlentities($msg['name']); ?
></td
>
42 <td
><?php
echo htmlentities($msg['message']); ?
></td
>
48 <div
class="action-box">
49 <input id
="recheck_button" type
="submit" name
="civisetup[action][Start]" value
="<?php echo htmlentities(ts('Refresh')); ?>" />
50 <div
class="advancedTip">
51 <?php
echo ts('After updating your system, refresh to test the requirements again.'); ?
>