[geeklog-cvs] geeklog-1.3/public_html pdfgenerator.php,1.6,1.7

tony at iowaoutdoors.org tony at iowaoutdoors.org
Wed Jun 9 09:53:25 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv9965

Modified Files:
	pdfgenerator.php 
Log Message:
Made error checking on htmldoc binary platform independent per Dirk's email

Index: pdfgenerator.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/pdfgenerator.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pdfgenerator.php	7 Jun 2004 20:47:28 -0000	1.6
--- pdfgenerator.php	9 Jun 2004 13:53:22 -0000	1.7
***************
*** 44,48 ****
  } else {
      // Ensure we got a handle to a valid HTMLDoc binary
!     if (!is_file($_CONF['path_to_htmldoc']) OR !is_executable($_CONF['path_to_htmldoc'])) {
          echo COM_siteHeader();
          echo $LANG_PDF[8];
--- 44,53 ----
  } else {
      // Ensure we got a handle to a valid HTMLDoc binary
!     if (function_exists('is_executable')) {
!         $is_exec = is_executable($_CONF['path_to_htmldoc']);
!     } else {
!         $is_exec = file_exists($_CONF['path_to_htmldoc']);
!     }
!     if ($is_exec) {
          echo COM_siteHeader();
          echo $LANG_PDF[8];




More information about the geeklog-cvs mailing list