$id = NULL;
                        $found = $database->get_one("SELECT * FROM " . TABLE_PREFIX . "mod_droplets WHERE name='{$name}'");
                        if ($found && $found > 0) {
                            $stmt = 'REPLACE';
                            $id = $found;
                        }
                        // execute
                        $result = $database->query("{$stmt} INTO " . TABLE_PREFIX . "mod_droplets VALUES('{$id}','{$name}','{$code}','{$description}','" . time() . "','" . $admin->get_user_id() . "',1,0,0,0,'{$usage}')");
                        if (!$database->is_error()) {
                            $count++;
                            $imports[$name] = 1;
                        } else {
                            $errors[$name] = $database->get_error();
                        }
                    }
                }
            }
            closedir($dh);
        }
        return array('count' => $count, 'errors' => $errors, 'imported' => $imports);
    }
    // function wb_unpack_and_import()
}
// install the droplet(s)
wb_unpack_and_import(WB_PATH . '/modules/wysiwyg/droplets/droplet_wysiwyg_teaser.zip', WB_PATH . '/temp/unzip/');
require_once LEPTON_PATH . '/modules/manufaktur_config/library.php';
// initialize the configuration
$config = new manufakturConfig();
if (!$config->readXMLfile(LEPTON_PATH . '/modules/wysiwyg/config/extendedWYSIWYG.xml', 'wysiwyg', true)) {
    $admin->print_error($config->getError());
}
 /**
  * Constructor for class extendedWYSIWYG
  */
 public function __construct($section_id, $page_id)
 {
     global $I18n;
     $this->lang = $I18n;
     self::$template_path = LEPTON_PATH . '/modules/' . basename(dirname(__FILE__)) . '/templates/backend/';
     self::$page_id = $page_id;
     self::$section_id = $section_id;
     self::$section_anchor = self::ANCHOR . self::$section_id;
     self::$modify_url = ADMIN_URL . '/pages/modify.php';
     self::$save_url = ADMIN_URL . '/pages/save.php';
     self::$page_tree_url = ADMIN_URL . '/pages/index.php';
     self::$sections_url = ADMIN_URL . '/pages/sections.php';
     self::$protection_path = LEPTON_PATH . MEDIA_DIRECTORY . '/' . self::PROTECTION_FOLDER;
     self::$protection_url = LEPTON_URL . MEDIA_DIRECTORY . '/' . self::PROTECTION_FOLDER;
     // get settings
     $config = new manufakturConfig();
     self::$cfg_updateModifiedPage = $config->getValue('cfgUpdateModifiedPage', 'wysiwyg');
     self::$cfg_archiveIdSelectLimit = $config->getValue('cfgArchiveIdSelectLimit', 'wysiwyg');
     self::$cfg_createArchiveFiles = $config->getValue('cfgCreateArchiveFiles', 'wysiwyg');
 }