Exemple #1
0
    $plugin->me_parameter = 'plugin_code=' . $me_code;
    $plugin->insert_plugin();
}
/**
 * if post update then we update
 */
if (isset($_POST['mod_plugin'])) {
    extract($_POST);
    $plugin = new Extension($cn);
    $plugin->me_code = strtoupper($me_code);
    $plugin->me_menu = $me_menu;
    $plugin->me_file = $me_file;
    $plugin->me_description = $me_description;
    $plugin->me_parameter = 'plugin_code=' . strtoupper($me_code);
    if (!isset($delete_pl)) {
        $plugin->update_plugin();
    } else {
        $plugin->remove_plugin();
    }
}
/**
 * if post save then we save a new one
 */
if (isset($_POST['create_menu']) || isset($_POST['modify_menu'])) {
    extract($_POST);
    $menu_ref = new Menu_Ref($cn);
    $menu_ref->me_code = strtoupper($me_code);
    $menu_ref->me_menu = $me_menu;
    $menu_ref->me_file = $me_file;
    $menu_ref->me_description = $me_description;
    $menu_ref->me_parameter = $me_parameter;