2022-08-18 14:01:52 +02:00
|
|
|
<div id="overview">
|
2022-09-04 11:38:47 +02:00
|
|
|
<form name="viewlog" method="get">
|
|
|
|
<select name="domain" onChange="this.form.submit()";>
|
2022-08-18 14:01:52 +02:00
|
|
|
<?php
|
2022-09-04 11:38:47 +02:00
|
|
|
if (count($list_domains) > 0) {
|
|
|
|
foreach ($list_domains as $row) {
|
|
|
|
echo '<option value="' . $row['domain'] . '"';
|
|
|
|
if (isset($domain) && $domain == $row['domain']) echo ' selected';
|
|
|
|
echo ">" . $row['domain'] . "</option>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
2022-09-04 11:38:47 +02:00
|
|
|
<input class="button" type="submit" name="go" value="<?php echo $LANG['Viewlog_button']; ?>" />
|
2022-08-18 14:01:52 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php
|
2022-09-04 11:38:47 +02:00
|
|
|
if (count($log) > 0) {
|
|
|
|
echo "<table id=\"log_table\">\n";
|
|
|
|
echo " <tr>\n";
|
|
|
|
echo " <td colspan=\"5\"><h3>".$LANG['Viewlog_welcome']." ".$domain."</h3></td>\n";
|
|
|
|
echo " </tr>\n";
|
|
|
|
echo " <tr class=\"header\">\n";
|
|
|
|
echo " <td>" . $LANG['Viewlog_timestamp'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Viewlog_username'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Viewlog_domain'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Viewlog_action'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Viewlog_data'] . "</td>\n";
|
|
|
|
echo " </tr>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
|
2022-09-04 11:38:47 +02:00
|
|
|
foreach ($log as $row) {
|
|
|
|
if (strlen($row['data']) > 35) $row['data'] = substr($row['data'], 0, 35) . " ...";
|
|
|
|
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
|
|
|
echo " <td nowrap>" . $row['timestamp'] . "</td>\n";
|
|
|
|
echo " <td nowrap>" . $row['username'] . "</td>\n";
|
|
|
|
echo " <td nowrap>" . $row['domain'] . "</td>\n";
|
|
|
|
echo " <td nowrap>" . $row['action'] . "</td>\n";
|
|
|
|
echo " <td nowrap>" . $row['data'] . "</td>\n";
|
|
|
|
echo " </tr>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
2022-09-04 11:38:47 +02:00
|
|
|
echo "</table>\n";
|
|
|
|
echo "<p />\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
|
|
|
?>
|