function charg_lib() { $lib = ""; //chargement des libs templates $moteurlowercase = ""; if (isset($this->conf['moteurtpl'])) { $moteurlowercase = strtolower($this->conf['moteurtpl']); } if (file_exists("core/integrate/libintegrator/libintegrator.tpl." . $moteurlowercase . ".php")) { $moteurclass = ucfirst($moteurlowercase); include_once "core/integrate/libintegrator/libintegrator.tpl." . $moteurlowercase . ".php"; eval("\$instanceLibIntegrator=new LibIntegrator" . $moteurclass . "();"); eval("\$lib.=\$instanceLibIntegrator->charg_" . $moteurlowercase . "();"); } else { include_once "core/integrate/libintegrator/libintegrator.tpl.smarty.php"; $instanceLibIntegrator = new LibIntegratorSmarty(); $lib .= $instanceLibIntegrator->charg_smarty(); $this->log->pushtolog("Echec du chargement de la lib template. Verifier la configuration."); } //chargement des librairies terminal (pour cron aussi) $tab_chemins_libintegrator = $this->charg_dossier_dans_tab("core/integrate/libintegrator"); if ($tab_chemins_libintegrator) { foreach ($tab_chemins_libintegrator as $chemin_libintegrator_to_load) { if ($othername = strstr($chemin_libintegrator_to_load, ".terminal.")) { $othername = substr($othername, strlen(".terminal."), -4); $otherclass = ucfirst($othername); include_once $chemin_libintegrator_to_load; eval("\$instanceLibIntegrator=new LibIntegrator" . $otherclass . "();"); eval("\$lib.=\$instanceLibIntegrator->charg_" . $othername . "();"); } } } return $lib; }
function charg_lib() { $lib = ""; //chargement des libs ajax $moteurlowercase = ""; if (isset($this->conf['moteurajax'])) { $moteurlowercase = strtolower($this->conf['moteurajax']); } if (file_exists("core/integrate/libintegrator/libintegrator.ajax." . $moteurlowercase . ".php")) { $moteurclass = ucfirst($moteurlowercase); include_once "core/integrate/libintegrator/libintegrator.ajax." . $moteurlowercase . ".php"; eval("\$instanceLibIntegrator=new LibIntegrator" . $moteurclass . "();"); eval("\$lib.=\$instanceLibIntegrator->charg_" . $moteurlowercase . "();"); } else { $this->log->pushtolog("Echec du chargement de la lib ajax. Verifier la configuration."); } //chargement driver ajax associƩ pour rodframework $lib .= $this->charg_driver_ajax($moteurlowercase); //chargement des libs templates $moteurlowercase = ""; if (isset($this->conf['moteurtpl'])) { $moteurlowercase = strtolower($this->conf['moteurtpl']); } if (file_exists("core/integrate/libintegrator/libintegrator.tpl." . $moteurlowercase . ".php")) { $moteurclass = ucfirst($moteurlowercase); include_once "core/integrate/libintegrator/libintegrator.tpl." . $moteurlowercase . ".php"; eval("\$instanceLibIntegrator=new LibIntegrator" . $moteurclass . "();"); eval("\$lib.=\$instanceLibIntegrator->charg_" . $moteurlowercase . "();"); } else { include_once "core/integrate/libintegrator/libintegrator.tpl.smarty.php"; $instanceLibIntegrator = new LibIntegratorSmarty(); $lib .= $instanceLibIntegrator->charg_smarty(); $this->log->pushtolog("Echec du chargement de la lib template. Verifier la configuration."); } //chargement des libs wysiwyg $moteurlowercase = ""; if (isset($this->conf['moteurwysiwyg'])) { $moteurlowercase = strtolower($this->conf['moteurwysiwyg']); } if (file_exists("core/integrate/libintegrator/libintegrator.wysiwyg." . $moteurlowercase . ".php")) { $moteurclass = ucfirst($moteurlowercase); include_once "core/integrate/libintegrator/libintegrator.wysiwyg." . $moteurlowercase . ".php"; eval("\$instanceLibIntegrator=new LibIntegrator" . $moteurclass . "();"); eval("\$lib.=\$instanceLibIntegrator->charg_" . $moteurlowercase . "();"); } //chargement des librairies terminal (pour cron aussi) $tab_chemins_libintegrator = $this->charg_dossier_dans_tab("core/integrate/libintegrator"); if ($tab_chemins_libintegrator) { foreach ($tab_chemins_libintegrator as $chemin_libintegrator_to_load) { if ($othername = strstr($chemin_libintegrator_to_load, ".terminal.")) { $othername = substr($othername, strlen(".terminal."), -4); $otherclass = ucfirst($othername); include_once $chemin_libintegrator_to_load; eval("\$instanceLibIntegrator=new LibIntegrator" . $otherclass . "();"); eval("\$lib.=\$instanceLibIntegrator->charg_" . $othername . "();"); } } } //chargement des autres librairies (other) $tab_chemins_libintegrator = $this->charg_dossier_dans_tab("core/integrate/libintegrator"); if ($tab_chemins_libintegrator) { foreach ($tab_chemins_libintegrator as $chemin_libintegrator_to_load) { if ($othername = strstr($chemin_libintegrator_to_load, ".other.")) { $othername = substr($othername, strlen(".other."), -4); $otherclass = ucfirst($othername); include_once $chemin_libintegrator_to_load; eval("\$instanceLibIntegrator=new LibIntegrator" . $otherclass . "();"); eval("\$lib.=\$instanceLibIntegrator->charg_" . $othername . "();"); } } } //chargement des lib de calendrier et de format de date en fr // $lib.=$this->charg_calendar_rod(); return $lib; }