summaryrefslogtreecommitdiff
path: root/www-ssl/nonpublic/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/nonpublic/auth.php')
-rw-r--r--www-ssl/nonpublic/auth.php45
1 files changed, 5 insertions, 40 deletions
diff --git a/www-ssl/nonpublic/auth.php b/www-ssl/nonpublic/auth.php
index 7d58988c..143ea8c8 100644
--- a/www-ssl/nonpublic/auth.php
+++ b/www-ssl/nonpublic/auth.php
@@ -1,43 +1,8 @@
<?php
-require_once ('../bootstrap.php');
-header("Content-Type: application/json");
-
-include "includes/config.php";
-include "includes/config_db.php";
-
-$User = $_POST['user'];
-$Pass = $_POST['pw'];
-$SourceOuth = $_POST['so'];
-
-if (isset ($CurrentExternAuthPass) && $SourceOuth == $CurrentExternAuthPass) {
- $sql = "SELECT * FROM `User` WHERE `Nick`='" . $User . "'";
- $Erg = mysql_query($sql, $con);
-
- if (mysql_num_rows($Erg) == 1) {
- if (mysql_result($Erg, 0, "Passwort") == $Pass) {
- $UID = mysql_result($Erg, 0, "UID");
-
- // get CVS import Data
- $SQL = "SELECT * FROM `UserCVS` WHERE `UID`='" . $UID . "'";
- $Erg_CVS = mysql_query($SQL, $con);
- $CVS = mysql_fetch_array($Erg_CVS);
-
- $msg = array (
- 'status' => 'success',
- 'rights' => $CVS
- );
- echo json_encode($msg);
- } else
- echo json_encode(array (
- 'status' => 'failed'
- ));
- } else
- echo json_encode(array (
- 'status' => 'failed'
- ));
-} else
- echo json_encode(array (
- 'status' => 'failed'
- ));
+// Bleibt erstmal, damit Benutzer, die die Schnittstelle nutzen mitkriegen, dass diese Umgezogen ist
+echo json_encode(array (
+ 'status' => 'failed',
+ 'error' => "JSON Service moved to https://engelsystem.de/?auth&user=<user>&pw=<password>&so=<key>"
+));
?>