From a537f4bf73101c467af3b01db32fcdb9fd0a91ce Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 1 Jun 2011 14:48:31 +0200 Subject: bootstrapping --- www-ssl/nonpublic/auth.php | 59 +++++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 24 deletions(-) (limited to 'www-ssl/nonpublic/auth.php') diff --git a/www-ssl/nonpublic/auth.php b/www-ssl/nonpublic/auth.php index 2bd6f86f..7d58988c 100644 --- a/www-ssl/nonpublic/auth.php +++ b/www-ssl/nonpublic/auth.php @@ -1,32 +1,43 @@ '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')); + // 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' + )); ?> -- cgit v1.2.3-54-g00ecf