implemented mass creation via csv, bug fixes

This commit is contained in:
2025-03-30 20:37:28 -06:00
parent e6735a9a20
commit 5a5471da5d
11 changed files with 176 additions and 31 deletions
+20 -1
View File
@@ -2,7 +2,8 @@
<footer>
<?php
if ($_SERVER['SCRIPT_NAME'] == '/user.php') {
function get_args_from_url()
{
$args = [];
$arr = explode('&', $_SERVER['QUERY_STRING']);
@@ -14,6 +15,12 @@
$args[$key] = $value;
}
return $args;
}
if ($_SERVER['SCRIPT_NAME'] == '/user.php') {
$args = get_args_from_url();
if (isset($args['action'])) {
if ($args['action'] == 'signup') {
echo '
@@ -26,6 +33,18 @@
}
}
}
if ($_SERVER['SCRIPT_NAME'] == '/admin.php') {
$args = get_args_from_url();
if (isset($args['view'])) {
if ($args['view'] == 'users') {
echo '
<script src="js/upload.js"></script>
';
}
}
}
?>
</footer>