summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/browse.php3
-rwxr-xr-xwww/index.php1
2 files changed, 2 insertions, 2 deletions
diff --git a/www/browse.php b/www/browse.php
index 433c980..028174e 100644
--- a/www/browse.php
+++ b/www/browse.php
@@ -24,7 +24,8 @@ function get_icon($file){
}
function get_link($file){
- return '<a href="'.$file[3].'/">';
+ $slash = (($_GET["folder"]!="" && substr($_GET["folder"], -1) != "/"))? "/" : "";
+ return '<a href="/'.$_GET["name"]."/".$_GET["folder"].$slash.$file[3].'/">';
}
function get_item($file){
diff --git a/www/index.php b/www/index.php
index 6378604..56056c5 100755
--- a/www/index.php
+++ b/www/index.php
@@ -1,5 +1,4 @@
<?php
-
session_start();
require_once("include.php"); // handles all the stuff that needs to be included