function windowcontent_loader() { $content = ""; $packagecodename = $this->instanceVar->varpost("packagecodename"); $deployed = $this->instanceVar->varpost("deployed"); $update = $this->instanceVar->varpost("update"); //check deployed if ($deployed && $update) { $content .= $this->instanceLang->getTranslation("Mise à jour de ce package ? "); $content .= "<br />"; $content .= $this->instanceLang->getTranslation("Vérifiez les valeurs des éventuels champs de paramétrage ci-dessous (valeurs par défaut du package)"); } else { if ($deployed) { $content .= $this->instanceLang->getTranslation("Détruire ce package ?"); } else { $content .= $this->instanceLang->getTranslation("Déployer ce package ?"); } } //check depend if ($this->includer->include_pratikclass("Package")) { $instancePackage = new PratikPackage($this->initer); if (!$instancePackage->checkDependAreDeployedForPackage($packagecodename)) { $content .= "<br /><br />" . $this->instanceLang->getTranslation("Dépendances manquantes, vérifiez :") . "<br />"; if (file_exists("package/" . $packagecodename . "/package.descripter.php")) { include "package/" . $packagecodename . "/package.descripter.php"; } if (isset($descripter['depend']) && is_array($descripter['depend'])) { foreach ($descripter['depend'] as $dependcour) { $content .= $dependcour . " "; } } } } return $content; }