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>
+1 -1
View File
@@ -11,7 +11,7 @@ $nav = '
if (isset($_COOKIE['role_id']) && $_COOKIE['role_id'] <= 2) {
$nav .= '
<li><a href="/admin.php"' . ($current_page == '/admin.php' ? ' class="underline"' : '') . '>Admin</a></li>
<li><a href="/admin.php?view=users"' . ($current_page == '/admin.php' ? ' class="underline"' : '') . '>Admin</a></li>
';
}