Getting rid of dangeros in export.php, import.php and folders.php.
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user