added report for All Users Login Activity

This commit is contained in:
2026-07-29 20:12:26 -04:00
parent 94e6394084
commit de20262d44
5 changed files with 397 additions and 200 deletions
+3 -10
View File
@@ -292,13 +292,6 @@ class Users extends Base {
public function getUserByUserName($user_name) {
// $SQL = "select view_users.*
// from view_users
// where user_id = '{$user_name}'
// or user_client_name = '{$user_name}'";
//
// return $this->getTable("user", $SQL);
$SQL = "select view_users.*
from view_users
where user_id = ?
@@ -326,7 +319,7 @@ class Users extends Base {
public function getUsers() {
$SQL = "select view_users.* from view_users";
$SQL = "select view_users.* from view_users order by view_users.user_name";
return $this->getTable("allusers", $SQL);
}
@@ -774,7 +767,7 @@ class Users extends Base {
break;
case "copy":
$receiving_user_serial = filter_input(INPUT_POST, "receiving_user_serial", FILTER_SANITIZE_NUMBER_INT) ?: 0;
$subscription_serials = filter_input(INPUT_POST, "subscriptions", FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY) ?: array();
$subscription_start_dates = filter_input(INPUT_POST, "subscription_start_date", FILTER_DEFAULT, FILTER_REQUIRE_ARRAY) ?: array();
@@ -789,7 +782,7 @@ class Users extends Base {
"usersubscription_end_date" => date("Y-m-d", strtotime($subscription_end_dates[$index] ?? ""))
);
}
// Add the Subscriptions to Receiving User
$connection = $this->connect();