Fix: upgrade tcpdf with some fix

This commit is contained in:
Regis Houssin 2011-06-25 18:40:59 +00:00
parent cd1d5a11f8
commit a4ae2ca8b6
3 changed files with 16 additions and 6 deletions

View File

@ -45,8 +45,13 @@ public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=
by
public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=false, $maxh=0, $valign='T', $fitcell=false) {
* Open tcpdf.php and find function getRandomSeed()
in this function change "getmypid()" by "mt_rand()"
* Open /tcpdf/config/tcpdf_config.php and add this function :
if (! function_exists('getmypid')) {
function getmypid() {
return rand(1,32768);
}
}
JSGANTT:

View File

@ -26,6 +26,14 @@
* @since 2004-10-27
*/
// DOLCHANGE RH
if (! function_exists('getmypid')) {
function getmypid() {
return rand(1,32768);
}
}
// END DOLCHANGE
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {

View File

@ -12089,10 +12089,7 @@ class TCPDF {
}
$seed .= uniqid('', true);
$seed .= rand();
// DOLCHANGE RH
//$seed .= getmypid();
$seed .= mt_rand();
// END DOLCHANGE
$seed .= getmypid();
$seed .= __FILE__;
$seed .= $this->bufferlen;
if (isset($_SERVER['REMOTE_ADDR'])) {