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.inc.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.inc.php')
-rw-r--r-- | apis/webservice.inc.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/apis/webservice.inc.php b/apis/webservice.inc.php deleted file mode 100644 index 42ff674b..00000000 --- a/apis/webservice.inc.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php -// print results, insert id or affected row count -session_start(); - -if(!isset($_POST['request'])){ - echo json_encode(array( - "errormsg"=>"Request not set, finishing session", - "status" => "error", - "msg" => "")); - session_unset(); - session_destroy(); -}else if($_POST['request']=='logout'){ - echo json_encode(array( - "errormsg"=> "", - "status" => "ok", - "msg" => "Logout successful")); - session_unset(); - session_destroy(); - -}else { - $target_dir = "tmpUploads/"; - $requests = array("login","getinfo","upload","newupload"); - if( in_array($_POST['request'],$requests )) - require("webservice/".$_POST['request'].".php"); - else{ - echo json_encode(array( - "errormsg"=> "Request don't exist, finishing session", - "status" => "error", - "msg" => "")); - session_unset(); - session_destroy(); - } -} -//TODO: analyze session unset/destroy |