~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to web/cgi/alpine/fr_index.tcl

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2010-10-03 15:31:55 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101003153155-2exypc96j1e8tw0p
Tags: 2.02-1
* New upstream release, based on re-alpine project
* Updated debian/copyright to reflect this fact
* re-alpine removed the non-free from the tarball, so now
  we do not repack the upstream tarball. (Yay!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!./tclsh
2
 
# $Id: fr_index.tcl 391 2007-01-25 03:53:59Z mikes@u.washington.edu $
3
 
# ========================================================================
4
 
# Copyright 2006 University of Washington
5
 
#
6
 
# Licensed under the Apache License, Version 2.0 (the "License");
7
 
# you may not use this file except in compliance with the License.
8
 
# You may obtain a copy of the License at
9
 
#
10
 
#     http://www.apache.org/licenses/LICENSE-2.0
11
 
#
12
 
# ========================================================================
13
 
 
14
 
#  fr_index.tcl
15
 
#
16
 
#  Purpose:  CGI script to serve as the frame-work for including
17
 
#            supplied script snippets that generate the various 
18
 
#            javascript-free webpine pages
19
 
 
20
 
#  Input:
21
 
set index_vars {
22
 
  {expunge      ""}
23
 
  {emptyit      ""}
24
 
  {f_colid      {}      ""}
25
 
  {f_name       {}      ""}
26
 
  {cid          {}      0}
27
 
  {split        {}      0}
28
 
}
29
 
 
30
 
#  Output:
31
 
#
32
 
 
33
 
# read config
34
 
source ./alpine.tcl
35
 
 
36
 
WPEval $index_vars {
37
 
  cgi_http_head {
38
 
    WPStdHttpHdrs {} 10
39
 
  }
40
 
 
41
 
  cgi_html {
42
 
    cgi_head {
43
 
    }
44
 
 
45
 
    cgi_frameset "rows=100%,*" border=0 frameborder=0 framespacing=0 {
46
 
      set parms ""
47
 
      if {[info exists index_vars]} {
48
 
        foreach v $index_vars {
49
 
          if {[string length [subst $[lindex $v 0]]]} {
50
 
            append parms "&[lindex $v 0]=[subst $[lindex $v 0]]"
51
 
          }
52
 
        }
53
 
      }
54
 
 
55
 
      cgi_frame body=wp.tcl?page=index${parms} title="Message List"
56
 
    }
57
 
  }
58
 
}
 
 
b'\\ No newline at end of file'