Settings["amazon"]["active"])) { $cloud_options[] = array("class" => "amazon","title" => "Amazon S3"); } if ($cloud->Connected) { $cloud_options[] = array("class" => "google","title" => "Google Cloud Storage"); } if (!empty($cloud->Settings["rackspace"]["active"])) { $cloud_options[] = array("class" => "rackspace","title" => "Rackspace Cloud Files"); } if (count($cloud_options)) { array_unshift($cloud_options,array("class" => "server","title" => "Local Server")); } } $location = !empty($_POST["location"]) ? $_POST["location"] : "server"; $subdirectories = array(); $files = array(); $containers = array(); // Get the post directory $postcontainer = !empty($_POST["container"]) ? $_POST["container"] : ""; if ($_POST["location"] == "server") { $postdirectory = BigTree::cleanFile($_POST["directory"]); } else { $postdirectory = $_POST["directory"]; } // Local storage is being browsed if ($location == "server") { $directory = SERVER_ROOT.$postdirectory; if ($postdirectory && $postdirectory != ltrim($_POST["base_directory"],"/")) { $subdirectories[] = ".."; } $o = opendir($directory); while ($r = readdir($o)) { if ($r != "." && $r != ".." && $r != ".DS_Store") { if (is_dir($directory.$r)) { $subdirectories[] = $r; } else { $files[] = $r; } } } } else { // If we're at ../ on the root of a container, go back to listing containers if ($_POST["directory"] == "../" && $postcontainer) { $postcontainer = false; } $cloud = new BigTreeCloudStorage($location); if (!$postcontainer) { $containers = $cloud->listContainers(); } else { $subdirectories[] = ".."; $container = $cloud->getContainer($_POST["container"]); if (!$postdirectory) { $folder = $container["tree"]; } else { $folder = $cloud->getFolder($container,$postdirectory); } foreach ($folder["folders"] as $name => $contents) { $subdirectories[] = $name; } foreach ($folder["files"] as $file) { $files[] = $file["name"]; } // Give it a nice directory name $directory = $postcontainer."/".$postdirectory; } } if (count($cloud_options)) { $bucket_pane_height = 338 - 1 - (26 * count($cloud_options)); } else { $bucket_pane_height = 338; } ?>

Warning: Use of undefined constant SERVER_ROOT - assumed 'SERVER_ROOT' (this will throw an Error in a future version of PHP) in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/developer/extensions/file-browser.php on line 89

Notice: Undefined variable: directory in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/developer/extensions/file-browser.php on line 89
Cancel