From 02608271bb2a9f3a65ed536984d306ee14b48e34 Mon Sep 17 00:00:00 2001 From: Geo Halkiadakis Date: Sun, 12 Jul 2026 15:51:52 +0300 Subject: initialize repository; add docker config; migrate configuration to new specs --- public/ui-user-management.php | 259 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 259 insertions(+) create mode 100644 public/ui-user-management.php (limited to 'public/ui-user-management.php') diff --git a/public/ui-user-management.php b/public/ui-user-management.php new file mode 100644 index 0000000..9e9ee24 --- /dev/null +++ b/public/ui-user-management.php @@ -0,0 +1,259 @@ +connect_errno) { + echo "Database connection failed; Please try in a few minutes. "; + if (TESTING) echo $_dbc->connect_error; + $_dbc->close(); die(); + } + $_dbc->set_charset("utf8"); + + // prepare statemet + $_stm = $_dbc->prepare("SELECT realname, user_id, `user`, role, birthstamp FROM users"); + $_stm->execute(); // execute query + $_stm->store_result(); // store result + + if ($_stm->num_rows) { + + $_stm->bind_result($name, $uid, $email, $role, $tm); // bind result variables + + while ($_stm->fetch()) { + + $users[] = array( + 'uid' => $uid, + 'name' => $name, + 'email' => $email, + 'role' => USER_ROLES[$role], + 'birth' => local_dt($tm) + ); + + } + } + else { + return array('success' => false, 'data' => "No items found"); // return error(s) + } + + $_stm->close(); // close statement + $_dbc->close(); // close connection + +?> + + + + + + + + <?=PROJECT?> : Διαχείριση Χρηστών' + + + + + + + + + + +
+
+
+

Διαχείριση Χρηστών

+

Χρήστες

+ +
+ + $user): ?> + +
+ +
+ +
+ + +
+

+ Δημιουργία νέου χρήστη +

+
+
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+
+
+ +
+
+
+ + + + + + + + + -- cgit v1.2.3