summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorHorus32014-03-17 16:34:42 +0100
committerHorus32014-03-17 16:34:42 +0100
commitfe5bc45ab8c7a9675e74319fac37b2f4931a5a8a (patch)
tree0ec9a601e66b78189ab709505b66f3c93e2892f3 /www
parent25e3531d85e2aa8c68945fbc6c71a998a842e759 (diff)
parentff355dbc9aecc0ede33afb0fa2ff8a6687a700d0 (diff)
downloadfiles.iamfabulous.de-fe5bc45ab8c7a9675e74319fac37b2f4931a5a8a.tar.gz
Merge branch 'master' of git.iamfabulous.de:files.iamfabulous.de
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