diff options
Diffstat (limited to 'pdf')
-rwxr-xr-x | pdf/generate_pdf.inc | 2 | ||||
-rwxr-xr-x | pdf/list_all_certificates.inc | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc index 1da37f4..f80f52b 100755 --- a/pdf/generate_pdf.inc +++ b/pdf/generate_pdf.inc @@ -93,7 +93,7 @@ function generate_pdf() $pdf->Cell(320, 12,$data2->book, '0', '1', 'C'); $pdf->Ln(0); $pdf->SetTextColor(0, 0, 0); - $pdf->MultiCell(320, 10, 'written by "' . $author . '"', '0', 'C'); + $pdf->MultiCell(320, 10, 'written by "' . $author . '".', '0', 'C'); $pdf->SetTextColor(0, 0, 0); $pdf->Cell(320, 10, 'The work done is available at', '0', '1', 'C'); $pdf->Cell(320, 4, '', '0', '1', 'C'); diff --git a/pdf/list_all_certificates.inc b/pdf/list_all_certificates.inc index 723c2ff..a65aa47 100755 --- a/pdf/list_all_certificates.inc +++ b/pdf/list_all_certificates.inc @@ -51,7 +51,14 @@ return ''; } */ function _list_all_certificates() { + global $user; + if (!$user->uid) + { + drupal_set_message('Log in to download the certificate ', 'error'); + drupal_goto(''); + return; + } /*$query_id =db_query("SELECT id FROM textbook_companion_proposal WHERE proposal_status=3 AND uid=".$user->uid); $exist_id = db_fetch_object($query_id);*/ $query = db_select('textbook_companion_proposal'); |