Skip to content
Snippets Groups Projects
Commit a86fc91b authored by Robert Anderson's avatar Robert Anderson
Browse files

Revert of 415

parent a94818a2
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,10 @@ function getAdminUserLogs($params) {
);
$res = DBSelectSearch("
SELECT
SELECT
accounting.ID,
accounting.EventTimestamp,
accounting.AcctStatusType,
accounting.EventTimestamp,
accounting.AcctStatusType,
accounting.ServiceType,
accounting.FramedProtocol,
accounting.NASPortType,
......@@ -40,9 +40,9 @@ function getAdminUserLogs($params) {
accounting.AcctOutputOctets,
accounting.AcctOutputGigawords,
accounting.AcctTerminateCause
FROM
FROM
accounting, users
WHERE
WHERE
users.Username = accounting.Username
AND
users.ID = ".DBQuote($params[0])."
......
......@@ -50,7 +50,7 @@ function removeAdminUserTopup($params) {
return NULL;
}
# Return specific topup row
function getAdminUserTopup($params) {
global $db;
......@@ -96,7 +96,7 @@ function getAdminUserTopups($params) {
$res = DBSelectSearch("
SELECT
ID, Timestamp, Type, Value, ValidFrom, ValidTo
ID, Timestamp, Type, Value, ValidFrom, ValidTo
FROM
topups
WHERE
......
......@@ -23,10 +23,10 @@ function getWiSPUserLogs($params) {
);
$res = DBSelectSearch("
SELECT
SELECT
accounting.ID,
accounting.EventTimestamp,
accounting.AcctStatusType,
accounting.EventTimestamp,
accounting.AcctStatusType,
accounting.ServiceType,
accounting.FramedProtocol,
accounting.NASPortType,
......@@ -40,9 +40,9 @@ function getWiSPUserLogs($params) {
accounting.AcctOutputOctets,
accounting.AcctOutputGigawords,
accounting.AcctTerminateCause
FROM
FROM
accounting, users
WHERE
WHERE
users.Username = accounting.Username
AND
users.ID = ".DBQuote($params[0])."
......@@ -84,7 +84,7 @@ function getWiSPUserLogs($params) {
$item['ID'] = $row->id;
# Convert to ISO format
# Convert to ISO format
$date = new DateTime($row->eventtimestamp);
$value = $date->format("Y-m-d H:i:s");
$item['EventTimestamp'] = $value;
......
......@@ -50,7 +50,7 @@ function removeWiSPUserTopup($params) {
return NULL;
}
# Return specific topup row
function getWiSPUserTopup($params) {
global $db;
......@@ -96,7 +96,7 @@ function getWiSPUserTopups($params) {
$res = DBSelectSearch("
SELECT
ID, Timestamp, Type, Value, ValidFrom, ValidTo
ID, Timestamp, Type, Value, ValidFrom, ValidTo
FROM
topups
WHERE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment