Skip to content

Commit

Permalink
Update admin.edit.admingroup.php & Fix time to "ShowBox"
Browse files Browse the repository at this point in the history
  • Loading branch information
redbol authored Oct 23, 2016
1 parent 59edd2b commit 354d3b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web_upload/pages/admin.edit.admingroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
$email = $GLOBALS['userbank']->GetProperty('email', $_GET['id']);
if($_POST['wg'] > 0 && (empty($password) || empty($email)))
{
echo '<script>setTimeout(\'ShowBox("Error", "Admins have to have a password and email set in order to get web permissions.<br /><a href=\"index.php?p=admin&c=admins&o=editdetails&id=' . $_GET['id'] . '\" title=\"Edit Admin Details\">Set the details</a> first and try again.", "red");\', 800);</script>';
echo '<script>setTimeout(\'ShowBox("Error", "Admins have to have a password and email set in order to get web permissions.<br /><a href=\"index.php?p=admin&c=admins&o=editdetails&id=' . $_GET['id'] . '\" title=\"Edit Admin Details\">Set the details</a> first and try again.", "red");\', 1350);</script>';
}
else
{
if(isset($_POST['wg']) && $_POST['wg'] != "-2") {
if($_POST['wg'] == -1)
if($_POST['wg'] == "-1")
$_POST['wg'] = 0;

// Edit the web group
Expand Down Expand Up @@ -129,10 +129,10 @@
$allservers[] = $access['sid'];
}
}
echo '<script>setTimeout(\'ShowRehashBox("'.implode(",", $allservers).'", "Admin updated", "The admin has been updated successfully", "green", "index.php?p=admin&c=admins");TabToReload();\', 800);</script>';
echo '<script>setTimeout(\'ShowRehashBox("'.implode(",", $allservers).'", "Admin updated", "The admin has been updated successfully", "green", "index.php?p=admin&c=admins");TabToReload();\', 1350);</script>';
}
else
echo '<script>setTimeout(\'ShowBox("Admin updated", "The admin has been updated successfully", "green", "index.php?p=admin&c=admins");TabToReload();\', 800);</script>';
echo '<script>setTimeout(\'ShowBox("Admin updated", "The admin has been updated successfully", "green", "index.php?p=admin&c=admins");TabToReload();\', 1350);</script>';

$admname = $GLOBALS['db']->GetRow("SELECT user FROM `".DB_PREFIX."_admins` WHERE aid = ?", array((int)$_GET['id']));
$log = new CSystemLog("m", "Admin's Groups Updated", "Admin (" . $admname['user'] . ") groups has been updated");
Expand Down

0 comments on commit 354d3b9

Please sign in to comment.