Many changes! New logos, some fixes & updates, new apps.

This commit is contained in:
Naiel
2026-01-26 14:54:59 +00:00
parent 62929e7565
commit bb95d9af85
23 changed files with 115 additions and 35 deletions

12
TODO.md Normal file
View File

@@ -0,0 +1,12 @@
En desarrollo:
* Cuenta y identidad
Modulos por desarrollar:
* OSCAR
* ET Media
* Hyper
* Comunicaciones
* Malla Meshtastic
* Aularios2
* Nube Axia4.NET
* Nube Kasa

View File

@@ -1,16 +1,18 @@
</main>
<script>
document.addEventListener("DOMContentLoaded", function() {
[].forEach.call(document.querySelectorAll('.dropimage'), function(img){
img.onchange = function(e){
var inputfile = this, reader = new FileReader();
reader.onloadend = function(){
inputfile.style['background-image'] = 'url('+reader.result+')';
<script>
document.addEventListener("DOMContentLoaded", function() {
console.log("post-body loaded");
[].forEach.call(document.querySelectorAll('.dropimage'), function(img){
console.log("Setting up dropimage", img);
img.onchange = function(e){
var inputfile = this, reader = new FileReader();
reader.onloadend = function(){
inputfile.style['background-image'] = 'url('+reader.result+')';
}
reader.readAsDataURL(e.target.files[0]);
}
reader.readAsDataURL(e.target.files[0]);
}
});
});
});
</script>
</script>
</body>
</html>

View File

@@ -28,7 +28,7 @@ if (file_exists($path . ".thumbnail") && $_GET["thumbnail"] == "1") {
}
header("Content-Type: " . $mime);
header('Content-Length: ' . filesize($path));
header('Cache-Control: max-age=7200');
//header('Cache-Control: max-age=7200');
header("X-Accel-Redirect: $uripath");
// // stream the file

View File

@@ -15,32 +15,62 @@
<span>Gestión de aularios conectados.</span>
<a href="/entreaulas/" class="button">Tengo cuenta</a>
</div>
<!--<div class="card grid-item">
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-oscar.png" alt="Logo OSCAR">
<b>OSCAR</b>
<span>Red de IA Absoluta.</span>
<a href="/oscar/" disabled class="button">No disponible</a>
</div>-->
<div class="card grid-item">
</div>
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-media.png" alt="Logo ET Media">
<b>ET Media</b>
<span>Streaming de pelis y series.</span>
</div>
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-hyper.png" alt="Logo Hyper">
<b>Hyper</b>
<span>Plataforma de gestión empresarial.</span>
</div>
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-mail.png" alt="Logo Comunicaciones">
<b>Comunicaciones</b>
<span>Correos electrónicos y mensajería.</span>
</div>
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-account.png" alt="Logo Account">
<b>Cuenta y identidad</b>
<span>Acceso a la plataforma y pagos.</span>
</div>
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-malla.png" alt="Logo Malla">
<b>Malla Meshtastic</b>
<span>Red de comunicación por radio.</span>
</div>
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-aularios.png" alt="Logo Aularios">
<b>Aularios<sup>2</sup></b>
<span>Acceso centralizado a los Aularios.</span>
<a href="https://aularios.tech.eus" class="button">Tengo cuenta</a>
<small>Externo</small>
<span>Visita virtual a los aularios.</span>
<!--<a href="https://aularios.tech.eus" class="button">Tengo cuenta</a>-->
<small>Solo lectura - Migrando a Axia4</small>
</div>
<div class="card grid-item">
<img src="/static/logo.png" alt="Logo Axia4 Cloud">
<b>Nube Axia4</b>
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-nube.png" alt="Logo Axia4 Cloud">
<b>Nube Axia4.NET</b>
<span>Almacenamiento central de datos.</span>
<a href="https://axia4.net" class="button">Tengo cuenta</a>
<small>Externo</small>
<!--<a href="https://axia4.net" class="button">Tengo cuenta</a>-->
<small>Cerrado por migración a Axia4</small>
</div>
<div class="card grid-item">
<img src="/static/logo-nk4.svg" alt="Logo NK5">
<div class="card grid-item" style="opacity: 0.5;">
<img src="/static/logo-nk4.png" alt="Logo Nube Kasa">
<b>Nube Kasa</b>
<span>Nube personal con domotica.</span>
<a href="https://nk4.tech.eus/_familia/" class="button">Acceso privado</a>
<small>Externo</small>
<!--<a href="https://nk4.tech.eus/_familia/" class="button">Acceso privado</a>-->
<small>Cerrado por mantenimiento</small>
</div>
<div class="card grid-item">
<img src="/static/logo-sysadmin.png" alt="Logo SysAdmin">
<b>SysAdmin</b>
<span>Panel de administración de sistemas.</span>
<a href="/sysadmin/" class="button">Acceso privado</a>
</div>
</div>
@@ -48,7 +78,7 @@
.grid-item {
margin-bottom: 10px !important;
padding: 15px;
width: 250px;
width: 235px;
text-align: center;
}
@@ -61,7 +91,7 @@
<script>
var msnry = new Masonry('#grid', {
"columnWidth": 250,
"columnWidth": 235,
"itemSelector": ".grid-item",
"gutter": 10,
"transitionDuration": 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
public_html/static/logo-entreaulas.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
public_html/static/logo-media.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1 +1 @@
<?php require_once "../../_incl/post-body.php"; ?>
<?php require __DIR__ . "/../../_incl/post-body.php"; ?>

View File

@@ -1,5 +1,5 @@
<?php
$APP_CODE = "sysadmin";
$APP_NAME = "Administración del Sistema";
$APP_NAME = "SysAdmin";
$APP_TITLE = "Administración del Sistema";
require_once __DIR__ . "/../../_incl/pre-body.php";

View File

@@ -42,6 +42,33 @@ switch ($_GET["form"]) {
header("Location: ?action=edit&centro=" . urlencode($centro_id));
exit();
break;
case "edit_activity":
ini_set('memory_limit', '512M');
ini_set("display_errors", 1);
ini_set('upload_max_filesize', '256M');
ini_set('post_max_size', '256M');
$centro_id = $_GET['centro'] ?? '';
$activity_name = $_GET['activity'] ?? '';
$activity_path = "/DATA/entreaulas/Centros/$centro_id/Panel/Actividades/$activity_name";
if (!is_dir($activity_path)) {
die("Actividad no válida.");
}
$activity_photo = $_FILES["file"] ?? null;
if ($activity_photo !== null && $activity_photo["error"] === UPLOAD_ERR_OK) {
$photo_path = "$activity_path/photo.jpg";
move_uploaded_file($activity_photo["tmp_name"], $photo_path);
}
if ($_POST['nombre'] != $_GET['activity']) {
$new_activity_name = $_POST['nombre'];
$new_activity_path = "/DATA/entreaulas/Centros/$centro_id/Panel/Actividades/$new_activity_name";
if (is_dir($new_activity_path)) {
die("Ya existe una actividad con ese nombre.");
}
rename($activity_path, $new_activity_path);
}
header("Location: ?action=edit&centro=" . urlencode($centro_id));;
exit();
break;
}
require_once "_incl/pre-body.php";
@@ -60,13 +87,18 @@ switch ($_GET["action"]) {
Desde esta sección puedes administrar la actividad seleccionada del panel del centro <?php echo htmlspecialchars($centro_id); ?>.
</span>
<form method="post" action="?form=edit_activity&centro=<?php echo urlencode($centro_id); ?>&activity=<?php echo urlencode($activity_name); ?>" enctype="multipart/form-data">
<label>
Nombre de la actividad:<br>
<input required type="text" name="nombre" value="<?php echo htmlspecialchars($activity_name); ?>">
</label><br><br>
Foto (pulsa para cambiarla):<br>
<div style="width: 200px;">
<label class="dropimage" style="background-image: url('<?php
$image_path = "$activity_path/photo.jpg";
$image_fetchpath = file_exists($image_path) ? "/entreaulas/_filefetch.php?type=panel_actividades&centro=" . urlencode($centro_id) . "&activity=" . urlencode($activity_name) : '/static/logo-entreaulas.png';
echo htmlspecialchars($image_fetchpath);
?>');">
<input title="Drop image or click me" type="file">
<input title="Drop image or click me" type="file" name="file" accept="image/*">
</label>
</div>
<button type="submit">Guardar Cambios</button>
@@ -225,6 +257,4 @@ switch ($_GET["action"]) {
break;
}
require_once "_incl/post-body.php"; ?>

View File

@@ -24,6 +24,12 @@ require_once "_incl/pre-body.php"; ?>
<span>Administra los usuarios del sistema.</span>
<a href="/sysadmin/users.php" class="button">Gestionar Usuarios</a>
</div>
<div class="card grid-item">
<img src="/static/logo-club.png" alt="Logo Club">
<b>Generar miniaturas</b>
<span>Genera miniaturas para las imágenes del club.</span>
<a href="/sysadmin/club_mkthumb.php" class="button">Generar Miniaturas</a>
</div>
</div>
<style>
.grid-item {