You can also edit some file to change some advanced configuration
parameters.
To change advance configuration parameters you must edit the following
files:
index.php |
The default main index file, here you can
change the debug/warning parameters and change setup parameters. |
wm3_config.php |
The database and main language configuration
file (generated after the setup, see "Installation"),
here you can change the database parameters and change the main
website language. |
wm3_advance_config.php |
The advance configuration file with some
other interesting advance parameters to change. |
1) Change setup/warning/debug parameters:
Edit the file "index.php" and find the line:
$webmatic3 = new webmatic3(WM3_cSETUP_ON,WM3_cWARNING_OFF,WM3_cDEBUG_OFF,'*'); |
This is the constructor of webmatic3 class, from here you can enable/disable
the setup, the debug mode and the warning for your website. You
can change the parameters as follow:
Parameter |
Value |
Description |
First parameter |
WM3_cSETUP_ON (default value) |
Enable the setup (you must enable the setup
when perform a Webmatic update or in the first Webmatic installation) |
WM3_cSETUP_OFF |
Disable the setup (if you do not have to
perform a Webmatic update or the first Webmatic installation
you must disable the setup for security reasons. If the setup
its disabled webmatic also run with more speed) |
Second paremeter |
WM3_cWARNING_ON |
Enable the warnings (the warnigs let you to
known if there are some non critical server configuration parameters
to fix, you can see also the warning during the "Installation") |
WM3_cWARNING_OFF (default value) |
Disable the warnings |
Third parameter |
WM3_cDEBUG_ON |
Enable the debug mode (enable the debug mode
if you want to develope some other features in Webmatic or to
test Webmatic) |
WM3_cDEBUG_OFF (default value) |
Disable the debug mode |
Fourth parameter |
'*' (default value) |
This parameter let you (if the setup its enabled) to specify
a single IP address that have access to setup. So, for security
reasons you can perform the setup only from a specified IP
address.
Example:
If you specify '80.66.88.10' only a client with the specified
ip can perform the setup.
If you specify '*' all the client have any ip address can
perform the setup.
|
After the editing save the edited file in your website folder (overwrite
the old "index.php" file).
2) Change database and main language configuration:
If you need, you can change any time the database configuration
from the original file "wm3_config.php" generated
at the end of setup (see "Installation"
for more informations).
If you edit the file "wm3_config.php" you can change
following parameters:
Parameter |
Description |
WM3_cCONFIG_DB_SERVER |
This is the mysql database server address
(this is a parameters give to you by the provider and can be
an IP or a string) |
WM3_cCONFIG_DB_USER |
This is the database user (this is a parameters
give to you by the provider) |
WM3_cCONFIG_DB_PASSWORD |
This is the database password (this is a
parameters give to you by the provider) |
WM3_cCONFIG_DB_NAME |
This is the database name (this is a parameters give to you
by the provider)
|
WM3_cCONFIG_DB_PREFIX |
This is the database prefix (its a string
and you can choose its value as you want, the database prefix
its useful when you want to use more then one copy of Webmatic
in the same database) |
WM3_cCONFIG_STARTING_LANGUAGE |
Is the website starting language (you can
change this integer value and put the corresponding language
number; '1' for english, '2' for italian etc.) |
After the editing save the edited file in your website folder (overwrite
the old "wm3_config.php" file).
3) Change advance parameters:
You can modify the default advance configuration to get some changes
in Webmatic.
If you edit the file "wm3_advance_config.php" you
can change following parameters:
Parameter |
Default value |
Description |
WM3_cPATH_CORE |
'core/' |
Paths used by Webmatic.
You can change the default Webmatic's folders organizazion by
change the default value of the paths parameters.
For example you can put all your website images when you want
simply changing the value of WM3_cPATH_IMAGES parameter. |
WM3_cPATH_CLASSES |
'core/classes/' |
WM3_cPATH_INCLUDE |
'core/include/' |
WM3_cPATH_LANGUAGES |
'core/languages/' |
WM3_cPATH_JAVASCRIPT |
'core/jscript/' |
WM3_cPATH_EXPANSION |
'core/expansion/' |
WM3_cPATH_TEMP |
'core/temp/' |
WM3_cPATH_SKINS |
'skins/' |
WM3_cPATH_DATA |
'data/' |
WM3_cPATH_MEDIA_ALBUM |
'data/media_albums/' |
WM3_cPATH_AVATARS |
'data/avatars/' |
WM3_cPATH_DOWNLOADS |
'data/downloads/' |
WM3_cPATH_ECOMMERCE |
'data/ecommerce/' |
WM3_cPATH_FLAGS |
'data/flags/' |
WM3_cPATH_ICONS |
'data/icons/' |
WM3_cPATH_IMAGES |
'data/images/' |
WM3_cPATH_LOGO |
'data/logo/' |
WM3_cPATH_EMOTICONS |
'data/emoticons/' |
WM3_cPATH_BANNERS |
'data/banners/' |
WM3_cPATH_SPECIAL |
'data/special/' |
WM3_cPATH_DOCS |
'docs/' |
WM3_cCONFIG_HOME_FILE |
'index.php' |
Webmatic uses these parameters as entry point for the various
areas (called stage).
For example WM3_cCONFIG_USER_FILE its the entry point of users
private area, WM3_cCONFIG_ADMIN_FILE its the entry point of
administrators private area etc.
Changing this parameters you can change the index file for
the varius areas (useful when you want to hide the index file
(entry point) for a certain area).
|
WM3_cCONFIG_USER_FILE |
'index.php' |
WM3_cCONFIG_ADMIN_FILE |
'index.php' |
WM3_cCONFIG_CHAT_FILE |
'index.php' |
WM3_cCONFIG_RSS_FEED_FILE |
'index.php' |
WM3_cCONFIG_BANNER_EXCHANGE_FILE |
'index.php' |
WM3_cCONFIG_SESSION_TIME |
300 |
This is the session expire time in seconds,
the default value its 300 seconds (5 minutes) |
WM3_cCONFIG_USE_TINY_MCE |
0 |
This parameter enable/disable the TinyMCE
html editor.
To use TinyMCE editor instead of standard Webmatic editor, you
must put 1 as value for this parameter, after you must download
the modified version of TinyMCE
from www.valarsoft.com
(Support->Expansions for Webmatic section), extract
all the files from the archive and copy the folder "tiny_mce"
in the "core\jscript" Webmatic's folder. |
WM3_cCONFIG_USE_SUPERUSER_DATABASE_MANAGEMENT |
0 |
This parameter enable/disable the superuser
database management.
If enabled only the superuser (from control panel) can access
to some advance backup/restore database functions. |
WM3_cCONFIG_USE_CAPTCHA |
1 |
This parameter enable/disable the CAPTCHA
control for some input forms. |
WM3_cCONFIG_USE_URL_REWRITE |
0 |
This parameter enable/disable the Webmatic
URL rewrite, useful for SEO (Search Engine Optimization). |
After the editing save the edited file in your website folder (overwrite
the old "wm3_advance_config.php" file). |