Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for phpWebFileManager/plugins/imap.php between version 1.5 and 1.6

version 1.5, 2005/12/17 23:40:04 version 1.6, 2005/12/18 00:35:12
Line 1 
Line 1 
 <?php  <?php
   
   $fm_imap_options = array(
                   'host'    => 'localhost',
                   'port'    => 143,
                   'baseDSN' => '/imap/notls',
                   'timeout' => 5,
                   'session' => 900 /* 15 minutes */
                   );
   
 /*  /*
  * phpWebFileManager initialization   * phpWebFileManager initialization
  *   *
Line 17  $fm_init_file = dirname(__FILE__)
Line 25  $fm_init_file = dirname(__FILE__)
 require_once $fm_init_file;  require_once $fm_init_file;
 require_once $PN_PathPrefix . 'functions.inc.php';  require_once $PN_PathPrefix . 'functions.inc.php';
   
 $fm_imap_options = array(  
                 'host'    => 'localhost',  
                 'port'    => 143,  
                 'baseDSN' => '/imap/notls',  
                 'timeout' => 5  
                 );  
   
 if (!extension_loaded('imap')) {  if (!extension_loaded('imap')) {
         die('Cannot use IMAP authentication, IMAP extension not loaded!');          die('Cannot use IMAP authentication, IMAP extension not loaded!');
 }  }
Line 35  $dsn      = '{'.$fm_imap_options['host']
Line 36  $dsn      = '{'.$fm_imap_options['host']
 $username = $_REQUEST['username'];  $username = $_REQUEST['username'];
 $password = $_REQUEST['password'];  $password = $_REQUEST['password'];
   
 if ($_SESSION['timestamp'] > time() - 90) {  if ($_SESSION['timestamp'] > time() - $fm_imap_options['session']) {
         $logged = true;          $logged = true;
 }  }
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top