summaryrefslogtreecommitdiff
path: root/backend
authorGiulio Cesare Solaroli <giulio.cesare@clipperz.com>2011-10-06 22:57:46 (UTC)
committer Giulio Cesare Solaroli <giulio.cesare@clipperz.com>2011-10-06 22:57:46 (UTC)
commit647a8a53917dd15dc81caaeb36c658e18e579ab0 (patch) (side-by-side diff)
tree16caa4aca7c943632f9398360fc7f9a9ef3b3f0e /backend
parenta26b219b6f4f3fee727d9b23d8cd374f6b32a4fa (diff)
downloadclipperz-647a8a53917dd15dc81caaeb36c658e18e579ab0.zip
clipperz-647a8a53917dd15dc81caaeb36c658e18e579ab0.tar.gz
clipperz-647a8a53917dd15dc81caaeb36c658e18e579ab0.tar.bz2
Fixed the formatting of PHP code
Diffstat (limited to 'backend') (more/less context) (ignore whitespace changes)
-rw-r--r--backend/php/src/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/php/src/index.php b/backend/php/src/index.php
index 3d23e7a..214ac01 100644
--- a/backend/php/src/index.php
+++ b/backend/php/src/index.php
@@ -366,31 +366,32 @@ error_log("oneTimePassword");
case "message":
error_log("message");
if ($parameters["srpSharedSecret"] == $_SESSION["K"]) {
$message = $parameters["message"];
//=============================================================
if ($message == "getUserDetails") {
//{"message":"getUserDetails", "srpSharedSecret":"f18e5cf7c3a83b67d4db9444af813ee48c13daf4f8f6635397d593e52ba89a08", "parameters":{}}
$user = new user();
$user = $user->Get($_SESSION["userId"]);
$result["header"] = $user->header;
+
$records = $user->GetRecordList();
- foreach ($records as $record)
- {
+ foreach ($records as $record) {
$recordStats["updateDate"] = $record->update_date;
$recordsStats[$record->reference] = $recordStats;
}
$result["recordsStats"] = $recordsStats;
+
$result["statistics"] = $user->statistics;
$result["version"] = $user->version;
//=============================================================
} else if ($message == "addNewRecords") {
/*
//{
// "message":"addNewRecords",
// "srpSharedSecret":"b58fdf62acebbcb67f63d28c0437f166069f45690c648cd4376a792ae7a325f7",
// "parameters":{
// "records":[
// {