lang, signout
This commit is contained in:
20
users.php
20
users.php
@@ -203,7 +203,7 @@ if (!empty($form_data['edituser'])) { $edituser = $Users->getUserInfo($form_data
|
||||
$newsiteid = $SiteInfo->getSiteByID($_POST['sitename']);
|
||||
$SiteInfo->grantSitePermissionBySiteAndUser($newsiteid["0"]["id"], "1");
|
||||
$SiteInfo->grantSitePermissionBySiteAndUser($newsiteid["0"]["id"], "2");
|
||||
header('Location: ' . $_SERVER['PHP_SELF']);
|
||||
header('Location: users.php');
|
||||
endif;
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ if (Registry::AUTHMETHOD == 'INTERNAL') {
|
||||
$hasher = new PasswordHash(8, FALSE);
|
||||
$password = $hasher->HashPassword($_POST['password']);
|
||||
$Users->addUser($_POST['firstname'], $_POST['lastname'], $_POST['username'], $timezone, $password, $_POST['email'], $_POST['usertype']);
|
||||
header('Location: ' . $_SERVER['PHP_SELF']);
|
||||
header('Location: users.php');
|
||||
endif;
|
||||
} elseif (Registry::AUTHMETHOD == 'SAML') {
|
||||
|
||||
@@ -243,9 +243,9 @@ if (Registry::AUTHMETHOD == 'INTERNAL') {
|
||||
endif;
|
||||
if (!empty($_POST['newuser']) && empty($errors)):
|
||||
$Users->addSAMLUser($timezone, $_POST['email'], $_POST['usertype']);
|
||||
header('Location: ' . $_SERVER['PHP_SELF']);
|
||||
header('Location: users.php');
|
||||
endif;
|
||||
};
|
||||
}
|
||||
|
||||
if (!empty($_POST['editusercomplete'])): // EDIT USER
|
||||
if (Registry::AUTHMETHOD == 'INTERNAL') {
|
||||
@@ -279,7 +279,7 @@ if (Registry::AUTHMETHOD == 'INTERNAL') {
|
||||
foreach($_POST['sitepermissions'] as $editsitepermission) {
|
||||
$SiteInfo->grantSitePermissionBySiteAndUser($editsitepermission, $_POST['edituserid']);
|
||||
}
|
||||
header('Location: ' . $_SERVER['PHP_SELF']);
|
||||
header('Location: users.php');
|
||||
endif;
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ if (Registry::AUTHMETHOD == 'INTERNAL') {
|
||||
$deleteid = (int) $_POST['deleteid'];
|
||||
echo $Users->deleteUser($deleteid);
|
||||
echo "user deleted!";
|
||||
header('Location: ' . $_SERVER['PHP_SELF']);
|
||||
header('Location: users.php');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -484,7 +484,7 @@ if (!empty($_POST['delsite'])) {
|
||||
$SiteInfo->deleteSitePermissionByUserAndSite ('2', $deleteid);
|
||||
echo $SiteInfo->deleteSite($deleteid);
|
||||
echo "site deleted!";
|
||||
header('Location: ' . $_SERVER['PHP_SELF']);
|
||||
header('Location: users.php');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -555,7 +555,7 @@ if (0 === $row_count1): else: $page_count1 = (int)ceil($row_count1 / $StaticFunc
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form form-approve" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
|
||||
<form class="form form-approve" method="post">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<div class="input-group input-group-sm mb-0">
|
||||
@@ -572,7 +572,7 @@ if (0 === $row_count1): else: $page_count1 = (int)ceil($row_count1 / $StaticFunc
|
||||
<option value=""><?php echo $transLang['STR_COMMON_TIMEZONE']; ?></option>
|
||||
<?php foreach(DateTimeZone::listIdentifiers(DateTimeZone::ALL) as $row2) { ?>
|
||||
<option><?php echo $row2; ?></option>
|
||||
<?php }; ?>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -606,4 +606,4 @@ if (0 === $row_count1): else: $page_count1 = (int)ceil($row_count1 / $StaticFunc
|
||||
<hr />
|
||||
<!-- END PAGE -->
|
||||
|
||||
<?php }; require_once("inc/footer.inc.php"); ?>
|
||||
<?php } require_once("inc/footer.inc.php");
|
||||
|
||||
Reference in New Issue
Block a user