File: select.php3

package info (click to toggle)
imp 3%3A2.2.6-5.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,476 kB
  • ctags: 766
  • sloc: php: 4,253; sh: 831; makefile: 98; perl: 50; pascal: 15
file content (67 lines) | stat: -rw-r--r-- 1,946 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php

/*
  
  File: select.php3
  $Author: chuck $
  $Revision: 2.13.2.12 $
  $Date: 2000/06/20 00:48:55 $
  
  IMP: Copyright 1999, 2000 Charles J. Hagenbuch  <chuck@horde.org>
  
  You should have received a copy of the GNU Public
  License along with this package; if not, write to the
  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.
  
*/
    
require '../lib/horde.lib';
require './lib/imp.lib';             /* IMPlib is the IMP function library  */
require './config/defaults.php3';    /* Defaults configuration file */
require './config/html.php3';
require './config/lang.php3';

$language = select_lang();
require './lib/postconf.php3';
require "./locale/$language/select.lang";
require './locale/local/select.lang';

error_reporting($default->error_level); /* set error level from imp.lib   */

$sidebar = true;

/* don't bother doing anything if folders aren't being used */
if ($default->user_use_folders) {
  page_open(array('sess' => 'HordeSession'));
  page_close();
  
  if (!isset($imp) || !is_object($imp)) { 
    include "$default->include_dir/generic-header.inc"; 
    include "$default->include_dir/generic-footer.inc"; 
    exit; 
  }
  
  $imp->unpickle();
  // check this again because when the $imp object sets itself up, it
  // might change the value (for instance, if the protocol is pop3)
  if ($default->user_use_folders) {
    include "$default->include_dir/doctype.inc";
    include "$default->include_dir/select/header.inc";
    
    $imp->authenticate(OP_HALFOPEN);
    if (isset($imp->stream) && $imp->stream) {
      $options = mailbox_list(false,false,true);
      include "$default->include_dir/select/body.inc";
    }
  } else {
    include "$default->include_dir/doctype.inc";
    include "$default->include_dir/generic-header.inc";
  }
} else {
    include "$default->include_dir/generic-header.inc";
}

require "$default->include_dir/generic-footer.inc";

?>