2024-06-22 04:03:20 +00:00
|
|
|
<?php
|
|
|
|
$path = "";
|
|
|
|
if(isset($_GET["q"]))
|
|
|
|
{
|
|
|
|
$path=$_GET["q"];
|
|
|
|
}
|
2024-08-28 02:51:48 +00:00
|
|
|
|
|
|
|
$files = glob("./content/PreMuxed/*.*");
|
|
|
|
$count = count($files);
|
2024-06-22 04:03:20 +00:00
|
|
|
?>
|
|
|
|
</head>
|
|
|
|
<body class="bg-dark text-light">
|
|
|
|
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<a class="navbar-brand" href="/">TYTD Archive</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/">Home</a>
|
|
|
|
</li>
|
2024-08-28 02:51:48 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/videos.php">Videos <span class="badge text-bg-secondary"><?php echo $count; ?></span></a>
|
|
|
|
</li>
|
2024-06-22 04:03:20 +00:00
|
|
|
</ul>
|
|
|
|
<form class="d-flex" action="/search.php" method="GET" role="search">
|
|
|
|
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search" name="q" value=<?php echo "\"".htmlspecialchars($path)."\""; ?>>
|
|
|
|
<button class="btn btn-outline-success" type="submit">Search</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="container">
|
2024-08-28 02:51:48 +00:00
|
|
|
<br>
|