aboutsummaryrefslogtreecommitdiff
path: root/frontend/rd.php
blob: 0cb2e7eb0ecf58c0dea7dd0e5fb291b501e4a01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php

/*
   Cheetah News rd.php
   Copyright (C) 2005, 2006 Wojciech Polak.

   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the
   Free Software Foundation; either version 3 of the License, or (at your
   option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License along
   with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

require 'lib/include.php';

$feedurl = '';
if (isset ($_SERVER['QUERY_STRING']))
{
  if (substr ($_SERVER['QUERY_STRING'], 0, 8) == 'feedurl=')
    $feedurl = urldecode (substr ($_SERVER['QUERY_STRING'], 8));
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
window.location.replace("<?php echo 'http://'.$CONF['site'].'/';
if (!empty ($feedurl)) echo 'add?feedurl='.urlencode ($feedurl); ?>");
</script></head><body>
<noscript><?php echo _('JavaScript is required'); ?></noscript>
</body>
</html>

Return to:

Send suggestions and report system problems to the System administrator.