diff --git a/TODO b/TODO index 1d4f3b3e..909e2ba9 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,7 @@ FIXED 0001282 Homedirs von Dovecot identisch 0001274 Option to mark a Domain as Subdomain possible or not FIXED 0001283 SysCP creating broken lighttpd config files - 0001213 APS class_apsinstaller.php on line 510 - error installing different apps +FIXED 0001213 APS class_apsinstaller.php on line 510 - error installing different apps 0001272 Default Config for libnss incomplete (debian/lenny) FIXED 0001281 Wrong open_basedir directive 0001280 deb packet 1.4.2.1-2 fu*ked diff --git a/lib/classes/aps/class.ApsInstaller.php b/lib/classes/aps/class.ApsInstaller.php index 7ddcf694..2b432f73 100644 --- a/lib/classes/aps/class.ApsInstaller.php +++ b/lib/classes/aps/class.ApsInstaller.php @@ -247,9 +247,9 @@ class ApsInstaller extends ApsParser //skip APS internal data if($Row2['Name'] == 'main_location' - || $Row2['Name'] == 'main_domain' - || $Row2['Name'] == 'main_database_password' - || $Row2['Name'] == 'license')continue; + || $Row2['Name'] == 'main_domain' + || $Row2['Name'] == 'main_database_password' + || $Row2['Name'] == 'license')continue; putenv('SETTINGS_' . $Row2['Name'] . '=' . $Row2['Value']); } } @@ -275,7 +275,7 @@ class ApsInstaller extends ApsParser //extract all files and chown them to the customer guid if(self::ExtractZip($this->RootDir . 'packages/' . $Row['Path'] . '/' . $Row['Path'], $Xml->mapping['path'], $this->RealPath . $this->DomainPath . '/') == false - || self::ExtractZip($this->RootDir . 'packages/' . $Row['Path'] . '/' . $Row['Path'], 'scripts', $this->RealPath . $this->DomainPath . '/install_scripts/') == false) + || self::ExtractZip($this->RootDir . 'packages/' . $Row['Path'] . '/' . $Row['Path'], 'scripts', $this->RealPath . $this->DomainPath . '/install_scripts/') == false) { $this->db->query('UPDATE `' . TABLE_APS_INSTANCES . '` SET `Status` = ' . INSTANCE_ERROR . ' WHERE `ID` = ' . $this->db->escape($Row['InstanceID'])); @@ -507,6 +507,12 @@ class ApsInstaller extends ApsParser if(zip_entry_open($ZipHandle, $ZipEntry)) { + // handle new directory + $dir = dirname($Destination.$NewPath); + if (!file_exists($dir)) { + mkdir ($dir, 0777, true); + } + $File = fopen($Destination . $NewPath, "wb"); if($File)