sqlayrc(5)SqLay Suitesqlayrc(5)

NAME

sqlayrc - configuration file for sqlay.

SYNOPSIS

.sqlayrc User configuration file for C/C++ SqLay tools.

sqlay_config.php Site configuration file for PHP SqLay framework.

DESCRIPTION

The .sqlayrc file allows you to customize the behaviour of sqlay C/C++ (ascii, ncurses, Qt) tools at startup. Basically, it allows you to store, as they are documented in the OPTIONS section of sqlsc and sqlds man pages, but without the leading dash, the command line options of the executables.

The options are supposed to be written in the beginning of the line (no leading space or tab or whatsoever). Options accepting an argument should be followed by one and only one tab or space, then by their argument, all on the same line. Empty lines or lines beginning with a # are ignored.

The sqlay_config.php file allows you to set site wide global variables for a SqLay site. It is a PHP file, so it accepts all PHP syntax and constructs.

Used global variables are documented beneath. You may wish to add your custom variables inside: they will be ignored by the SqLay framework itself, but not by your pages using it.

REFERENCE: .sqlayrc

See also sqlds(1) and sqlsc(1).

T.B.W.

REFERENCE: sqlay_config.php

sqlay_config.php is mainly used to define site wide global variables as standardized page header and footer, a global menu array and locale and database defaults. Nevertheless, those values may always be overwritten in pages as sqlay_config.php is parsed first as soon as any sqlay/*.php page is loaded by a require or include.

Global arrays:

The $sqlay[ ] array is the main source of global information and is known by each SqLay function. It is divided in sub-arrays for better readability.

Miscellaneous $sqlay[ ] array indices:

Application $sqlay['app'][ ] array indices:

This sub-array stores information over the general application behaviour.

Authentication $sqlay['auth'][ ] array indices:

This sub-array stores information over the authentication layer.

Database (input) $sqlay['in'][ ] array.

This sub-array stores information over the database connection.

Output $sqlay['out'][ ] array indices:

This sub-array stores information over the output options.

The $sqlay_menu[ ] array is kept separated from the main $sqlay array for performance reasons. It stores the content of the global menu and per-item options. It is immediately indexed on directory names.

$sqlay_menu[ <directory name> ][ ] array indices:

FILES

~./sqlayrc User global configuration file for SqLay C/C++ tools.

<include path>/sqlay_config.php PHP site wide configuration file (path needs to be in PHP path).

ENVIRONMENT

Besides from the configuration files, please note that some environment variables may be taken into account for SqLay tools (see their man pages).

NOTES

Pls understand that this is an alpha release and none of the executables is securized against buffer overflows, and so on.

As for the PHP framework, it will probably not damage your system but may damage your database or the integrity of your data.

While currently rather different from each other, documentation on both configuration files are kept in the same page as they are supposed to merge more and more in future releases.

BUGS

See the NOTE above for important security warnings.

AUTHOR

E. Lurquin <sqlay@hitud.net>

SEE ALSO

sqlay(1), sqlds(1), sqlsc(1), sqlay_php(3), the source code of SqLay PHP framework.




sqlayrc 0.8Dec 2008sqlayrc(5)