For compressing pages (if supported by browser) in the file includes/gzip.php defined class Gzip, which is automatically initialized each time the page.
void init () – Initiates compression. Output buffering is turned on, the necessary HTTP headers are detected and transmitted.
void do_gzip () – Provides compressed data, clears (erases) the output buffer and disables output buffering.
string ob_callback (string $buffer, string $phase) – Processes the output buffer.
string ob_gz_callback (string $buffer, string $phase) – Processes output buffer with data compression.
string minify_html (string $buffer) – HTML seal.
string minify_html_light (string $buffer) – Embedded HTML Seal Option.
Example:
Custom::inc('includes/gzip.php');
// start process of recording in the buffer
Gzip::init();
// ...
// program execution
// ...
// outputs the compressed data from the buffer
Gzip::do_gzip();
| Methods with the same name as their class will not be constructors in a future version of PHP; Markdown_Parser has a deprecated constructor #1 include_once() called at [/var/www/diafan/data/www/diafancms.com/modules/docs/docs.model.php:499] #2 Docs_model->prepare_text( For compressing pages (if supported by browser) in the file *includes/gzip.php* defined class *Gzip*, which is automatically initialized each time the page. ---!!!--- This class is a system and can ...) called at [/var/www/diafan/data/www/diafancms.com/modules/docs/docs.model.php:94] #3 Docs_model->show() called at [/var/www/diafan/data/www/diafancms.com/modules/docs/docs.php:29] #4 Docs->init() called at [/var/www/diafan/data/www/diafancms.com/includes/init.php:474] #5 Init->module() called at [/var/www/diafan/data/www/diafancms.com/includes/init.php:119] #6 Init->start() called at [/var/www/diafan/data/www/diafancms.com/index.php:62] | /var/www/diafan/data/www/diafancms.com/modules/docs/docs.model.php:499 |