requireOnce() public static method

Require the given file once.
public static requireOnce ( string $file ) : mixed
$file string
return mixed
 function pdf($report_id = false)
 {
     $this->pdf = new Pdf();
     File::requireOnce(app_path() . '/library/SVGGraph/SVGGraph.php');
     $this->margins = $this->pdf->getMargins();
     $this->pdf_w = $this->pdf->getPageWidth();
     //check if loading existing PDF
     if ($report_id !== false) {
         $report = json_decode(Report::with('answers')->find($report_id), true);
         if (count($report['answers']) != 6) {
             return Redirect::route('assesment.page1');
         }
         foreach ($report['answers'] as $answer) {
             $answers = json_decode($answer['answers'], true);
             if ($answer['section'] == 'page1') {
                 $this->guest_name = $answers['s1'];
                 $this->guest_company = $answers['s2'];
             }
             if ($answer['section'] == 'page2') {
                 $this->intent_score = $answers['intent_score'];
             }
             if ($answer['section'] == 'page3') {
                 $this->data_score = $answers['data_score'];
             }
             if ($answer['section'] == 'page4') {
                 $this->tech_score = $answers['technology_score'];
             }
             if ($answer['section'] == 'page5') {
                 $this->people_score = $answers['people_score'];
             }
             if ($answer['section'] == 'page6') {
                 $this->process_score = $answers['process_score'];
             }
         }
     } else {
         $this->rData = Session::get('report');
         $this->guest_name = $this->rData['page1']['s1'];
         $this->guest_company = $this->rData['page1']['s2'];
         $this->intent_score = $this->rData['page2']['intent_score'];
         $this->data_score = $this->rData['page3']['data_score'];
         $this->tech_score = $this->rData['page4']['technology_score'];
         $this->people_score = $this->rData['page5']['people_score'];
         $this->process_score = $this->rData['page6']['process_score'];
     }
     $this->overall_score = ($this->intent_score + $this->data_score + $this->tech_score + $this->people_score + $this->process_score) / 5;
     $this->getPDF();
 }
Example #2
0
|--------------------------------------------------------------------------
| Bootstrap cache related classes
|--------------------------------------------------------------------------
| 
| Extend laravels file cache with tags functionality and custom cache
| invalidator to accompany it so our filesystem won't choke on 1000s of
| of old cache files left in storage folder.
*/
Cache::extend('taggedFile', function ($app) {
    return new Illuminate\Cache\Repository(new Lib\Extensions\TaggedFileCache());
});
/*
|--------------------------------------------------------------------------
| Register view composers
|--------------------------------------------------------------------------
*/
View::composer('Dashboard.Partials.StatsBar', 'Lib\\Composers\\DashStatsbarComposer');
View::composer('Dashboard.Menus.Menus', 'Lib\\Composers\\DashMenusComposer');
Event::subscribe(new Lib\Services\Cache\CacheInvalidator());
ini_set('max_execution_time', 120);
//DB::disableQueryLog();
//bind hybrid auth to the container
App::bind('Hybrid_Auth', function () {
    return new Hybrid_Auth(Config::get('hybridauth'));
});
$options = App::make('options');
View::share('options', $options);
//load plugins
if (File::exists(public_path('plugins/streaming/plugin/start.php'))) {
    File::requireOnce(public_path('plugins/streaming/plugin/start.php'));
}
Example #3
0
<?php

