This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?
global $current_user;
$w=$GLOBALS['db']->query("select * from user_preferences where assigned_user_id='".$_SESSION['authenticated_user_id']."' and category='global'");
$r=$GLOBALS['db']->fetchByAssoc($w);
$a=unserialize(base64_decode($r['contents']));
$a['ContactsQ']['account_id_basic']=$_REQUEST['account_id'];
$a['ContactsQ']['account_name_basic']=$_REQUEST['account_name'];
$a['ContactsQ']['query']='true';
$a['ContactsQ']['module']='Contacts';
$a['ContactsQ']['action']='index';
$a['ContactsQ']['searchFormTab']='basic_search';
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['account_id_basic']=$_REQUEST['account_id'];
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['account_name_basic']=$_REQUEST['account_name'];
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['query']='true';
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['module']='Contacts';
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['action']='index';
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['searchFormTab']='basic_search';
//print_r($_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']);
$z="update user_preferences set contents='".base64_encode(serialize($a))."' where assigned_user_id='".$_SESSION['authenticated_user_id']."' and category='global'";
$GLOBALS['db']->query($z);
?>