| version 1.8, 2003/02/07 12:45:50 |
version 1.9, 2003/02/12 19:23:35 |
|
|
| <!-- $Platon: phpWebFileManager/doc/sgml/usage.sgml,v 1.7 2003/02/07 12:40:07 nepto Exp $ --> |
<!-- $Platon: phpWebFileManager/doc/sgml/usage.sgml,v 1.8 2003/02/07 12:45:50 nepto Exp $ --> |
| |
|
| <chapter id="usage"> |
<chapter id="usage"> |
| <title>Usage</title> |
<title>Usage</title> |
| Line 29 will do the job. Installation is done. |
|
| Line 29 will do the job. Installation is done. |
|
| |
|
| <para> |
<para> |
| |
|
| Configuration variables are located in <filename>config.inc.php</filename> |
Configuration variables are located in <filename>config.inc.php</filename> file. |
| file. |
It is recommented to leave this file untouched and create |
| |
<filename>config-local.inc.php</> file, where your own configuration definitions |
| |
will be stored. If this file is present, it is included after |
| |
<filename>config.inc.php</> file. Described approach should bring you more easy |
| |
upgrading in future releases. |
| |
|
| </para> |
</para> |
| |
|
|
|
| Original variables property</bridgehead> |
Original variables property</bridgehead> |
| <para> |
<para> |
| |
|
| Determine if you want to use &name; as a standalone Web application |
Determine if you want to use &name; as a standalone web application or you want |
| or you want to include it in some bigger project. |
to include it in some bigger project. |
| |
|
| </para> |
</para> |
| <itemizedlist> |
<itemizedlist> |
| Line 59 or you want to include it in some bigger |
|
| Line 63 or you want to include it in some bigger |
|
| with focusing on <varname>$fm_cfg['origvars']</varname>. |
with focusing on <varname>$fm_cfg['origvars']</varname>. |
| &name; provides itself a lot of actions such as confirm of deletion |
&name; provides itself a lot of actions such as confirm of deletion |
| file and others. <varname>$fm_cfg['origvars']</varname> are |
file and others. <varname>$fm_cfg['origvars']</varname> are |
| variables, which will &name; keep, so each page reload will be |
variables, which will be kept by &name;, so each page reload will be |
| processed in right way by others components of your PHP script. |
processed in right way by others components of your PHP script. |
| |
|
| </para> |
</para> |
| Line 84 variable are described in <filename>conf |
|
| Line 88 variable are described in <filename>conf |
|
| |
|
| </para> |
</para> |
| |
|
| |
<bridgehead id="usage.configuration.header-and-footer"> |
| |
Header and footer redefinition</bridgehead> |
| |
|
| |
<para> |
| |
|
| |
There is a possibility to change header and footer of &name;. You may define in |
| |
your local configuration file two functions: <function>fm_header()</> and |
| |
<function>fm_footer()</>. These functions accept one parameter - associative |
| |
array with file some management variable values. Use <function>var_dump()</> to |
| |
debug this associative array to get idea what options are passed in. If these |
| |
function will not be defined in configuration file, default ones will be used. |
| |
They are located near beginning of <filename>index.php</> file and they could be |
| |
used as an inspiration for you own header and footer functions. |
| |
|
| |
</para> |
| |
|
| <bridgehead id="usage.configuration.file-upload">File upload</bridgehead> |
<bridgehead id="usage.configuration.file-upload">File upload</bridgehead> |
| <para> |
<para> |
| |
|