From 84167781ec5e13b7a4445493301d5ac6b4743c0b Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Sat, 9 Jul 2016 09:05:09 +0000 Subject: [PATCH] Fehlerkorrekturen nach LIVE-Gang --- inc/config.php | 2 +- inhalte/email.php | 2 +- pdf/ausist_pdf.php | 2 +- pdf/aussoll_pdf.php | 2 +- pdf/einist_pdf.php | 2 +- pdf/einsoll_pdf.php | 2 +- pdf/kontakt_pdf.php | 2 +- pdf/opost_pdf.php | 2 +- pdf/schrift_pdf.php | 2 +- pdf/track_pdf.php | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/inc/config.php b/inc/config.php index 5251f5c..45f2040 100644 --- a/inc/config.php +++ b/inc/config.php @@ -3,4 +3,4 @@ include "variablen.php"; include "konstanten.php"; include __DIR__ . "/../config/content_de.php"; -require_once('tcpdf/tcpdf.php'); \ No newline at end of file +require_once(__DIR__ . '/tcpdf/tcpdf.php'); \ No newline at end of file diff --git a/inhalte/email.php b/inhalte/email.php index b6590a7..18ac650 100644 --- a/inhalte/email.php +++ b/inhalte/email.php @@ -8,7 +8,7 @@ else { $text = $var; $var = $_SESSION['Firma']['Gruss']; - include __DIR__ . "../pdf/replace_gruss.php"; + include __DIR__ . "/../pdf/replace_gruss.php"; $text .= $var; $text .= "\n" . $_SESSION['Firma']['Email_Signatur']; echo "
\n"; diff --git a/pdf/ausist_pdf.php b/pdf/ausist_pdf.php index b5cdb2a..92d1dac 100644 --- a/pdf/ausist_pdf.php +++ b/pdf/ausist_pdf.php @@ -252,5 +252,5 @@ $pdf->SetFont('Helvetica','', 10); $pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.')." €", 0, 0, 'R'); */ -$file = "pdf/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf"; $pdf->Output($file, "F"); \ No newline at end of file diff --git a/pdf/aussoll_pdf.php b/pdf/aussoll_pdf.php index eaa5e10..4a10475 100644 --- a/pdf/aussoll_pdf.php +++ b/pdf/aussoll_pdf.php @@ -166,5 +166,5 @@ if (0 != $Sonst_Preis) $pdf->Write(4, "\n"); } -$file = "pdf/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf"; $pdf->Output($file, "F"); \ No newline at end of file diff --git a/pdf/einist_pdf.php b/pdf/einist_pdf.php index 55ede23..8a8921b 100644 --- a/pdf/einist_pdf.php +++ b/pdf/einist_pdf.php @@ -156,5 +156,5 @@ $pdf->SetFont('Helvetica', '', 10); $pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 0, 'R'); -$file = "pdf/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf"; $pdf->Output($file, "F"); \ No newline at end of file diff --git a/pdf/einsoll_pdf.php b/pdf/einsoll_pdf.php index d21025a..0755b4f 100644 --- a/pdf/einsoll_pdf.php +++ b/pdf/einsoll_pdf.php @@ -154,5 +154,5 @@ $pdf->SetFont('Helvetica', '', 10); $pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 0, 'R'); -$file = "pdf/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf"; $pdf->Output($file, "F"); \ No newline at end of file diff --git a/pdf/kontakt_pdf.php b/pdf/kontakt_pdf.php index 1a18b2f..4b07d8c 100644 --- a/pdf/kontakt_pdf.php +++ b/pdf/kontakt_pdf.php @@ -117,7 +117,7 @@ $pdf->Write(6, "\n"); $pdf->Cell(100, 4, "Datum, Unterschrift"); -$file = "pdf/" . PREFIX . "/kontakt/K_" . $nt['ID'] . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/kontakt/K_" . $nt['ID'] . ".pdf"; $pdf->Output($file, "F"); $var = $nttext['EMail']; diff --git a/pdf/opost_pdf.php b/pdf/opost_pdf.php index 99db42b..d18e6c1 100644 --- a/pdf/opost_pdf.php +++ b/pdf/opost_pdf.php @@ -128,5 +128,5 @@ $pdf->SetX(130); $pdf->Cell(70, 10, number_format($ntsum['Preis'] - $GesamtTeil, '2', ',', '.') . " €", 0, 0, 'R'); -$file = "pdf/" . PREFIX . "/oposten/O_" . date('Ymd') . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/oposten/O_" . date('Ymd') . ".pdf"; $pdf->Output($file, "F"); \ No newline at end of file diff --git a/pdf/schrift_pdf.php b/pdf/schrift_pdf.php index bf870f4..6d07b26 100644 --- a/pdf/schrift_pdf.php +++ b/pdf/schrift_pdf.php @@ -77,7 +77,7 @@ include __DIR__ . "/replace_gruss.php"; $pdf->SetFont('Helvetica', '', 10); $pdf->Write(4, "\n" . $var); -$file = "pdf/" . PREFIX . "/schrift/S_" . $nt['File_Name'] . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/schrift/S_" . $nt['File_Name'] . ".pdf"; $pdf->Output($file, "F"); $var = $nttext['EMail']; diff --git a/pdf/track_pdf.php b/pdf/track_pdf.php index 4efde8f..cbcd9bc 100644 --- a/pdf/track_pdf.php +++ b/pdf/track_pdf.php @@ -274,5 +274,5 @@ elseif ("offen" == $_POST['Suche']) } } -$file = "pdf/" . PREFIX . "/tracking/T_" . date('Ymd') . ".pdf"; +$file = __DIR__ . "/" . PREFIX . "/tracking/T_" . date('Ymd') . ".pdf"; $pdf->Output($file, "F"); \ No newline at end of file