diff --git a/browse.php b/browse.php
index f8fc1ed..72f4995 100755
--- a/browse.php
+++ b/browse.php
@@ -1,6 +1,8 @@
table_collapse_width>\n");
}
-//
-// functions to create/show the links to be sorted on
-//
-function show_link($column,$sortname,$sortvalue,$order,$sess,$expand,$parent,$lang_title,$url) {
+/**
+* Creates links that can be sorted
+*
+* @param $column current column
+* @param $sortname
+* @param $sortvalue ASC or DESC
+* @param $order column to order by
+* @param $sess
+* @param $expand
+* @param $parent
+* @param $lang_title
+* @param $url
+*/
- if ($sortvalue == "ASC")
- {
- print("\t\t\t\t
$lang_title");
- if ($order == $column)
- {
- print(" | ");
- }
- else
- {
- print("");
- }
+function show_link($column,$sortname,$sortvalue,$order,$sess,$expand,$parent,$lang_title,$url) {
- }
- else
- {
- print("\t\t\t\t$lang_title");
- if ($order == $column)
- {
- print(" | ");
- }
- else
- {
- print("");
- }
- }
+ if ($sortvalue == "ASC") {
+ print("\t\t\t\t$lang_title");
+ if ($order == $column)
+ {
+ print(" | ");
+ }
+ else
+ {
+ print("");
+ }
+
+ }
+ else {
+ print("\t\t\t\t$lang_title");
+ if ($order == $column)
+ {
+ print(" | ");
+ }
+ else {
+ print("");
+ }
+ }
}
-
if ($expand == 1) {
print("\t\t\ttable_expand_width BORDER=$default->table_border>");
show_link("name","sortname",$sortname,$order,$sess,$expand,$parent,$lang_title,$default->owl_root_url);
@@ -209,7 +219,9 @@ if ($order == "creatorid") {
//**********************
while($sql->next_record()) {
+ //if the current user has a restricted view
if($default->restrict_view == 1) {
+ //if the current user does not have permission to view the folder
if(!check_auth($sql->f("id"), "folder_view", $userid))
continue;
}