From 4836a82eb9614bd9aefccbc45d6d074c5e8174e6 Mon Sep 17 00:00:00 2001 From: Angelo Cuccato Date: Wed, 29 Dec 2010 14:06:07 +0100 Subject: [PATCH] add external auth --- default-conf/var_www_includes/config.php | 3 ++ www-ssl/nonpublic/auth.php | 66 ++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100755 www-ssl/nonpublic/auth.php diff --git a/default-conf/var_www_includes/config.php b/default-conf/var_www_includes/config.php index 54dbd5f3..574d9947 100755 --- a/default-conf/var_www_includes/config.php +++ b/default-conf/var_www_includes/config.php @@ -52,4 +52,7 @@ $PentabarfGetWith = "fsockopen"; // "fsockopen"/"fopen"/"wget"/"lynx" //Mailing List: is is not defined, the option is not shown //$SubscribeMailinglist = "*-subscribe@lists.*"; +/// Passord for external Authorization, function only active if the var is defined +//$CurrentExternAuthPass = 23; + ?> diff --git a/www-ssl/nonpublic/auth.php b/www-ssl/nonpublic/auth.php new file mode 100755 index 00000000..99b153e5 --- /dev/null +++ b/www-ssl/nonpublic/auth.php @@ -0,0 +1,66 @@ + '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')); +} + + +?> + +