mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
moodler
committed
Sep 22, 2006
1 parent
e218303
commit d7e8ffe
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php // $Id$ | ||
|
||
require_once("../../../../../config.php"); | ||
|
||
if (empty($CFG->hivehost) or empty($CFG->hiveport) or empty($CFG->hiveprotocol) or empty($CFG->hivepath)) { | ||
print_header(); | ||
notify('A Hive repository is not yet configured in Moodle. Please see Resource settings.'); | ||
print_footer(); | ||
die; | ||
} | ||
|
||
if (empty($SESSION->HIVE_SESSION)) { | ||
print_header(); | ||
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.'); | ||
close_window_button(); | ||
print_footer(); | ||
die; | ||
} | ||
|
||
//================================================ | ||
$stylesheets = ''; | ||
foreach ($CFG->stylesheets as $stylesheet) { | ||
if(empty($stylesheets)) { | ||
$stylesheets = $stylesheet; | ||
} else { | ||
$stylesheets .= '%26'.$stylesheet; | ||
} | ||
} | ||
|
||
$query = ''; | ||
$query .= 'HIVE_REF=hin:hive@LMS%20Publish'; | ||
$query .= '&HIVE_RET=ORG'; | ||
$query .= '&HIVE_REQ=2113'; | ||
$query .= '&HIVE_PROD=0'; | ||
$query .= '&HIVE_CURRENTBUREAUID='.$CFG->decsbureauid; | ||
$query .= '&HIVE_BUREAU='.$CFG->decsbureauid; | ||
$query .= '&HIVE_ITEMTYPE='.$CFG->decsitemtypeid; | ||
$query .= '&mkurl='.$CFG->wwwroot.'/mod/resource/type/repository/hive/makelink.php'; | ||
$query .= '&mklms=Moodle'; | ||
$query .= '&HIVE_SEREF='.$CFG->wwwroot.'/sso/hive/expired.php'; | ||
$query .= '&HIVE_SESSION='.$SESSION->HIVE_SESSION; | ||
$query .= '&mklmsstyle='.$stylesheets; | ||
|
||
redirect($CFG->hiveprotocol .'://'. $CFG->hivehost .':'. $CFG->hiveport .''. $CFG->hivepath .'?'.$query); | ||
?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters