Release Template files
This commit is contained in:
14
version/proserve-ReleaseTemplate/_api/lists/all_sessions.php
Normal file
14
version/proserve-ReleaseTemplate/_api/lists/all_sessions.php
Normal 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));
|
||||
?>
|
||||
12
version/proserve-ReleaseTemplate/_api/lists/all_users.php
Normal file
12
version/proserve-ReleaseTemplate/_api/lists/all_users.php
Normal 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));
|
||||
?>
|
||||
@@ -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
|
||||
?>
|
||||
@@ -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
|
||||
?>
|
||||
Reference in New Issue
Block a user