MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/hrms_patroniss_com/application/helpers/dompdf_helper.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
function pdf_create($html, $filename='', $stream=TRUE) 
{
    require_once(APPPATH."helpers/dompdf/dompdf_config.inc.php");
	// need to enable magic quotes for the 
	$magic_quotes_enabled = get_magic_quotes_runtime();
    if(!$magic_quotes_enabled)
    {
    	ini_set("magic_quotes_runtime", true);
    }
    
    $dompdf = new DOMPDF();
    $dompdf->load_html($html);
    $dompdf->render();
    ini_set("magic_quotes_runtime", $magic_quotes_enabled);

    if ($stream) {
        $dompdf->stream($filename.".pdf");
    } else {
        return $dompdf->output();
    }
}
?>