configurable LOG_SIZE to display
This commit is contained in:
parent
c4d12e4370
commit
65e5af17e5
|
@ -19,7 +19,7 @@ if (count($list_domains) > 0) {
|
|||
if (count($log ?? array()) > 0) {
|
||||
echo "<table id=\"log_table\">";
|
||||
echo "<tr>";
|
||||
echo "<td colspan=\"5\"><h3>" . $LANG['Viewlog_welcome'] . " " . $domain . " (". LOG_SIZE . ")</h3></td>";
|
||||
echo "<td colspan=\"5\"><h3>" . $LANG['Viewlog_welcome'] . " " . $domain . " (last ". LOG_SIZE . " entries)</h3></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr class=\"header\">";
|
||||
echo "<td>" . $LANG['Viewlog_timestamp'] . "</td>";
|
||||
|
@ -29,7 +29,7 @@ if (count($log ?? array()) > 0) {
|
|||
echo "<td>" . $LANG['Viewlog_data'] . "</td>";
|
||||
echo "</tr>";
|
||||
foreach ($log as $row) {
|
||||
if (strlen($row['data']) > 35) $row['data'] = substr($row['data'], 0, 35) . " ...";
|
||||
if (strlen($row['data']) > 40) $row['data'] = substr($row['data'], 0, 40) . " ...";
|
||||
echo "<tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">";
|
||||
echo "<td nowrap>" . $row['timestamp'] . "</td>";
|
||||
echo "<td nowrap>" . $row['username'] . "</td>";
|
||||
|
|
Loading…
Reference in New Issue