svrjs-mods-directory/moderation/users.php

33 lines
1.2 KiB
PHP
Raw Normal View History

2024-12-27 15:05:54 +01:00
<?php
define("SVRJS_MOD_DIRECTORY", null);
define("SVRJS_MOD_DIRECTORY_MODERATION", null);
include '../config.php';
$appModerationRoot = dirname($_SERVER['SCRIPT_NAME']);
if ($appModerationRoot[strlen($appModerationRoot) - 1] != "/") $appModerationRoot = $appModerationRoot . '/';
$appRoot = dirname($_SERVER['SCRIPT_NAME'], 2);
if ($appRoot[strlen($appRoot) - 1] != "/") $appRoot = $appRoot . '/';
define('APP_ROOT', $appRoot);
define('APP_FSROOT', dirname(__FILE__, 2));
define('APP_MODERATION_FILENAME', basename($_SERVER['SCRIPT_NAME']));
define('APP_MODERATION_ROOT', $appModerationRoot);
include '../vendor/autoload.php';
include '../includes/init.php';
include '../includes/moderation_init.php';
$pageTitle = "Users";
include '../includes/moderation_header.php';
?>
<h1>Users</h1>
<form action="<?php echo htmlspecialchars(APP_MODERATION_ROOT . 'user.php'); ?>" method="get" class="form">
<div class="form-block">
<label for="user">Username:</label>
<input type="text" name="user" id="user" required>
</div>
<div class="form-block">
<input type="submit" value="Manage user">
</div>
</form>
<?php
include '../includes/moderation_footer.php';
include '../includes/moderation_final.php';
include '../includes/final.php';
?>