aboutsummaryrefslogtreecommitdiff
path: root/actions/autologin.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/autologin.php')
-rwxr-xr-xactions/autologin.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/actions/autologin.php b/actions/autologin.php
deleted file mode 100755
index 4a200fcfb..000000000
--- a/actions/autologin.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/**
- * Elgg openid_server: autologin form
- *
- * @package ElggOpenID
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Kevin Jardine <kevin@radagast.biz>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.org/
- */
-
-require_once(dirname(dirname(__FILE__)).'/openid_server_include.php');
-
-require_once ('lib/common.php');
-require_once ('lib/session.php');
-
-$iframe_template = <<<END
-<iframe
-width="%s"
-height="%s"
-src="%s"
->
-</iframe>');
-END;
-
-$openid_url = getLoggedinUser();
-$store = getOpenIDServerStore();
-$sites = $store->getAutoLoginSites();
-$request = getRequestInfo();
-if ($request) {
- $return_url = $request->return_to;
- setRequestInfo(null);
-} else {
- $return_url = $CONFIG->wwwroot;
-}
-// TODO: get this to work with posts
-$iframes = '';
-foreach ($sites as $site) {
- $iframes .= sprintf($iframe_template,$site->width,$site->height,sprintf($site->auto_login,$openid_url));
-}
-$body = elgg_view("openid_server/forms/autologin",
- array(
- 'iframes' => $iframes,
- 'return_to' => $return_url,
-
- ));
-$CONFIG->events['login'] = array();
-login();
-header("Content-type:text/html");
-print $body;
-?>