<?php
include_once("c_setting_config.php");
class c_page_cab_setting_mailbox extends c_page_cab_setting_config
{
  public $h1='Настройки получения почты' ;

  function block_main()
   { $this->page_title() ;
     ?><form><table class="setting">
          <tr><td colspan="2"><strong>Настройки доступа к почтовому ящику, протокол IMAP</strong></td></tr>
          <tr><td>server adress</td><td><input type="text" name="setting[LS_mailbox_server]" value="<?echo htmlspecialchars($GLOBALS['LS_mailbox_server'])?>"></td></tr>
          <tr><td>server port</td><td><input type="text" name="setting[LS_mailbox_port]" value="<?echo htmlspecialchars($GLOBALS['LS_mailbox_port'])?>"></td></tr>
          <tr><td>user login</td><td><input type="text" name="setting[LS_mailbox_login]" value="<?echo htmlspecialchars($GLOBALS['LS_mailbox_login'])?>"></td></tr>
          <tr><td>user pass</td><td><input type="password" name="setting[LS_mailbox_pass]" value="<?echo htmlspecialchars($GLOBALS['LS_mailbox_pass'])?>"></td></tr>
          <tr><td>protokol</td><td><input type="text" name="setting[LS_mailbox_protokol]" value="<?echo htmlspecialchars($GLOBALS['LS_mailbox_protokol'])?>"></td></tr>
          <tr><td>params</td><td><input type="text" name="setting[LS_mailbox_params]" value="<?echo htmlspecialchars($GLOBALS['LS_mailbox_params'])?>"></td></tr>
          <tr><td>in_folder (IMAP)</td><td><input type="text" name="setting[LS_mailbox_in_folder]" value="<?echo htmlspecialchars($GLOBALS['LS_mailbox_in_folder'])?>"></td></tr>
          <tr><td></td><td><button class="v2" cmd="aspmo_setting/save_setting">Сохранить</button></td></tr>
       </table></form><?
       $this->panel_check_put_mail() ;
     }

     function panel_check_put_mail()
     { ?><h2>Проверка приема почты</h2>
         <button class="button v1" cmd=test_put_mail>Проверить почту</button>
       <?
     }

     function CMD_test_put_mail()
     {
         ENGINE()->check_mail_box() ;
     }

}



?>