Added the possibility to sort bookmarks either by name or by date.
This commit is contained in:
@@ -74,6 +74,7 @@ if (isset ($_GET['user']) && check_username ($user)) {
|
||||
<div class="bookmarks" style="height: <?php echo $table_height; ?>;">
|
||||
|
||||
<?php
|
||||
$order = set_get_order ();
|
||||
|
||||
require_once (ABSOLUTE_PATH . "bookmarks.php");
|
||||
$query = sprintf ("SELECT title, url, description, UNIX_TIMESTAMP(date) AS timestamp, id, favicon
|
||||
@@ -82,7 +83,7 @@ if (isset ($_GET['user']) && check_username ($user)) {
|
||||
AND childof='%d'
|
||||
AND deleted!='1'
|
||||
AND public='1'
|
||||
ORDER BY title",
|
||||
ORDER BY $order[1]",
|
||||
$mysql->escape ($user),
|
||||
$mysql->escape ($folderid));
|
||||
|
||||
@@ -101,7 +102,8 @@ if (isset ($_GET['user']) && check_username ($user)) {
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false);
|
||||
false,
|
||||
true);
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
|
||||
Reference in New Issue
Block a user