From d425740dc2efb2328daa27d291253e0229619330 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 26 Jul 2012 01:19:46 +0200 Subject: Remove unused files --- core/ajax/userlist.php | 46 ---------------------------------------------- core/ajax/validateuser.php | 38 -------------------------------------- 2 files changed, 84 deletions(-) delete mode 100644 core/ajax/userlist.php delete mode 100644 core/ajax/validateuser.php (limited to 'core/ajax') diff --git a/core/ajax/userlist.php b/core/ajax/userlist.php deleted file mode 100644 index 85ca004ae66..00000000000 --- a/core/ajax/userlist.php +++ /dev/null @@ -1,46 +0,0 @@ -. -* -*/ - -$RUNTIME_NOAPPS = TRUE; //no apps, yet -require_once('../../lib/base.php'); - -if(!OC_User::isLoggedIn()){ - if(!isset($_SERVER['PHP_AUTH_USER'])){ - header('WWW-Authenticate: Basic realm="ownCloud Server"'); - header('HTTP/1.0 401 Unauthorized'); - echo 'Valid credentials must be supplied'; - exit(); - } else { - if(!OC_User::checkPassword($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"])){ - exit(); - } - } -} - -$users = array(); - -foreach( OC_User::getUsers() as $i ){ - $users[] = array( "username" => $i, "groups" => join( ", ", OC_Group::getUserGroups( $i ) )); -} - -OC_JSON::encodedPrint($users); diff --git a/core/ajax/validateuser.php b/core/ajax/validateuser.php deleted file mode 100644 index 78ec451fac2..00000000000 --- a/core/ajax/validateuser.php +++ /dev/null @@ -1,38 +0,0 @@ -. -* -*/ - -$RUNTIME_NOAPPS = TRUE; //no apps, yet -require_once('../../lib/base.php'); - -if(!isset($_SERVER['PHP_AUTH_USER'])){ - header('WWW-Authenticate: Basic realm="ownCloud Server"'); - header('HTTP/1.0 401 Unauthorized'); - echo 'Valid credentials must be supplied'; - exit(); -} else { - if(OC_User::checkPassword($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"])){ - OC_JSON::encodedPrint(array("username" => $_SERVER["PHP_AUTH_USER"], "user_valid" => "true")); - } else { - OC_JSON::encodedPrint(array("username" => $_SERVER["PHP_AUTH_USER"], "user_valid" => "false")); - } -} -- cgit v1.2.3