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_fsma
/
notify.php
< prev
next >
Wrap
PHP Script
|
2010-09-07
|
2KB
|
64 lines
<?php
include ("..\common\commonphp.php");
$Page_Settings = array( array(oid => '1.3.6.1.4.1.2213.20.1.100.10.10', type => GLOBAL_STR, required => 1, name => 'Notification sender address'));
$tab_name = "tabFSMANotifications";
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' type='text/javascript'>
<?php echo $tab_name;?>_settings_check = function()
{
<?php echo get_validation_script($Page_Settings[0], $tab_name, "VAR_PAGE_SETTINGS_0", "")?>
return true;
}
</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">
<?php show_action_menu('Notifications', $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">
<tr align="left" class="tr_setting">
<td nowrap class="td_setting">
<?=$Page_Settings[0][lock];?><?=fsloc('Notification sender address:')?> </td>
<td width=100%><input type="text" size=45 name="VAR_PAGE_SETTINGS_0" value="<?php echo $Page_Settings[0][value];?>">
</td></tr>
</table>
</td>
</tr>
<?php show_action_buttons($tab_name, true, true); ?>
</table>
</form>