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_updates / autoupdates-http.php < prev    next >
PHP Script  |  2010-09-07  |  4KB  |  94 lines

  1. <?php 
  2.     include ("..\common\commonphp.php");
  3.  
  4.     $Page_Settings = array(    array(oid => '1.3.6.1.4.1.2213.42.1.11.4.1', type => GLOBAL_INT),
  5.                             array(oid => '1.3.6.1.4.1.2213.42.1.11.3', type => GLOBAL_INT),
  6.                             array(oid => '1.3.6.1.4.1.2213.42.1.11.4.3.1', type => GLOBAL_STR));
  7.  
  8.     $tab_name = "tabAUAHTTP";
  9.  
  10.     if(!isset($_POST[SUBMIT_TABLE]))
  11.     {
  12.         /* first load of the page */
  13.         readSettings(&$Page_Settings);
  14.     }
  15.     else 
  16.     {
  17.         if($_POST[RESTORE_TABLE] == 1)
  18.         {
  19.             /* user wants to restore defaults */
  20.             readDefaultSettings(&$Page_Settings);
  21.         }
  22.         else
  23.         {
  24.             readPageData(&$Page_Settings);
  25.             if($_POST[SUBMIT_TABLE] == 1)    
  26.                 writeSettings($Page_Settings);
  27.         }
  28.         exit(0);
  29.     }    
  30.     
  31.     show_form_management($tab_name);
  32. ?>
  33.  
  34. <script language="javascript">
  35.     <?php echo $tab_name;?>enableControls = function(status_value) 
  36.     {
  37.     control_enabler_arr('<?php echo $tab_name;?>', [2], status_value != 2,  disabled_settings_<?php echo $tab_name;?>);
  38.     }
  39.     startup<?php echo $tab_name;?>enableControls = function() 
  40.     {    
  41.         <?php echo $tab_name;?>enableControls('<?php echo $Page_Settings[0][value] ?>');
  42.     }
  43. </script>
  44.  
  45. <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;">
  46.     <input type="hidden" name="SUBMIT_TABLE" value="0">
  47.     <input type="hidden" name="RESTORE_TABLE" value="0">
  48.     <input type="hidden" name="APPLY_SETTINGS" value="0">
  49.     <input type="hidden" name="VAR_PAGE_SETTINGS_1" value="0">
  50.  
  51.     <?php show_action_menu('Database Updates', $tab_name); ?>
  52.     <table border="0" cellspacing="5" cellpadding="0" class="main_page_table">
  53.         <tr>
  54.             <td valign="top" width="100%">
  55.                 <table cellspacing="0" cellpadding="0" border="0" width="100%" class="table_settings">
  56.                     <?php show_section_title('Settings');?>
  57.                     <tr align="left" class="tr_setting">
  58.                         <td nowrap class="td_setting">
  59.               <?=$Page_Settings[1][lock];?>
  60.               <?=fsloc("Internet connection checking:")?>   
  61.                         </td><td>
  62.                             <select name="VAR_PAGE_SETTINGS_1">
  63.                                 <option value="0" <?php if($Page_Settings[1][value] == 0) echo 'selected';?>><?=fsloc("Assume always connected")?>
  64.                                 <option value="1" <?php if($Page_Settings[1][value] == 1) echo 'selected';?>><?=fsloc("Detect connection")?>
  65.                                 <option value="2" <?php if($Page_Settings[1][value] == 2) echo 'selected';?>><?=fsloc("Detect traffic")?>
  66.                             </select>
  67.                     </td></tr>
  68.                     <tr align="left" class="tr_setting">
  69.                         <td nowrap class="td_setting">
  70.               <?=$Page_Settings[0][lock];?>
  71.               <?=fsloc("Use HTTP proxy:")?>   
  72.                         </td><td>
  73.                             <select name="VAR_PAGE_SETTINGS_0" onclick="javascript:<?php echo $tab_name;?>enableControls(this.value);">
  74.                                 <option value="0" <?php if($Page_Settings[0][value] == 0) echo 'selected';?>><?=fsloc("No HTTP proxy")?>
  75.                                 <option value="1" <?php if($Page_Settings[0][value] == 1) echo 'selected';?>><?=fsloc("Use browser's HTTP proxy")?>
  76.                                 <option value="2" <?php if($Page_Settings[0][value] == 2) echo 'selected';?>><?=fsloc("Manually configure HTTP proxy")?>
  77.                             </select>
  78.                     </td></tr>
  79.                     <tr align="left" class="tr_setting">
  80.                         <td nowrap class="td_setting">
  81.               <?=$Page_Settings[2][lock];?><?=fsloc("User defined proxy:")?>   
  82.                         </td><td width=100%>
  83.                             <input type="text" size=50 name="VAR_PAGE_SETTINGS_2" value="<?php echo "{$Page_Settings[2][value]}";?>">
  84.                     </td></tr>
  85.                 </table>
  86.             </td>
  87.         </tr>
  88.         <?php show_action_buttons($tab_name, true, true); ?>
  89.     </table>
  90. </form>    
  91.  
  92.  
  93.  
  94.