Revision d65d58a7
Added by Stilez y about 9 years ago
src/usr/local/www/status_ipsec.php | ||
---|---|---|
223 | 223 |
|
224 | 224 |
print("</td>\n"); |
225 | 225 |
print("<td>\n"); |
226 |
print(htmlspecialchars($ikesa['reauth-time']) . gettext(" seconds (") . convert_seconds_to_hms($ikesa['reauth-time']) . ")"); |
|
226 |
print(htmlspecialchars($ikesa['reauth-time']) . gettext(" seconds (") . convert_seconds_to_dhms($ikesa['reauth-time']) . ")");
|
|
227 | 227 |
print("</td>\n"); |
228 | 228 |
print("<td>\n"); |
229 | 229 |
print(htmlspecialchars($ikesa['encr-alg'])); |
... | ... | |
245 | 245 |
print(ucfirst(htmlspecialchars($ikesa['state']))); |
246 | 246 |
|
247 | 247 |
if ($ikesa['state'] == 'ESTABLISHED') { |
248 |
print("<br/>" . htmlspecialchars($ikesa['established']) . gettext(" seconds (") . convert_seconds_to_hms($ikesa['established']) . gettext(") ago")); |
|
248 |
print("<br/>" . htmlspecialchars($ikesa['established']) . gettext(" seconds (") . convert_seconds_to_dhms($ikesa['established']) . gettext(") ago"));
|
|
249 | 249 |
} |
250 | 250 |
|
251 | 251 |
print("</span>"); |
... | ... | |
333 | 333 |
print("</td>\n"); |
334 | 334 |
print("<td>\n"); |
335 | 335 |
|
336 |
print(gettext("Rekey: ") . htmlspecialchars($childsa['rekey-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['rekey-time']) . ")"); |
|
337 |
print('<br/>' . gettext('Life: ') . htmlspecialchars($childsa['life-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['life-time']) . ")"); |
|
338 |
print('<br/>' . gettext('Install: ') .htmlspecialchars($childsa['install-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['install-time']) . ")"); |
|
336 |
print(gettext("Rekey: ") . htmlspecialchars($childsa['rekey-time']) . gettext(" seconds (") . convert_seconds_to_dhms($childsa['rekey-time']) . ")");
|
|
337 |
print('<br/>' . gettext('Life: ') . htmlspecialchars($childsa['life-time']) . gettext(" seconds (") . convert_seconds_to_dhms($childsa['life-time']) . ")");
|
|
338 |
print('<br/>' . gettext('Install: ') .htmlspecialchars($childsa['install-time']) . gettext(" seconds (") . convert_seconds_to_dhms($childsa['install-time']) . ")");
|
|
339 | 339 |
|
340 | 340 |
|
341 | 341 |
print("</td>\n"); |
Also available in: Unified diff
function name hms -> dhms
to match edit to util.inc
(cherry picked from commit c57e936a6596550619f7261e85b633ca5016cbf2)