* * -------------------------------------------- * * 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$ */ $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"]["currentapp"] = "preferences"; include("../header.inc.php"); if ($phpgw_info["user"]["permissions"]["anonymous"]) { Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/")); exit; } else if (! $submit) { $phpgw->common->phpgw_header(); $phpgw->common->navbar(); } function display_option($text,$check,$option,$indent) { global $phpgw, $phpgw_info; if ($phpgw_info["user"]["apps"][$check]) { ?> ') {}; echo lang($text); for ($i=0; $i < $indent; $i++, print '') {}; ?> >
">
: " size="2">
: >
:
:
: " . "" . "" . "\n"; ?>
">
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_sorting","email"); $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"); } } if ($phpgw_info["user"]["apps"]["email"]) { if ($mainscreen_showmail) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"mainscreen_showmail","email"); } $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"email_sig","email"); } if ($phpgw_info["user"]["apps"]["addressbook"]) { if ($mainscreen_showbirthdays) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"mainscreen_showbirthdays","addressbook"); } } $phpgw->db->unlock(); Header("Location: " . $phpgw->link("index.php")); } $phpgw->common->phpgw_footer(); ?>