add instructions, update titles, catch empty config

This commit is contained in:
codepoet80 committed 2021-06-07 17:30:50 -04:00
1 parent deccc7c905
commit acaf21da6e
10 files changed
+33 -42

No files matched your search

+15 -2
View File
@@ -7,8 +7,7 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>webOS Share</title>
<link rel="stylesheet" href="style.css">
<title>Share Service</title>
<link rel="stylesheet" href="style-columns.css">
<?php include("web-meta.php") ?>
</head>
@@ -16,7 +15,21 @@
<div class="login-header"><a href="web-login.php">Login</a>&nbsp;</div>
<table width="100%" height="95%" style="padding-bottom: 20px;"><tr><td width="100%"align="center" valign="middle">
<div style='max-width: 520px; color: dimgray; margin-bottom: 20px; margin-top: 10px; padding-left: 24px; padding-right: 24px; font-size: smaller'>
<?php
setcookie("firsttime", true, time() + 2592000, "/");
if (strpos($client, "hpwos") || strpos($client, "webos")) {
echo "Welcome webOS User! This sharing service was made for you in mind, but the web front-end doesn't work on your current device. Instead, you can <a href='http://appcatalog.webosarchive.com/showMuseumDetails.php?search=share+space&app=1005788'>download the native webOS App called Share Space</a>, that works on Touchpad, Pre and all the other webOS phones!";
} else {
if (!isset($_COOKIE["firsttime"]) || $_COOKIE["firsttime"] == true) {
echo "The Share Service is a file sharing web app for retro devices -- but it works with modern devices too! You can create an account where you can share pictures or text with others, or they can share with you!";
}
setcookie("firsttime", false, time() + 2592000, "/");
}
?>
</div>
<div id="container">
<div class="row">
<div class="column" >
<div class="columnContent">
+5 -1
View File
@@ -2,13 +2,17 @@
$config = include('config.php');
?>
<ul>
<li><i>This server allows you to share up to <?php echo $config['maxsharelength'] ?> items per share space.</i></li>
<?php
if (isset($config['maxsharelength'])) {
echo "<li><i>This server allows you to share up to " . $config['maxsharelength'] . " items per share space.</i></li>";
}
if (isset($config['termsandconditions'])) {
while (list($key, $val) = each($config['termsandconditions']))
{
echo "<li>$val</li>";
}
} else {
echo "Administrator: you can define your terms and conditions by creating a config.php file -- use the config-example.php as a reference.";
}
if (isset($config["createkey"]) && $config["createkey"] != "" && strrpos($_SERVER['REQUEST_URI'], "web-agreement")) {
echo "<li><i>The administrator of this service has required a create key, which will need to be provided to create a new account in a web browser. ";
+2 -10
View File
@@ -5,16 +5,8 @@
<html>
<head>
<title>webOS Share</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="images/icon.png" type="image/png">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1" />
<meta http-equiv="pragma" content="no-cache">
<script>
</script>
<title>Share Service</title>
<?php include("web-meta.php") ?>
</head>
<body class="login">
<div class="login-header"><a href="index.php">Cancel</a>&nbsp;</div>
+1 -3
View File
@@ -27,9 +27,7 @@
<html>
<head>
<title>webOS Share</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<title>Share Service</title>
<?php include("web-meta.php") ?>
<?php
if (isset($updatedsharedata)) {
+1 -4
View File
@@ -13,10 +13,7 @@ if ($sharedata->accesslevel != 'admin') {
<html>
<head>
<title>webOS Share</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="images/icon.png" type="image/png">
<title>Share Service</title>
<?php include("web-meta.php") ?>
<script>
+2 -5
View File
@@ -24,11 +24,8 @@
<html>
<head>
<title>webOS Share</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="images/icon.png" type="image/png">
<title>Share Service</title>
<?php include("web-meta.php") ?>
<script>
function swapTech() {
document.getElementById("imgTogglePass").style.display = "inline";
+2 -7
View File
@@ -14,13 +14,8 @@
<html>
<head>
<title>webOS Share</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="images/icon.png" type="image/png">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1" />
<meta http-equiv="pragma" content="no-cache">
<title>Share Service</title>
<?php include("web-meta.php") ?>
<script>
function swapTech() {
document.getElementById("imgNewWords").style.display = "inline";
+1 -3
View File
@@ -32,9 +32,7 @@
<html>
<head>
<title>webOS Share</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<title>Share Service</title>
<?php include("web-meta.php") ?>
<script>
+1 -3
View File
@@ -36,9 +36,7 @@
<html>
<head>
<title>webOS Share</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<title>Share Service</title>
<?php include("web-meta.php") ?>
<script>
+3 -4
View File
@@ -6,10 +6,9 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>webOS Share</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style-columns.css">
<?php include("web-meta.php") ?>
<title>Share Service</title>
<?php include("web-meta.php") ?>
<link rel="stylesheet" href="style-columns.css">
</head>
<body class="login">
<div class="login-header"><a href="web-login.php">Cancel</a>&nbsp;</div>