* */ require_once ("config.php"); require_once ("base.php"); require_once ("author.php"); require_once ("serie.php"); require_once ("tag.php"); require_once ("book.php"); header ("Content-Type:application/xhtml+xml"); $page = getURLParam ("page", Base::PAGE_INDEX); $query = getURLParam ("query"); $qid = getURLParam ("id"); $currentPage = Page::getPage ($page, $qid, $query); $currentPage->InitializeContent (); /* Test to see if pages are opened on an Eink screen * First test Kindle or Kobo Touch */ if (preg_match("/(Kobo Touch|Kindle\/3.0)/", $_SERVER['HTTP_USER_AGENT'])) { $isEink = 1; /* Test Sony PRS-T1 Ereader. HTTP_USER_AGENT = "Mozilla/5.0 (Linux; U; en-us; EBRD1101; EXT) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" */ } else if (preg_match("/EBRD1101/i", $_SERVER['HTTP_USER_AGENT'])) { $isEink = 1; /* No Eink screens found */ } else { $isEink = 0; } ?>
Please Wait