home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.f-secure.com
/
2014.06.ftp.f-secure.com.tar
/
ftp.f-secure.com
/
support
/
hotfix
/
fsav-server
/
FSAVSRV900_HF07.jar
/
iuwebui
/
forms
/
tree_server
/
server-manual.php
next >
Wrap
PHP Script
|
2010-09-07
|
9KB
|
203 lines
<?php
include ('../common/commonphp.php');
$tab_name = "tabServerManualSettings";
$can_edit_settings = can_edit_settings();
$Page_Settings = array(
array(oid => "1.3.6.1.4.1.2213.12.1.112.2.100.38", type => GLOBAL_INT),
array(oid => "1.3.6.1.4.1.2213.12.1.112.2.200.100", type => GLOBAL_INT),
array(oid => "1.3.6.1.4.1.2213.12.1.112.2.100.20", type => GLOBAL_INT),
array(oid => "1.3.6.1.4.1.2213.38.1.300.200.100.200", type => GLOBAL_INT)
);
$llock1 = settings_is_final('1.3.6.1.4.1.2213.12.1.112.2.100.11', 0) ||
settings_is_final('1.3.6.1.4.1.2213.12.1.112.2.100.2', 0) ? getLockImg() : '';
$llock2 = settings_is_final('1.3.6.1.4.1.2213.12.1.112.2.100.100.21', 0) ? getLockImg() : '';
if(!isset($_POST[SUBMIT_TABLE]))
{
readSettings(&$Page_Settings);
}
else
{
if($_POST[RESTORE_TABLE] == 1)
{
readDefaultSettings(&$Page_Settings);
$extraSettingsToReset = array(
array(oid => '1.3.6.1.4.1.2213.12.1.112.2.100.11', type => GLOBAL_INT),
array(oid => '1.3.6.1.4.1.2213.12.1.112.2.100.100.2', type => GLOBAL_STR),
array(oid => '1.3.6.1.4.1.2213.12.1.112.2.100.100.21', type => GLOBAL_INT),
array(oid => '1.3.6.1.4.1.2213.12.1.112.2.100.100.22', type => GLOBAL_STR),
array(oid => '1.3.6.1.4.1.2213.12.1.112.2.100.100.49', type => GLOBAL_INT),
array(oid => '1.3.6.1.4.1.2213.12.1.112.2.100.100.50', type => GLOBAL_TBL),
array(oid => '1.3.6.1.4.1.2213.38.2.300.100.200.300.310.100', type => GLOBAL_TBL)
);
readDefaultSettings(&$extraSettingsToReset);
}
else
{
readPageData(&$Page_Settings);
if($_POST[SUBMIT_TABLE] == 1)
writeSettings($Page_Settings);
}
exit(0);
}
?>
<script type="text/javascript" src="/common/extlistfuncs.js"></script>
<script language='JavaScript' type='text/javascript'>
updateView1 = function(mode)
{
var label = dojo.byId("ServerManual: targets label");
label.innerHTML = dojo.string.escapeXml(GetAVTargetsText(mode));
}
updateView2 = function(excludeObjects, excludeTypes, excludedAppsCount)
{
var label = dojo.byId("ServerManual: exclusions label");
label.innerHTML = dojo.string.escapeXml(GetAVExclusionsText(excludeObjects, excludeTypes, excludedAppsCount));
}
<?php echo $tab_name;?>_init = function()
{
updateView1(
<?php settings_get_int("1.3.6.1.4.1.2213.12.1.112.2.100.11", &$mode); echo $mode; ?>
);
updateView2(
<?php settings_get_int("1.3.6.1.4.1.2213.12.1.112.2.100.100.49", &$mode); echo $mode; ?>,
<?php settings_get_int("1.3.6.1.4.1.2213.12.1.112.2.100.100.21", &$mode); echo $mode; ?>,
<?php
$tbl1 = array();
$tbl2 = array();
settings_get_table("1.3.6.1.4.1.2213.38.1.300.100.200.300.210.100", &$tbl1);
settings_get_table("1.3.6.1.4.1.2213.38.2.300.100.200.300.310.100", &$tbl2);
echo (count($tbl1) + count($tbl2));
?>
);
}
dojo.addOnLoad(<?php echo $tab_name;?>_init);
</script>
<?php show_form_management($tab_name); ?>
<form method="POST" action='<?php echo "{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}";?>'
id="form_<?php echo $tab_name;?>" name="form_<?php echo $tab_name;?>" style="padding: 0; margin: 0;">
<input type="hidden" name="SUBMIT_TABLE" value="0">
<input type="hidden" name="RESTORE_TABLE" value="0">
<input type="hidden" name="APPLY_SETTINGS" value="0">
<?php show_action_menu('Settings', $tab_name); ?>
<table border="0" cellspacing="5" cellpadding="0" class="main_page_table">
<tr>
<td valign="top" width="100%">
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="table_settings">
<?php show_section_title('Targets');?>
<tr align="left" class="tr_setting">
<td class="td_setting" nowrap width='245px'>
<?=$llock1;?><?=fsloc("Scan these files:")?>
</td>
<td class="td_setting" id="ServerManual: targets label">
</td>
<td class="td_setting" >
<button dojoType='fs:Button'
onClick='javascript: EnableFileTypesDialog("edit", "ms&updateView1");'
style='width: 100px;'
id="ServerManual: configureFiles">
<div class='button80p'>
<?=GetConfigurableAsWord($can_edit_settings && $llock1 == '', true)?>
</div>
</button>
</td>
</tr>
<tr align="left" class="tr_setting">
<td class="td_setting" nowrap width='245px'>
<?=$llock2;?><?=fsloc("Exclude from scanning:")?>
</td>
<td class="td_setting" id="ServerManual: exclusions label">
</td>
<td class="td_setting" >
<button
dojoType='fs:Button'
onClick='javascript: EnableExclusionsDialog("edit", "ms&updateView2");'
style='width: 100px;'
id="ServerManual: configureExclusions">
<div class='button80p'>
<?=GetConfigurableAsWord($can_edit_settings && $llock2 == '', true)?>
</div>
</button>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="table_settings">
<?php show_section_title('Options');?>
<tr align="left" class="tr_setting">
<td class="td_setting" nowrap>
<input type="hidden" name="VAR_PAGE_SETTINGS_0" value="0"/>
<?=$Page_Settings[0][lock];?><input type="checkbox" id='ServerManual: scanArchives' name="VAR_PAGE_SETTINGS_0"
value="1" <?php if($Page_Settings[0][value] == 1) echo 'checked';?> />
<label for="ServerManual: scanArchives"><?=fsloc("Scan inside compressed files (zip, arj, lzh, ...)")?></label>
</td>
<td></td>
<td></td>
</tr>
<tr align="left" class="tr_setting">
<td class="td_setting" nowrap>
<input type="hidden" name="VAR_PAGE_SETTINGS_1" value="0"/>
<?=$Page_Settings[1][lock];?><input type="checkbox" id="ServerManual: heuristics" name="VAR_PAGE_SETTINGS_1"
value="1" <?php if($Page_Settings[1][value] == 1) echo 'checked';?> />
<label for="ServerManual: heuristics"><?=fsloc("Use advanced heuristics")?></label>
</td>
<td></td>
<td></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="table_settings">
<?php show_section_title('Actions');?>
<tr align="left" class="tr_setting">
<td class="td_setting" nowrap width='245px'>
<?=$Page_Settings[2][lock];?><label for="ServerManual: virusActiona"><?=fsloc("When virus is found")?></label>
</td>
<td class="td_setting" >
<?php $virAction = $Page_Settings[2][value]; ?>
<select id="ServerManual: virusAction" name="VAR_PAGE_SETTINGS_2">
<option value='8' <?php if($swAction == 0) echo 'selected';?>><?=fsloc('Ask what to do')?></option>
<option value="2" <?php if($virAction == 2) echo 'selected';?>><?=fsloc('Disinfect automatically')?></option>
<option value="260" <?php if($virAction == 260) echo 'selected';?>><?=fsloc('Quarantine automatically')?></option>
<option value="6" <?php if($virAction == 6) echo 'selected';?>><?=fsloc('Rename automatically')?></option>
<option value="4" <?php if($virAction == 4) echo 'selected';?>><?=fsloc('Delete automatically')?></option>
<option value="0" <?php if($virAction == 0) echo 'selected';?>><?=fsloc('Report only')?></option>
</select>
</td>
<td></td>
</tr>
<tr align="left" class="tr_setting">
<td class="td_setting" nowrap width='245px'>
<?=$Page_Settings[3][lock];?><label for="ServerRealtime: spywareAction"><?=fsloc('When spyware is found')?></label>
</td>
<td class="td_setting" >
<?php $swAction = $Page_Settings[3][value];?>
<select id="ServerManual: spywareAction" name="VAR_PAGE_SETTINGS_3">
<option value='8' <?php if($swAction == 8) echo 'selected';?>><?=fsloc('Ask what to do')?></option>
<option value="0" <?php if($swAction == 0) echo 'selected';?>><?=fsloc('Report only')?></option>
<option value="4" <?php if($swAction == 4) echo 'selected';?>><?=fsloc('Remove automatically')?></option>
<option value="260" <?php if($swAction == 260) echo 'selected';?>><?=fsloc('Quarantine automatically')?></option>
</select>
</td>
<td></td>
</tr>
</table>
</td>
</tr>
<?php show_action_buttons($tab_name, true, true); ?>
</table>
</form>