0) { while ($row = mysql_fetch_array ($result['result'])) { $tLog[] = $row; } } } include ("./templates/header.tpl"); include ("./templates/menu.tpl"); include ("./templates/viewlog.tpl"); include ("./templates/footer.tpl"); } if ($_SERVER['REQUEST_METHOD'] == "POST") { $fDomain = $_POST['fDomain']; if (!check_owner ($SESSID_USERNAME, $fDomain)) { $error = 1; $tMessage = $PALANG['pViewlog_error']; } if ($error != 1) { $result = db_query ("SELECT * FROM log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT 10"); if ($result['rows'] > 0) { while ($row = mysql_fetch_array ($result['result'])) { $tLog[] = $row; } } } include ("./templates/header.tpl"); include ("./templates/menu.tpl"); include ("./templates/viewlog.tpl"); include ("./templates/footer.tpl"); } ?>