Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c2f14814
Commit
c2f14814
authored
Nov 17, 2006
by
Richard Mansfield
Browse files
Fixed my naughty whitespace
parent
d7f2da4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/usermanagement/adminusers.php
View file @
c2f14814
...
...
@@ -61,8 +61,12 @@ function adminusers_submit($values) {
$table
=
get_config
(
'dbprefix'
)
.
'usr'
;
db_begin
();
execute_sql
(
'UPDATE '
.
$table
.
' SET admin = 0 WHERE admin = 1'
);
execute_sql
(
'UPDATE '
.
$table
.
' SET admin = 1 WHERE id IN ('
.
join
(
','
,
$values
[
'users'
])
.
')'
);
execute_sql
(
'UPDATE '
.
$table
.
'
SET admin = 0
WHERE admin = 1'
);
execute_sql
(
'UPDATE '
.
$table
.
'
SET admin = 1
WHERE id IN ('
.
join
(
','
,
$values
[
'users'
])
.
')'
);
db_commit
();
$SESSION
->
add_ok_msg
(
get_string
(
'adminusersupdated'
,
'admin'
));
redirect
(
get_config
(
'wwwroot'
)
.
'admin/usermanagement/adminusers.php'
);
...
...
htdocs/admin/usermanagement/staffusers.php
View file @
c2f14814
...
...
@@ -60,8 +60,12 @@ function staffusers_submit($values) {
$table
=
get_config
(
'dbprefix'
)
.
'usr'
;
db_begin
();
execute_sql
(
'UPDATE '
.
$table
.
' SET staff = 0 WHERE staff = 1'
);
execute_sql
(
'UPDATE '
.
$table
.
' SET staff = 1 WHERE id IN ('
.
join
(
','
,
$values
[
'users'
])
.
')'
);
execute_sql
(
'UPDATE '
.
$table
.
'
SET staff = 0
WHERE staff = 1'
);
execute_sql
(
'UPDATE '
.
$table
.
'
SET staff = 1
WHERE id IN ('
.
join
(
','
,
$values
[
'users'
])
.
')'
);
db_commit
();
$SESSION
->
add_ok_msg
(
get_string
(
'staffusersupdated'
,
'admin'
));
redirect
(
get_config
(
'wwwroot'
)
.
'admin/usermanagement/staffusers.php'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment