$v) { if (is_array($arr1[$k]) && is_array($arr2[$k])) { $d = arrayDiffKeyRecursive($arr1[$k], $arr2[$k]); if ($d) { $diff[$k] = $d; } } } return $diff; } ?> $value) { if (in_array($key, $keys)) { if ($keep_keys == true) { $returned[$key] = $value; } else { $returned[] = $value; } } } return $returned; } ?>sqlNum($sql) > 0) { $sql = $SQL->sqlAllAssoc($sql); foreach($sql as $v) { $id = $v['id']; $a[$id] = array( 'id'=>$v['id'], 'name'=>$v['name'], 'parent'=>$v['parent'], 'depth'=>$depth+1 ); $c_1 = count($a); $a = ID_COLLECTOR($table, $lng, $id, $a, ($depth+1) ); $c_2 = count($a); if($c_2 > $c_1) { $a[$id]['disabled'] = true; } else { $a[$id]['disabled'] = false; } } } return $a; } ?> $c) { $color[$k] = hexdec($c); } $bg = imagecreatetruecolor($w, $h); $bgColor = imagecolorallocate($bg, $color[0], $color[1], $color[2]); imagefill($bg, 0, 0, $bgColor); imagealphablending($bg, true); imagesavealpha($bg, true); imagecopy($bg, $img, 0, 0, 0, 0, $w, $h); $img = $bg; } imagejpeg($img, $full_name, (isset($quality['image_quality']) ? $quality['image_quality'] : $_CONFIG['image_quality'])); } foreach ($_CONFIG[$sizes] as $key => $value) { resize($filename, $folder, $value[0], $value[1], $key, $sizes, $as_png); } return ($return_full_name === true ? $full_name : $folder.$filename); } } else { return false; } } else { return false; } } else { return false; } } loadHTML($htmlcode); $linktags = $dom->getElementsByTagName('link'); $stylesheets = array(); foreach ($linktags as $lt) { foreach ($lt->attributes as $name => $attr) { if ($name == 'href' && strpos($attr->value, '.css') !== false) { $stylesheets[] = str_replace('DOMNamedNodeMap Object ( )', '', $attr->value); } } } $mpdf = new mPDF( 'utf-8', // mode - default '' 'A4', // format - A4, for example, default '' 0, // font size - default 0 '', // default font family 0, // margin_left 0, // margin right 0, // margin top 0, // margin bottom 0, // margin header 0, // margin footer 'P' // L - landscape, P - portrait ); // fajlba iras foreach ($stylesheets as &$stylesheet) { if (strpos($stylesheet, '://') === false) { $stylecode = file_get_contents($_CONFIG['url'] . '/' . $stylesheet); } $mpdf->WriteHTML( str_replace( array('"../', "'../", '(../'), array('"' . $_CONFIG['url'], "'" . $_CONFIG['url'], '(' . $_CONFIG['url']), $stylecode ), 1 ); } $mpdf->WriteHTML($htmlcode, 2); // fajlba mentes, ha igaz // kulonben csak megjelenitjuk legeneralt pdf fajlt if ($savetofile) { $mpdf->Output(_MAINPATH . '/' . $filename, 'F'); return $filename; } else { $mpdf->Output(); } exit; } ?>= $startROW){ for($z=0; $z<$stopCOL; $z++){ if(isset($data[$z])){ $tomb[$i][$z] = $data[$z]; } } } $i++; } return $tomb; }else{ return "CANTOPEN"; } } ?> $strlen) return false; return substr_compare($string, $test, -$testlen) === 0; } ?>