1
0

Getting rid of dangeros in export.php, import.php and folders.php.

This commit is contained in:
Stefan Frech
2008-08-12 19:40:21 +00:00
committed by Jonas Kattendick
parent 132a3c4c0d
commit 754adfab01
7 changed files with 35 additions and 30 deletions

View File

@@ -158,6 +158,8 @@ else{
class import {
function import () {
global $username, $parentfolder, $mysql;
# open the importfile
$this->fp = fopen ($_FILES['importfile']['tmp_name'], "r");
if ($this->fp == null){
@@ -170,13 +172,13 @@ class import {
$this->count_folders = 0;
$this->count_bookmarks = 0;
$this->username = $GLOBALS['username'];
$this->parent_folder = $GLOBALS['parentfolder'];
$this->username = $username;
$this->parent_folder = $parentfolder;
$this->current_folder = $this->parent_folder;
$this->folder_depth = array ();
$this->mysql = $GLOBALS['mysql'];
$this->mysql = $mysql;
}