$trbg = $bgtr[$row % 2]; $trfg = $fgtr[$row % 2]; if (array_key_exists($plugin, $avplugins)) { $disabled = ''; switch ($info['plugin_type']) { case 1: $on = "href=\"" . MODULES_WEB_ROOT_DIR . 'plugins/' . $plugin . "\""; break; case 2: $on = "onclick=\"window.open('" . MODULES_WEB_ROOT_DIR . 'plugins/' . $plugin . "', '{$plugin}');\" href=\"\""; break; case 0: default: $on = 'style="display: none;"'; } $en_plugins .= "<tr style=\"background: {$trbg}; color: {$trfg}\">" . "<td><label for=\"ch_{$plugin}\"><strong>{$info['plugin_name']}</strong></label></td>" . "<td>{$info['plugin_version']}</td>" . "<td>" . labeltype($info['plugin_type']) . "</td>" . "<td><a {$on}>Launch</a></td>" . "</tr>"; $row++; } } if (empty($en_plugins)) { $en_plugins = '<tr align="center"><td colspan="4">Tidak ada plugin aktif</td></tr>'; } ?> <!-- informasi mulai --> <fieldset> <legend><strong>Informasi Umum</strong></legend> Anda mengakses halaman plugin dari IP: <strong><?php echo $conf['remote_addr']; ?> </strong>.
* along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ if (!defined('MODULES_WEB_ROOT_DIR')) { exit; } $av_plugins = ''; $row = 1; $bgtr = array(0 => 'lightgray', 1 => 'white'); $fgtr = array(0 => 'black', 1 => 'gray'); foreach ($avplugins as $plugin => $info) { $checked = array_key_exists($plugin, $enplugins) ? 'checked' : ''; $trbg = $bgtr[$row % 2]; $trfg = $fgtr[$row % 2]; $av_plugins .= "<tr id =\"tr_{$plugin}\" style=\"background: {$trbg}; color: {$trfg}\">" . "<td align=\"center\"><input type=\"checkbox\" {$checked} id=\"ch_{$plugin}\" name=\"{$plugin}\" /></td>" . "<td><label for=\"ch_{$plugin}\"><strong>{$info['plugin_name']}</strong></label></td>" . "<td>{$info['plugin_version']}</td>" . "<td>" . labeltype($info['plugin_type']) . "</td>" . "<td>{$info['plugin_description']}</td>" . "</tr>"; $row++; } if (empty($av_plugins)) { $av_plugins = '<tr align="center"><td colspan="5">Tidak ada plugin tersedia</td></tr>'; } ?> <!-- formulir mulai --> <fieldset> <legend><strong>Daftar Plugin Tersedia</strong></legend> <form name="mainForm" id="mainForm" method="POST" action="<?php echo MODULES_WEB_ROOT_DIR . "plugins/setup.php"; ?> " target="submitExec"> <table width="100%" cellpadding="5" cellspacing="0" style="border-collapsed: collapsed;">