411 REFERENCE · Wikibooks
Zoph/Configuration/config.inc.php
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Debugging
DEBUG v0.8 and before 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. 0 0: no debugging. 1 and up, show debugging information. 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 v0.8.1 and later 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. log::FATAL See log severity below. define('LOG_ALWAYS', log::ERROR);
LOG_SUBJECT v0.8.1 and later 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. log::NONE See log subjects below. You can combine subjects with | (or) and ~ (not). </code>
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));
<code>
LOG_SEVERITY v0.8.1 and later 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. log::NONE See log severity below. define('LOG_SEVERITY', log::NOTIFY);
Log Severity
+Severity indicationslog::DEBUGDebugging messages, Zoph gives information about what it's doing.log::NOTIFYNotification about something that is happening which is influencing Zoph's program flowlog::WARNWarning about something that is happeninglog::ERRORError condition, something has gone wrong, but Zoph can recoverlog::FATALFatal error, something has gone wrong and Zoph needs to stop execution of the current script.log::NONEDo not display any messages
Log subjects
+Message subjectslog::ALLAll messageslog::VARSMessages regarding setting of variableslog::LANGMessages regarding the translation of Zophlog::LOGINMessages regarding the Login procedurelog::REDIRECTMessages regarding redirectionlog::DBMessages regarding the database connectionlog::SQLMessages regarding SQL Querieslog::XMLMessages regarding XML creationlog::IMGMessages regarding image creationlog::IMPORTMessages regarding the import functionslog::GENERALOther messageslog::NONENo messages.
Resized image generation
Zoph automatically creates thumbnails and medium-sized ('mid') images during import. To influence this process, you can edit the following parameters:
THUMB_SIZE All versions Maximum width or height of thumbnails 120 Maximum width/height in pixels define('THUMB_SIZE', 120);
MID_SIZE All versions Maximum width or height of 'mid' sized images 480 Maximum width/height in pixels define('MID_SIZE', 480);
THUMB_PREFIX All versions Prefix of the filenames for the thumbnails. thumb Do not make this string empty! define('THUMB_PREFIX', 'thumb');
MID_PREFIX All versions Prefix of the filenames for the 'mid' sized images. thumb Do not make this string empty! define('MID_PREFIX', 'mid');
Database configuration
Before 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.