Structures the classes:
[dotclear.git] / page.auth.php
diff --git a/page.auth.php b/page.auth.php
new file mode 100644 (file)
index 0000000..6a197f0
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+class xorgAuthentifier extends dcUrlHandlers {
+  static public function doAuth($args) {
+    global $core;
+    switch ($args) {
+     case 'exit':
+      $core->auth->killSession();
+      break;
+     case 'Xorg':
+      if ($core->auth->callXorg($_GET['path'])) {
+        header('Location: http://murphy.m4x.org' . $_GET['path']);
+        exit;
+      }
+      break;
+     case 'XorgReturn':
+      $core->auth->returnXorg();
+      break;
+     default:
+      self::p404();
+    }
+    return;
+  }
+}
+
+?>