implemented mass creation via csv, bug fixes
This commit is contained in:
+20
-1
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user