Changeset 290
- Timestamp:
- 11/30/03 04:24:24 (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 modified
-
Build.PL (modified) (2 diffs)
-
preferences.cgi (modified) (4 diffs)
-
wiki.css (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Build.PL
r264 r290 15 15 my @questions = ( 16 16 { question => 17 " what's the name of the database that this site runs on?",17 "What's the name of the database that this site runs on?", 18 18 variable => "dbname" 19 19 }, 20 { question => " andthe database user that can access that database?",20 { question => "...the database user that can access that database?", 21 21 variable => "dbuser" 22 22 }, 23 { question => " andthe password that they use to access the database?",23 { question => "...the password that they use to access the database?", 24 24 variable => "dbpass" 25 25 }, 26 { question => " andthe machine that the database is hosted on? (blank if local)",26 { question => "...the machine that the database is hosted on? (blank if local)", 27 27 variable => "dbhost" 28 28 }, 29 { question => " what do you want the script to be called?",29 { question => "What do you want the script to be called?", 30 30 variable => "script_name", 31 31 default => "wiki.cgi" 32 32 }, 33 { question => " what directory should I install it in?",33 { question => "What directory should I install it in?", 34 34 variable => "install_directory", 35 35 default => "/usr/lib/cgi-bin/openguides/" 36 36 }, 37 { question => " what URL does the install directory map to?",37 { question => "What URL does the install directory map to?", 38 38 variable => "script_url", 39 39 }, 40 { question => " what directory can I use to store indexes in for searching? "41 . "***NOTE*** this directory must exist and be writeable by the "42 . "user that your script will run as. See README for more ",40 { question => "What directory can I use to store indexes in for searching? " 41 . "***NOTE*** This directory must exist and be writeable by the " 42 . "user that your script will run as. See README for more on this.", 43 43 variable => "indexing_directory", 44 44 default => "/usr/lib/cgi-bin/openguides/indexes/" 45 45 }, 46 { question => " what's the URL of the wiki's stylesheet?",46 { question => "What's the URL of the wiki's stylesheet?", 47 47 variable => "stylesheet_url" 48 48 }, 49 { question => " what's the wiki called? (should be unique)",49 { question => "What's the wiki called? (should be unique)", 50 50 variable => "site_name", 51 51 default => "OpenGuides Wiki" 52 52 }, 53 { question => " do you want the navigation bar included on the home page?",53 { question => "Do you want the navigation bar included on the home page?", 54 54 variable => "navbar_on_home_page", 55 55 default => "y", 56 56 type => "y_n" 57 57 }, 58 { question => " what should the home page of the wiki be called?",58 { question => "What should the home page of the wiki be called?", 59 59 variable => "home_name", 60 60 default => "Home" 61 61 }, 62 { question => " how would you describe the wiki?",62 { question => "How would you describe the wiki?", 63 63 variable => "site_desc", 64 64 default => "Development site for openguides.org's software" 65 65 }, 66 { question => " what city is the wiki based in?",66 { question => "What city is the wiki based in?", 67 67 variable => "default_city", 68 68 default => "London" 69 69 }, 70 { question => " what country is the wiki based in?",70 { question => "What country is the wiki based in?", 71 71 variable => "default_country", 72 72 default => "United Kingdom" 73 73 }, 74 { question => " contact email address for the wiki admin?",74 { question => "Contact email address for the wiki admin?", 75 75 variable => "contact_email" 76 76 }, 77 { question => " what's the name of the node to use for the text formatting rules link?",77 { question => "What's the name of the node to use for the text formatting rules link?", 78 78 variable => "formatting_rules_node", 79 79 default => "Text Formatting Examples" … … 238 238 $build->{config}{__extra_scripts} = 239 239 [ "wiki.conf", "preferences.cgi", "supersearch.cgi", 240 "newpage.cgi", "pubcrawl.cgi" ];240 "newpage.cgi", "pubcrawl.cgi", "wiki.css" ]; 241 241 $build->{config}{__templates} = [ 242 242 "backlink_results.tt", -
trunk/preferences.cgi
r197 r290 3 3 use strict; 4 4 use CGI; 5 5 6 use Config::Tiny; 6 7 use OpenGuides::CGI; … … 26 27 my $pre_above = $cgi->param("preview_above_edit_box") || 0; 27 28 my $latlong_trad = $cgi->param("latlong_traditional") || 0; 28 my $omit_ fmt_lnk = $cgi->param("omit_formatting_link")|| 0;29 my $omit_hlplnks = $cgi->param("omit_help_links") || 0; 29 30 my $rc_minor_eds = $cgi->param("show_minor_edits_in_rc") || 0; 30 31 my $cookie = OpenGuides::CGI->make_prefs_cookie( … … 34 35 preview_above_edit_box => $pre_above, 35 36 latlong_traditional => $latlong_trad, 36 omit_ formatting_link => $omit_fmt_lnk,37 omit_help_links => $omit_hlplnks, 37 38 show_minor_edits_in_rc => $rc_minor_eds, 38 39 ); … … 47 48 preview_above_edit_box => $pre_above, 48 49 latlong_traditional => $latlong_trad, 49 omit_ formatting_link => $omit_fmt_lnk,50 omit_help_links => $omit_hlplnks, 50 51 show_minor_edits_in_rc => $rc_minor_eds, 51 52 }
