diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-15 20:08:53 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-15 20:08:53 +0000 |
commit | 3d6a49a218c6d4faf51d486602bd7d9e88c98264 (patch) | |
tree | c99aeb3a0cd64b0e58ab1cc2c6ede79c06ec1bda /modules/archive | |
parent | f4bf617e40d00d2670fe2b21b61de5e17473ed4b (diff) | |
download | ampache-3d6a49a218c6d4faf51d486602bd7d9e88c98264.tar.gz ampache-3d6a49a218c6d4faf51d486602bd7d9e88c98264.tar.bz2 ampache-3d6a49a218c6d4faf51d486602bd7d9e88c98264.zip |
fixed some zip file issues quarantine migration issues and added a bunch to the tmp playlist class
Diffstat (limited to 'modules/archive')
-rw-r--r-- | modules/archive/archive.lib.php | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/modules/archive/archive.lib.php b/modules/archive/archive.lib.php index 2f67af19..f6662c60 100644 --- a/modules/archive/archive.lib.php +++ b/modules/archive/archive.lib.php @@ -134,7 +134,10 @@ class archive if ($this->options['type'] == "gzip" || $this->options['type'] == "bzip")
unlink($this->options['basedir'] . "/" . $this->options['name'] . ".tmp");
}
- }
+
+ return true;
+
+ } // create_archive
function add_data($data)
{
@@ -228,9 +231,7 @@ class archive chdir($pwd);
unset ($current, $pwd);
-
- usort($files, array ("archive", "sort_files"));
-
+
return $files;
}
@@ -270,24 +271,6 @@ class archive return $files;
}
- function sort_files($a, $b)
- {
- if ($a['type'] != $b['type'])
- if ($a['type'] == 5 || $b['type'] == 2)
- return -1;
- else if ($a['type'] == 2 || $b['type'] == 5)
- return 1;
- else if ($a['type'] == 5)
- return strcmp(strtolower($a['name']), strtolower($b['name']));
- else if ($a['ext'] != $b['ext'])
- return strcmp($a['ext'], $b['ext']);
- else if ($a['stat'][7] != $b['stat'][7])
- return $a['stat'][7] > $b['stat'][7] ? -1 : 1;
- else
- return strcmp(strtolower($a['name']), strtolower($b['name']));
- return 0;
- }
-
function download_file()
{
if ($this->options['inmemory'] == 0)
@@ -666,4 +649,4 @@ class zip_file extends archive return 1;
}
-} ?>
\ No newline at end of file +} ?>
|