예제 #1
0
파일: data.php 프로젝트: Nazg-Gul/gate
}
// Printing da page
print $manage_menu->InnerHTML();
if ($action == 'edit') {
    $printSection = false;
    $sections = manage_settings_get_sections();
    if (count($sections) > 0) {
        include 'sections.php';
    }
    include 'edit.php';
} else {
    if ($action == 'save_name') {
        manage_settings_update_name($id);
    } else {
        if ($action == 'save') {
            manage_settings_update_from_post();
        } else {
            if ($action == 'delete') {
                manage_settings_delete($id);
            }
        }
    }
    $sections = manage_settings_get_sections();
    if (count($sections) > 0) {
        include 'sections.php';
    } else {
        print '<div><img height="4" src="' . config_get('document-root') . '/pics/clear.gif"></div>';
    }
    // Print the create form
    include 'create_form.php';
}
예제 #2
0
파일: settings.php 프로젝트: Nazg-Gul/gate
 function manage_settings_delete_by_ident($ident)
 {
     manage_settings_delete(manage_setting_id_by_ident($ident));
 }