[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: wiki/install configure.pl,1.1.1.1,1.2 create-db
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: wiki/install configure.pl,1.1.1.1,1.2 create-db.pl,1.1.1.1,1.2 maint.pl,1.1.1.1,1.2 settings.cnf,1.1.1.1,1.2 |
Date: |
Mon, 03 Mar 2003 08:37:07 -0500 |
Update of /cvsroot/phpgroupware/wiki/install
In directory subversions:/tmp/cvs-serv23134/install
Modified Files:
configure.pl create-db.pl maint.pl settings.cnf
Log Message:
make Axis-0.44 the new head-version
Index: configure.pl
===================================================================
RCS file: /cvsroot/phpgroupware/wiki/install/configure.pl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** configure.pl 3 Mar 2003 13:00:38 -0000 1.1.1.1
--- configure.pl 3 Mar 2003 13:37:05 -0000 1.2
***************
*** 1,127 ****
! #!/usr/bin/perl
!
! # $Id$
!
! if(!(-t))
! { die "You must execute this script from the command line.\n"; }
!
! if($#ARGV == -1)
! {
! print "Usage: \n";
! print " perl ./configure.pl [some/directory/]config.php\n";
! print "\n";
! print "Examples:\n\n";
! print " perl ./configure.pl ../config.php\n";
! print " perl ./configure.pl /home/u/user12/tavi/config.php\n";
! exit;
! }
!
! # This subroutine prompts the user for a variable's value and writes
! # that variable to config.php.
! sub do_variable
! {
! my ($descriptor, $prompt, $comment) = @_;
! my ($variable, $value);
!
! if($descriptor =~ /^noprompt_var/) # Write out value without question.
! {
! $descriptor =~ /(\S+)\s+(\S+)\s+(.+)/;
! $variable = $2;
! $value = $3;
! print CONFIG $comment;
! print CONFIG "$variable = $value;\n\n";
! }
! elsif($descriptor =~ /^noprompt_const/) # Write out const without question.
! {
! $descriptor =~ /(\S+)\s+(\S+)\s+(.+)/;
! $variable = $2;
! $value = $3;
! print CONFIG $comment;
! print CONFIG "define('$variable', $value);\n\n";
! }
! elsif($descriptor =~ /^comment/) # Write out just a comment.
! {
! print CONFIG "$comment\n";
! }
! else # Prompt user for value.
! {
! system "clear"; # Clear screen.
! print "$prompt\n";
! if($descriptor =~ /^string/)
! {
! print 'Enter value: ';
! $value = <STDIN>;
! $value =~ s/\r?\n//;
! $value =~ s/\\/\\\\/g;
! $value =~ s/'/\\'/g;
! $value = "'" . $value . "'";
! }
! elsif($descriptor =~ /^boolean/)
! {
! if($descriptor =~ /0\s*$/) # Default is off.
! {
! print 'Enter setting (y/N): ';
! $value = <STDIN>;
! $value =~ s/\r?\n//;
! if($value =~ /[Yy]/) # Value is on.
! { $value = 1; }
! else
! { $value = 0; }
! }
! else
! {
! print 'Enter setting (Y/n): ';
! $value = <STDIN>;
! $value =~ s/\r?\n//;
! if($value =~ /[Nn]/) # Value is off.
! { $value = 0; }
! else
! { $value = 1; }
! }
! }
!
! $descriptor =~ /(\S+)\s+(\S+)\s+(.+)/;
! $variable = $2;
! print CONFIG $comment;
! print CONFIG "$variable = $value;\n\n";
! }
! }
!
! if(!(open SETTINGS , "settings.cnf"))
! { die "Error opening settings.cnf!\n"; }
! if(!(open CONFIG , ">$ARGV[0]"))
! { die "Error opening configuration file for writing!\n"; }
!
! print CONFIG "<?php\n\n";
!
! $descriptor = '';
!
! while(<SETTINGS>)
! {
! $_ =~ s/\r?\n//;
! if(/^----$/) # New variable.
! {
! if($descriptor ne '')
! { do_variable($descriptor, $prompt, $comment); }
!
! $descriptor = <SETTINGS>; # Read descriptor.
! $descriptor =~ s/\r?\n//;
! $prompt = '';
! $comment = '';
! }
! elsif(/^\/\//) # Comment for variablle.
! { $comment = $comment . $_ . "\n"; }
! else # Prompt for variable.
! { $prompt = $prompt . $_ . "\n"; }
! }
!
! if($descriptor ne '')
! { do_variable($descriptor, $prompt, $comment); }
!
! print CONFIG "?>";
! close SETTINGS;
! close CONFIG;
!
! print "\n\n$ARGV[0] has been written. Please examine it to verify\n";
! print "it is accurate.\n";
!
--- 1,127 ----
! #!/usr/bin/perl
!
! # $Id$
!
! if(!(-t))
! { die "You must execute this script from the command line.\n"; }
!
! if($#ARGV == -1)
! {
! print "Usage: \n";
! print " perl ./configure.pl [some/directory/]config.php\n";
! print "\n";
! print "Examples:\n\n";
! print " perl ./configure.pl ../config.php\n";
! print " perl ./configure.pl /home/u/user12/tavi/config.php\n";
! exit;
! }
!
! # This subroutine prompts the user for a variable's value and writes
! # that variable to config.php.
! sub do_variable
! {
! my ($descriptor, $prompt, $comment) = @_;
! my ($variable, $value);
!
! if($descriptor =~ /^noprompt_var/) # Write out value without question.
! {
! $descriptor =~ /(\S+)\s+(\S+)\s+(.+)/;
! $variable = $2;
! $value = $3;
! print CONFIG $comment;
! print CONFIG "$variable = $value;\n\n";
! }
! elsif($descriptor =~ /^noprompt_const/) # Write out const without question.
! {
! $descriptor =~ /(\S+)\s+(\S+)\s+(.+)/;
! $variable = $2;
! $value = $3;
! print CONFIG $comment;
! print CONFIG "define('$variable', $value);\n\n";
! }
! elsif($descriptor =~ /^comment/) # Write out just a comment.
! {
! print CONFIG "$comment\n";
! }
! else # Prompt user for value.
! {
! system "clear"; # Clear screen.
! print "$prompt\n";
! if($descriptor =~ /^string/)
! {
! print 'Enter value: ';
! $value = <STDIN>;
! $value =~ s/\r?\n//;
! $value =~ s/\\/\\\\/g;
! $value =~ s/'/\\'/g;
! $value = "'" . $value . "'";
! }
! elsif($descriptor =~ /^boolean/)
! {
! if($descriptor =~ /0\s*$/) # Default is off.
! {
! print 'Enter setting (y/N): ';
! $value = <STDIN>;
! $value =~ s/\r?\n//;
! if($value =~ /[Yy]/) # Value is on.
! { $value = 1; }
! else
! { $value = 0; }
! }
! else
! {
! print 'Enter setting (Y/n): ';
! $value = <STDIN>;
! $value =~ s/\r?\n//;
! if($value =~ /[Nn]/) # Value is off.
! { $value = 0; }
! else
! { $value = 1; }
! }
! }
!
! $descriptor =~ /(\S+)\s+(\S+)\s+(.+)/;
! $variable = $2;
! print CONFIG $comment;
! print CONFIG "$variable = $value;\n\n";
! }
! }
!
! if(!(open SETTINGS , "settings.cnf"))
! { die "Error opening settings.cnf!\n"; }
! if(!(open CONFIG , ">$ARGV[0]"))
! { die "Error opening configuration file for writing!\n"; }
!
! print CONFIG "<?php\n\n";
!
! $descriptor = '';
!
! while(<SETTINGS>)
! {
! $_ =~ s/\r?\n//;
! if(/^----$/) # New variable.
! {
! if($descriptor ne '')
! { do_variable($descriptor, $prompt, $comment); }
!
! $descriptor = <SETTINGS>; # Read descriptor.
! $descriptor =~ s/\r?\n//;
! $prompt = '';
! $comment = '';
! }
! elsif(/^\/\//) # Comment for variablle.
! { $comment = $comment . $_ . "\n"; }
! else # Prompt for variable.
! { $prompt = $prompt . $_ . "\n"; }
! }
!
! if($descriptor ne '')
! { do_variable($descriptor, $prompt, $comment); }
!
! print CONFIG "?>";
! close SETTINGS;
! close CONFIG;
!
! print "\n\n$ARGV[0] has been written. Please examine it to verify\n";
! print "it is accurate.\n";
!
Index: create-db.pl
===================================================================
RCS file: /cvsroot/phpgroupware/wiki/install/create-db.pl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** create-db.pl 3 Mar 2003 13:00:38 -0000 1.1.1.1
--- create-db.pl 3 Mar 2003 13:37:05 -0000 1.2
***************
*** 1,93 ****
! #!/usr/bin/perl
!
! # $Id$
!
! if(!(-t))
! { die "You must execute this script from the command line.\n"; }
!
! # This script is used to create the initial database for WikkiTikkiTavi
! # to use for page storage.
!
! if($#ARGV < 2)
! {
! print "Usage: \n";
! print " perl ./create-db.pl dbname dbuser dbpassword [table_prefix
[dbserver]]\n";
! print "\n";
! print "Examples:\n\n";
! print " perl ./create-db.pl wiki joe passwd\n";
! print " perl ./create-db.pl project sally pass wiki_
database.example.com\n";
! print " perl ./create-db.pl common jim key \"\" database.example.com\n";
! exit;
! }
!
! $database = $ARGV[0]; # Database name.
! $user = $ARGV[1]; # Database user name.
! $pass = $ARGV[2]; # Database password.
! if($#ARGV > 2) # Table prefix.
! { $prefix = $ARGV[3]; }
! else
! { $prefix = ""; }
! if($#ARGV > 3) # Database host.
! { $dbhost = $ARGV[4]; }
! else
! { $dbhost = ""; }
!
! use DBI;
!
! $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $user, $pass)
! or die "Connecting: $DBI::errstr\n";
!
! print "Creating database...\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "links ( "
! . "page varchar(80) DEFAULT '' NOT NULL, "
! . "link varchar(80) DEFAULT '' NOT NULL, "
! . "count int(10) unsigned DEFAULT '0' NOT NULL, "
! . "PRIMARY KEY (page, link) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "pages ( "
! . "title varchar(80) DEFAULT '' NOT NULL, "
! . "version int(10) unsigned DEFAULT '1' NOT NULL, "
! . "time timestamp(14), "
! . "supercede timestamp(14), "
! . "mutable set('off', 'on') DEFAULT 'on' NOT NULL, "
! . "username varchar(80), "
! . "author varchar(80) DEFAULT '' NOT NULL, "
! . "comment varchar(80) DEFAULT '' NOT NULL, "
! . "body text, "
! . "PRIMARY KEY (title, version) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "rate ( "
! . "ip char(20) DEFAULT '' NOT NULL, "
! . "time timestamp(14), "
! . "viewLimit smallint(5) unsigned, "
! . "searchLimit smallint(5) unsigned, "
! . "editLimit smallint(5) unsigned, "
! . "PRIMARY KEY (ip) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "interwiki ( "
! . "prefix varchar(80) DEFAULT '' NOT NULL, "
! . "where_defined varchar(80) DEFAULT '' NOT NULL, "
! . "url varchar(255) DEFAULT '' NOT NULL, "
! . "PRIMARY KEY (prefix ) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "sisterwiki ( "
! . "prefix varchar(80) DEFAULT '' NOT NULL, "
! . "where_defined varchar(80) DEFAULT '' NOT NULL, "
! . "url varchar(255) DEFAULT '' NOT NULL, "
! . "PRIMARY KEY (prefix ) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "remote_pages ( "
! . "page varchar(80) DEFAULT '' NOT NULL, "
! . "site varchar(80) DEFAULT '' NOT NULL, "
! . "PRIMARY KEY (page, site) )");
! $qid->execute or die "Error creating table\n";
!
! print "Your tables were created. Next you should run configure.pl\n";
! print "to configure your preferences.\n";
!
--- 1,93 ----
! #!/usr/bin/perl
!
! # $Id$
!
! if(!(-t))
! { die "You must execute this script from the command line.\n"; }
!
! # This script is used to create the initial database for WikkiTikkiTavi
! # to use for page storage.
!
! if($#ARGV < 2)
! {
! print "Usage: \n";
! print " perl ./create-db.pl dbname dbuser dbpassword [table_prefix
[dbserver]]\n";
! print "\n";
! print "Examples:\n\n";
! print " perl ./create-db.pl wiki joe passwd\n";
! print " perl ./create-db.pl project sally pass wiki_
database.example.com\n";
! print " perl ./create-db.pl common jim key \"\" database.example.com\n";
! exit;
! }
!
! $database = $ARGV[0]; # Database name.
! $user = $ARGV[1]; # Database user name.
! $pass = $ARGV[2]; # Database password.
! if($#ARGV > 2) # Table prefix.
! { $prefix = $ARGV[3]; }
! else
! { $prefix = ""; }
! if($#ARGV > 3) # Database host.
! { $dbhost = $ARGV[4]; }
! else
! { $dbhost = ""; }
!
! use DBI;
!
! $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $user, $pass)
! or die "Connecting: $DBI::errstr\n";
!
! print "Creating database...\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "links ( "
! . "page varchar(80) DEFAULT '' NOT NULL, "
! . "link varchar(80) DEFAULT '' NOT NULL, "
! . "count int(10) unsigned DEFAULT '0' NOT NULL, "
! . "PRIMARY KEY (page, link) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "pages ( "
! . "title varchar(80) DEFAULT '' NOT NULL, "
! . "version int(10) unsigned DEFAULT '1' NOT NULL, "
! . "time timestamp(14), "
! . "supercede timestamp(14), "
! . "mutable set('off', 'on') DEFAULT 'on' NOT NULL, "
! . "username varchar(80), "
! . "author varchar(80) DEFAULT '' NOT NULL, "
! . "comment varchar(80) DEFAULT '' NOT NULL, "
! . "body text, "
! . "PRIMARY KEY (title, version) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "rate ( "
! . "ip char(20) DEFAULT '' NOT NULL, "
! . "time timestamp(14), "
! . "viewLimit smallint(5) unsigned, "
! . "searchLimit smallint(5) unsigned, "
! . "editLimit smallint(5) unsigned, "
! . "PRIMARY KEY (ip) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "interwiki ( "
! . "prefix varchar(80) DEFAULT '' NOT NULL, "
! . "where_defined varchar(80) DEFAULT '' NOT NULL, "
! . "url varchar(255) DEFAULT '' NOT NULL, "
! . "PRIMARY KEY (prefix ) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "sisterwiki ( "
! . "prefix varchar(80) DEFAULT '' NOT NULL, "
! . "where_defined varchar(80) DEFAULT '' NOT NULL, "
! . "url varchar(255) DEFAULT '' NOT NULL, "
! . "PRIMARY KEY (prefix ) )");
! $qid->execute or die "Error creating table\n";
!
! $qid = $dbh->prepare("CREATE TABLE " . $prefix . "remote_pages ( "
! . "page varchar(80) DEFAULT '' NOT NULL, "
! . "site varchar(80) DEFAULT '' NOT NULL, "
! . "PRIMARY KEY (page, site) )");
! $qid->execute or die "Error creating table\n";
!
! print "Your tables were created. Next you should run configure.pl\n";
! print "to configure your preferences.\n";
!
Index: maint.pl
===================================================================
RCS file: /cvsroot/phpgroupware/wiki/install/maint.pl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** maint.pl 3 Mar 2003 13:00:38 -0000 1.1.1.1
--- maint.pl 3 Mar 2003 13:37:05 -0000 1.2
***************
*** 1,63 ****
! #!/usr/bin/perl
!
! # $Id$
! #
! # This script is used by WikkiTikkiTavi versions 0.1 and greater to maintain
! # the list of known remote pages. This is used by the TwinPages feature.
! # Typically, it will be set up as a cron job to run periodically (e.g.,
! # once per week).
! #
! # See http://tavi.sourceforge.net/SisterWiki for more information.
!
! $database = ""; # Database name.
! $user = ""; # Database use name.
! $pass = ""; # Database password.
! $prefix = ""; # Table name prefix (e.g. "wiki_").
! $linkptn = "([A-Z][a-z]+[A-Z][A-Za-z]*(/[A-Z][A-Za-z]+)?)";
!
! use DBI;
!
! $dbh = DBI->connect("DBI:mysql:$database:127.0.0.1", $user, $pass)
! or die "Connecting: $DBI::errstr\n";
!
! sub insert_page
! {
! my ($page) = @_;
! my ($qid);
!
! $qid = $dbh->prepare("SELECT page FROM " . $prefix . "remote_pages " .
! "WHERE site='$site' and page='$page'");
! $qid->execute;
! if(!$qid->fetchrow_hashref)
! {
! $qid = $dbh->prepare("INSERT INTO " . $prefix . "remote_pages " .
! "VALUES('$page', '$site')");
! $qid->execute;
! }
!
! return "";
! }
!
! $qid = $dbh->prepare("SELECT prefix, url FROM " . $prefix . "sisterwiki)");
! $qid->execute;
!
! while($row = $qid->fetchrow_hashref)
! {
! $site = $row->{'prefix'};
! print "Scanning $site\n";
!
! $_ = "lynx -source " . $row->{'url'};
! s/&/\\&/g;
! s/;/\\;/g;
! $html = `$_`;
!
! $q2 = $dbh->prepare("DELETE FROM " . $prefix . "remote_pages " .
! "WHERE site='$site'");
! $q2->execute;
!
! foreach(split(/\n/, $html))
! {
! s/<[Aa].*>($linkptn)<\/[Aa]>/&insert_page($1)/geo;
! }
! }
!
--- 1,63 ----
! #!/usr/bin/perl
!
! # $Id$
! #
! # This script is used by WikkiTikkiTavi versions 0.1 and greater to maintain
! # the list of known remote pages. This is used by the TwinPages feature.
! # Typically, it will be set up as a cron job to run periodically (e.g.,
! # once per week).
! #
! # See http://tavi.sourceforge.net/SisterWiki for more information.
!
! $database = ""; # Database name.
! $user = ""; # Database use name.
! $pass = ""; # Database password.
! $prefix = ""; # Table name prefix (e.g. "wiki_").
! $linkptn = "([A-Z][a-z]+[A-Z][A-Za-z]*(/[A-Z][A-Za-z]+)?)";
!
! use DBI;
!
! $dbh = DBI->connect("DBI:mysql:$database:127.0.0.1", $user, $pass)
! or die "Connecting: $DBI::errstr\n";
!
! sub insert_page
! {
! my ($page) = @_;
! my ($qid);
!
! $qid = $dbh->prepare("SELECT page FROM " . $prefix . "remote_pages " .
! "WHERE site='$site' and page='$page'");
! $qid->execute;
! if(!$qid->fetchrow_hashref)
! {
! $qid = $dbh->prepare("INSERT INTO " . $prefix . "remote_pages " .
! "VALUES('$page', '$site')");
! $qid->execute;
! }
!
! return "";
! }
!
! $qid = $dbh->prepare("SELECT prefix, url FROM " . $prefix . "sisterwiki)");
! $qid->execute;
!
! while($row = $qid->fetchrow_hashref)
! {
! $site = $row->{'prefix'};
! print "Scanning $site\n";
!
! $_ = "lynx -source " . $row->{'url'};
! s/&/\\&/g;
! s/;/\\;/g;
! $html = `$_`;
!
! $q2 = $dbh->prepare("DELETE FROM " . $prefix . "remote_pages " .
! "WHERE site='$site'");
! $q2->execute;
!
! foreach(split(/\n/, $html))
! {
! s/<[Aa].*>($linkptn)<\/[Aa]>/&insert_page($1)/geo;
! }
! }
!
Index: settings.cnf
===================================================================
RCS file: /cvsroot/phpgroupware/wiki/install/settings.cnf,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** settings.cnf 3 Mar 2003 13:00:38 -0000 1.1.1.1
--- settings.cnf 3 Mar 2003 13:37:05 -0000 1.2
***************
*** 1,165 ****
! ----
! comment
! // config.php
! //
! // This file was generated by the install/configure.pl script based
! // on values entered by the administrator. It contains the most
! // common (and vital) configuration parameters for WikkiTikkiTavi to
! // run.
! //
! // You may edit this file by hand or use configure.pl to generate a
! // new copy.
! //
! // Certain other settings may be configured; look in lib/defaults.php
! // to see them. Rather than changing them in lib/defaults.php, you
! // should copy them from there to here. The settings here will safely
! // over-ride those in lib/defaults.php.
! ----
! string $Admin ''
! Enter the administrator's e-mail address. This address will be printed
! in error messages so wiki visitors can contact the administrator if a
! problem occurs.
! // $Admin specifies the administrator e-mail address used in error messages.
! ----
! boolean $DBPersist 0
! Should persistent database connections be used? Not all hosting providers
! allow persistent connections, so you should check before you turn this on.
! // If $DBPersist is not 0, persistent database connections will be used.
! // Note that this is not supported by all hosting providers.
! ----
! string $DBServer ''
! Enter the host name or IP address of your database server. If it is the
! local host, you may leave it blank.
! // $DBServer indicates the hostname of the database server. It may be
! // set to '' for the local host.
! ----
! string $DBName ''
! Enter the name of the database to be used by the wiki.
! // $DBName indicates the name of the database that the wiki should use.
! ----
! string $DBUser ''
! Enter the name of the database user.
! // $DBUser indicates the name of the database user.
! ----
! string $DBPasswd ''
! Enter the password for database access.
! // $DBPasswd indicates the password to use for database access.
! ----
! string $DBTablePrefix ''
! Some hosting providers only allow you to have a single database. In order
! to run multiple wikis in a single database, you have to make sure their
! table names don't conflict.
!
! 'Tavi allows you to specify a 'table prefix' to be prepended to the table
! names for each wiki. For example, one wiki's prefix might be 'project_',
! while another's might be 'personal_'.
!
! Enter the table prefix you wish to use for this wiki. You may leave it
! blank for no prefix.
! // $DBTablePrefix is used to start table names for the wiki's tables. If your
! // hosting provider only allows you one database, you can set up multiple
! // wikis in the same database by creating tables that have different prefixes.
! ----
! string $WikiName ''
! Enter the name of your wiki. This will appear in the browser title bar.
! Typically, it is a WikiName, such as AcmeProjectWiki.
! // $WikiName determines the name of your wiki. This name is used in the
! // browser title bar. Often, it will be the same as $HomePage.
! ----
! string $HomePage ''
! Enter the 'home page' of your wiki. This is the wiki page that is the
! default page if no page name is given. It is almost always a WikiName,
! such as AcmeProjectWiki. Usually, it is the same as your wiki name.
! // $HomePage determines the "main" page of your wiki. If browsers do not ask
! // to see a specific page they will be shown the home page. This should be
! // a wiki page name, like 'AcmeProjectWiki'.
! ----
! string $InterWikiPrefix ''
! Enter the inter-wiki prefix for your wiki. This is the prefix that you
! suggest other wikis use when they link to your wiki. For example, an
! inter-wiki prefix of 'AcmeProject' will yield inter-wiki links of the
! form AcmeProject:WidgetBrainstorming.
!
! Typically the inter-wiki prefix is a variation of your wiki name.
! // $InterWikiPrefix determines what interwiki prefix you recommend other
! // wikis use to link to your wiki. Usually it is similar to your WikiName.
! ----
! boolean $EnableFreeLinks 1
! Would you like free links to be enabled on your wiki? Free links are links
! of the form '((my page))', and allow you to escape the confines of the
! traditional WikiName syntax.
! // If $EnableFreeLinks is set to 1, links of the form "((page name))" will be
! // turned on for this wiki. If it is set to 0, they will be disallowed.
! ----
! boolean $EnableWikiLinks 1
! Would you like traditional wiki links to be enabled on your wiki?
! Traditional links are of the form 'WikiName'. It is recommended that
! you leave traditional wiki links enabled on your wiki.
!
! Note that you should enable free links if you wish to disable traditional
! links. If you disable both, then users will not be able to create links
! of any form to other pages on your wiki.
! // If $EnableWikiLinks is set to 1, normal WikiNames will be treated as links
! // in this wiki. If it is set to 0, they will not be treated as links
! // (in which case you should be careful to enable free links!).
! ----
! string $ScriptBase ''
! Enter the fully-qualified URL for the wiki script you have installed.
!
! For example, you might enter 'http://example.com/wiki/index.php'.
! // $ScriptBase determines the location of your wiki script. It should
indicate
! // the full URL of the main index.php script itself.
! ----
! string $AdminScript ''
! Enter the fully-qualified URL for the administration script for this wiki.
!
! For example, if the wiki script itself is located at the URL
! 'http://example.com/wiki/index.php', then your admin script will be
! located at 'http://example.com/wiki/admin/index.php'.
! // $AdminScript indicates the location of your admin wiki script. It should
! // indicate the full URL of the admin/index.php script itself.
! ----
! string $WikiLogo ''
! Enter the URL for your wiki's logo.
!
! For example, this might be 'http://example.com/logo.png', or it might be
! '/images/jpeg/wiki.jpg'.
!
! If you don't have a logo ready right now, you can use the following logo
! for the time being and go back and edit config.php later when you have
! your own logo ready:
!
! http://tavi.sourceforge.net/tavi.png
! // $WikiLogo determines the location of your wiki logo.
! ----
! string $MetaKeywords ''
! Enter a list of keywords that describe your wiki, separated by spaces.
! These keywords will be reported in a <meta> tag to aid search engines that
! index your wiki.
!
! For example, you might choose 'acme project widgets wiki development'.
! // $MetaKeywords indicates what keywords to report on the meta-keywords tag.
! // This is useful to aid search engines in indexing your wiki.
! ----
! string $MetaDescription ''
! Enter a sentence or two that describes your wiki. This will be reported
! in a <meta> tag to aid search engines that index your wiki.
!
! For example, you might choose 'Wiki discussion site for the development
! and production of the ACME Widget project.'
! // $MetaDescription should be a sentence or two describing your wiki. This
! // is useful to aid search engines in indexing your wiki.
! ----
! noprompt_const TemplateDir 'template'
! // TemplateDir indicates what directory your wiki templates are located in.
! // You may use this to install other templates than the default template.
! ----
! noprompt_var $AdminEnabled 0
! // !!!WARNING!!!
! // If $AdminEnabled is set to 1, the script admin/index.php will be
accessible.
! // This allows administrators to lock pages and block IP addresses. If you
! // want to use this feature, YOU SHOULD FIRST BLOCK ACCESS TO THE admin/
! // DIRECTORY BY OTHER MEANS, such as Apache's authorization directives.
! // If you do not do so, any visitor to your wiki will be able to lock pages
! // and block others from accessing the wiki.
! // If $AdminEnabled is set to 0, administrator control will be disallowed.
--- 1,165 ----
! ----
! comment
! // config.php
! //
! // This file was generated by the install/configure.pl script based
! // on values entered by the administrator. It contains the most
! // common (and vital) configuration parameters for WikkiTikkiTavi to
! // run.
! //
! // You may edit this file by hand or use configure.pl to generate a
! // new copy.
! //
! // Certain other settings may be configured; look in lib/defaults.php
! // to see them. Rather than changing them in lib/defaults.php, you
! // should copy them from there to here. The settings here will safely
! // over-ride those in lib/defaults.php.
! ----
! string $Admin ''
! Enter the administrator's e-mail address. This address will be printed
! in error messages so wiki visitors can contact the administrator if a
! problem occurs.
! // $Admin specifies the administrator e-mail address used in error messages.
! ----
! boolean $DBPersist 0
! Should persistent database connections be used? Not all hosting providers
! allow persistent connections, so you should check before you turn this on.
! // If $DBPersist is not 0, persistent database connections will be used.
! // Note that this is not supported by all hosting providers.
! ----
! string $DBServer ''
! Enter the host name or IP address of your database server. If it is the
! local host, you may leave it blank.
! // $DBServer indicates the hostname of the database server. It may be
! // set to '' for the local host.
! ----
! string $DBName ''
! Enter the name of the database to be used by the wiki.
! // $DBName indicates the name of the database that the wiki should use.
! ----
! string $DBUser ''
! Enter the name of the database user.
! // $DBUser indicates the name of the database user.
! ----
! string $DBPasswd ''
! Enter the password for database access.
! // $DBPasswd indicates the password to use for database access.
! ----
! string $DBTablePrefix ''
! Some hosting providers only allow you to have a single database. In order
! to run multiple wikis in a single database, you have to make sure their
! table names don't conflict.
!
! 'Tavi allows you to specify a 'table prefix' to be prepended to the table
! names for each wiki. For example, one wiki's prefix might be 'project_',
! while another's might be 'personal_'.
!
! Enter the table prefix you wish to use for this wiki. You may leave it
! blank for no prefix.
! // $DBTablePrefix is used to start table names for the wiki's tables. If your
! // hosting provider only allows you one database, you can set up multiple
! // wikis in the same database by creating tables that have different prefixes.
! ----
! string $WikiName ''
! Enter the name of your wiki. This will appear in the browser title bar.
! Typically, it is a WikiName, such as AcmeProjectWiki.
! // $WikiName determines the name of your wiki. This name is used in the
! // browser title bar. Often, it will be the same as $HomePage.
! ----
! string $HomePage ''
! Enter the 'home page' of your wiki. This is the wiki page that is the
! default page if no page name is given. It is almost always a WikiName,
! such as AcmeProjectWiki. Usually, it is the same as your wiki name.
! // $HomePage determines the "main" page of your wiki. If browsers do not ask
! // to see a specific page they will be shown the home page. This should be
! // a wiki page name, like 'AcmeProjectWiki'.
! ----
! string $InterWikiPrefix ''
! Enter the inter-wiki prefix for your wiki. This is the prefix that you
! suggest other wikis use when they link to your wiki. For example, an
! inter-wiki prefix of 'AcmeProject' will yield inter-wiki links of the
! form AcmeProject:WidgetBrainstorming.
!
! Typically the inter-wiki prefix is a variation of your wiki name.
! // $InterWikiPrefix determines what interwiki prefix you recommend other
! // wikis use to link to your wiki. Usually it is similar to your WikiName.
! ----
! boolean $EnableFreeLinks 1
! Would you like free links to be enabled on your wiki? Free links are links
! of the form '((my page))', and allow you to escape the confines of the
! traditional WikiName syntax.
! // If $EnableFreeLinks is set to 1, links of the form "((page name))" will be
! // turned on for this wiki. If it is set to 0, they will be disallowed.
! ----
! boolean $EnableWikiLinks 1
! Would you like traditional wiki links to be enabled on your wiki?
! Traditional links are of the form 'WikiName'. It is recommended that
! you leave traditional wiki links enabled on your wiki.
!
! Note that you should enable free links if you wish to disable traditional
! links. If you disable both, then users will not be able to create links
! of any form to other pages on your wiki.
! // If $EnableWikiLinks is set to 1, normal WikiNames will be treated as links
! // in this wiki. If it is set to 0, they will not be treated as links
! // (in which case you should be careful to enable free links!).
! ----
! string $ScriptBase ''
! Enter the fully-qualified URL for the wiki script you have installed.
!
! For example, you might enter 'http://example.com/wiki/index.php'.
! // $ScriptBase determines the location of your wiki script. It should
indicate
! // the full URL of the main index.php script itself.
! ----
! string $AdminScript ''
! Enter the fully-qualified URL for the administration script for this wiki.
!
! For example, if the wiki script itself is located at the URL
! 'http://example.com/wiki/index.php', then your admin script will be
! located at 'http://example.com/wiki/admin/index.php'.
! // $AdminScript indicates the location of your admin wiki script. It should
! // indicate the full URL of the admin/index.php script itself.
! ----
! string $WikiLogo ''
! Enter the URL for your wiki's logo.
!
! For example, this might be 'http://example.com/logo.png', or it might be
! '/images/jpeg/wiki.jpg'.
!
! If you don't have a logo ready right now, you can use the following logo
! for the time being and go back and edit config.php later when you have
! your own logo ready:
!
! http://tavi.sourceforge.net/tavi.png
! // $WikiLogo determines the location of your wiki logo.
! ----
! string $MetaKeywords ''
! Enter a list of keywords that describe your wiki, separated by spaces.
! These keywords will be reported in a <meta> tag to aid search engines that
! index your wiki.
!
! For example, you might choose 'acme project widgets wiki development'.
! // $MetaKeywords indicates what keywords to report on the meta-keywords tag.
! // This is useful to aid search engines in indexing your wiki.
! ----
! string $MetaDescription ''
! Enter a sentence or two that describes your wiki. This will be reported
! in a <meta> tag to aid search engines that index your wiki.
!
! For example, you might choose 'Wiki discussion site for the development
! and production of the ACME Widget project.'
! // $MetaDescription should be a sentence or two describing your wiki. This
! // is useful to aid search engines in indexing your wiki.
! ----
! noprompt_const TemplateDir 'template'
! // TemplateDir indicates what directory your wiki templates are located in.
! // You may use this to install other templates than the default template.
! ----
! noprompt_var $AdminEnabled 0
! // !!!WARNING!!!
! // If $AdminEnabled is set to 1, the script admin/index.php will be
accessible.
! // This allows administrators to lock pages and block IP addresses. If you
! // want to use this feature, YOU SHOULD FIRST BLOCK ACCESS TO THE admin/
! // DIRECTORY BY OTHER MEANS, such as Apache's authorization directives.
! // If you do not do so, any visitor to your wiki will be able to lock pages
! // and block others from accessing the wiki.
! // If $AdminEnabled is set to 0, administrator control will be disallowed.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: wiki/install configure.pl,1.1.1.1,1.2 create-db.pl,1.1.1.1,1.2 maint.pl,1.1.1.1,1.2 settings.cnf,1.1.1.1,1.2,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: wiki index.php,1.1.1.1,1.2 ChangeLog.txt,1.1.1.1,NONE INSTALL.txt,1.1.1.1,NONE LICENSE.txt,1.1.1.1,NONE NEWS.txt,1.1.1.1,NONE README.txt,1.1.1.1,NONE TODO.txt,1.1.1.1,NONE
- Next by Date:
[Phpgroupware-cvs] CVS: wiki/action admin.php,1.1.1.1,1.2 conflict.php,1.1.1.1,1.2 diff.php,1.1.1.1,1.2 edit.php,1.1.1.1,1.2 find.php,1.1.1.1,1.2 history.php,1.1.1.1,1.2 macro.php,1.1.1.1,1.2 prefs.php,1.1.1.1,1.2 preview.php,1.1.1.1,1.2 rss.php,1.1.1.1,1.2 save.php,1.1.1.1,1.2 style.php,1.1.1.1,1.2 view.php,1.1.1.1,1.2
- Previous by thread:
[Phpgroupware-cvs] CVS: wiki index.php,1.1.1.1,1.2 ChangeLog.txt,1.1.1.1,NONE INSTALL.txt,1.1.1.1,NONE LICENSE.txt,1.1.1.1,NONE NEWS.txt,1.1.1.1,NONE README.txt,1.1.1.1,NONE TODO.txt,1.1.1.1,NONE
- Next by thread:
[Phpgroupware-cvs] CVS: wiki/action admin.php,1.1.1.1,1.2 conflict.php,1.1.1.1,1.2 diff.php,1.1.1.1,1.2 edit.php,1.1.1.1,1.2 find.php,1.1.1.1,1.2 history.php,1.1.1.1,1.2 macro.php,1.1.1.1,1.2 prefs.php,1.1.1.1,1.2 preview.php,1.1.1.1,1.2 rss.php,1.1.1.1,1.2 save.php,1.1.1.1,1.2 style.php,1.1.1.1,1.2 view.php,1.1.1.1,1.2
- Index(es):