konyvleltar/web/scan.php
2021-12-20 12:50:53 +01:00

18 lines
413 B
PHP

<?php
include_once('template.inc');
include_once ('store.inc');
if (isset($_POST['content'])){
$m = isset($_POST['manual']);
if (isset($_POST['idtype']) && $_POST['idtype'] === 'moly'){
StoreMoly::save($_POST['content'],$m);
} else{
Store::save($_POST['content'],$m);
}
}else {
header("Location: /index.php");
exit();
}
?>