Merge pull request #238 from horus68/patch-1
Add AlReader HTTP_USER_AGENT to the list of OPDS client
This commit is contained in:
		
						commit
						f9ed7489e1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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)/", $_SERVER['HTTP_USER_AGENT'])) { |     if (preg_match("/(MantanoReader|FBReader|Stanza|Marvin|Aldiko|Moon+ Reader|Chunky|AlReader)/", $_SERVER['HTTP_USER_AGENT'])) { | ||||||
|         header("location: feed.php"); |         header("location: feed.php"); | ||||||
|         exit (); |         exit (); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue