/** * Régularise les dépendances */ static function deps() { if (self::$_deps) { return; } // Deps $inc = dirname(__FILE__) . '/../Livrable/Tei2epub.php'; if (!file_exists($inc)) { echo "Impossible de trouver " . realpath(dirname(__FILE__) . '/../') . "/Livrable/\n Vous pouvez le télécharger sur https://github.com/oeuvres/Livrable\n"; exit; } else { include_once $inc; } $inc = dirname(__FILE__) . '/../Teinte/Doc.php'; if (!file_exists($inc)) { echo "Impossible de trouver " . realpath(dirname(__FILE__) . '/../') . "/Teinte/\n Vous pouvez le télécharger sur https://github.com/oeuvres/Teinte\n"; exit; } else { include_once $inc; } /* $inc = dirname(__FILE__).'/../Toff/Tei2docx.php'; if (!file_exists($inc)) { echo "Impossible de trouver ".realpath(dirname(__FILE__).'/../')."/Toff/ Vous pouvez le télécharger sur https://github.com/oeuvres/Toff\n"; exit(); } else { include_once($inc); } */ self::$_deps = true; }