From 9e1b66f564659de67f8eb6c44b12ef0050c31970 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 22 Sep 2014 20:28:25 +0200 Subject: fixed bugs --- public_html/class/vfsdata.php | 2 +- public_html/class/vfsuser.php | 6 +++--- public_html/vfs_bootstrap.php | 4 +++- public_html/vfs_config.php | 6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/public_html/class/vfsdata.php b/public_html/class/vfsdata.php index 92d9745..05fced6 100644 --- a/public_html/class/vfsdata.php +++ b/public_html/class/vfsdata.php @@ -62,7 +62,7 @@ class vfsdata { $length = $tmp_length; - for ( $i=0; $i<$length, $i++ ) { + for ( $i=0; $i<$length; $i++ ) { $sql = $vfsdb->prepare("SELECT id, parent FROM files WHERE owner = %d AND parent = %d AND name = %s " . $visibility . ";", $this->userid, $parentdir, $folder[$i]); $parentdir_db = $vfsdb->doQuery($sql); diff --git a/public_html/class/vfsuser.php b/public_html/class/vfsuser.php index c0bc83f..761d149 100644 --- a/public_html/class/vfsuser.php +++ b/public_html/class/vfsuser.php @@ -75,9 +75,9 @@ class vfsuser { } # check if valid user - publlic function isValidUser(){ + public function isValidUser(){ if( ( is_bool($this->query) && ! $this->query ) || is_null($this->query) ) - return false + return false; return true; } @@ -100,7 +100,7 @@ class vfsuser { $this->login = true; # start a session if needed - if ( session_status() != PHP_SESSION_ACTIVE ) + if ( session_status() != PHP_SESSION_ACTIVE ) { session_name(VFS_SESSION); session_start(); } diff --git a/public_html/vfs_bootstrap.php b/public_html/vfs_bootstrap.php index 065c73e..2b8a965 100644 --- a/public_html/vfs_bootstrap.php +++ b/public_html/vfs_bootstrap.php @@ -1,5 +1,5 @@