forked from hypercities/hypercities
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspawnSession.php
More file actions
19 lines (18 loc) · 752 Bytes
/
spawnSession.php
File metadata and controls
19 lines (18 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
include_once 'includes/serverSession.inc';
// Set authentication type and base collection
cServerSession::setVar('providerName', $_GET['authType']);
$_SESSION['redirect'] = true;
$_SESSION['openId'] = "http://admin.cdh.ucla.edu/cdhit/jlogin.php";
$_SESSION['oidType'] = 0;
if (!strrpos($_GET['collection'], ' ')) {
//$_SESSION['baseCollection'] = $_GET['collection'];
cServerSession::setVar('baseCollection', $_GET['collection']);
}
$redirectUrl = $_SERVER['SERVER_NAME']
.substr($_SERVER['PHP_SELF'], 0,
strlen($_SERVER['PHP_SELF']) - strlen('spawnSession.php')
)
.'loginOidReturn.php';
header("Location: http://admin.cdh.ucla.edu/cdhit/jlogin.php?site=http://$redirectUrl");
?>