1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Theme downlods in working state (work in progress, cleanup needed)

This commit is contained in:
SecretR
2013-05-19 12:16:10 +03:00
parent f5c6e866a2
commit 380e46cd56
4 changed files with 118 additions and 32 deletions

View File

@@ -723,9 +723,11 @@ class e_file
/**
* Download a Plugin or Theme to Temp, then test and move to plugin/theme folder and backup to system backup folder.
* DEPRECATED - moved to e_marketplace
* @param $remotefile URL
* @param $type plugin or theme
*/
/*
public function download($remotefile, $type='theme')
{
$tp = e107::getParser();
@@ -835,13 +837,14 @@ class e_file
// echo "file=".$file;
exit;
}
} */
/**
* Runs through the zip archive array and finds the root directory.
*/
private function getRootFolder($unarc)
public function getRootFolder($unarc)
{
foreach($unarc as $d)
{