get(); //get the uuid $user_log_uuid = $_GET['id']; //pre-populate the form if (is_array($_GET) && $_POST["persistformvar"] != "true") { $sql = "select * from v_user_logs "; $sql .= "where user_log_uuid = :user_log_uuid "; //$sql .= "and domain_uuid = :domain_uuid "; //$parameters['domain_uuid'] = $_SESSION['domain_uuid']; $parameters['user_log_uuid'] = $user_log_uuid; $database = new database; $row = $database->select($sql, $parameters, 'row'); if (is_array($row) && @sizeof($row) != 0) { $domain_uuid = $row["domain_uuid"]; $timestamp = $row["timestamp"]; $user_uuid = $row["user_uuid"]; $username = $row["username"]; $type = $row["type"]; $result = $row["result"]; $remote_address = $row["remote_address"]; $user_agent = $row["user_agent"]; } unset($sql, $parameters, $row); } //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); //show the header $document['title'] = $text['title-user_log']; require_once "resources/header.php"; //get the users $sql = "SELECT user_uuid, username FROM v_users "; $sql .= "WHERE domain_uuid = :domain_uuid "; $sql .= "ORDER by username asc "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $database = new database; $users = $database->execute($sql, $parameters, 'all'); unset ($sql, $parameters); //show the content echo "
\n"; echo "\n"; echo "
\n"; echo "
".$text['title-user_log']."
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','collapse'=>'hide-xs','style'=>'margin-right: 15px;','link'=>'user_logs.php']); echo "
\n"; echo "
\n"; echo "
\n"; echo $text['title_description-user_logs']."\n"; echo "

\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo " ".$text['label-domain_uuid']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-domain_uuid']."\n"; echo "
\n"; echo " ".$text['label-timestamp']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-timestamp']."\n"; echo "
\n"; echo " ".$text['label-user_uuid']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-user_uuid']."\n"; echo "
\n"; echo " ".$text['label-username']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-username']."\n"; echo "
\n"; echo " ".$text['label-type']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-type']."\n"; echo "
\n"; echo " ".$text['label-result']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-result']."\n"; echo "
\n"; echo " ".$text['label-remote_address']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-remote_address']."\n"; echo "
\n"; echo " ".$text['label-user_agent']."\n"; echo "\n"; echo " \n"; echo "
\n"; echo $text['description-user_agent']."\n"; echo "
"; echo "

"; echo "\n"; echo "
"; //include the footer require_once "resources/footer.php"; ?>