diff --git a/admin/case_report.php b/admin/case_report.php
index bd2d4bb..8b4a823 100644
--- a/admin/case_report.php
+++ b/admin/case_report.php
@@ -1,4 +1,6 @@
prepare('SELECT c.*, cat.name_en as category_name FROM cases c JOIN categories cat ON c.category_id = cat.id WHERE c.id = ?');
+$stmt = $pdo->prepare('SELECT c.*, cat.name_en as category_name, cat.name_ar as category_name_ar FROM cases c JOIN categories cat ON c.category_id = cat.id WHERE c.id = ?');
$stmt->execute([$case_id]);
$case = $stmt->fetch(PDO::FETCH_ASSOC);
@@ -31,22 +33,115 @@ $logs_stmt = $pdo->prepare('SELECT al.*, u.email FROM audit_logs al LEFT JOIN us
$logs_stmt->execute([$case_id]);
$audit_logs = $logs_stmt->fetchAll(PDO::FETCH_ASSOC);
+// ####################################################################################
+// ## Fake Arabic Class for RTL text
+// ####################################################################################
+class PDF_Arabic extends FPDF {
+ protected $CurrentFont;
+
+ function __construct($orientation='P', $unit='mm', $size='A4') {
+ parent::__construct($orientation, $unit, $size);
+ $this->AddFont('Amiri','','amiri.php');
+ $this->AddFont('Amiri','B','amirib.php');
+ }
+
+ function Write($h, $txt, $link='', $fill=false, $align='') {
+ $txt = $this->Convert_ar ($txt);
+ parent::Write($h, $txt, $link, $fill, $align);
+ }
+
+ function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') {
+ $txt = $this->Convert_ar ($txt);
+ parent::Cell($w, $h, $txt, $border, $ln, $align, $fill, $link);
+ }
+
+ function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false) {
+ $txt = $this->Convert_ar ($txt);
+ parent::MultiCell($w, $h, $txt, $border, $align, $fill);
+ }
+
+ function Convert_ar($txt) {
+ $p = $this->GetStringWidth($txt);
+ $p = ($this->w - $p) /2;
+ $nb = strlen($txt);
+ $i = 0;
+ $j = 0;
+ $l = 0;
+ $ns = 0;
+ $sep = '-';
+ $w = '';
+ $len = 0;
+ $h = $this->CurrentFont['h'];
+ while ($i < $nb) {
+ $c = $txt[$i];
+ if ($c == '(') {
+ $i++;
+ $j = $i;
+ while ($i < $nb && $txt[$i] != ')')
+ $i++;
+ $w .= substr($txt, $j, $i - $j) . ' ';
+ $i++;
+ continue;
+ } elseif ($c == ')') {
+ $i++;
+ continue;
+ }
+ if (ord($c) < 192) {
+ if ($c == ' ') {
+ if ($l > 0) {
+ $w .= $this->sub_str($txt, $ns, $l) . $sep;
+ $ns = $i + 1;
+ $l = 0;
+ } else {
+ $ns++;
+ }
+ } else
+ $l++;
+ $i++;
+ }
+ else {
+ $i += 2;
+ $l += 2;
+ }
+ }
+ if ($l > 0)
+ $w .= $this->sub_str($txt, $ns, $l);
+ $this->rtl = false;
+ return $w;
+ }
+
+ function sub_str($str, $from, $len) {
+ $s = '';
+ $i = $from;
+ while ($i < $from + $len) {
+ if (ord($str[$i]) < 128)
+ $s .= $str[$i++];
+ else {
+ $s .= $str[$i++] . $str[$i++];
+ }
+ }
+ return $s;
+ }
+
+}
+
+
// PDF Generation Class
-class PDF extends FPDF
+class PDF extends PDF_Arabic
{
function Header() {
if (file_exists('../assets/images/logo_1770967720.jpg')) {
$this->Image('../assets/images/logo_1770967720.jpg', 10, 6, 30);
}
- $this->SetFont('Arial', 'B', 15);
+ $this->SetFont('Amiri', 'B', 15);
$this->Cell(80);
- $this->Cell(30, 10, 'Case Report', 0, 0, 'C');
+ $this->Cell(30, 10, __('Case Report'), 0, 0, 'C');
$this->Ln(20);
}
function Footer() {
$this->SetY(-15);
- $this->SetFont('Arial', 'I', 8);
- $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
+ $this->SetFont('Amiri', 'B', 8);
+ $this->Cell(0, 10, __('Page') . ' ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
}
}
@@ -55,52 +150,68 @@ function generate_pdf($case, $donations, $audit_logs)
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
- $pdf->SetFont('Times', '', 12);
-
+ $pdf->SetFont('Amiri', '', 12);
+
+ // Calculate total donations
+ $total_donations = 0;
+ foreach ($donations as $donation) {
+ if ($donation['status'] === 'completed') {
+ $total_donations += $donation['amount'];
+ }
+ }
+
// Case Details
- $pdf->SetFont('Arial', 'B', 16);
- $pdf->Cell(0, 10, 'Case Details', 0, 1, 'L');
- $pdf->SetFont('Arial', '', 12);
- $pdf->Cell(40, 10, 'Case ID:', 0, 0); $pdf->Cell(0, 10, $case['id'], 0, 1);
- $pdf->Cell(40, 10, 'Title:', 0, 0); $pdf->Cell(0, 10, $case['title_en'], 0, 1);
- $pdf->Cell(40, 10, 'Category:', 0, 0); $pdf->Cell(0, 10, $case['category_name'], 0, 1);
- $pdf->Cell(40, 10, 'Goal Amount:', 0, 0); $pdf->Cell(0, 10, 'OMR ' . number_format($case['goal'], 3), 0, 1);
- $pdf->Cell(40, 10, 'Raised Amount:', 0, 0); $pdf->Cell(0, 10, 'OMR ' . number_format($case['raised'], 3), 0, 1);
- $pdf->Cell(40, 10, 'Status:', 0, 0); $pdf->Cell(0, 10, ucfirst($case['status']), 0, 1);
+ $pdf->SetFont('Amiri', 'B', 16);
+ $pdf->Cell(0, 10, __('Case Details'), 0, 1, 'R');
+ $pdf->SetFont('Amiri', '', 12);
+ $pdf->Cell(40, 10, __('Case ID:'), 0, 0,'R'); $pdf->Cell(0, 10, $case['id'], 0, 1, 'R');
+ $pdf->Cell(40, 10, __('Title:'), 0, 0, 'R'); $pdf->Cell(0, 10, (get_current_lang() === 'ar' ? $case['title_ar'] : $case['title_en']), 0, 1, 'R');
+ $pdf->Cell(40, 10, __('Category:'), 0, 0,'R'); $pdf->Cell(0, 10, (get_current_lang() === 'ar' ? $case['category_name_ar'] : $case['category_name']), 0, 1, 'R');
+ $pdf->Cell(40, 10, __('Goal Amount:'), 0, 0,'R'); $pdf->Cell(0, 10, __('OMR') . ' ' . number_format($case['goal'], 3), 0, 1, 'R');
+ $pdf->Cell(40, 10, __('Raised Amount:'), 0, 0,'R'); $pdf->Cell(0, 10, __('OMR') . ' ' . number_format($case['raised'], 3), 0, 1, 'R');
+ $pdf->Cell(40, 10, __('Total Collected:'), 0, 0,'R'); $pdf->Cell(0, 10, __('OMR') . ' ' . number_format($total_donations, 3), 0, 1, 'R');
+ $pdf->Cell(40, 10, __('Status:'), 0, 0,'R'); $pdf->Cell(0, 10, __($case['status']), 0, 1, 'R');
$pdf->Ln(10);
// Donations
- $pdf->SetFont('Arial', 'B', 16);
- $pdf->Cell(0, 10, 'Donations', 0, 1, 'L');
- $pdf->SetFont('Arial', 'B', 10);
- $pdf->Cell(25, 7, 'ID', 1, 0, 'C'); $pdf->Cell(50, 7, 'Donor', 1, 0, 'C'); $pdf->Cell(35, 7, 'Amount', 1, 0, 'C'); $pdf->Cell(40, 7, 'Date', 1, 0, 'C'); $pdf->Cell(30, 7, 'Status', 1, 1, 'C');
- $pdf->SetFont('Arial', '', 10);
+ $pdf->SetFont('Amiri', 'B', 16);
+ $pdf->Cell(0, 10, __('Donations'), 0, 1, 'R');
+ $pdf->SetFont('Amiri', 'B', 10);
+ $pdf->Cell(25, 7, __('ID'), 1, 0, 'C');
+ $pdf->Cell(50, 7, __('Donor'), 1, 0, 'C');
+ $pdf->Cell(35, 7, __('Amount'), 1, 0, 'C');
+ $pdf->Cell(40, 7, __('Date'), 1, 0, 'C');
+ $pdf->Cell(30, 7, __('Status'), 1, 1, 'C');
+ $pdf->SetFont('Amiri', '', 10);
if (empty($donations)) {
- $pdf->Cell(180, 10, 'No donations for this case.', 1, 1, 'C');
+ $pdf->Cell(180, 10, __('No donations for this case.'), 1, 1, 'C');
} else {
foreach ($donations as $donation) {
$pdf->Cell(25, 7, $donation['id'], 1, 0, 'C');
- $pdf->Cell(50, 7, htmlspecialchars($donation['donor_name']), 1, 0, 'L');
- $pdf->Cell(35, 7, 'OMR ' . number_format($donation['amount'], 3), 1, 0, 'R');
+ $pdf->Cell(50, 7, htmlspecialchars($donation['donor_name']), 1, 0, 'R');
+ $pdf->Cell(35, 7, __('OMR') . ' ' . number_format($donation['amount'], 3), 1, 0, 'R');
$pdf->Cell(40, 7, $donation['created_at'], 1, 0, 'C');
- $pdf->Cell(30, 7, ucfirst($donation['status']), 1, 1, 'C');
+ $pdf->Cell(30, 7, __($donation['status']), 1, 1, 'C');
}
}
$pdf->Ln(10);
// History
- $pdf->SetFont('Arial', 'B', 16);
- $pdf->Cell(0, 10, 'Case History', 0, 1, 'L');
- $pdf->SetFont('Arial', 'B', 10);
- $pdf->Cell(20, 7, 'Log ID', 1, 0, 'C'); $pdf->Cell(30, 7, 'User', 1, 0, 'C'); $pdf->Cell(80, 7, 'Action', 1, 0, 'C'); $pdf->Cell(50, 7, 'Timestamp', 1, 1, 'C');
- $pdf->SetFont('Arial', '', 9);
+ $pdf->SetFont('Amiri', 'B', 16);
+ $pdf->Cell(0, 10, __('Case History'), 0, 1, 'R');
+ $pdf->SetFont('Amiri', 'B', 10);
+ $pdf->Cell(20, 7, __('Log ID'), 1, 0, 'C');
+ $pdf->Cell(30, 7, __('User'), 1, 0, 'C');
+ $pdf->Cell(80, 7, __('Action'), 1, 0, 'C');
+ $pdf->Cell(50, 7, __('Timestamp'), 1, 1, 'C');
+ $pdf->SetFont('Amiri', '', 9);
if (empty($audit_logs)) {
- $pdf->Cell(180, 10, 'No history for this case.', 1, 1, 'C');
+ $pdf->Cell(180, 10, __('No history for this case.'), 1, 1, 'C');
} else {
foreach ($audit_logs as $log) {
$pdf->Cell(20, 7, $log['id'], 1, 0, 'C');
$pdf->Cell(30, 7, htmlspecialchars($log['email']), 1, 0, 'C');
- $pdf->Cell(80, 7, htmlspecialchars($log['action']), 1, 0, 'L');
+ $pdf->Cell(80, 7, htmlspecialchars($log['action']), 1, 0, 'R');
$pdf->Cell(50, 7, $log['created_at'], 1, 1, 'C');
}
}
@@ -152,42 +263,44 @@ $is_rtl = (get_current_lang() === 'ar');
- Case Report - = htmlspecialchars($case['title_en']) ?>
+ = __('Case Report') ?> - = htmlspecialchars((get_current_lang() === 'ar' ? $case['title_ar'] : $case['title_en'])) ?>
-
+
-
Case Report: = htmlspecialchars($case['title_en']) ?>
+
= __('Case Report') ?>: = htmlspecialchars((get_current_lang() === 'ar' ? $case['title_ar'] : $case['title_en'])) ?>
= $email_msg ?>
diff --git a/admin/i18n.php b/admin/i18n.php
index ecee02f..efb1bd8 100644
--- a/admin/i18n.php
+++ b/admin/i18n.php
@@ -200,6 +200,27 @@ $translations = [
'Quick Links' => 'Quick Links',
'View All' => 'View All',
'view_website' => 'View Website',
+ 'Case Report' => 'Case Report',
+ 'Page' => 'Page',
+ 'Case Details' => 'Case Details',
+ 'Case ID:' => 'Case ID:',
+ 'Title:' => 'Title:',
+ 'Category:' => 'Category:',
+ 'Goal Amount:' => 'Goal Amount:',
+ 'Raised Amount:' => 'Raised Amount:',
+ 'Total Collected:' => 'Total Collected:',
+ 'Status:' => 'Status:',
+ 'Case History' => 'Case History',
+ 'Log ID' => 'Log ID',
+ 'User' => 'User',
+ 'Action' => 'Action',
+ 'Timestamp' => 'Timestamp',
+ 'No history for this case.' => 'No history for this case.',
+ 'No donations for this case.' => 'No donations for this case.',
+ 'ID' => 'ID',
+ 'Donor' => 'Donor',
+ 'Amount' => 'Amount',
+ 'Date' => 'Date',
],
'ar' => [
'about_us_page' => 'صفحة من نحن',
@@ -388,6 +409,27 @@ $translations = [
'Quick Links' => 'روابط سريعة',
'View All' => 'عرض الكل',
'view_website' => 'عرض الموقع',
+ 'Case Report' => 'تقرير الحالة',
+ 'Page' => 'صفحة',
+ 'Case Details' => 'تفاصيل الحالة',
+ 'Case ID:' => 'رقم الحالة:',
+ 'Title:' => 'العنوان:',
+ 'Category:' => 'الفئة:',
+ 'Goal Amount:' => 'المبلغ المستهدف:',
+ 'Raised Amount:' => 'المبلغ المجمع:',
+ 'Total Collected:' => 'إجمالي المبلغ المجمع:',
+ 'Status:' => 'الحالة:',
+ 'Case History' => 'سجل الحالة',
+ 'Log ID' => 'رقم السجل',
+ 'User' => 'المستخدم',
+ 'Action' => 'الإجراء',
+ 'Timestamp' => 'الوقت',
+ 'No history for this case.' => 'لا يوجد سجل لهذه الحالة.',
+ 'No donations for this case.' => 'لا توجد تبرعات لهذه الحالة.',
+ 'ID' => 'الرقم',
+ 'Donor' => 'المتبرع',
+ 'Amount' => 'المبلغ',
+ 'Date' => 'التاريخ',
]
];
@@ -404,4 +446,4 @@ function get_current_lang() {
function is_rtl() {
global $is_rtl;
return $is_rtl;
-}
\ No newline at end of file
+}
diff --git a/admin/index.php b/admin/index.php
index 8add576..49b75f9 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -56,7 +56,6 @@ $is_rtl = (get_current_lang() === 'ar');
-
@@ -164,31 +163,38 @@ $is_rtl = (get_current_lang() === 'ar');
+
diff --git a/cookie.txt b/cookie.txt
new file mode 100644
index 0000000..74274b9
--- /dev/null
+++ b/cookie.txt
@@ -0,0 +1,5 @@
+# Netscape HTTP Cookie File
+# https://curl.se/docs/http-cookies.html
+# This file was generated by libcurl! Edit at your own risk.
+
+localhost FALSE / FALSE 0 ORG_ADMIN_SESS oqflt81t43jlda16aqpe08h5mm
diff --git a/includes/fpdf/font/amiri.php b/includes/fpdf/font/amiri.php
new file mode 100644
index 0000000..1109152
--- /dev/null
+++ b/includes/fpdf/font/amiri.php
@@ -0,0 +1,26 @@
+1124,'Descent'=>-634,'CapHeight'=>646,'Flags'=>32,'FontBBox'=>'[-438 -900 11467 1815]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>364);
+$up = -512;
+$ut = 50;
+$cw = array(
+ chr(0)=>364,chr(1)=>364,chr(2)=>364,chr(3)=>364,chr(4)=>364,chr(5)=>364,chr(6)=>364,chr(7)=>364,chr(8)=>364,chr(9)=>364,chr(10)=>364,chr(11)=>364,chr(12)=>364,chr(13)=>364,chr(14)=>364,chr(15)=>364,chr(16)=>364,chr(17)=>364,chr(18)=>364,chr(19)=>364,chr(20)=>364,chr(21)=>364,
+ chr(22)=>364,chr(23)=>364,chr(24)=>364,chr(25)=>364,chr(26)=>364,chr(27)=>364,chr(28)=>364,chr(29)=>364,chr(30)=>364,chr(31)=>364,' '=>364,'!'=>364,'"'=>364,'#'=>364,'$'=>364,'%'=>364,'&'=>364,'\''=>364,'('=>364,')'=>364,'*'=>364,'+'=>364,
+ ','=>364,'-'=>364,'.'=>364,'/'=>364,'0'=>364,'1'=>364,'2'=>364,'3'=>364,'4'=>364,'5'=>364,'6'=>364,'7'=>364,'8'=>364,'9'=>364,':'=>364,';'=>364,'<'=>364,'='=>364,'>'=>364,'?'=>364,'@'=>364,'A'=>364,
+ 'B'=>364,'C'=>364,'D'=>364,'E'=>364,'F'=>364,'G'=>364,'H'=>364,'I'=>364,'J'=>364,'K'=>364,'L'=>364,'M'=>364,'N'=>364,'O'=>364,'P'=>364,'Q'=>364,'R'=>364,'S'=>364,'T'=>364,'U'=>364,'V'=>364,'W'=>364,
+ 'X'=>364,'Y'=>364,'Z'=>364,'['=>364,'\\'=>364,']'=>364,'^'=>364,'_'=>364,'`'=>364,'a'=>364,'b'=>364,'c'=>364,'d'=>364,'e'=>364,'f'=>364,'g'=>364,'h'=>364,'i'=>364,'j'=>364,'k'=>364,'l'=>364,'m'=>364,
+ 'n'=>364,'o'=>364,'p'=>364,'q'=>364,'r'=>364,'s'=>364,'t'=>364,'u'=>364,'v'=>364,'w'=>364,'x'=>364,'y'=>364,'z'=>364,'{'=>364,'|'=>364,'}'=>364,'~'=>364,chr(127)=>364,chr(128)=>364,chr(129)=>364,chr(130)=>364,chr(131)=>364,
+ chr(132)=>364,chr(133)=>364,chr(134)=>364,chr(135)=>364,chr(136)=>364,chr(137)=>364,chr(138)=>364,chr(139)=>364,chr(140)=>364,chr(141)=>364,chr(142)=>364,chr(143)=>364,chr(144)=>364,chr(145)=>364,chr(146)=>364,chr(147)=>364,chr(148)=>364,chr(149)=>364,chr(150)=>364,chr(151)=>364,chr(152)=>364,chr(153)=>364,
+ chr(154)=>364,chr(155)=>364,chr(156)=>364,chr(157)=>364,chr(158)=>364,chr(159)=>364,chr(160)=>364,chr(161)=>364,chr(162)=>364,chr(163)=>364,chr(164)=>364,chr(165)=>364,chr(166)=>364,chr(167)=>364,chr(168)=>364,chr(169)=>364,chr(170)=>364,chr(171)=>364,chr(172)=>364,chr(173)=>364,chr(174)=>364,chr(175)=>364,
+ chr(176)=>364,chr(177)=>364,chr(178)=>364,chr(179)=>364,chr(180)=>364,chr(181)=>364,chr(182)=>364,chr(183)=>364,chr(184)=>364,chr(185)=>364,chr(186)=>364,chr(187)=>364,chr(188)=>364,chr(189)=>364,chr(190)=>364,chr(191)=>364,chr(192)=>364,chr(193)=>364,chr(194)=>364,chr(195)=>364,chr(196)=>364,chr(197)=>364,
+ chr(198)=>364,chr(199)=>364,chr(200)=>364,chr(201)=>364,chr(202)=>364,chr(203)=>364,chr(204)=>364,chr(205)=>364,chr(206)=>364,chr(207)=>364,chr(208)=>364,chr(209)=>364,chr(210)=>364,chr(211)=>364,chr(212)=>364,chr(213)=>364,chr(214)=>364,chr(215)=>364,chr(216)=>364,chr(217)=>364,chr(218)=>364,chr(219)=>364,
+ chr(220)=>364,chr(221)=>364,chr(222)=>364,chr(223)=>364,chr(224)=>364,chr(225)=>364,chr(226)=>364,chr(227)=>364,chr(228)=>364,chr(229)=>364,chr(230)=>364,chr(231)=>364,chr(232)=>364,chr(233)=>364,chr(234)=>364,chr(235)=>364,chr(236)=>364,chr(237)=>364,chr(238)=>364,chr(239)=>364,chr(240)=>364,chr(241)=>364,
+ chr(242)=>364,chr(243)=>364,chr(244)=>364,chr(245)=>364,chr(246)=>364,chr(247)=>364,chr(248)=>364,chr(249)=>364,chr(250)=>364,chr(251)=>364,chr(252)=>364,chr(253)=>364,chr(254)=>364,chr(255)=>364);
+$enc = 'cp1256';
+$diff = '32 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef';
+$uv = array(0=>0);
+$file = 'amiri.z';
+$originalsize = 3352;
+$subsetted = true;
+?>
diff --git a/includes/fpdf/font/amiri.ttf b/includes/fpdf/font/amiri.ttf
new file mode 100644
index 0000000..14dfa0d
Binary files /dev/null and b/includes/fpdf/font/amiri.ttf differ
diff --git a/includes/fpdf/font/amiri.z b/includes/fpdf/font/amiri.z
new file mode 100644
index 0000000..9e1d3c7
--- /dev/null
+++ b/includes/fpdf/font/amiri.z
@@ -0,0 +1,9 @@
+xWoe?o=`0cm:`hJWcD~WھD1^?w1zޑ`B7 x!12=9o?1Ʒywssd.N^
+fvv48_+^xGKy;Q"D%0&+O>\6
+Wq
+T:eԇK5iǠ?&];ֶz#_/Onyc/;"8O;_qD<7}#Ʀ0yDڢ߽Ͻy5]uk_[@*5|4}%oz䂟Qdz}u:*6 ӯZo5졽t[я}t~<@,%XhuJ l- k戀!xf7zKGqo-U/e쥄B(W~Kr$[ , `/%jOtE7iisZ I
*SJBeM!xMKcSZ:H+Xz,i
k 5A^t&+BOKQbr`ml_&dq!"+h %:CIF3J\FD5v-5,Nϒ)jf2gƛe;Me=P9N>
+e9en[n3kZE3wg"qG8[
?W13X^Z~t[NpfZR5|m5y?,9hlٵV
x
{E冮I9Ǯ씹ny{U:26wod
+uĢsP+Z('~/\o\Xd'|-iܘ*`Sr52'_z},/Yy>F[Cm
+u[HpG~}FijE*UL-ZUjY uӐ<
+NBs
댺U5ͼQHc[!aNh'Qu0K9u5W"xcIAKG1 MoXC*8 =d|;eOk,w2rr;+]_6xב~ӓ;Nq'"*M[нms-xn>pet7rf
lc>LOefS홎
+O+7SsϡcJf#<7Yṳ3(H:s~^E?=4ĦGY"ù7r|cmFsg؞3N%T ¨9TTJ7:CťU1pPiFXh-Bpxr):OF,W1124,'Descent'=>-634,'CapHeight'=>646,'Flags'=>32,'FontBBox'=>'[-438 -900 11467 1815]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>364);
+$up = -512;
+$ut = 50;
+$cw = array(
+ ch r(0)=>364,chr(1)=>364,chr(2)=>364,chr(3)=>364,chr(4)=>364,chr(5)=>364,chr(6)=>364,chr(7)=>364,chr(8)=>364,chr(9)=>364,chr(10)=>364,chr(11)=>364,chr(12)=>364,chr(13)=>364,chr(14)=>364,chr(15)=>364,chr(16)=>364,chr(17)=>364,chr(18)=>364,chr(19)=>364,chr(20)=>364,chr(21)=>364,
+ ch r(22)=>364,chr(23)=>364,chr(24)=>364,chr(25)=>364,chr(26)=>364,chr(27)=>364,chr(28)=>364,chr(29)=>364,chr(30)=>364,chr(31)=>364,' '=>364,'!'=>364,'"'=>364,'#'=>364,'$'=>364,'%'=>364,'&'=>364,"'"=>364,'('=>364,')'=>364,'*'=>364,'+'=>364,
+ ',''=>364,'-'=>364,'.'=>364,'/'=>364,'0'=>364,'1'=>364,'2'=>364,'3'=>364,'4'=>364,'5'=>364,'6'=>364,'7'=>364,'8'=>364,'9'=>364,':'=>364,';'=>364,'<'=>364,'='=>364,'>'=>364,'?'=>364,'@'=>364,'A'=>364,
+ 'B'=>364,'C'=>364,'D'=>364,'E'=>364,'F'=>364,'G'=>364,'H'=>364,'I'=>364,'J'=>364,'K'=>364,'L'=>364,'M'=>364,'N'=>364,'O'=>364,'P'=>364,'Q'=>364,'R'=>364,'S'=>364,'T'=>364,'U'=>364,'V'=>364,'W'=>364,
+ 'X'=>364,'Y'=>364,'Z'=>364,'['=>364,'\'=>364,']'=>364,'^'=>364,'_'=>364,'`'=>364,'a'=>364,'b'=>364,'c'=>364,'d'=>364,'e'=>364,'f'=>364,'g'=>364,'h'=>364,'i'=>364,'j'=>364,'k'=>364,'l'=>364,'m'=>364,
+ 'n'=>364,'o'=>364,'p'=>364,'q'=>364,'r'=>364,'s'=>364,'t'=>364,'u'=>364,'v'=>364,'w'=>364,'x'=>364,'y'=>364,'z'=>364,'{'=>364,'|'=>364,'}'=>364,'~'=>364,chr(127)=>364,chr(128)=>364,chr(129)=>364,chr(130)=>364,chr(131)=>364,
+ ch r(132)=>364,chr(133)=>364,chr(134)=>364,chr(135)=>364,chr(136)=>364,chr(137)=>364,chr(138)=>364,chr(139)=>364,chr(140)=>364,chr(141)=>364,chr(142)=>364,chr(143)=>364,chr(144)=>364,chr(145)=>364,chr(146)=>364,chr(147)=>364,chr(148)=>364,chr(149)=>364,chr(150)=>364,chr(151)=>364,chr(152)=>364,chr(153)=>364,
+ ch r(154)=>364,chr(155)=>364,chr(156)=>364,chr(157)=>364,chr(158)=>364,chr(159)=>364,chr(160)=>364,chr(161)=>364,chr(162)=>364,chr(163)=>364,chr(164)=>364,chr(165)=>364,chr(166)=>364,chr(167)=>364,chr(168)=>364,chr(169)=>364,chr(170)=>364,chr(171)=>364,chr(172)=>364,chr(173)=>364,chr(174)=>364,chr(175)=>364,
+ ch r(176)=>364,chr(177)=>364,chr(178)=>364,chr(179)=>364,chr(180)=>364,chr(181)=>364,chr(182)=>364,chr(183)=>364,chr(184)=>364,chr(185)=>364,chr(186)=>364,chr(187)=>364,chr(188)=>364,chr(189)=>364,chr(190)=>364,chr(191)=>364,chr(192)=>364,chr(193)=>364,chr(194)=>364,chr(195)=>364,chr(196)=>364,chr(197)=>364,
+ ch r(198)=>364,chr(199)=>364,chr(200)=>364,chr(201)=>364,chr(202)=>364,chr(203)=>364,chr(204)=>364,chr(205)=>364,chr(206)=>364,chr(207)=>364,chr(208)=>364,chr(209)=>364,chr(210)=>364,chr(211)=>364,chr(212)=>364,chr(213)=>364,chr(214)=>364,chr(215)=>364,chr(216)=>364,chr(217)=>364,chr(218)=>364,chr(219)=>364,
+ ch r(220)=>364,chr(221)=>364,chr(222)=>364,chr(223)=>364,chr(224)=>364,chr(225)=>364,chr(226)=>364,chr(227)=>364,chr(228)=>364,chr(229)=>364,chr(230)=>364,chr(231)=>364,chr(232)=>364,chr(233)=>364,chr(234)=>364,chr(235)=>364,chr(236)=>364,chr(237)=>364,chr(238)=>364,chr(239)=>364,chr(240)=>364,chr(241)=>364,
+ ch r(242)=>364,chr(243)=>364,chr(244)=>364,chr(245)=>364,chr(246)=>364,chr(247)=>364,chr(248)=>364,chr(249)=>364,chr(250)=>364,chr(251)=>364,chr(252)=>364,chr(253)=>364,chr(254)=>364,chr(255)=>364);
+$enc = 'cp1256';
+$diff = '32 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef';
+$uv = array(0=>0);
+$file = 'amirib.z';
+?>
diff --git a/includes/fpdf/font/amirib.z b/includes/fpdf/font/amirib.z
new file mode 100644
index 0000000..9e1d3c7
--- /dev/null
+++ b/includes/fpdf/font/amirib.z
@@ -0,0 +1,9 @@
+xWoe?o=`0cm:`hJWcD~WھD1^?w1zޑ`B7 x!12=9o?1Ʒywssd.N^
+fvv48_+^xGKy;Q"D%0&+O>\6
+Wq
+T:eԇK5iǠ?&];ֶz#_/Onyc/;"8O;_qD<7}#Ʀ0yDڢ߽Ͻy5]uk_[@*5|4}%oz䂟Qdz}u:*6 ӯZo5졽t[я}t~<@,%XhuJ l- k戀!xf7zKGqo-U/e쥄B(W~Kr$[ , `/%jOtE7iisZ I
*SJBeM!xMKcSZ:H+Xz,i
k 5A^t&+BOKQbr`ml_&dq!"+h %:CIF3J\FD5v-5,Nϒ)jf2gƛe;Me=P9N>
+e9en[n3kZE3wg"qG8[
?W13X^Z~t[NpfZR5|m5y?,9hlٵV
x
{E冮I9Ǯ씹ny{U:26wod
+uĢsP+Z('~/\o\Xd'|-iܘ*`Sr52'_z},/Yy>F[Cm
+u[HpG~}FijE*UL-ZUjY uӐ<
+NBs
댺U5ͼQHc[!aNh'Qu0K9u5W"xcIAKG1 MoXC*8 =d|;eOk,w2rr;+]_6xב~ӓ;Nq'"*M[нms-xn>pet7rf
lc>LOefS홎
+O+7SsϡcJf#<7Yṳ3(H:s~^E?=4ĦGY"ù7r|cmFsg؞3N%T ¨9TTJ7:CťU1pPiFXh-Bpxr):OF,W
+Parse error: syntax error, unexpected identifier "r", expecting ")" in /home/ubuntu/executor/workspace/includes/fpdf/font/amirib.php on line 8