//Einstellungen löschen$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE gid='".$g['gid']."'");

rebuild_settings();

$db->query("DELETE FROM ".TABLE_PREFIX."templates WHERE title='events_on_indexpage_stat'");$db->query("DELETE FROM ".TABLE_PREFIX."templates WHERE title='events_on_indexpage_row_private'");$db->query("DELETE FROM ".TABLE_PREFIX."templates WHERE title='events_on_indexpage_row_public'");$db->query("DELETE FROM ".TABLE_PREFIX."templates WHERE title='events_on_indexpage_top'");

$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='sb_welcome'");$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='sb_stats'");$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='sb_additional'");$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='sb_search'");$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='sb_latest'");$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='sideboxes'");rebuild_settings();