summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcode.inc2
-rwxr-xr-xpdf/generate_pdf.inc10
-rwxr-xr-xpdf/list_all_certificates.inc3
3 files changed, 8 insertions, 7 deletions
diff --git a/code.inc b/code.inc
index e3d8a12..ca11078 100755
--- a/code.inc
+++ b/code.inc
@@ -129,7 +129,7 @@ $form['book_details']['pref_id'] = array(
);
$form['example_warning'] = array(
'#type' => 'item',
- '#title' => t('You should upload all the files as zip (main or source files, result files, executable file if any): '),
+ '#title' => t('You should upload all the files as extention ".'). variable_get('textbook_companion_source_extensions', '') . t('" main or source files, result files, executable file if any): '),
'#prefix' => '<div style="color:red">',
'#suffix' => '</div>'
);
diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc
index f9d3088..137f69f 100755
--- a/pdf/generate_pdf.inc
+++ b/pdf/generate_pdf.inc
@@ -136,7 +136,7 @@ function generate_pdf()
else {
$UniqueString = $DBString;
}
- $codeContents = "http://om.fossee.in/textbook-companion/certificate/verify/" . $UniqueString;
+ $codeContents = "https://om.fossee.in/textbook-companion/certificate/verify/" . $UniqueString;
$fileName = 'generated_qrcode.png';
$pngAbsoluteFilePath = $tempDir . $fileName;
$urlRelativeFilePath = $path . "/pdf/temp_prcode/" . $fileName;
@@ -146,7 +146,7 @@ function generate_pdf()
$pdf->write(0, 'The work done is available at ');
$pdf->SetFont('', 'U');
$pdf->SetTextColor(96, 69, 96);
- $pdf->write(0, 'http://om.fossee.in', 'http://om.fossee.in');
+ $pdf->write(0, 'https://om.fossee.in', 'http://om.fossee.in');
$pdf->SetFont('', '');
$pdf->SetTextColor(0, 0, 0);
$pdf->write(0, '.', '.');
@@ -202,7 +202,7 @@ function generate_pdf()
} //!feof($fp)
fclose($fp);
unlink($file);
- drupal_goto('certificate');
+ //drupal_goto('certificate');
return;
}
function generateRandomString($length = 5)
@@ -300,7 +300,7 @@ function generate_copyright_form_pdf()
} //!feof($fp)
fclose($fp);
unlink($file);
- drupal_goto('Summer_Internship_Forms/forms');
+ //drupal_goto('Summer_Internship_Forms/forms');
return;
}
function generate_undertaking_form_pdf()
@@ -392,6 +392,6 @@ function generate_undertaking_form_pdf()
} //!feof($fp)
fclose($fp);
unlink($file);
- drupal_goto('Summer_Internship_Forms/forms');
+ //drupal_goto('Summer_Internship_Forms/forms');
return;
}
diff --git a/pdf/list_all_certificates.inc b/pdf/list_all_certificates.inc
index b6418a7..137c024 100755
--- a/pdf/list_all_certificates.inc
+++ b/pdf/list_all_certificates.inc
@@ -6,9 +6,10 @@ function _list_all_certificates()
':uid' => $user->uid
));
$exist_id = $query_id->fetchObject();
+ $exist_id_count = $query_id->rowCount();
if ($exist_id){
if ($exist_id->id) {
- if ($exist_id->id < 3) {
+ if ($exist_id_count < 1 ) {
drupal_set_message(t('<strong>You need to propose a book <a href="http://om.fossee.in/textbook-companion/proposal">Book Proposal</a></strong> or if you have already proposed then your book is under reviewing process'), 'status');
return '';
} //$exist_id->id < 3