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.fsfix
/
iuwebui
/
forms
/
tree_updates
/
autoupdates-http.php
< prev
next >
Wrap
PHP Script
|
2010-09-07
|
4KB
|
94 lines
<?php
include ("..\common\commonphp.php");
$Page_Settings = array( array(oid => '1.3.6.1.4.1.2213.42.1.11.4.1', type => GLOBAL_INT),
array(oid => '1.3.6.1.4.1.2213.42.1.11.3', type => GLOBAL_INT),
array(oid => '1.3.6.1.4.1.2213.42.1.11.4.3.1', type => GLOBAL_STR));
$tab_name = "tabAUAHTTP";
if(!isset($_POST[SUBMIT_TABLE]))
{
/* first load of the page */
readSettings(&$Page_Settings);
}
else
{
if($_POST[RESTORE_TABLE] == 1)
{
/* user wants to restore defaults */
readDefaultSettings(&$Page_Settings);
}
else
{
readPageData(&$Page_Settings);
if($_POST[SUBMIT_TABLE] == 1)
writeSettings($Page_Settings);
}
exit(0);
}
show_form_management($tab_name);
?>
<script language="javascript">
<?php echo $tab_name;?>enableControls = function(status_value)
{
control_enabler_arr('<?php echo $tab_name;?>', [2], status_value != 2, disabled_settings_<?php echo $tab_name;?>);
}
startup<?php echo $tab_name;?>enableControls = function()
{
<?php echo $tab_name;?>enableControls('<?php echo $Page_Settings[0][value] ?>');
}
</script>
<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">
<input type="hidden" name="VAR_PAGE_SETTINGS_1" value="0">
<?php show_action_menu('Database Updates', $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('Settings');?>
<tr align="left" class="tr_setting">
<td nowrap class="td_setting">
<?=$Page_Settings[1][lock];?>
<?=fsloc("Internet connection checking:")?>
</td><td>
<select name="VAR_PAGE_SETTINGS_1">
<option value="0" <?php if($Page_Settings[1][value] == 0) echo 'selected';?>><?=fsloc("Assume always connected")?>
<option value="1" <?php if($Page_Settings[1][value] == 1) echo 'selected';?>><?=fsloc("Detect connection")?>
<option value="2" <?php if($Page_Settings[1][value] == 2) echo 'selected';?>><?=fsloc("Detect traffic")?>
</select>
</td></tr>
<tr align="left" class="tr_setting">
<td nowrap class="td_setting">
<?=$Page_Settings[0][lock];?>
<?=fsloc("Use HTTP proxy:")?>
</td><td>
<select name="VAR_PAGE_SETTINGS_0" onclick="javascript:<?php echo $tab_name;?>enableControls(this.value);">
<option value="0" <?php if($Page_Settings[0][value] == 0) echo 'selected';?>><?=fsloc("No HTTP proxy")?>
<option value="1" <?php if($Page_Settings[0][value] == 1) echo 'selected';?>><?=fsloc("Use browser's HTTP proxy")?>
<option value="2" <?php if($Page_Settings[0][value] == 2) echo 'selected';?>><?=fsloc("Manually configure HTTP proxy")?>
</select>
</td></tr>
<tr align="left" class="tr_setting">
<td nowrap class="td_setting">
<?=$Page_Settings[2][lock];?><?=fsloc("User defined proxy:")?>
</td><td width=100%>
<input type="text" size=50 name="VAR_PAGE_SETTINGS_2" value="<?php echo "{$Page_Settings[2][value]}";?>">
</td></tr>
</table>
</td>
</tr>
<?php show_action_buttons($tab_name, true, true); ?>
</table>
</form>