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
Pablo Rauzy
cigala
Commits
73d3bebf
Commit
73d3bebf
authored
Mar 25, 2021
by
Pablo Rauzy
Browse files
default to rowid sort
parent
e919f5be
Changes
1
Hide whitespace changes
Inline
Side-by-side
root/manage.php
View file @
73d3bebf
...
...
@@ -62,7 +62,7 @@ function dirsize ($dir) {
$db
=
new
SQLite3
(
$config
[
'users'
]);
$orders
=
array
(
'n'
=>
'name'
,
'i'
=>
'rowid'
);
$order
=
(
isset
(
$_GET
[
'ord'
])
?
$orders
[
$_GET
[
'ord'
]]
:
'
name
'
);
$order
=
(
isset
(
$_GET
[
'ord'
])
?
$orders
[
$_GET
[
'ord'
]]
:
'
rowid
'
);
$res
=
$db
->
query
(
"select rowid, name, email, password from users order by
$order
asc"
);
$users
=
array
();
while
(
$usr
=
$res
->
fetchArray
(
SQLITE3_ASSOC
))
{
...
...
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