File::requireOnce(app_path() . '/helpers/VirusTotalApiV2.php');
class HomeController extends BaseController
{
    private function getFilePath($file)
    {
        return $_ENV['MALWARE_STORAGE_PATH'] . $file->md5;
    }
    private function setVTScannedStatus(&$file, $code)
    {
        switch ($code) {
            case -3:
                $file->is_vtscanned = "API limit exceeded";
                break;
            case -2:
                $file->is_vtscanned = "Being scanned";
                break;
            case -1:
                $file->is_vtscanned = "Error occured";
                break;
            case 1:
                $file->is_vtscanned = "Scanned";
                break;
            case 0:
            default:
                $file->is_vtscanned = "No result";
                break;
        }
    }
    private function forceScanFileOnVirusTotal(&$file)
Example #4
0
 public function printOrderKitchen()
 {
     File::requireOnce('plugins/escpos/Escpos.php');
     /* $items = array(
        new item("Example item #1", "4.00"),
        new item("Another thing", "3.50"),
        new item("Something else", "1.00"),
        new item("A final item", "4.45"),
        );
        $subtotal = new item('Subtotal', '12.95');
        $tax = new item('A local tax', '1.30');
        $total = new item('Total', '14.25', true);
        /* Start the printer
        $logo = new EscposImage("images/escpos-php.png");
        $printer = new Escpos();
        /* Print top logo
        $printer->setJustification(Escpos::JUSTIFY_CENTER);
        $printer->graphics($logo);
        /* Name of shop
        $printer->selectPrintMode(Escpos::MODE_DOUBLE_WIDTH);
        $printer->text("ExampleMart Ltd.\n");
        $printer->selectPrintMode();
        $printer->text("Shop No. 42.\n");
        $printer->feed();
        /* Title of receipt
        $printer->setEmphasis(true);
        $printer->text("SALES INVOICE\n");
        $printer->setEmphasis(false);
        /* Items
        $printer->setJustification(Escpos::JUSTIFY_LEFT);
        $printer->setEmphasis(true);
        $printer->text(new item('', '$'));
        $printer->setEmphasis(false);
        foreach ($items as $item) {
        $printer->text($item);
        }
        $printer->setEmphasis(true);
        $printer->text($subtotal);
        $printer->setEmphasis(false);
        $printer->feed();
        /* Tax and total
        $printer->text($tax);
        $printer->selectPrintMode(Escpos::MODE_DOUBLE_WIDTH);
        $printer->text($total);
        $printer->selectPrintMode();
        /* Footer
        $printer->feed(2);
        $printer->setJustification(Escpos::JUSTIFY_CENTER);
        $printer->text("Thank you for shopping at ExampleMart\n");
        $printer->text("For trading hours, please visit example.com\n");
        $printer->feed(2);
        $printer->text(date('l jS \of F Y h:i:s A') . "\n");
        /* Cut the receipt and open the cash drawer
        $printer->cut();
        $printer->pulse(); */
 }
 public function intro($result, $baseline, $quiz)
 {
     File::requireOnce(app_path() . '/library/SVGGraph/SVGGraph.php');
     $bus = Lang::get('report.itbusiness');
     $ser = Lang::get('report.itservicedelivery');
     $inf = Lang::get('report.itinfrastructure');
     $this->tempLabels = array('itbusiness' => $bus, 'itservicedelivery' => $ser, 'itinfrastructure' => $inf);
     $this->SetY(25);
     $this->SetLineStyle(array('width' => 0.85 / $this->k, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(147)));
     $this->SetX($this->original_lMargin);
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 10, 38, 56);
     $this->Cell($this->w - $this->original_lMargin - $this->original_rMargin, 0, strtoupper(Lang::get('report.results')), 'B', 2, 'L');
     $this->SetFont('helvetica', '', 8);
     $this->SetColor('text', 85, 85, 85);
     $txt = Lang::get('report.thankyou');
     $this->MultiCell($this->w / 2 - $this->original_lMargin, 0, $txt, 0, 'L');
     $this->SetY($this->GetY() + 2);
     $txt = Lang::get('report.bullets');
     // output the HTML content
     $this->writeHTMLCell($this->w / 2 - $this->original_lMargin, 0, $this->GetX(), $this->GetY(), $txt, 0, true, false, true, '');
     $this->SetY($this->GetY() + 2);
     $txt = Lang::get('report.aims');
     $this->MultiCell($this->w - $this->original_lMargin - $this->original_rMargin, 0, $txt, 0, 'L');
     $this->SetFont('helvetica', 'B', 8);
     $this->SetColor('text', 10, 38, 56);
     $this->Cell($this->w - $this->original_lMargin - $this->original_rMargin, 0, Lang::get('report.looked'), 0, 2, 'L');
     $this->SetFont('helvetica', '', 8);
     $this->SetColor('text', 85, 85, 85);
     $this->SetXY($this->GetX() + 5, $this->GetY() + 3);
     $this->ImageEps(K_PATH_IMAGES . 'itbusiness.ai', '', '', 4);
     $this->SetX($this->GetX() + 6);
     $this->Cell(75, 0, Lang::get('report.itbusiness'), 0, 2, 'L');
     $this->SetXY($this->GetX() - 6, $this->GetY() + 2);
     $this->ImageEps(K_PATH_IMAGES . 'itservicedelivery.ai', '', '', 4);
     $this->SetXY($this->GetX() + 6, $this->GetY());
     $this->Cell(75, 0, Lang::get('report.itservicedelivery'), 0, 2, 'L');
     $this->SetXY($this->GetX() - 6, $this->GetY() + 2);
     $this->ImageEps(K_PATH_IMAGES . 'itinfrastructure.ai', '', '', 4);
     $this->SetXY($this->GetX() + 6, $this->GetY());
     $this->Cell(75, 0, Lang::get('report.itinfrastructure'), 0, 2, 'L');
     $this->SetY($this->GetY() + 4);
     $this->SetFont('helvetica', '', 8);
     $txt = Lang::get('report.based');
     $this->MultiCell($this->w - $this->original_lMargin - $this->original_rMargin, 0, $txt, 0, 'L');
     $this->SetFont('helvetica', 'B', 8);
     $this->SetColor('text', 0, 82, 148);
     $this->SetY($this->GetY() + 2);
     $this->Cell($this->w - $this->original_lMargin - $this->original_rMargin, 0, strtoupper(Lang::get('general.' . strtolower($result['overall']['rating']))), 0, 1, 'L');
     $this->resetText();
     switch ($result['overall']['rating']) {
         case "Current-Focused":
             $txt = Lang::get('report.currentintro');
             break;
         case "Future-Aware":
             $txt = Lang::get('report.future-awareintro');
             break;
         case "Future-Focused":
             $txt = Lang::get('report.future-focusedintro');
             break;
         case "Future-Creator":
             $txt = Lang::get('report.future-creatorintro');
             break;
     }
     $this->SetY($this->GetY() + 1);
     $this->MultiCell($this->w - $this->original_lMargin - $this->original_rMargin, 0, $txt, 0, 'L');
     $this->resetText();
     $this->SetY($this->GetY() + 2);
     if ($result['overall']['rating'] == 'Current' || $result['overall']['rating'] == 'Future-Aware') {
         $this->MultiCell($this->w - $this->original_lMargin - $this->original_rMargin, 0, str_replace('#STATUS#', $result['overall']['rating'], Lang::get('report.currentaware')), 0, 'L');
     } else {
         $this->MultiCell($this->w - $this->original_lMargin - $this->original_rMargin, 0, str_replace('#STATUS#', $result['overall']['rating'], Lang::get('report.focusedcreator')), 0, 'L');
     }
     $this->SetY($this->GetY() + 1);
     foreach ($result as $key => $res) {
         if ($key != 'overall' && ($res['rating'] == 'Reactive' || $res['rating'] == 'Mainstream')) {
             if ($this->GetX() + $this->GetStringWidth($this->tempLabels[strtolower($key)]) + 2 > $this->w - $this->original_lMargin - $this->original_rMargin) {
                 $this->SetXY($this->original_lMargin, $this->GetY() + 1);
                 $this->ln();
             }
             $this->SetFont('helvetica', 'B', 8);
             $this->SetColor('text', 0, 82, 148);
             $this->Cell($this->GetStringWidth($this->tempLabels[strtolower($key)]) + 2, 0, " • " . $this->tempLabels[strtolower($key)], 0, 0, 'L');
             $this->SetX($this->GetX() + 2);
         }
     }
     $this->copyY = $this->GetY();
     //graphs
     $this->SetY($this->GetY() + 2);
     //$this->RoundedRect(($this->w/2 - $this->original_lMargin)+15, 34, ($this->w/2 - $this->original_lMargin - 5), 30, 5, '0000', 'F',array(), array(230,231,232));
     $rightX = $this->w / 2 - $this->original_lMargin + 17;
     $this->SetXY($rightX, 38);
     $this->ImageEps(K_PATH_IMAGES . 'graph.ai', $rightX - 2, $this->GetY() - 4, 90);
     $this->SetFont('helvetica', '', 9);
     $this->SetColor('text', 0, 82, 148);
     $this->SetXY($rightX, $this->getY() - 2);
     $this->Cell($this->w / 2 - $this->original_lMargin - 5, 0, strtoupper(Lang::get('report.overall')), 0, 1, 'L');
     //marker
     switch ($result['overall']['rating']) {
         case "Current-Focused":
             $mx = $rightX + 5;
             $my = 68;
             break;
         case "Future-Aware":
             $mx = $rightX + 28;
             $my = 58;
             break;
         case "Future-Focused":
             $mx = $rightX + 51;
             $my = 48;
             break;
         case "Future-Creator":
             $mx = $rightX + 74;
             $my = 38;
             break;
     }
     $this->ImageEps(K_PATH_IMAGES . 'marker.ai', $mx, $my, 8);
     $this->SetColor('text', 0, 82, 148);
     $this->SetFont('helvetica_condensed', 'B', 10);
     $this->MultiCell(8, 5, round($result['overall']['score']), 0, 'C', 0, 0, $mx, $my - 5, true);
     $overbase = $baseline['overall']['baseline'];
     foreach ($baseline['overall']['types'] as $key => $value) {
         if ($key == 'Current-Focused' && ($overbase >= $value['low'] && $overbase >= $value['high'])) {
             $mx = $rightX + 6;
             $my = 70;
         } elseif ($key == 'Future-Aware' && ($overbase >= $value['low'] && $overbase >= $value['high'])) {
             $mx = $rightX + 30;
             $my = 60;
         } elseif ($key == 'Future-Focused' && ($overbase >= $value['low'] && $overbase >= $value['high'])) {
             $mx = $rightX + 51;
             $my = 51;
         } elseif ($key == 'Future-Creator' && ($overbase >= $value['low'] && $overbase >= $value['high'])) {
             $mx = $rightX + 73;
             $my = 42;
         }
     }
     $this->ImageEps(K_PATH_IMAGES . 'marker_base.ai', $mx, $my, 6);
     $this->SetFont('helvetica_condensed', 'B', 8);
     $this->MultiCell(6, 5, $overbase, 0, 'C', 0, 0, $mx, $my - 4, true);
     //legend
     $this->SetXY($rightX - 2, $this->getY() + 34);
     $this->MultiCell(23, 5, Lang::get('general.current-focused'), 0, 'C', 0, 0, '', '', true);
     $this->MultiCell(23, 5, Lang::get('general.future-aware'), 0, 'C', 0, 0, $rightX + 21, $this->getY() - 9, true);
     $this->MultiCell(23, 5, Lang::get('general.future-focused'), 0, 'C', 0, 0, $rightX + 43, $this->getY() - 9.5, true);
     $this->MultiCell(23, 5, Lang::get('general.future-creator'), 0, 'C', 0, 0, $rightX + 65, $this->getY() - 10, true);
     $this->SetXY($rightX + 28, $this->getY() + 28);
     $this->MultiCell(26, 5, strtoupper(Lang::get('report.yourscore')), 0, 'C', 0, 0, '', '', true);
     $this->MultiCell(26, 5, strtoupper(Lang::get('report.baselinescore')), 0, 'C', 0, 0, $this->getX() + 5, $this->getY(), true);
     /*//first graph
     		$settings = array(
     			'back_colour' => '#eee',
     			'stroke_colour' => '#000',
     			'back_stroke_width' => 0,
     			'show_bar_labels' => 1,
     			'bar_label_position' => 'above',
     			'bar_label_font_size' => 14,
     			'bar_label_space' => 5,
     			'bar_label_colour' => '#005294',
     			'show_grid' => false,
     			'show_axis_h' => false,
     			'show_axis_v' => false,
     			'stroke_width' => 0,
     			'back_stroke_colour' => '#eee',
     			'axis_colour' => '#333',
     			'axis_overlap' => 2,
     			'axis_font' => 'Georgia',
     			'axis_font_size' => 10,
     			'grid_colour' => '#666',
     			'label_colour' => '#000',
     			'pad_right' => 10,
     			'pad_left' => 10,
     			'grid_division_h' => 20
             );
     		$colours = array('#0A2638','#2A96DE');
     		$graph = new SVGGraph(300, 120, $settings);
     		$graph->colours = $colours;
     		$values = array(
     			 array(strtoupper(Lang::get('report.baselinescore')) => $baseline['overall']['baseline'], strtoupper(Lang::get('report.yourscore')) => $result['overall']['score'])
     		);
     		$graph->Values($values);
     		
     		$output = $graph->fetch('HorizontalBarGraph');
     		$this->ImageSVG('@'.$output, $rightX, $this->GetY(), $w=60, $h='', '', $align='', $palign='', '', $fitonpage=false);*/
     //Overal/
     $this->RoundedRect($this->w / 2 - $this->original_lMargin + 15, 102, $this->w / 2 - $this->original_lMargin - 5, 45, 5, '0000', 'F', array(), array(230, 231, 232));
     //overall
     $this->SetXY($rightX, 39);
     $this->SetColor('text', 42, 150, 222);
     $this->SetFont('impact', '', 34);
     $this->Cell(10, 0, round($result['overall']['score']), 0, 0, 'L');
     $this->SetXY($rightX + 13, 44);
     $this->SetFont('helvetica_condensed', '', 10);
     $this->SetColor('text', 172);
     $this->Cell(30, 0, strtoupper(Lang::get('general.' . strtolower($result['overall']['rating']))), 0, 1, 'L');
     //second graph
     $this->SetXY($rightX, 105);
     $this->SetFont('helvetica', '', 9);
     $this->SetColor('text', 0, 82, 148);
     $this->Cell($this->w / 2 - $this->original_lMargin - 5, 0, strtoupper(Lang::get('report.section')), 0, 1, 'L');
     $settings = array('back_colour' => '#eee', 'stroke_colour' => '#000', 'back_stroke_width' => 0, 'show_grid' => false, 'show_axis_h' => false, 'show_axis_v' => false, 'stroke_width' => 0, 'back_stroke_colour' => '#eee', 'axis_colour' => '#333', 'axis_overlap' => 2, 'axis_font' => 'Georgia', 'axis_font_size' => 10, 'grid_colour' => '#666', 'label_colour' => '#000', 'pad_right' => 10, 'pad_left' => 10, 'bar_space' => 15, 'grid_division_v' => 10, 'show_axis_text_h' => false);
     $colours = array('#2A96DE', '#0A2638');
     $graph = new SVGGraph(300, 100, $settings);
     $graph->colours = $colours;
     $values = array(array(Lang::get('report.itbusiness') => $result['itbusiness']['score'], Lang::get('report.itservicedelivery') => $result['itservicedelivery']['score'], Lang::get('report.itinfrastructure') => $result['itinfrastructure']['score']), array(Lang::get('report.itbusiness') => $baseline['itbusiness']['baseline'], Lang::get('report.itservicedelivery') => $baseline['itservicedelivery']['baseline'], Lang::get('report.itinfrastructure') => $baseline['itinfrastructure']['baseline']));
     $graph->Values($values);
     //first graph
     $output = $graph->fetch('GroupedBarGraph');
     $this->ImageSVG('@' . $output, $rightX, $this->GetY(), $w = 84, $h = '', '', $align = '', $palign = '', '', $fitonpage = false);
     //legend
     $this->SetFont('helvetica_condensed', '', 8);
     $this->SetColor('text', 10, 38, 56);
     $this->Rect($rightX + 40, $this->getY(), 4, 4, 'F', array(), array(42, 150, 222));
     $this->SetXY($rightX + 45, $this->getY());
     $this->MultiCell(15, 5, Lang::get('report.yourscore'), 0, 'L', 0, 0, '', '', true);
     $this->Rect($rightX + 60, $this->getY() - 0.5, 4, 4, 'F', array(), array(10, 38, 56));
     $this->SetXY($rightX + 65, $this->getY());
     $this->MultiCell(20, 5, Lang::get('report.baselinescore'), 0, 'L', 0, 0, '', '', true);
     //x-axiz lables
     $this->SetColor('text', 0, 82, 148);
     $this->SetXY($rightX + 7, $this->getY() + 28);
     $this->SetFont('helvetica_condensed', '', 8);
     $this->MultiCell(25, 5, Lang::get('report.itbusiness'), 0, 'C', 0, 0, '', '', true);
     $this->MultiCell(25, 5, Lang::get('report.itservicedelivery'), 0, 'C', 0, 0, '', '', true);
     $this->MultiCell(25, 5, Lang::get('report.itinfrastructure'), 0, 'C', 0, 0, '', '', true);
     //$this->SetY($this->getY()+23);
     $this->resetText();
     //copy
     $this->SetY($this->copyY + 5);
     $this->drawBorder();
     //get_answers
     $answers = array();
     foreach ($quiz as $section => $props) {
         if ($section != 'demographics') {
             foreach ($props['pages'] as $page => $details) {
                 foreach ($details['questions'] as $q => $att) {
                     if (!is_array($att['selected'])) {
                         $val = explode("|", $att['selected']);
                         $answers[$q] = (int) $val[1];
                     } else {
                         $answers[$q] = 0;
                         foreach ($att['selected'] as $select) {
                             $val = explode("|", $select[0]);
                             $answers[$q] += (int) $val[1];
                         }
                     }
                 }
             }
         }
     }
     $style3 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(174));
     $indent = 24;
     $bullet = 4;
     $margins = $this->GetMargins();
     $para_cell = $this->w - $margins['left'] - $margins['right'] - $indent;
     $bullet_cell = $this->w - $margins['left'] - $margins['right'] - ($indent + $bullet);
     //itbusiness
     $this->SetX($this->GetX() + 2);
     $this->ImageEps(K_PATH_IMAGES . 'itbusiness.ai', '', '', 10);
     $this->SetXY($indent, $this->GetY() + 1);
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 0, 82, 148);
     $this->Cell(0, 0, Lang::get('report.itbusiness'), 0, 2, 'L');
     $this->resetText();
     $txt = Lang::get('report.itbusinesssummary') . " <b>" . Lang::get('general.' . strtolower($result['itbusiness']['rating'])) . "</b>";
     $this->writeHTMLCell($para_cell, 0, $this->GetX(), $this->GetY() + 1, $txt, 0, 1);
     $this->ln();
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 0, 82, 148);
     $this->SetX($indent);
     $this->Cell(0, 0, Lang::get('report.getahead'), 0, 2, 'L');
     $this->resetText();
     $txt = Lang::get('report.itbusiness1');
     $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
     $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     if ($answers['a1'] < 5) {
         $txt = Lang::get('report.itbusiness2');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['a2'] < 4) {
         $txt = Lang::get('report.itbusiness3');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['a3'] < 4) {
         $txt = Lang::get('report.itbusiness4');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['a4'] < 4) {
         $txt = Lang::get('report.itbusiness5');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['a5'] < 3) {
         $txt = Lang::get('report.itbusiness6');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     //itservicedelivery
     $this->SetXY($this->GetX() + 3, $this->GetY() + 5);
     $this->ImageEps(K_PATH_IMAGES . 'itservicedelivery.ai', '', '', 7);
     $this->SetXY($indent, $this->GetY() + 1);
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 0, 82, 148);
     $this->Cell(0, 0, Lang::get('report.itservicedelivery'), 0, 2, 'L');
     $this->resetText();
     $txt = Lang::get('report.itservicedeliverysummary') . " <b>" . Lang::get('general.' . strtolower($result['itservicedelivery']['rating'])) . "</b>";
     $this->writeHTMLCell($para_cell, 0, $this->GetX(), $this->GetY() + 1, $txt, 0, 1);
     $this->ln();
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 0, 82, 148);
     $this->SetX($indent);
     $this->Cell(0, 0, Lang::get('report.getahead'), 0, 2, 'L');
     $this->resetText();
     $txt = Lang::get('report.itservicedelivery1');
     $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
     $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     if ($answers['b1'] < 4) {
         $txt = Lang::get('report.itservicedelivery2');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['b2'] < 4) {
         $txt = Lang::get('report.itservicedelivery3');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['b3'] < 4) {
         $txt = Lang::get('report.itservicedelivery4');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['b4'] < 4) {
         $txt = Lang::get('report.itservicedelivery5');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['b5'] < 4) {
         $txt = Lang::get('report.itservicedelivery6');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['b6'] < 5) {
         $txt = Lang::get('report.itservicedelivery7');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     //itinfrastructure
     $this->SetXY($this->GetX() + 3, $this->GetY() + 6);
     $this->ImageEps(K_PATH_IMAGES . 'itinfrastructure.ai', '', '', 8);
     $this->SetXY($indent, $this->GetY());
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 0, 82, 148);
     $this->Cell(0, 0, Lang::get('report.itinfrastructure'), 0, 2, 'L');
     $this->resetText();
     $txt = Lang::get('report.itinfrastructuresummary') . " <b>" . Lang::get('general.' . strtolower($result['itinfrastructure']['rating'])) . "</b>";
     $this->writeHTMLCell($para_cell, 0, $this->GetX(), $this->GetY() + 1, $txt, 0, 1);
     $this->ln();
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 0, 82, 148);
     $this->SetX($indent);
     $this->Cell(0, 0, Lang::get('report.getahead'), 0, 2, 'L');
     $this->resetText();
     $txt = Lang::get('report.itinfrastructure1');
     $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
     $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     if ($answers['c1'] < 3) {
         $txt = Lang::get('report.itinfrastructure2');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['c2'] < 3) {
         $txt = Lang::get('report.itinfrastructure3');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['c3'] < 3) {
         $txt = Lang::get('report.itinfrastructure4');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['c4'] < 4) {
         $txt = Lang::get('report.itinfrastructure5');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     if ($answers['c5'] < 3) {
         $txt = Lang::get('report.itinfrastructure6');
         $this->Circle($indent + 1.25, $this->GetY() + 4, 0.75, 0, 360, 'D', $style3);
         $this->writeHTMLCell($bullet_cell, 0, $indent + $bullet, $this->GetY() + 2, $txt, 0, 1);
     }
     //Conclusion
     $this->SetXY($this->GetX() + 3, $this->GetY() + 5);
     $this->SetXY($indent, $this->GetY() + 1);
     $this->SetFont('helvetica', 'B', 10);
     $this->SetColor('text', 0, 82, 148);
     $this->Cell(0, 0, Lang::get('report.conclusion'), 0, 2, 'L');
     $this->resetText();
     $txt = Lang::get('report.conclusionsummary');
     $this->writeHTMLCell($para_cell, 0, $this->GetX(), $this->GetY() + 1, $txt, 0, 1);
     $this->ln();
 }