diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-05-09 22:10:16 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-05-09 22:10:16 -0400 |
commit | ffe139ebc8681df0ed48762eb9601136dda41546 (patch) | |
tree | 68cdc9f24589836e7b228bb5b05eaf9235a638d2 /lib | |
parent | v4: defaults, sysenv, simplify default home page (not used by default) (diff) |
v4: cgi script for sample search form, minor fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v4/cgi_pgsql.rb | 2 | ||||
-rw-r--r-- | lib/sisu/v4/cgi_sql_common.rb | 2 | ||||
-rw-r--r-- | lib/sisu/v4/cgi_sqlite.rb | 9 |
3 files changed, 7 insertions, 6 deletions
diff --git a/lib/sisu/v4/cgi_pgsql.rb b/lib/sisu/v4/cgi_pgsql.rb index d621d187..fd688244 100644 --- a/lib/sisu/v4/cgi_pgsql.rb +++ b/lib/sisu/v4/cgi_pgsql.rb @@ -160,7 +160,7 @@ module SiSU_CGI_PgSQL require 'dbi' @stub_default="#{@name_of[:db]}" @image_src="#{@name_of[:host_url_docs]}/_sisu/image_sys" - @hosturl_db="#{@name_of[:host_url_cgi]}" + @hosturl_cgi="#{@name_of[:host_url_cgi]}" @hosturl_files="#{@name_of[:host_url_docs]}" @output_dir_structure_by="#{@name_of[:output_dir_structure]}" @port="#{@db.psql.port}" diff --git a/lib/sisu/v4/cgi_sql_common.rb b/lib/sisu/v4/cgi_sql_common.rb index 5e356a58..6c0550e6 100644 --- a/lib/sisu/v4/cgi_sql_common.rb +++ b/lib/sisu/v4/cgi_sql_common.rb @@ -130,7 +130,7 @@ module SiSU_CGI_SQL <<-'WOK_SQL' #Common TOP @@offset=0 - @base="#{@hosturl_db}/#{@stub_default}.cgi" #fix sqlite + @base="#{@hosturl_cgi}/#{@stub_default}.cgi" #fix sqlite @@canned_search_url=@base @color_heading='#DDFFAA' @color_match='#ffff48' diff --git a/lib/sisu/v4/cgi_sqlite.rb b/lib/sisu/v4/cgi_sqlite.rb index 6f8bc4cc..d82cf8ec 100644 --- a/lib/sisu/v4/cgi_sqlite.rb +++ b/lib/sisu/v4/cgi_sqlite.rb @@ -131,10 +131,11 @@ module SiSU_CGI_SQLite require 'cgi' require 'fcgi' require 'dbi' - @version='sisu_sqlite' - @image_src="#{@env.url.webserv_cgi}/_sisu/image_sys" - @hosturl_db="#{@env.url.webserv_base_cgi}/cgi-bin" - @hosturl_files="#{@env.url.webserv_files_from_db}" + @stub_default="#{@name_of[:db]}" + @image_src="#{@name_of[:host_url_docs]}/_sisu/image_sys" + @hosturl_cgi="#{@name_of[:host_url_cgi]}" + @hosturl_files="#{@name_of[:host_url_docs]}" + @output_dir_structure_by="#{@name_of[:output_dir_structure]}" @db_name_prefix="#{Db[:name_prefix]}" WOK_SQL end |