Release Template files

This commit is contained in:
2026-07-13 11:37:58 +02:00
parent e673b1954c
commit d21c1f24b7
238 changed files with 39672 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
// include database and object files
include_once '../config/init.php'; // contains $db
include_once '../config/error.php';
include_once '../objects/stats_object.php';
$typeId = isset($_POST['typeId']) ? $_POST['typeId'] : -1;
$stats = new StatsObject($db);
$stats->getSessionsForUser(-1, $typeId);
$stats_arr = $stats->getResultArray(true, "All_Sessions_List_OK");
print_r(json_encode($stats_arr));
?>

View File

@@ -0,0 +1,12 @@
<?php
// include database and object files
include_once '../config/init.php'; // contains $db
include_once '../config/error.php';
include_once '../objects/stats_object.php';
$stats = new StatsObject($db);
$stats->getUsersInSession(-1);
$stats_arr = $stats->getResultArray(true, "All_Users_List_OK");
print_r(json_encode($stats_arr));
?>

View File

@@ -0,0 +1,15 @@
<?php
// include database and object files
include_once '../config/init.php'; // contains $db
include_once '../config/error.php';
include_once '../objects/stats_object.php';
$userId = isset($_POST['userId']) ? $_POST['userId'] : -1;
$typeId = isset($_POST['typeId']) ? $_POST['typeId'] : -1;
$stats = new StatsObject($db);
$stats->getSessionsForUser($userId, $typeId);
$stats_arr = $stats->getResultArray(true, "User_Sessions_List_OK");
print_r(json_encode($stats_arr)); // OK
?>

View File

@@ -0,0 +1,14 @@
<?php
// include database and object files
include_once '../config/init.php'; // contains $db
include_once '../config/error.php';
include_once '../objects/stats_object.php';
$sessionId = isset($_POST['sessionId']) ? $_POST['sessionId'] : -1;
$stats = new StatsObject($db);
$stats->getUsersInSession($sessionId);
$stats_arr = $stats->getResultArray(true, "Session_Users_List_OK");
print_r(json_encode($stats_arr)); // OK
?>