2020-07-01 10:22:00 -04:00
|
|
|
<?php
|
|
|
|
$base_url = '/provm/demos';
|
2020-08-17 13:12:27 +00:00
|
|
|
$folder = '/var/www/ftp/demos';
|
|
|
|
$files = new DirectoryIterator(implode(DIRECTORY_SEPARATOR, [$folder]));
|
2020-07-01 10:22:00 -04:00
|
|
|
$demos = [];
|
|
|
|
foreach ($files as $file) {
|
|
|
|
if (!$file->isDir() or $file->isDot() or $file->getBasename() == 'public') {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$demos []= $file->getBasename();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="es">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf8" />
|
|
|
|
<title>Demos - ProVM</title>
|
2020-08-17 09:20:20 -04:00
|
|
|
<link rel="icon" href="http://www.provm.cl/favicon.png" />
|
2020-07-01 10:22:00 -04:00
|
|
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/semantic.min.css" />
|
|
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/brand-icons.woff" />
|
|
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/brand-icons.woff2" />
|
|
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/icons.woff" />
|
|
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/icons.woff2" />
|
2020-08-17 09:21:50 -04:00
|
|
|
<style type="text/css">
|
|
|
|
header nav .image img {
|
|
|
|
height: 64px;
|
|
|
|
}
|
|
|
|
</style>
|
2020-07-01 10:22:00 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header class="ui container">
|
|
|
|
<nav class="ui menu">
|
|
|
|
<a class="item" href="#">
|
2020-08-17 09:20:20 -04:00
|
|
|
<div class="ui image">
|
2020-08-17 09:21:50 -04:00
|
|
|
<img src="http://www.provm.cl/logo_menu.png" />
|
2020-08-17 09:20:20 -04:00
|
|
|
</div>
|
2020-07-01 10:22:00 -04:00
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<section class="ui container">
|
|
|
|
<div class="ui basic segment">
|
|
|
|
<h1 class="header">
|
|
|
|
Demos
|
|
|
|
</h1>
|
|
|
|
<div class="ui celled list">
|
|
|
|
<?php foreach ($demos as $demo): ?>
|
|
|
|
<a class="item" href="<?= implode('/', [$base_url, $demo]); ?>"><?= $demo; ?></a>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2020-08-17 13:12:27 +00:00
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
2020-07-01 10:22:00 -04:00
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/semantic.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|