Compare commits

..
10 Commits
Author SHA1 Message Date
chestnutit 8e87343105 float account button 2024-07-23 09:47:14 +07:00
chestnutit a132feec01 further styling updates 2024-07-23 09:45:21 +07:00
chestnutit 27e0ed4529 updated header styling 2024-07-23 09:44:37 +07:00
chestnutit 0be0427737 index.php now includes header.php 2024-07-23 09:38:25 +07:00
chestnutit 90d2421c03 revert dashboard changes in favor of crontab entry 2024-07-23 09:34:31 +07:00
chestnutit dc11391e6c update dashboard with new variable 2024-07-23 09:02:26 +07:00
chestnutit e2bf69f8fe dashboard now calling getcron 2024-07-23 08:59:17 +07:00
chestnutit 225c66b8f8 updated file permissions 2024-07-22 15:53:49 +07:00
chestnutit a17652035a added menu in header 2024-07-22 15:43:47 +07:00
chestnutit ccd57f7fdf add header and dashboard 2024-07-22 15:20:40 +07:00
5 changed files with 69 additions and 30 deletions

No files matched your search

+4
View File
@@ -9,6 +9,8 @@ mapfile -t lines < <(crontab -l |grep -v '^#' |grep ' *\s/var/www/stream ')
#echo "User: $1"
#now=$(date '+%Y-%m-%d %H:%M')
#retrieve and display cron entries
crondisplay() {
for line in "${lines[@]}"
do
#tag=${line##* } _=${tag#*.} dt="${_:0:10} ${_:11:2}:${_:13:2}" _=${_:16} user=${_%%[@:]*}
@@ -18,3 +20,5 @@ do
dt=$(printf "%02d:%02d %s %d" $h $m $(date -d 2022-$M-01 +%B) $d)
[[ -z $1 || $user = $1 ]] && printf "%-20s %s\n" "$dt" $tag
done |sort
}
crondisplay 2>&1 |tee ./web/streams.txt
+3
View File
@@ -0,0 +1,3 @@
<?php
include_once 'header.php';
echo nl2br(file_get_contents( "streams.txt" ));
Executable
+37
View File
@@ -0,0 +1,37 @@
<?php
require "check.php";
$user=@$_SESSION['user'];
if(empty($user)){
header('Location: login.php');
}
?>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Stream Upload</title>
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="page.css">
<script>
function respond(){
const feedback = document.getElementById("response");
feedback.innerHTML = "<b>File is uploading</b>";
}
function filename(){
var name = document.getElementById("name");
name.innerHTML = document.getElementById("input").files[0].name;
name.style.fontWeight = "normal";
}
</script>
<div class="header">
<div class="user">
<p class="user">User:&nbsp;<b><?php echo $user ?></b></p>
</div>
<div class="menu">
<a href="index.php" class="menu-item">Home</a>
<a href="dashboard.php" class="menu-item">Dashboard</a>
</div>
<div class="account">
<form action="login.php" method="post">
<input id="logoff" type="submit" name="logoff" value="Logoff">
</form>
</div>
</div>
+2 -26
View File
@@ -1,30 +1,6 @@
<?php // Schedule page
require "check.php";
$user=@$_SESSION['user'];
if(empty($user)){
header('Location: login.php');
}
print('<!DOCTYPE html>
<meta charset="utf-8">
<title>Stream Upload scheduling</title>
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="page.css">
<script>
function respond(){
const feedback = document.getElementById("response");
feedback.innerHTML = "<b>File is uploading</b>";
}
function filename(){
var name = document.getElementById("name");
name.innerHTML = document.getElementById("input").files[0].name;
name.style.fontWeight = "normal";
}
</script>
<div class="user"><p class="user">User:&nbsp;<b>'.$user.'</b></p>
<form action="login.php" method="post">
<input id="logoff" type="submit" name="logoff" value="Logoff">
</form></div>
include_once 'header.php';
print('
<div class="container">
<div class="incontainer">
<h1>Stream Upload</h1>
+23 -4
View File
@@ -6,20 +6,39 @@ body {
text-align:center;
}
.user {
display:flex;
width:100%;
width: 10%;
justify-content:left;
background-color:#ccc;
box-sizing:border-box;
}
p.user {
margin:0;
padding:.9em;
}
.header {
display: flex;
width: 100%;
background-color:#ccc;
box-sizing:border-box;
}
.account {
width: 10%;
}
.menu {
padding:.9em;
width: 100%;
box-sizing: border-box;
}
.menu-item {
font-weight: bold;
text-decoration: none;
color: #000;
padding-left: 10px;
padding-right: 10px;
}
#logoff {
margin:0;
background-color:darkorange;
width:100px;
float: right;
}
.container {
display:flex;