forked from extern/egroupware
display upload failed (because post_max_size of webserver exceeded) message from etemplate, could be nicer but way better then before
This commit is contained in:
parent
6fb9ae3a6d
commit
936c636ffd
@ -5,7 +5,7 @@
|
||||
* @link www.egroupware.org
|
||||
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2005-9 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2005-10 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2005/6 by Cornelius Weiss <egw@von-und-zu-weiss.de>
|
||||
* @package addressbook
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
@ -1354,6 +1354,8 @@ class addressbook_ui extends addressbook_bo
|
||||
$content['created'] = $this->now_su;
|
||||
unset($state);
|
||||
}
|
||||
if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML!
|
||||
|
||||
if($content && $_GET['makecp']) // copy the contact
|
||||
{
|
||||
$content['link_to']['to_id'] = 0;
|
||||
|
@ -5,7 +5,7 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @package calendar
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2004-9 by RalfBecker-At-outdoor-training.de
|
||||
* @copyright (c) 2004-10 by RalfBecker-At-outdoor-training.de
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
@ -27,6 +27,7 @@ class calendar_uiforms extends calendar_ui
|
||||
var $public_functions = array(
|
||||
'freetimesearch' => True,
|
||||
'edit' => true,
|
||||
'process_edit' => true,
|
||||
'export' => true,
|
||||
'import' => true,
|
||||
'cat_acl' => true,
|
||||
@ -165,6 +166,10 @@ class calendar_uiforms extends calendar_ui
|
||||
*/
|
||||
function process_edit($content)
|
||||
{
|
||||
if (!is_array($content)) // redirect from etemplate, if POST empty
|
||||
{
|
||||
return $this->edit(null,null,strip_tags($_GET['msg']));
|
||||
}
|
||||
$referer = !empty($content['referer']) ? $content['referer'] : '/index.php?menuaction='.$this->view_menuaction;
|
||||
list($button) = @each($content['button']);
|
||||
if (!$button && $content['action']) $button = $content['action']; // action selectbox
|
||||
|
@ -5,7 +5,7 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @package infolog
|
||||
* @copyright (c) 2003-9 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2003-10 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
@ -1023,6 +1023,8 @@ class infolog_ui
|
||||
{
|
||||
$content['info_cat'] = $this->prefs['cat_add_default'];
|
||||
}
|
||||
if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML!
|
||||
|
||||
switch($this->prefs['set_start'])
|
||||
{
|
||||
case 'date': default: $set_startdate = mktime(0,0,0,date('m',$this->bo->user_time_now),date('d',$this->bo->user_time_now),date('Y',$this->bo->user_time_now)); break;
|
||||
|
@ -23,7 +23,7 @@ class ui_resources
|
||||
'show' => True,
|
||||
'select' => True,
|
||||
'writeLangFile' => True
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@ -232,7 +232,7 @@ class ui_resources
|
||||
'to_app' => 'resources'
|
||||
);
|
||||
}
|
||||
|
||||
if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']);
|
||||
}
|
||||
// some presetes
|
||||
$content['resource_picture'] = $this->bo->get_picture($content['res_id'],$content['picture_src'],$size=true);
|
||||
|
@ -5,7 +5,7 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @package timesheet
|
||||
* @copyright (c) 2005-9 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2005-10 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
@ -16,10 +16,10 @@
|
||||
class timesheet_ui extends timesheet_bo
|
||||
{
|
||||
var $public_functions = array(
|
||||
'view' => true,
|
||||
'edit' => true,
|
||||
'index' => true,
|
||||
'editstatus' => true,
|
||||
'view' => true,
|
||||
'edit' => true,
|
||||
'index' => true,
|
||||
'editstatus' => true,
|
||||
);
|
||||
/**
|
||||
* ProjectManager integration: 'none', 'full' or default null
|
||||
@ -61,6 +61,8 @@ class timesheet_ui extends timesheet_bo
|
||||
$etpl = new etemplate('timesheet.edit');
|
||||
if (!is_array($content))
|
||||
{
|
||||
if ($_GET['msg']) $msg = strip_tags($_GET['msg']);
|
||||
|
||||
if ($view || (int)$_GET['ts_id'])
|
||||
{
|
||||
if (!$this->read((int)$_GET['ts_id']))
|
||||
|
Loading…
Reference in New Issue
Block a user