Ersetzen der FPDF-Library durch TCPDF und Code-Formatierung

This commit is contained in:
2016-07-06 22:04:12 +00:00
parent 5665bcbd3b
commit 715cb62aa9
515 changed files with 110799 additions and 24957 deletions

View File

@@ -1,19 +1,17 @@
<?php
chdir('tmp');
$uploadfile = "./".$_SESSION['TID']."_".PREFIX.".exe";
move_uploaded_file($_FILES['Datei']['tmp_name'], $uploadfile);
$datei = "./".$_SESSION['TID']."_".PREFIX.".php";
$handle = fopen($uploadfile, 'r');
$crypt = fread($handle, filesize($uploadfile));
fclose($uploadfile);
$content = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5(PREFIX), $crypt, MCRYPT_MODE_CBC);
$inhalt = explode("-->Ende_dieser_Datei<--", $content);
$handle = fopen($datei, 'w+');
fwrite($handle, $inhalt[0]);
fclose($datei);
chdir('../');
include "tmp/".$_SESSION['TID']."_".PREFIX.".php";
?>
<?php
chdir('tmp');
$uploadfile = "./" . $_SESSION['TID'] . "_" . PREFIX . ".exe";
move_uploaded_file($_FILES['Datei']['tmp_name'], $uploadfile);
$datei = "./" . $_SESSION['TID'] . "_" . PREFIX . ".php";
$handle = fopen($uploadfile, 'r');
$crypt = fread($handle, filesize($uploadfile));
fclose($handle);
$content = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5(PREFIX), $crypt, MCRYPT_MODE_CBC);
$inhalt = explode("-->Ende_dieser_Datei<--", $content);
$handle = fopen($datei, 'w+');
fwrite($handle, $inhalt[0]);
fclose($handle);
chdir('../');
include "tmp/" . $_SESSION['TID'] . "_" . PREFIX . ".php";