forked from OthelloVenturesLtd/FeedSpider2
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·92 lines (84 loc) · 3.96 KB
/
index.php
File metadata and controls
executable file
·92 lines (84 loc) · 3.96 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<?php
//This file is only used for advertising on a hosting webserver
//Figure out what protocol the client wanted
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {
$PROTOCOL = "https";
} else {
$PROTOCOL = "http";
}
//App Details
$description = "FeedSpider is a cross platform news reader web app created by Othello Ventures, and the coolest RSS app for retro mobile devices.";
$title = "FeedSpider";
$subtitle = " | The coolest RSS Reader for webOS -- now available as a PWA";
$github = "https://github.com/codepoet80/FeedSpider2";
$pwaLink = "https://store.app/feedspider-wosa-link";
$githubLink = "https://github.com/codepoet80/FeedSpider2/releases";
$museumLink = "https://appcatalog.webosarchive.org/showMuseum.php?search=feedspider";
$homeLink = $PROTOCOL."://feedspider.wosa.link";
$icon = $homeLink."/assets/icon.png";
$hero = $homeLink."/hero.png";
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="<?php echo $description; ?>">
<meta name="keywords" content="webos, firefoxos, pwa, rss">
<meta name="author" content="webOS Archive">
<meta property="og:title" content="<?php echo $title; ?>">
<meta property="og:description" content="<?php echo $description; ?>">
<meta property="og:image" content="<?php echo $hero; ?>">
<meta name="twitter:card" content="app">
<meta name="twitter:site" content="@webOSArchive">
<meta name="twitter:title" content="<?php echo $title; ?>">
<meta name="twitter:description" content="<?php echo $description; ?>">
<title><?php echo $title . $subtitle; ?></title>
<link id="favicon" rel="icon" type="image/png" sizes="64x64" href="<?php echo $icon;?>">
<link href="<?php echo $PROTOCOL . "://www.webosarchive.org/app-template/"?>web.css" rel="stylesheet" type="text/css" >
</head>
<body>
<?php
$docRoot = "./";
echo file_get_contents("https://www.webosarchive.org/menu.php?docRoot=" . $docRoot . "&protocol=" . $PROTOCOL);
?>
<table width="100%" border=0 style="width:100%;border:0px"><tr><td align="center" style="width:100%;height:100%;border:0px">
<div id="row">
<div id="content" align="left">
<h1><img src="<?php echo $icon;?>" width="60" height="60" alt=""/><?php echo $title; ?></h1>
<p><?php echo $description; ?></p>
<p>Available for most platforms as a Progressive Web App, on Android, and the webOS App Museum for webOS devices.</p>
<p>Visit <a href="https://feedspider.net/">FeedSpider on the web</a>, and download for FirefoxOS.</p>
<p>View the source and contribute on <?php echo "<a href='" . $github . "'>GitHub</a>"?>.</p>
<p class="center">
<?php if (isset($pwaLink)) { ?>
<a class="download-link" href="<?php echo $pwaLink; ?>">
<img src="<?php echo $PROTOCOL . "://www.webosarchive.org/app-template/"?>pwa-badge.png" width="200" height="59" alt="Install the PWA" />
</a>
<?php } ?>
<?php if (isset($githubLink)) { ?>
<a class="download-link" href="<?php echo $githubLink; ?>">
<img src="<?php echo $PROTOCOL . "://www.webosarchive.org/app-template/"?>github-badge.png" width="200" height="59" alt="Get it on GitHub" />
</a>
<?php } ?>
<?php if (isset($museumLink)) { ?>
<a class="download-link" href="<?php echo $museumLink; ?>">
<img src="<?php echo $PROTOCOL . "://www.webosarchive.org/app-template/"?>museum-badge.png" width="200" height="59" alt="Find it in the App Museum" />
</a>
<?php } ?>
</p>
</div>
<div id="hero">
<img src="hero.png" width="480" alt="<?php echo $title ?>" />
</div>
</div>
<div id="footer">
© Othello Ventures and webOSArchive.
<div id="footer-links">
<a href="<?php echo $PROTOCOL . "://www.webosarchive.org/privacy.html"?>">Privacy Policy</a>
</div>
</div>
</td></tr></table>
</body>
</html>