SimpleCloudNotifier/web/index.php

79 lines
3.9 KiB
PHP
Raw Permalink Normal View History

2018-09-22 18:00:00 +02:00
<!DOCTYPE html>
<html lang="en">
2018-11-18 03:34:05 +01:00
<?php
if (file_exists('/var/www/openwebanalytics/owa_php.php'))
{
require_once('/var/www/openwebanalytics/owa_php.php');
$owa = new owa_php();
$owa->setSiteId('6386b0efc00d2e84ef642525345e1207');
$owa->setPageTitle('Index');
$owa->trackPageView();
}
?>
2018-09-22 18:00:00 +02:00
<head>
<meta charset="utf-8">
2018-09-27 02:38:46 +02:00
<title>Simple Cloud Notifications</title>
2018-09-22 19:40:50 +02:00
<link rel="stylesheet" href="/css/toastify.min.css"/>
2018-10-20 14:57:05 +02:00
<link rel="stylesheet" href="/css/mini-default.min.css"> <!-- https://minicss.org/ -->
2018-09-22 19:40:50 +02:00
<!--<link rel="stylesheet" href="/css/mini-nord.min.css">-->
<!--<link rel="stylesheet" href="/css/mini-dark.min.css">-->
2018-09-22 18:00:00 +02:00
<link rel="stylesheet" href="/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
2018-11-12 15:28:07 +01:00
<link rel="icon" type="image/png" href="/favicon.png"/>
<link rel="icon" type="image/png" href="/favicon.ico"/>
2018-09-22 18:00:00 +02:00
</head>
<body>
2018-11-13 16:05:25 +01:00
<div id="copyinfo">
<a tabindex="-1" href="https://www.blackforestbytes.com">&#169; blackforestbytes</a>
<a tabindex="-1" href="https://www.mikescher.com">made by Mike Schw&ouml;rer</a>
</div>
2018-09-22 18:00:00 +02:00
<form id="mainpnl">
2018-11-13 16:05:25 +01:00
<a tabindex="-1" href="https://play.google.com/store/apps/details?id=com.blackforestbytes.simplecloudnotifier" class="button bordered" id="tl_link"><span class="icn-google-play"></span></a>
2018-11-17 01:30:41 +01:00
<a tabindex="-1" href="/api.php" class="button bordered" id="tr_link">API</a>
2018-09-22 18:00:00 +02:00
2018-11-13 16:05:25 +01:00
<a tabindex="-1" href="/" class="linkcaption"><h1>Simple Cloud Notifier</h1></a>
2018-09-22 18:00:00 +02:00
<div class="row responsive-label">
<div class="col-sm-12 col-md-3"><label for="uid" class="doc">UserID</label></div>
2018-09-22 19:40:50 +02:00
<div class="col-sm-12 col-md"><input placeholder="UserID" id="uid" class="doc" <?php echo (isset($_GET['preset_user_id']) ? (' value="'.$_GET['preset_user_id'].'" '):(''));?> type="number"></div>
2018-09-22 18:00:00 +02:00
</div>
<div class="row responsive-label">
<div class="col-sm-12 col-md-3"><label for="ukey" class="doc">Authentification Key</label></div>
2018-09-22 19:40:50 +02:00
<div class="col-sm-12 col-md"><input placeholder="Key" id="ukey" class="doc" <?php echo (isset($_GET['preset_user_key']) ? (' value="'.$_GET['preset_user_key'].'" '):(''));?> type="text" maxlength="64"></div>
2018-09-22 18:00:00 +02:00
</div>
2018-10-20 14:57:05 +02:00
<div class="row responsive-label">
<div class="col-sm-12 col-md-3"><label for="prio" class="doc">Priority</label></div>
<div class="col-sm-12 col-md">
<select id="prio" class="doc" type="text" style="width:100%;">
<option value="0" <?php echo (( isset($_GET['preset_priority'])&&$_GET['preset_priority']==='0') ? 'selected':'');?>>Low</option>
<option value="1" <?php echo ((!isset($_GET['preset_priority'])||$_GET['preset_priority']==='1') ? 'selected':'');?>>Normal</option>
<option value="2" <?php echo (( isset($_GET['preset_priority'])&&$_GET['preset_priority']==='2') ? 'selected':'');?>>High</option>
</select>
</div>
</div>
2018-09-22 18:00:00 +02:00
<div class="row responsive-label">
<div class="col-sm-12 col-md-3"><label for="msg" class="doc">Message Title</label></div>
2018-09-22 19:40:50 +02:00
<div class="col-sm-12 col-md"><input placeholder="Message" id="msg" class="doc" <?php echo (isset($_GET['preset_title']) ? (' value="'.$_GET['preset_title'].'" '):(''));?> type="text" maxlength="80"></div>
2018-09-22 18:00:00 +02:00
</div>
<div class="row responsive-label">
<div class="col-sm-12 col-md-3"><label for="txt" class="doc">Message Content</label></div>
2018-11-17 16:02:31 +01:00
<div class="col-sm-12 col-md"><textarea id="txt" class="doc" <?php echo (isset($_GET['preset_content']) ? (' value="'.$_GET['preset_content'].'" '):(''));?> rows="8" maxlength="2048"></textarea></div>
2018-09-22 18:00:00 +02:00
</div>
<div class="row">
<div class="col-sm-12 col-md-3"></div>
2018-09-22 19:40:50 +02:00
<div class="col-sm-12 col-md"><button type="submit" class="primary bordered" id="btnSend">Send</button></div>
2018-09-22 18:00:00 +02:00
</div>
</form>
2018-09-22 19:40:50 +02:00
<script src="/js/logic.js" type="text/javascript" ></script>
<script src="/js/toastify.js"></script>
2018-09-22 18:00:00 +02:00
</body>
</html>