addBreadCrumb(['link' => ADMIN.'infusions.php'.fusion_get_aidlink(), 'title' => $locale['400']]); if (($folder = filter_input(INPUT_POST, 'infuse'))) { \PHPFusion\Installer\Infusion_Core::getInstance()->infuse($folder); redirect(FUSION_REQUEST); } else if ($folder = filter_input(INPUT_POST, 'defuse')) { \PHPFusion\Installer\Infusion_Core::getInstance()->defuse($folder); redirect(FUSION_REQUEST); } opentable($locale['400']); echo "
\n"; echo "".$locale['422']."\n"; echo "
\n"; $infs = []; $temp = makefilelist(INFUSIONS, ".|..|index.php", TRUE, "folders"); foreach ($temp as $folders) { $inf = \PHPFusion\Installer\Infusion_Core::load_infusion($folders); if (!empty($inf)) { $infs[$folders] = $inf; } } //if (!isset($_POST['infuse']) && !isset($_POST['infusion']) && !isset($_GET['defuse'])) { $content = ""; if ($infs) { $content .= "
\n"; $content .= "\n"; foreach ($infs as $i => $inf) { $content .= openform('infuseform', 'post', FUSION_SELF.fusion_get_aidlink()); $content .= "
\n"; $content .= "
\n"; $content .= "
\n"; if ($inf['status'] > 0) { if ($inf['status'] > 1) { $content .= form_button('infuse', $locale['416'], $inf['folder'], ['class' => 'btn-info m-t-5 infuse', 'icon' => 'fa fa-magnet', 'input_id' => 'infuse_'.$i]); } else { $content .= form_button('defuse', $locale['411'], $inf['folder'], ['class' => 'btn-default m-t-5 defuse', 'icon' => 'fa fa-trash', 'input_id' => 'defuse_'.$i]); } } else { $content .= form_button('infuse', $locale['401'], $inf['folder'], ['class' => 'btn-primary m-t-5 infuse', 'icon' => 'fa fa-magnet', 'input_id' => 'infuse_'.$i]); } $content .= "
\n"; $content .= "
\n"; $content .= "
".$inf[
\n"; $content .= "
".$inf['title']."
".$inf['description']."
\n
\n"; $content .= "
".($inf['status'] > 0 ? "".$locale['415']."" : "".$locale['414']."")."
\n"; $content .= "\n"; $content .= "\n"; $content .= "
\n
\n"; } } else { $content .= "
".$locale['417']."
\n"; } $content .= "
\n"; echo $content; //} closetable(); require_once THEMES.'templates/footer.php';