diff options
author | Sashi20 | 2018-05-28 14:43:38 +0530 |
---|---|---|
committer | Sashi20 | 2018-05-28 14:43:38 +0530 |
commit | 5637178fb00fc5b90bd97dc545dea4c2848c3257 (patch) | |
tree | 25c4a23946c5807407946285661c298814aab525 /pdf/mentor_cert_pdf.inc | |
parent | 4ce569845326ed1a6d05831100289043b87b6036 (diff) | |
download | dwsim_flowsheet-5637178fb00fc5b90bd97dc545dea4c2848c3257.tar.gz dwsim_flowsheet-5637178fb00fc5b90bd97dc545dea4c2848c3257.tar.bz2 dwsim_flowsheet-5637178fb00fc5b90bd97dc545dea4c2848c3257.zip |
Minor changes in the custom certificate interface
Diffstat (limited to 'pdf/mentor_cert_pdf.inc')
-rwxr-xr-x | pdf/mentor_cert_pdf.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pdf/mentor_cert_pdf.inc b/pdf/mentor_cert_pdf.inc index 9e097eb..1c59f1a 100755 --- a/pdf/mentor_cert_pdf.inc +++ b/pdf/mentor_cert_pdf.inc @@ -88,10 +88,9 @@ function generate_pdf() $query->condition('proposal_id', $proposal_id); $result = $query->execute(); $data = $result->fetchObject(); - $DBString = $data->custom_qr_code; - $qrstring = $data->qr_code; + //$DBString = $data->custom_qr_code; $proposal_get_id = $data->proposal_id; - if ($DBString == "" || $DBString == "null") { + /*if ($DBString == "" || $DBString == "null") { $UniqueString = generateRandomString(); $query = "UPDATE dwsim_flowsheet_qr_code SET custom_qr_code = :custom_qr_code WHERE proposal_id = :proposal_id"; $args = array( @@ -104,8 +103,9 @@ function generate_pdf() } //$DBString == "" || $DBString == "null" else { $UniqueString = $DBString; - } - $codeContents = 'http://dwsim.fossee-dell/flowsheeting-project/certificates/verify/' . $qrstring; + }*/ + $qrstring = $data->qr_code; + $codeContents = 'https://dwsim.fossee.in/flowsheeting-project/certificates/verify/' . $qrstring; $fileName = 'generated_qrcode.png'; $pngAbsoluteFilePath = $tempDir . $fileName; $urlRelativeFilePath = $path . "/pdf/temp_prcode/" . $fileName; @@ -129,7 +129,7 @@ function generate_pdf() $pdf->SetY(-58); $pdf->Ln(14); $pdf->SetX(10); - $pdf->Cell(0, 0, $UniqueString, 0, 0, 'C'); + $pdf->Cell(0, 0, $qrstring, 0, 0, 'C'); $pdf->SetX(29); $pdf->SetY(-50); $image4 = $path . "/pdf/images/verify_content.png"; |