mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
removed ip for symlinks from infolog config, as it is no longer supported by the new links
This commit is contained in:
parent
c60b632541
commit
5a81fdcfcb
@ -1248,38 +1248,19 @@ class uiinfolog
|
||||
);
|
||||
if($_POST['save'] || $_POST['apply'])
|
||||
{
|
||||
$config =& CreateObject('phpgwapi.config','infolog');
|
||||
$config->read_repository();
|
||||
if (get_magic_quotes_gpc())
|
||||
{
|
||||
$_POST = self::array_stripslashes($_POST);
|
||||
}
|
||||
$config->config_data['link_pathes'] = $this->bo->link_pathes = array();
|
||||
$config->config_data['send_file_ips'] = $this->bo->send_file_ips = array();
|
||||
|
||||
$valid = get_var('valid',Array('POST'));
|
||||
$trans = get_var('trans',Array('POST'));
|
||||
$ip = get_var('ip',Array('POST'));
|
||||
foreach($valid as $key => $val)
|
||||
{
|
||||
if($val)
|
||||
{
|
||||
$config->config_data['link_pathes'][$val] = $this->bo->link_pathes[$val] = $trans[$key];
|
||||
$config->config_data['send_file_ips'][$val] = $this->bo->send_file_ips[$val] = $ip[$key];
|
||||
}
|
||||
$_POST = self::array_stripslashes($_POST);
|
||||
}
|
||||
$this->bo->responsible_edit = array('info_status','info_percent','info_datecompleted');
|
||||
|
||||
if ($_POST['responsible_edit'])
|
||||
{
|
||||
$extra = array_intersect($_POST['responsible_edit'],array_keys($fields));
|
||||
$config->config_data['responsible_edit'] = $this->bo->responsible_edit = array_merge($this->bo->responsible_edit,$extra);
|
||||
$extra = array_intersect($_POST['responsible_edit'],array_keys($fields));
|
||||
config::save_value('responsible_edit',$this->bo->responsible_edit = array_merge($this->bo->responsible_edit,$extra),'infolog');
|
||||
}
|
||||
$config->config_data['implicit_rights'] = $this->bo->implicit_rights = $_POST['implicit_rights'] == 'edit' ? 'edit' : 'read';
|
||||
|
||||
$config->config_data['history'] = $this->bo->history = $_POST['history'];
|
||||
|
||||
$config->save_repository(True);
|
||||
config::save_value('implicit_rights',$this->bo->implicit_rights = $_POST['implicit_rights'] == 'edit' ? 'edit' : 'read','infolog');
|
||||
config::save_value('history',$this->bo->history = $_POST['history'],'infolog');
|
||||
}
|
||||
if($_POST['cancel'] || $_POST['save'])
|
||||
{
|
||||
@ -1307,9 +1288,6 @@ class uiinfolog
|
||||
'save_button' => html::submit_button('save','Save'),
|
||||
'apply_button' => html::submit_button('apply','Apply'),
|
||||
'cancel_button' => html::submit_button('cancel','Cancel'),
|
||||
'lang_valid' => lang('valid path on clientside<br>eg. \\\\Server\\Share or e:\\'),
|
||||
'lang_trans' => lang('path on (web-)serverside<br>eg. /var/samba/Share'),
|
||||
'lang_ip' => lang('reg. expr. for local IP\'s<br>eg. ^192\\.168\\.1\\.'),
|
||||
'lang_history'=> lang('History logging'),
|
||||
'lang_history2'=> lang('History logging and deleting of items'),
|
||||
'history' => html::select('history',$this->bo->history,array(
|
||||
@ -1320,33 +1298,8 @@ class uiinfolog
|
||||
))
|
||||
));
|
||||
|
||||
if (!is_array($this->bo->send_file_ips))
|
||||
{
|
||||
$this->bo->send_file_ips = $this->bo->link_pathes = array();
|
||||
}
|
||||
$i = 0; @reset($this->bo->link_pathes);
|
||||
do {
|
||||
list($valid,$trans) = @each($this->bo->link_pathes);
|
||||
$GLOBALS['egw']->template->set_var(array(
|
||||
'tr_color' => $i & 1 ? 'row_off' : 'row_on',
|
||||
'num' => $i+1,
|
||||
'val_valid' => html::input("valid[$i]",$valid),
|
||||
'val_trans' => html::input("trans[$i]",$trans),
|
||||
'val_ip' => html::input("ip[$i]",$this->bo->send_file_ips[$valid])
|
||||
));
|
||||
$GLOBALS['egw']->template->parse('admin_lines','admin_line',True);
|
||||
++$i;
|
||||
} while ($valid);
|
||||
|
||||
if (!$this->tmpl->xslt)
|
||||
{
|
||||
echo parse_navbar();
|
||||
$GLOBALS['egw']->template->pfp('phpgw_body','info_admin');
|
||||
}
|
||||
else
|
||||
{
|
||||
$GLOBALS['egw']->template->fp('phpgw_body','info_admin');
|
||||
}
|
||||
echo parse_navbar();
|
||||
$GLOBALS['egw']->template->pfp('phpgw_body','info_admin');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,12 +1,3 @@
|
||||
<!-- BEGIN admin_line -->
|
||||
<tr class="{tr_color}">
|
||||
<td>{num}:</td>
|
||||
<td>{val_valid}</td>
|
||||
<td>{val_trans}</td>
|
||||
<td>{val_ip}</td>
|
||||
</tr>
|
||||
<!-- END admin_line -->
|
||||
|
||||
<!-- BEGIN info_admin -->
|
||||
<br>
|
||||
<form action="{action_url}" method="POST">
|
||||
@ -29,16 +20,6 @@
|
||||
<td colspan="3">{lang_history2}</td>
|
||||
<td>{history}</td>
|
||||
</tr>
|
||||
<tr class="th">
|
||||
<td colspan="4">{text}</td>
|
||||
</tr>
|
||||
<tr class="th">
|
||||
<td>#</td>
|
||||
<td>{lang_valid}</td>
|
||||
<td>{lang_trans}</td>
|
||||
<td>{lang_ip}</td>
|
||||
</tr>
|
||||
{admin_lines}
|
||||
<tr>
|
||||
<td colspan="4" align="left">
|
||||
{save_button} {apply_button} {cancel_button}
|
||||
|
Loading…
Reference in New Issue
Block a user