diff --git a/include/lucidAuth.template.php b/include/lucidAuth.template.php
index 7ee36c0..e1b45b6 100644
--- a/include/lucidAuth.template.php
+++ b/include/lucidAuth.template.php
@@ -13,7 +13,7 @@ $pageLayout['full'] = <<<'FULL'
-
+
@@ -79,7 +79,7 @@ $pageLayout['bare'] = <<<'BARE'
lucidAuth
-
+
@@ -119,7 +119,7 @@ LOGIN;
$contentLayout['manage']['header'] = <<<'MANAGE_HEADER'
- Logged in as %1$s --- [EN NL] [Logout]
+ Logged in as %1$s --- [EN NL] [Logout]
-
diff --git a/public/lucidAuth.setXDomainCookie.php b/public/lucidAuth.setXDomainCookie.php
index c3ab1f8..0d20746 100644
--- a/public/lucidAuth.setXDomainCookie.php
+++ b/public/lucidAuth.setXDomainCookie.php
@@ -3,8 +3,7 @@
include_once('../include/lucidAuth.functions.php');
-
- // Start with checking $_REQUEST['ref']
+ // Start with checking $_REQUEST['ref']
// What do we need?
// token again?
@@ -16,6 +15,24 @@
// let the client setup multiple iframes for all domains other than origin domains
// this requires passing an array of domains to the client in asynchronous reply; which feels insecure
+ if (!empty($_REQUEST['ref'])) {
+ try {
+ $queryString = json_decode(base64_decode($_REQUEST['ref']), JSON_OBJECT_AS_ARRAY);
+ }
+ catch (Exception $e) {
+ // Silently fail, unless explicitly specified otherwise
+ if ($settings->Debug['Verbose']) throw new Exception($e);
+ exit;
+ }
+
+ switch ($queryString['action']) {
+ case 'login':
+ break;
+ default:
+ break;
+ }
+ }
+
include_once('../include/lucidAuth.template.php');
echo sprintf($pageLayout['bare'],
diff --git a/public/misc/script.manage.js b/public/misc/script.manage.js
index ecb4d31..2048dda 100644
--- a/public/misc/script.manage.js
+++ b/public/misc/script.manage.js
@@ -22,9 +22,9 @@ $(document).ready(function(){
.append($('
', {
class: 'immutable',
html: ' ' +
+ locales[(localStorage.getItem('language') !== null ? localStorage.getItem('language') : 'en')]['button_sessions'] + ' ' +
''
}))
);
@@ -69,6 +69,10 @@ console.log({'new': newEntries, 'removed': removedEntries});
window.location.reload();
});
+ $('#linklogout').click(function() {
+ console.log('Logging out!');
+ });
+
if (localStorage.getItem('theme') !== null) {
$('#theme').addClass(localStorage.getItem('theme'));
}
|