* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ if ($submit) { $phpgw_info["flags"] = array("nonavbar" => True, "noheader" => True); } $phpgw_info["flags"]["currentapp"] = "preferences"; include("../header.inc.php"); if (! $submit) { ?>
common->preferences_delete("byappnotheme",$phpgw_info["user"]["userid"],"common"); // If they don't have permissions to the headlines, // we don't need to lock the table. if ($phpgw_info["user"]["apps"]["headlines"]) { $phpgw->db->lock(array("preferences","users_headlines")); } else { $phpgw->db->lock("preferences"); } $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"maxmatchs","common"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"tz_offset","common"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"dateformat","common"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"timeformat","common"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"lang","common"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"default_app","common"); if ($navbar_text) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"navbar_text","common"); } if ($phpgw_info["user"]["apps"]["admin"]) { if ($show_currentusers) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"show_currentusers","common"); } } $phpgw->db->unlock(); Header("Location: " . $phpgw->link("index.php")); } $phpgw->common->phpgw_footer(); ?>