getCachePath () .'qr'. DIRECTORY_SEPARATOR); define('QR_LOG_DIR', Instance::singleton ()->getCachePath () .'qr'. DIRECTORY_SEPARATOR .'log'. DIRECTORY_SEPARATOR); define('QR_FIND_BEST_MASK', TRUE); define('QR_FIND_FROM_RANDOM', FALSE); define('QR_DEFAULT_MASK', 2); define('QR_PNG_MAXIMUM_SIZE', 1024); if (!is_dir (QR_CACHE_DIR) && !@mkdir (QR_CACHE_DIR, 0777)) throw new Exception ('Impossible to create directory ['. QR_CACHE_DIR .'].'); if (!is_dir (QR_LOG_DIR) && !@mkdir (QR_LOG_DIR, 0777)) throw new Exception ('Impossible to create directory ['. QR_LOG_DIR .'].'); /* End of Titan modifications */