Ignore:
Timestamp:
May 14, 2021, 2:00:23 PM (3 years ago)
Author:
roby
Message:

Aggiornamento per compatibilità con php7.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/votanti.php

    r344 r347  
    1010    die ("Non puoi accedere al file direttamente...");
    1111}
     12
     13require_once('inc/hpdf5/autoload.php');
     14use Spipu\Html2Pdf\Html2Pdf;
     15use Spipu\Html2Pdf\Exception\Html2PdfException;
     16use Spipu\Html2Pdf\Exception\ExceptionFormatter;
     17
    1218$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ?
    1319        $_GET : $_POST;
    14 
    15 
    1620
    1721$id_comune= (isset($param['id_comune'])) ? $param['id_comune']:$siteistat;
     
    521525                $stampa ="<div style=\"margin:0 auto;text-align:center;\">$datipdf $html</div>";
    522526               
    523                 require_once('inc/hpdf403/html2pdf.class.php');
    524                 $html2pdf = new HTML2PDF('L','A4', 'it');
     527                $html2pdf = new Html2Pdf('P','A4', 'it');
    525528                $html2pdf->WriteHTML($stampa, isset($_GET['vuehtml']));
    526529                $html2pdf->Output($nomefile);
Note: See TracChangeset for help on using the changeset viewer.