Add php files
This commit is contained in:
16
modules/EcmProductB2Bs/t.php
Executable file
16
modules/EcmProductB2Bs/t.php
Executable file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
ini_set('display_errors',1);
|
||||
|
||||
require_once('../../include/MPDF57/mpdf.php');
|
||||
|
||||
global $db;
|
||||
if($_GET['r']){
|
||||
$mpdf = new mPDF();
|
||||
$htmlbuffer = file_get_contents('./'.$_GET['r'].'');
|
||||
$mpdf->WriteHTML($htmlbuffer);
|
||||
|
||||
$mpdf->Output("w2synik.pdf", "D");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user