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

« back to all changes in this revision

Viewing changes to web/cgi/alpine/1.0/fr_tconfig.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_tconfig.tcl 1204 2009-02-02 19:54:23Z hubert@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_conf_process.tcl
 
15
#
 
16
#  Purpose:  CGI script to generate frame set for config operations
 
17
#            in webpine-lite pages.
 
18
#            This page assumes that it was loaded by conf_process.tcl
 
19
 
 
20
#  Intput:
 
21
set frame_vars {
 
22
}
 
23
 
 
24
#  Output:
 
25
#
 
26
 
 
27
# inherit global config
 
28
source ./alpine.tcl
 
29
source cmdfunc.tcl
 
30
 
 
31
  cgi_http_head {
 
32
    WPStdHttpHdrs
 
33
  }
 
34
 
 
35
  cgi_html {
 
36
    cgi_head {
 
37
      WPStdHtmlHdr "Configuration"
 
38
    }
 
39
 
 
40
    cgi_frameset "rows=$_wp(titleheight),*" resize=yes border=0 frameborder=0 framespacing=0 {
 
41
      if {0} {
 
42
        set parms ""
 
43
 
 
44
        if {[info exists frame_vars]} {
 
45
          foreach v $frame_vars {
 
46
            if {[string length [subst $[lindex $v 0]]]} {
 
47
              if {[string length $parms]} {
 
48
                append parms "&"
 
49
              } else {
 
50
                append parms "?"
 
51
              }
 
52
 
 
53
              append parms "[lindex $v 0]=[subst $[lindex $v 0]]"
 
54
            }
 
55
          }
 
56
        }
 
57
      }
 
58
 
 
59
      set title 150
 
60
 
 
61
      set vlavarstr ""
 
62
      if {[info exists fr_tconfig_vlavar]} {
 
63
        set vlavarstr "&vlavar=$fr_tconfig_vlavar"
 
64
      }
 
65
      cgi_frame hdr=header.tcl?title=${title} title="Status Frame"
 
66
      cgi_frame body=wp.tcl?page=tconfig&newconf=$newconf&oncancel=$oncancel&wv=$conftype$vlavarstr title="Configuration options"
 
67
    }
 
68
  }
 
69