function display()
 {
     $viewAllDetail = false;
     $paramAll = getRequestVar('all', 0, 'int');
     if ($paramAll == 1) {
         $viewAllDetail = true;
     }
     $period = $this->request->getPeriod();
     $idSite = $this->request->getSiteId();
     $idSite = getRequestVar('site', -1, 'int');
     /*
     		$rssHash = Request :: getRssHash();
     		if ($rssHash == "xxx") {
     			$urlStartGraph = "";
     		} else {
     			$urlStartGraph = PHPMV_URL; //Request::getCurrentCompletePath();
     			$urlStartGraph .= "/index.php?site=".$idSite."&rss_hash=".$rssHash;
     			$urlStartGraph .= "&date=".getRequestVar("date", date("Y-m-d"), "string")."&period=".$period."&mod=view_graph";
     		}
     */
     $pdf = new GenerePDF("P", "mm");
     /*
     		$pdf->AddFont("DejaVuSans", "", "DejaVuSans.php");
     		$pdf->AddFont("DejaVuSans", "B", "DejaVuSans.php");
     		$pdf->AddFont("DejaVuSans", "I", "DejaVuSans.php");
     		$pdf->AddFont("DejaVuSans", "BI", "DejaVuSans.php");
     		$pdf->phpmvFont = "DejaVuSans";
     */
     /*		
     		$pdf->AddFont("SILEOT", "", "SILEOT.php");
     		$pdf->AddFont("SILEOT", "B", "SILEOT.php");
     		$pdf->AddFont("SILEOT", "I", "SILEOT.php");
     		$pdf->AddFont("SILEOT", "BI", "SILEOT.php");
     		$pdf->phpmvFont = "SILEOT";
     */
     $pdf->currentModule = $this;
     if ($idSite > 0) {
         $site = new Site($idSite);
         $pdf->currentSite = $site;
     } else {
         $pdf->currentSite = null;
     }
     $pdf->period = $period;
     $pdf->literalDate = getLiteralDate($period, $this->request->getDate());
     if (isset($GLOBALS["lang"]["text_dir"])) {
         $pdf->direction = $GLOBALS["lang"]["text_dir"];
     } else {
         $pdf->direction = "ltr";
     }
     //$pdf->direction = "rtl";
     // Set PDF propertes data
     if ($idSite != -1) {
         $titre = "Statistics of " . $site->getName();
     } else {
         $titre = $pdf->pmvTranslate("summary_title");
     }
     $pdf->SetTitle($titre);
     $pdf->SetAuthor("phpMyVisites");
     $pdf->SetCreator($pdf->pmvTranslate("head_titre"));
     $pdf->SetKeywords($pdf->pmvTranslate("head_keywords"));
     $pdf->SetSubject($pdf->pmvTranslate("logo_description"));
     $pdf->SetFont($pdf->phpmvFont, "", 8);
     $pdf->SetLineWidth(0.1);
     // *******************************************************
     // Sites Summary
     // *******************************************************
     $pdf->titrePage1 = "summary_title";
     $pdf->AddPage();
     $pdf->setSitesSummaryStatistics();
     if ($idSite > 0) {
         $zoom = $this->data->getVisitsStatistics();
         if (!isset($zoom["nb_vis"])) {
             $txtNoVisit = $pdf->pmvTranslate("aucunvisiteur_titre");
             $pdf->Ln();
             $pdf->Ln();
             $pdf->SetFont($pdf->phpmvFont, "", 14);
             $pdf->SetTextColor(255, 0, 0);
             $w = $pdf->GetStringWidth($txtNoVisit) + 6;
             $pdf->SetX((210 - $w) / 2);
             $pdf->Cell($w, 8, $txtNoVisit, "", 0, "C", 0);
         } else {
             // Summary Link
             $pdf->setStyleSummaryLink();
             $pdf->Ln();
             $linkP1 = $pdf->AddLink();
             $pdf->SetX(50);
             $pdf->Cell(80, PDF_DEFAULT_ROW_HEIGHT, $pdf->pmvTranslate("visites_titre"), "0", "", "L", 0, $linkP1);
             $pdf->Ln();
             $linkP2 = $pdf->AddLink();
             $pdf->SetX(50);
             $pdf->Cell(80, PDF_DEFAULT_ROW_HEIGHT, $pdf->pmvTranslate("frequence_titre"), "0", "", "L", 0, $linkP2);
             $pdf->Ln();
             $linkP3 = $pdf->AddLink();
             $pdf->SetX(50);
             $pdf->Cell(80, PDF_DEFAULT_ROW_HEIGHT, $pdf->pmvTranslate("pagesvues_titre"), "0", "", "L", 0, $linkP3);
             $pdf->Ln();
             $linkP4 = $pdf->AddLink();
             $pdf->SetX(50);
             $pdf->Cell(80, PDF_DEFAULT_ROW_HEIGHT, $pdf->pmvTranslate("suivi_titre"), "0", "", "L", 0, $linkP4);
             $pdf->Ln();
             $linkP5 = $pdf->AddLink();
             $pdf->SetX(50);
             $pdf->Cell(80, PDF_DEFAULT_ROW_HEIGHT, $pdf->pmvTranslate("provenance_titre"), "0", "", "L", 0, $linkP5);
             $pdf->Ln();
             $linkP6 = $pdf->AddLink();
             $pdf->SetX(50);
             $pdf->Cell(80, PDF_DEFAULT_ROW_HEIGHT, $pdf->pmvTranslate("configurations_titre"), "0", "", "L", 0, $linkP6);
             $pdf->Ln();
             $linkP7 = $pdf->AddLink();
             $pdf->SetX(50);
             $pdf->Cell(80, PDF_DEFAULT_ROW_HEIGHT, $pdf->pmvTranslate("affluents_titre"), "0", "", "L", 0, $linkP7);
             $pdf->Ln();
             // *******************************************************
             // Statistics
             // *******************************************************
             $pdf->titrePage1 = "visites_titre";
             $pdf->AddPage();
             $pdf->SetLink($linkP1);
             $pdf->setVisitsStatistics();
             $pdf->setVisitsPeriodSummaries();
             $pdf->setVisitsPeriodSummariesGraph();
             $pdf->setVisitsAllPeriodSummaryGraph();
             $pdf->setVisitsTimeVisitsGraph();
             $pdf->setVisitsServerTimeGraph();
             $pdf->setVisitsLocalTimeGraph();
             // *******************************************************
             // Frequency
             // *******************************************************
             $pdf->titrePage1 = "frequence_titre";
             $pdf->AddPage();
             $pdf->SetLink($linkP2);
             $pdf->setFrequencyStatistics();
             $pdf->setFrequencyNewReturnVisits();
             $pdf->setFrequencyGraphNewReturnVisits();
             $pdf->setFrequencyGraphNbVisitsPerVisitor();
             // *******************************************************
             //  Pages views Information
             // *******************************************************
             $pdf->titrePage1 = "pagesvues_titre";
             $pdf->AddPage();
             $pdf->SetLink($linkP3);
             $pdf->setPagesZoomTab1();
             $pdf->setPagesZoomTab2($viewAllDetail);
             $pdf->setPagesZoomTpsParPage($viewAllDetail);
             $pdf->setPagesByVisitGraph();
             // *******************************************************
             // Visitor movement
             // *******************************************************
             $pdf->titrePage1 = "suivi_titre";
             $pdf->AddPage();
             $pdf->SetLink($linkP4);
             // Get data
             $pdf->setFollowUpEntryPages($viewAllDetail);
             $pdf->setFollowUpExitPages($viewAllDetail);
             $pdf->setFollowUpSinglePages($viewAllDetail);
             // *******************************************************
             //  Provenance
             // *******************************************************
             $pdf->titrePage1 = "provenance_titre";
             $pdf->AddPage();
             $pdf->SetLink($linkP5);
             $pdf->setWorldMap();
             // setDisplayDataArray ($id, $headline, $data, $text)
             //{pmv_data_array	data=$continentcountries id=continent template="common/display_data_array.tpl"
             $pdf->setSourceCountry($viewAllDetail);
             $pdf->setSourceProviders($viewAllDetail);
             // *******************************************************
             // Settings
             // *******************************************************
             $pdf->titrePage1 = "configurations_titre";
             $pdf->AddPage();
             $pdf->SetLink($linkP6);
             $pdf->setSettingsConfig($viewAllDetail);
             $pdf->setSettingsOs($viewAllDetail);
             $pdf->setSettingsBrowsersType();
             $pdf->setSettingsBrowsersInterest($viewAllDetail);
             $pdf->setSettingsPlugins();
             $pdf->setSettingsResolutionsInterest($viewAllDetail);
             $pdf->setSettingsNormalWidescreen();
             // *******************************************************
             // Referers
             // *******************************************************
             $pdf->titrePage1 = "affluents_titre";
             $pdf->AddPage();
             $pdf->SetLink($linkP7);
             $pdf->setReferersTypeInterest();
             $pdf->setReferersSearchEnginesInterest($viewAllDetail);
             $pdf->setReferersKeywordsInterest($viewAllDetail);
             $pdf->setReferersSitesInterest($viewAllDetail);
             $pdf->setReferersPartnersInterest($viewAllDetail);
             $pdf->setReferersNewslettersInterest($viewAllDetail);
             $pdf->setReferersDirect();
         }
     }
     $pdf->Ln(15);
     $pdf->SetFont($pdf->phpmvFont, "I", 6);
     $pdf->SetTextColor(128);
     $twtTime = sprintf($pdf->pmvTranslate("generique_timefooter"), getTimeElapsed());
     $w = $pdf->GetStringWidth($twtTime) + 6;
     $pdf->SetX((210 - $w) / 2);
     $pdf->Write(3, $twtTime);
     // *******************************************************
     // Output PDF
     // *******************************************************
     $pdf->Output("stats-site{$idSite}.pdf", "D");
 }