X-Git-Url: https://git.rvb.name/openlib.git/blobdiff_plain/a47401f5fac121db5eb44214530121ab14cba2f3..6b3a07a008979ee27733a2deae2ff4fc42f4a535:/www/index.php diff --git a/www/index.php b/www/index.php new file mode 100644 index 0000000..b64caa0 --- /dev/null +++ b/www/index.php @@ -0,0 +1,94 @@ + + * + */ + + require_once ("config.php"); + require_once ("base.php"); + require_once ("author.php"); + require_once ("serie.php"); + require_once ("tag.php"); + require_once ("language.php"); + require_once ("book.php"); + + // If we detect that an OPDS reader try to connect try to redirect to feed.php + if (preg_match("/(PocketBook|MantanoReader|FBReader|Stanza|Aldiko|Moon+ Reader|CoolReader)/", $_SERVER['HTTP_USER_AGENT'])) { + header("location: feed.php"); + exit (); + } + + header ("Content-Type:text/html;charset=utf-8"); + $page = getURLParam ("page", Base::PAGE_INDEX); + $query = getURLParam ("query"); + $qid = getURLParam ("id"); + $n = getURLParam ("n", "1"); +?> + + + + + COPS + + + + " media="screen" /> + + + + + + + + " /> + " media="screen" /> + + + + + + \ No newline at end of file