forked from extern/egroupware
6d387b8aa2
- sidebox is working again and can be opened and closed from the textmenu (its open by default) - sidebox saves its state to the preferences - some html and css cleanups - IE support still broken
54 lines
2.1 KiB
PHP
54 lines
2.1 KiB
PHP
<?php
|
|
/**************************************************************************\
|
|
* eGroupWare *
|
|
* http://www.egroupware.org *
|
|
* This file is written by Rob van Kraanen <rvkraanen@gmail.com> *
|
|
* This file is written by Pim Snel <pim@lingewoud.com> *
|
|
* Copyright 2005 Lingewoud BV - www.lingewoud.com *
|
|
* -------------------------------------------- *
|
|
* 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. *
|
|
\**************************************************************************/
|
|
|
|
//todo move shortcutsetting and size also to this file
|
|
|
|
$phpgw_info = array();
|
|
$GLOBALS['phpgw_info']['flags'] = array(
|
|
'noheader' => True,
|
|
'nonavbar' => True,
|
|
'disable_Template_class' => True,
|
|
'currentapp' => 'notifywindow'
|
|
);
|
|
|
|
include('../../../header.inc.php');
|
|
header("Content-type: text/xml");
|
|
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
|
|
header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
|
|
header( "Cache-Control: no-cache, must-revalidate" );
|
|
header( "Pragma: no-cache" );
|
|
echo '<?xml version="1.0" encoding="UTF-8"
|
|
standalone="yes"?>';
|
|
echo "\r\n<response>\r\n";
|
|
if($_GET[action]=='save_sidebox_state')
|
|
{
|
|
$title = $_GET["title"];
|
|
$sidebox_state = $_GET["sidebox_state"];
|
|
echo $title." ".$sidebox_state;
|
|
$GLOBALS['phpgw']->preferences->read_repository();
|
|
|
|
foreach($GLOBALS['phpgw_info']['user']['apps'] as $name => $data)
|
|
{
|
|
if($name == $title)
|
|
{
|
|
$GLOBALS['phpgw']->preferences->change('phpgwapi','sidebox_'.$name,$_GET["sidebox_state"]);
|
|
$GLOBALS['phpgw']->preferences->save_repository(True);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
echo "</response>";
|
|
|
|
?>
|