* * -------------------------------------------- * * 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->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 '') {}; ?> >
"> "; $abc = get_abc(); # AddressBook Columns while (list($col, $descr) = each($abc)) { display_option($descr,"addressbook","addressbook_view_".$col,1); } } if ($phpgw_info["user"]["apps"]["headlines"]) { ?>
: " size="2">
: >
:
:
: " . "" . "" . "\n"; ?>
? >
Addressbook columns :
">
common->preferences_delete("notheme",$phpgw_info["user"]["userid"]); // 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"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"tz_offset"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"dateformat"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"timeformat"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"lang"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"default_sorting"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"default_app"); if ($navbar_text) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"navbar_text"); } if ($phpgw_info["user"]["apps"]["admin"]) { if ($show_currentusers) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"show_currentusers"); } } if ($phpgw_info["user"]["apps"]["email"]) { if ($mainscreen_showmail) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"mainscreen_showmail"); } $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"email_sig"); } if ($phpgw_info["user"]["apps"]["addressbook"]) { if ($mainscreen_showbirthdays) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"mainscreen_showbirthdays"); } $abc = get_abc(); # AddressBook Columns while (list($col, $descr) = each($abc)) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"addressbook_view_".$col); } } if ($phpgw_info["user"]["apps"]["calendar"]) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"weekdaystarts"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"workdaystarts"); $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"workdayends"); if ($mainscreen_showevents) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"mainscreen_showevents"); } } $phpgw->db->unlock(); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/")); } include($phpgw_info["server"]["api_dir"] . "/footer.inc.php"); ?>