Esempio n. 1
0
function list_plugings_db()
{
    global $installing, $install_step;
    if (!$installing && $install_step == 5) {
        $l = list_plugins_installed();
        $list['ref'] = implode("','", $l);
        $f = list_db("list_plugins", $list);
        return $f;
    }
}
Esempio n. 2
0
<form method="POST" action="<?php 
echo get_link("Plugins", "Admin");
?>
">
<?php 
if (verif_access("Admin")) {
    $f = list_plugings_db();
    $l = list_plugins_installed();
    if (!empty($l)) {
        foreach ($l as $r => $p) {
            $active = false;
            if (!empty($f)) {
                foreach ($f as $record) {
                    if ($record['Plugin_Name'] == $p) {
                        $active = true;
                    }
                }
            }
            echo "name : <input placeholder='nom' size=25 type='text' value='" . $p . "' name='plugin[{$p}][nom]' />";
            // Le champ de texte du commentaire
            echo "active : <input type='checkbox' " . ($active ? "checked='checked'" : '') . " name='plugin[{$p}][active]'/>";
            //echo "<input type='submit' value='&check;' name='plugin[$p][modifier]'/>";
            //echo "<input type='submit' value='&cross;' name='plugin[$p][supr]'/>";
            echo "<br />";
        }
    }
}
?>
<input type="submit" value="valider" name="confirm"/>
</form>