add instructions, update titles, catch empty config
This commit is contained in:
1 parent
deccc7c905
commit
acaf21da6e
10 files changed
+33
-42
No files matched your search
@@ -7,8 +7,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<link rel="stylesheet" href="style-columns.css">
|
<link rel="stylesheet" href="style-columns.css">
|
||||||
<?php include("web-meta.php") ?>
|
<?php include("web-meta.php") ?>
|
||||||
</head>
|
</head>
|
||||||
@@ -16,7 +15,21 @@
|
|||||||
<div class="login-header"><a href="web-login.php">Login</a> </div>
|
<div class="login-header"><a href="web-login.php">Login</a> </div>
|
||||||
|
|
||||||
<table width="100%" height="95%" style="padding-bottom: 20px;"><tr><td width="100%"align="center" valign="middle">
|
<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 id="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column" >
|
<div class="column" >
|
||||||
<div class="columnContent">
|
<div class="columnContent">
|
||||||
|
|||||||
@@ -2,13 +2,17 @@
|
|||||||
$config = include('config.php');
|
$config = include('config.php');
|
||||||
?>
|
?>
|
||||||
<ul>
|
<ul>
|
||||||
<li><i>This server allows you to share up to <?php echo $config['maxsharelength'] ?> items per share space.</i></li>
|
|
||||||
<?php
|
<?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'])) {
|
if (isset($config['termsandconditions'])) {
|
||||||
while (list($key, $val) = each($config['termsandconditions']))
|
while (list($key, $val) = each($config['termsandconditions']))
|
||||||
{
|
{
|
||||||
echo "<li>$val</li>";
|
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")) {
|
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. ";
|
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
@@ -5,16 +5,8 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
<?php include("web-meta.php") ?>
|
||||||
<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>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="login">
|
<body class="login">
|
||||||
<div class="login-header"><a href="index.php">Cancel</a> </div>
|
<div class="login-header"><a href="index.php">Cancel</a> </div>
|
||||||
|
|||||||
+1
-3
@@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<?php include("web-meta.php") ?>
|
<?php include("web-meta.php") ?>
|
||||||
<?php
|
<?php
|
||||||
if (isset($updatedsharedata)) {
|
if (isset($updatedsharedata)) {
|
||||||
|
|||||||
+1
-4
@@ -13,10 +13,7 @@ if ($sharedata->accesslevel != 'admin') {
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<link rel="icon" href="images/icon.png" type="image/png">
|
|
||||||
<?php include("web-meta.php") ?>
|
<?php include("web-meta.php") ?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
+2
-5
@@ -24,11 +24,8 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
<?php include("web-meta.php") ?>
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<link rel="icon" href="images/icon.png" type="image/png">
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function swapTech() {
|
function swapTech() {
|
||||||
document.getElementById("imgTogglePass").style.display = "inline";
|
document.getElementById("imgTogglePass").style.display = "inline";
|
||||||
|
|||||||
+2
-7
@@ -14,13 +14,8 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
<?php include("web-meta.php") ?>
|
||||||
<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>
|
||||||
function swapTech() {
|
function swapTech() {
|
||||||
document.getElementById("imgNewWords").style.display = "inline";
|
document.getElementById("imgNewWords").style.display = "inline";
|
||||||
|
|||||||
+1
-3
@@ -32,9 +32,7 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<?php include("web-meta.php") ?>
|
<?php include("web-meta.php") ?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
+1
-3
@@ -36,9 +36,7 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<?php include("web-meta.php") ?>
|
<?php include("web-meta.php") ?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
+3
-4
@@ -6,10 +6,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>webOS Share</title>
|
<title>Share Service</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<?php include("web-meta.php") ?>
|
||||||
<link rel="stylesheet" href="style-columns.css">
|
<link rel="stylesheet" href="style-columns.css">
|
||||||
<?php include("web-meta.php") ?>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="login">
|
<body class="login">
|
||||||
<div class="login-header"><a href="web-login.php">Cancel</a> </div>
|
<div class="login-header"><a href="web-login.php">Cancel</a> </div>
|
||||||
|
|||||||
Reference in new issue
Block a user