add header and dashboard
This commit is contained in:
1 parent
c19fae358a
commit
ccd57f7fdf
3 files changed
+36
No files matched your search
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
include_once 'header.php';
|
||||
echo nl2br(file_get_contents( "log.txt" ));
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
<?php
|
||||
require "check.php";
|
||||
$user=@$_SESSION['user'];
|
||||
if(empty($user)){
|
||||
header('Location: login.php');
|
||||
}
|
||||
|
||||
print('<!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="user"><p class="user">User: <b>'.$user.'</b></p><p class="title">Dashboard</p>
|
||||
<form action="login.php" method="post">
|
||||
<input id="logoff" type="submit" name="logoff" value="Logoff">
|
||||
</form></div>');
|
||||
?>
|
||||
Reference in new issue
Block a user