forked from minutils/feed-on-feeds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
69 lines (64 loc) · 1.22 KB
/
index.php
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
session_start();
//var_dump($_SESSION);
//var_dump($_REQUEST);
/*
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
*
* index.php - main viewer page
*
*
* Copyright (C) 2004-2007 Stephen Minutillo
* [email protected] - http://minutillo.com/steve/
*
* Distributed under the GPL - see LICENSE
*
*/
error_reporting(E_ALL);
ini_set("display_errors", 1);
include_once("fof-main.php");
include("init.php");
if (isset($_GET["logout"])) fof_logout();
if (isset($_GET["view-action"])) fof_view_action();
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "tablet") or strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "mobile"))
{
include("mobile.php");
exit;
}
include("header.php");
?>
<div id="sidebar">
<?php
include("sidebar.php");
?>
</div>
<div id="handle" onmousedown="startResize(event)"></div>
<?php
if (isset($_GET["update"]))
{
include("update.php");
}
elseif(isset($_GET["add"]))
{
include("add.php");
}
elseif(isset($_GET["rss_url"]))
{
$_REQUEST['url'] = $_GET["rss_url"];
include("add-single.php");
include("items.php");
}
elseif(isset($_GET["delete"]))
{
include("delete.php");
}
elseif(isset($_GET["prefs"]))
{
include("prefs.php");
}
else
{
include("items.php");
}
include("footer.php");
?>