//=================== //Set ABSOLUTE URL to WebClientPrint.php file WebClientPrint::$webClientPrintAbsoluteUrl = Utils::getRoot() . '/lms/custom/webprint/WebClientPrint.php'; //WebClientPrint::$webClientPrintAbsoluteUrl = 'http://:'.$_SERVER['SCRIPT_NAME'] .'/lms/custom/webprint/WebClientPrint.php'; //Set wcpcache folder RELATIVE to WebClientPrint.php file //FILE WRITE permission on this folder is required!!! WebClientPrint::$wcpCacheFolder = 'wcpcache/'; //=================== // Clean built-in Cache // NOTE: Remove it if you implement your own cache system WebClientPrint::cacheClean(30); //in minutes // Process request $urlParts = parse_url($_SERVER['REQUEST_URI']); if (isset($urlParts['query'])) { if (Utils::strContains($urlParts['query'], WebClientPrint::WCP)) { WebClientPrint::processRequest($urlParts['query']); } } /** * WebClientPrint provides functions for registering the "WebClientPrint for PHP" solution * script code in PHP web pages as well as for processing client requests and managing the * internal cache. * * @author Neodynamic <http://neodynamic.com/support> * @copyright (c) 2016, Neodynamic SRL * @license http://neodynamic.com/eula Neodynamic EULA */ class WebClientPrint { const VERSION = '2.0.2016.223';