diff options
author | Simon Rettberg | 2019-03-26 09:31:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-26 09:31:24 +0100 |
commit | 7c55bc72acbda4522767531f27fbbf51c2305bb6 (patch) | |
tree | 88cef613c38bcce0553bcc4b69ec3aa667d83734 /apis/webservice/getinfo.php | |
parent | Delete unused and unmaintained modules (diff) | |
download | slx-admin-7c55bc72acbda4522767531f27fbbf51c2305bb6.tar.gz slx-admin-7c55bc72acbda4522767531f27fbbf51c2305bb6.tar.xz slx-admin-7c55bc72acbda4522767531f27fbbf51c2305bb6.zip |
Delete unused legacy API too
Diffstat (limited to 'apis/webservice/getinfo.php')
-rw-r--r-- | apis/webservice/getinfo.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/apis/webservice/getinfo.php b/apis/webservice/getinfo.php deleted file mode 100644 index 3404008e..00000000 --- a/apis/webservice/getinfo.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -if(isset($_SESSION['userid'])){ - $sql = "select user.login, user.fullname, user.email, cities.name from" - ." `user` left join cities on user.city=cities.cityid" - ." where user.userid= :userid"; - - $user=Database::queryFirst($sql, array("userid"=> $_SESSION['userid'])); - $ret = array( - "login"=>$user['login'], - "name"=>$user['fullname'], - "email"=>$user['email'], - "city"=>$user['name'], - "errormsg" => "", - "status" => "ok", - "msg" => "Get informations of user successful" - ); - echo json_encode($ret); - -}else{ - echo json_encode(array( - "errormsg"=> "Not logged in", - "status" => "error", - "msg" => "")); -} - |