| verzia 1.9, 2002/12/13 18:31:50 |
verzia 1.10, 2002/12/14 04:37:56 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.8 2002/12/13 02:55:15 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.9 2002/12/13 18:31:50 nepto Exp $ --> |
| |
|
| <sect1 id="configuration.mysql-options"> |
<sect1 id="configuration.mysql-options"> |
| <title id="configuration.mysql-options.title">Database connection</title> |
<title id="configuration.mysql-options.title">Database connection</title> |
| Riadok 523 $opts['triggers']['delete']['after'] = |
|
| Riadok 523 $opts['triggers']['delete']['after'] = |
|
| <title id="configuration.logging.title">Logging user actions</title> |
<title id="configuration.logging.title">Logging user actions</title> |
| <para> |
<para> |
| |
|
| You can log performed user actions into special "changelog" table. |
You can log performed user actions into special "changelog" table. You must have |
| |
table created and specified for &name; using <varname>$opts['logtable']</> |
| |
option. |
| |
|
| </para> |
</para> |
| <para> |
<para> |
| Riadok 537 $opts['logtable']= 'changelog'; |
|
| Riadok 539 $opts['logtable']= 'changelog'; |
|
| <example><title>Log table schema</title> |
<example><title>Log table schema</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| CREATE TABLE changelog ( |
CREATE TABLE changelog ( |
| updated timestamp(14) NOT NULL, |
updated timestamp(14) default NULL, |
| user varchar(50) default NULL, |
user varchar(50) default NULL, |
| host varchar(255) NOT NULL default '', |
host varchar(255) default NULL, |
| operation varchar(50) default NULL, |
operation varchar(50) default NULL, |
| tab varchar(50) default NULL, |
tab varchar(50) default NULL, |
| rowkey varchar(255) default NULL, |
rowkey varchar(255) default NULL, |
| col varchar(255) default NULL, |
col varchar(255) default NULL, |
| oldval blob, |
oldval blob default NULL, |
| newval blob |
newval blob default NULL |
| ); |
); |
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| |
|
| </para> |
</para> |
| |
<para> |
| |
|
| |
&name; provides also possibility of notifying about performed user actions by |
| |
sending e-mail. This feature configuration is done via |
| |
<varname>$opts['notify']</> array with following variables notation. |
| |
|
| |
<simplelist type=horiz columns=2> |
| |
<member><varname>$opts['notify']['prefix']</></><member> -- prefix of e-mail messages subject</> |
| |
<member><varname>$opts['notify']['insert']</></><member> -- e-mail address for insert action notification</> |
| |
<member><varname>$opts['notify']['update']</></><member> -- e-mail address for update action notification</> |
| |
<member><varname>$opts['notify']['delete']</></><member> -- e-mail address for delete action notification</> |
| |
<member><varname>$opts['notify']['all']</></><member> -- e-mail address for all actions notification</> |
| |
</simplelist> |
| |
|
| |
</para> |
| |
<para> |
| |
|
| |
Note that it is possible to specify either one e-mail address for particular |
| |
option by classical string, or multiple e-mail addresses using array. |
| |
|
| |
</para> |
| </sect1> |
</sect1> |
| |
|
| <sect1 id="configuration.languages"> |
<sect1 id="configuration.languages"> |