Proxy pass through
[bookreader.git] / BookReaderIA / www / BookReaderAuth.php
index 04f25f7..e27833b 100644 (file)
@@ -22,6 +22,7 @@ $id = $_REQUEST['id'];
 $uuid = $_REQUEST['uuid'];
 $token = $_REQUEST['token'];
 $bookPath = $_REQUEST['bookPath'];
+$olHost = $_REQUEST['olHost'];
 
 if (!preg_match('/^\d{10}-[0-9a-f]{32}$/', $token)) {
     fatal();
@@ -42,6 +43,7 @@ if (!preg_match("|^/stream/$id|", $bookPath)) {
 
 setcookie('br-loan-' . $id, $uuid, 0, '/', '.archive.org');
 setcookie('loan-' . $id, $token, 0, '/', '.archive.org');
+setcookie('ol-host', $olHost, 0, '/', '.archive.org');
 
 header('Location: ' . $bookPath);