1.28 kiriwrite_settings_edit

kiriwrite_settings_edit will edit the settings in Kiriwrite and write the new settings to the configuration file.

kiriwrite_settings_edit will return data that is intended for kiriwrite_output_page.

Parameters:

kiriwrite_settings_edit(options);

Usage:

$pagedata = kiriwrite_settings_edit({ DatabaseDirectory => “db”, OutputDirectory => “output”, ImagesURIPath => “/images/kiriwrite”, DateTimeFormat => “DD/MM/YY (hh:mm:ss)”, SystemLanguage => “en-GB”, PresentationModule => “HTML4S”, TextAreaCols => 50, TextAreaRows => 10, DatabaseModule => “SQLite”, DatabaseServer => “localhost”, DatabasePort => “3306”, DatabaseProtocol => “tcp”, DatabaseSQLDatabase => “database”, DatabaseUsername => “username”, DatabasePasswordKeep => 0, DatabasePassword => “password”, DatabaseTablePrefix = “kiridev” });

options
Specifies a hash listing the new settings. This is required when editing the settings and all settings are needed.

Value Description
DatabaseDirectory Specifies the database directory to use.
OutputDirectory Specifies the output directory to use.
ImagesURIPath Specifies the URI path of the images directory.
DateTimeFormat Specifies the date and time format that should be used.
SystemLanguage Specifies the language that Kiriwrite will use.
PresentationModule Specifies the presentation module in Kiriwrite to use.
TextAreaCols Specifies the width of the text area.
TextAreaRows Specifies the height of the text area.
DatabaseModule Specifies the database module in Kiriwrite to use.

The following settings are for the server-based database modules:

Value Description
DatabaseServer Specifies the location of the database server.
DatabasePort Specifies the port of the database server.
DatabaseProtocol Specifies the protocol to use with the database server.
DatabaseSQLDatabase Specifies the database name to use.
DatabaseUsername Specifies the database username to use.
DatabasePasswordKeep Specifies if the current database password should be kept.
DatabasePassword Specifies the database password to use.
DatabaseTablePrefix Specifies the table prefix to use for the tables used in Kiriwrite when using a server-based database module.