Custom settings: custom.php

If you need some custom settings, there is a possibility add them into file pap_directory/scripts/custom.php. (add them into PHP block: <?php ?>  )
 
Turn off Mysql check
 
define('CHECK_MYSQL_DISABLED', '');
 
Mysql check will be skipped during install checking System Requirements.
 
 
Set display_errors on
 
error_reporting(E_ALL & ~E_STRICT);
ini_set('display_errors', true);
ini_set('display_startup_errors', true);
 
Display errors that occur on PHP server.
 
 
Enable engineConfig file chnages log
 
define('ENABLE_ENGINECONFIG_LOG', '');
 
This enables loging of changes to engineconfig.php file. Prerequisites: Log level must be set to Information and above.
 
Set mail header encoding to base64
 
define('MAIL_HEADER_ENCODING_BASE64', '');
 
This set header encoding of sending mails to base64, default encoding is quoted-printable.
 
Increase task memory offset
 
define('TASK_MEMORY_SAFE_OFFSET', 5242880);
 
This set memory offset to 5 MB (default is 2 MB). This size of memory have to be free, before continuing task.
It is needed if merchant has many of affiliates and cron job creates for them daily/monthly/weekly reports and you get error message: Allowed memory size of 134217728 bytes exhausted.

Convert symbolic paths to real paths

define('CONVERT_TO_REAL_PATHS', '');

This will solve problems of PAP in combination with XCache.
 
Use secure license validation connection
 
define('SECURE_VALIDATION_CONNECTION', '');
 
If you have problem with license validation because your server cannot connect our server for license validation via non secure url, but secure connection is allowed. This enables using secure url.
×