tbrehm
2013-02-15 233dfdaff89752b7b7a2d76dd8c6d6bd716e5399
server/lib/classes/aps_installer.inc.php
@@ -294,7 +294,8 @@
        $db_id = parent::getXPathValue($sxe, '//db:id');
        if(empty($db_id)) return; // No database needed
        
      /*
      /* WARNING: if this will ever be uncommented please check the updated prefix handling for user and db names!!!
         *
        // Set the database owner to the domain owner
        // ISPConfig identifies the owner by the sys_groupid (not sys_userid!)
        // so sys_userid can be set to any value
@@ -613,7 +614,7 @@
        if(!isset($task['instance_id'])) $task['instance_id'] = $instanceid;
      
      // Download aps package
      if(!file_exists($this->packages_dir.'/'.$task['path'])) {
      if(!file_exists($this->packages_dir.'/'.$task['path']) || filesize($this->packages_dir.'/'.$task['path']) == 0) {
         $ch = curl_init();
         $fh = fopen($this->packages_dir.'/'.$task['path'], 'wb');
         curl_setopt($ch, CURLOPT_FILE, $fh);