initial commit
This commit is contained in:
commit
7755aa53f7
7 changed files with 69 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
/favicon.ico
|
||||||
|
/local/net
|
||||||
|
/local/urls
|
||||||
|
/local/videos
|
||||||
11
app/pswd.php
Normal file
11
app/pswd.php
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
$title = "Password generator";
|
||||||
|
$root = $_SERVER["DOCUMENT_ROOT"];
|
||||||
|
require "$root/templates/header.php";
|
||||||
|
|
||||||
|
$str = strtr(base64_encode(random_bytes(15)), '+/', '-_');
|
||||||
|
$str[random_int(0, 19)] = random_int(0, 1) ? '-' : '_';
|
||||||
|
echo "<div>$str</div>\n";
|
||||||
|
|
||||||
|
require "$root/templates/footer.php";
|
||||||
|
?>
|
||||||
16
index.php
Normal file
16
index.php
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
$title = "Apps";
|
||||||
|
$root = $_SERVER["DOCUMENT_ROOT"];
|
||||||
|
require "$root/templates/header.php";
|
||||||
|
?>
|
||||||
|
<h2>Apps</h2>
|
||||||
|
<h4>Public</h4>
|
||||||
|
<a href="git">Forgejo</a><br>
|
||||||
|
<a href="app/pswd.php">Password generator</a><br>
|
||||||
|
<h4>Private</h4>
|
||||||
|
<a href="vw">Vaultwarden</a><br>
|
||||||
|
<a href="local/apps/get.php">Media manager</a><br>
|
||||||
|
<a href="local/apps/load.php">Media downloader</a><br>
|
||||||
|
<?php
|
||||||
|
require "$root/templates/footer.php";
|
||||||
|
?>
|
||||||
21
local/apps/get.php
Normal file
21
local/apps/get.php
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
$title = "Media manager";
|
||||||
|
$root = $_SERVER["DOCUMENT_ROOT"];
|
||||||
|
require "$root/templates/header.php";
|
||||||
|
|
||||||
|
$urls_base = __DIR__ . "/../urls";
|
||||||
|
if (isset($_GET["list"])) {
|
||||||
|
$file = "$urls_base/" . $_GET["list"];
|
||||||
|
$urls = json_decode(file_get_contents($file));
|
||||||
|
$url = $urls[array_rand($urls)];
|
||||||
|
echo "<a href='$url'>Watch</a><br>";
|
||||||
|
} else {
|
||||||
|
foreach (scandir($urls_base) as $list) {
|
||||||
|
if ($list === '.' || $list === '..')
|
||||||
|
continue;
|
||||||
|
echo "<a href='" . $_SERVER['PHP_SELF'] . "?list=$list'>List $list</a><br>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
require "$root/templates/footer.php";
|
||||||
|
?>
|
||||||
7
style.css
Normal file
7
style.css
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
body {
|
||||||
|
color: #ffffff;
|
||||||
|
background: #000000;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #00ffff;
|
||||||
|
}
|
||||||
2
templates/footer.php
Normal file
2
templates/footer.php
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
8
templates/header.php
Normal file
8
templates/header.php
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title><?= $title ?></title>
|
||||||
|
<link rel="stylesheet" href="/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue