add mccabe to test users
authorrajbot <raj@archive.org>
Mon, 20 Sep 2010 18:12:26 +0000 (18:12 +0000)
committerrajbot <raj@archive.org>
Mon, 20 Sep 2010 18:12:26 +0000 (18:12 +0000)
BookReaderIA/datanode/BookReaderJSIA.php
BookReaderIA/datanode/BookReaderMeta.inc.php
BookReaderIA/inc/BookReader.inc

index e20c44e..29f910d 100644 (file)
@@ -36,6 +36,8 @@ if (strpos($_SERVER["REQUEST_URI"], "/~mang") === 0) { // Serving out of home di
     $server .= ':80/~rkumar';
 } else if (strpos($_SERVER["REQUEST_URI"], "/~testflip") === 0) { // Serving out of home dir
     $server .= ':80/~testflip';
+} else if (strpos($_SERVER["REQUEST_URI"], "/~mccabe") === 0) { // Serving out of home dir
+    $server .= ':80/~mccabe';
 }
 
 if (! $subPrefix) {
index d73ed4e..601e6b1 100644 (file)
@@ -418,7 +418,7 @@ class BookReaderMeta {
         
         // Check if we're on a dev vhost and point to JSIA in the user's public_html on the datanode
         // $$$ TODO consolidate this logic
-        $devHosts = array('testflip', 'rkumar', 'mang');
+        $devHosts = array('testflip', 'rkumar', 'mang', 'mccabe');
         foreach ($devHosts as $host) {
             if (strpos($_SERVER["REQUEST_URI"], '/~' . $host) === 0) { // Serving out of home dir
                 $server .= ':80/' . $host;
index 5249643..762a1bf 100644 (file)
@@ -216,7 +216,7 @@ class BookReader
       //     ln -s ~/petabox/www/datanode/BookReader ~/public_html/BookReader
       //     so we enable it only for known hosts
       $devhost = BookReader::getDevHost($server);
-      $devhosts = array('mang', 'testflip', 'rkumar');
+      $devhosts = array('mang', 'testflip', 'rkumar', 'mccabe');
       if (in_array($devhost, $devhosts)) {
         $server = $server . "/~" . $devhost;
       }