chore: version inicial del codigo fuente del LMS Estafeta

This commit is contained in:
2026-10-02 20:33:12 -06:00
commit c8bb6b97b9
1572 changed files with 457520 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
require_once __DIR__.'/auth_guard.php';
require_once "../config.php";
$ids = $_POST['id'];
$idcat = $_POST['idcat'];
$sql = "";
foreach ($ids as $key => $value) {
$sql .= "INSERT INTO asignacion ( uid, catid ) VALUES ($value, $idcat); ";
}
$return = new stdClass();
global $link;
dbConnect();
if (mysqli_multi_query($link, $sql)) {
$return->code = "1";
$return->msg = "Actualización correcta";
} else {
$return->code = "0";
$return->msg .= "Error: " . $sql . "<br>" . mysqli_error($link);
}
echo json_encode($return, JSON_UNESCAPED_UNICODE);
exit;
?>