Including HTTP_USER_AGENT for ebookDroid

Ebookdroid https://play.google.com/store/apps/details?id=org.ebookdroid
org.ebookdroid 2.3.5
This commit is contained in:
Horus68 2016-01-14 09:51:54 +00:00
parent 11603f2e88
commit 7227576b69

View file

@ -20,7 +20,7 @@
require_once ("resources/doT-php/doT.php"); require_once ("resources/doT-php/doT.php");
// If we detect that an OPDS reader try to connect try to redirect to feed.php // If we detect that an OPDS reader try to connect try to redirect to feed.php
if (preg_match("/(MantanoReader|FBReader|Stanza|Marvin|Aldiko|Moon+ Reader|Chunky|AlReader|Reader|Dalvik|org.ebookdroid)/", $_SERVER['HTTP_USER_AGENT'])) { if (preg_match("/(MantanoReader|FBReader|Stanza|Marvin|Aldiko|Moon+ Reader|Chunky|AlReader|org.ebookdroid)/", $_SERVER['HTTP_USER_AGENT'])) {
header("location: feed.php"); header("location: feed.php");
exit (); exit ();
} }