initial commit; version 22.5.12042

This commit is contained in:
2022-12-12 23:28:25 -05:00
commit af1b03d79f
17653 changed files with 22692970 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
if ($_SESSION['userlevel'] == 10 && request_token_valid($vars)) // Only valid forms from level 10 users
{
if (strlen($vars['role_name']) &&
strlen($vars['role_descr']))
{
$oid_id = dbInsert('roles', array('role_descr' => $vars['role_descr'],
'role_name' => $vars['role_name'])
);
if ($oid_id)
{
print_success("<strong>SUCCESS:</strong> Added role");
}
else
{
print_warning("<strong>WARNING:</strong> Role not added");
}
}
else
{
print_error("<strong>ERROR:</strong> All fields must be completed to add a new role.");
}
}