Zoph/Configuration/config.inc.php
< Zoph | Configuration
Debugging
editDEBUG
editDEBUG | Versions: v0.8 and before |
---|---|
Description: The DEBUG option was used to control debug output given by Zoph during execution. As of Zoph 0.8.1 this option has been replaced by LOG_ALWAYS and LOG_SUBJECT, which allow more granular control over what is displayed and what not. | |
Default: 0 | |
Options: 0: no debugging. 1 and up, show debugging information. | |
Example: define('DEBUG', 5); |
An extensive explanation of Zoph's logging system can be found in Logging in Zoph 0.8.1 and later.
LOG_ALWAYS
editLOG_ALWAYS | Versions: v0.8.1 and later |
---|---|
Description: This option controls how much debug information is showed. Zoph will show you the severity you configure and everything worse than that. So if you configure log::ERROR, you will see ERROR and FATAL messages and if you configure log::DEBUG, you will see all messages. | |
Default: log::FATAL | |
Options: See log severity below. | |
Example: define('LOG_ALWAYS', log::ERROR); |
LOG_SUBJECT
editLOG_SUBJECT | Versions: v0.8.1 and later |
---|---|
Description: This option, together with LOG_SEVERITY enables you to have granular control over which messages are displayed. With LOG_SUBJECT you configure on which subject you would like to see logging. | |
Default: log::NONE | |
Options: See log subjects below. You can combine subjects with | (or) and ~ (not). | |
Example:
Display all messages which indicate an error or a fatal error, regarding the translation of Zoph or images: define('LOG_SEVERITY', log::ERROR); define('LOG_SUBJECT', log::LANG | log::IMG); Display all messages, except debug-level messages, except those regarding SQL queries: define('LOG_SEVERITY', log::NOTIFY); define('LOG_SUBJECT', log::ALL | ~log::SQL); Display all messages, except those regarding redirects or the database connection: define('LOG_SEVERITY', log::DEBUG); define('LOG_SUBJECT', log::ALL ~(log::REDIRECT | log::DB));
|
LOG_SEVERITY
editLOG_SEVERITY | Versions: v0.8.1 and later |
---|---|
Description: This option, together with LOG_SUBJECT enables you to have granular control over which messages are displayed. With LOG_SEVERITY you configure how much debug information is showed. The difference with LOG_ALWAYS is, that the messages are only shown for the subject you have configured in LOG_SUBJECT. Zoph will show you the severity you configure and everything worse than that. So if you configure log::ERROR, you will see ERROR and FATAL messages and if you configure log::DEBUG, you will see all messages. | |
Default: log::NONE | |
Options: See log severity below. | |
Example: define('LOG_SEVERITY', log::NOTIFY); |
Log Severity
editlog::DEBUG | Debugging messages, Zoph gives information about what it's doing. |
---|---|
log::NOTIFY | Notification about something that is happening which is influencing Zoph's program flow |
log::WARN | Warning about something that is happening |
log::ERROR | Error condition, something has gone wrong, but Zoph can recover |
log::FATAL | Fatal error, something has gone wrong and Zoph needs to stop execution of the current script. |
log::NONE | Do not display any messages |
Log subjects
editlog::ALL | All messages |
---|---|
log::VARS | Messages regarding setting of variables |
log::LANG | Messages regarding the translation of Zoph |
log::LOGIN | Messages regarding the Login procedure |
log::REDIRECT | Messages regarding redirection |
log::DB | Messages regarding the database connection |
log::SQL | Messages regarding SQL Queries |
log::XML | Messages regarding XML creation |
log::IMG | Messages regarding image creation |
log::IMPORT | Messages regarding the import functions |
log::GENERAL | Other messages |
log::NONE | No messages. |
Resized image generation
editZoph automatically creates thumbnails and medium-sized ('mid') images during import. To influence this process, you can edit the following parameters:
THUMB_SIZE
editTHUMB_SIZE | Versions: All versions |
---|---|
Description: Maximum width or height of thumbnails | |
Default: 120 | |
Options: Maximum width/height in pixels | |
Example: define('THUMB_SIZE', 120); |
MID_SIZE
editMID_SIZE | Versions: All versions |
---|---|
Description: Maximum width or height of 'mid' sized images | |
Default: 480 | |
Options: Maximum width/height in pixels | |
Example: define('MID_SIZE', 480); |
THUMB_PREFIX
editTHUMB_PREFIX | Versions: All versions |
---|---|
Description: Prefix of the filenames for the thumbnails. | |
Default: thumb | |
Options: Do not make this string empty! | |
Example: define('THUMB_PREFIX', 'thumb'); |
MID_PREFIX
editMID_PREFIX | Versions: All versions |
---|---|
Description: Prefix of the filenames for the 'mid' sized images. | |
Default: thumb | |
Options: Do not make this string empty! | |
Example: define('MID_PREFIX', 'mid'); |
Database configuration
editBefore 0.8.2, the database settings were set in config.inc.php (for the web interface) and .zophrc (CLI interface), as of Zoph 0.8.2, these settings are all made in zoph.ini.