[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.394,1.395

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Oct 30 10:57:33 EDT 2004


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

Modified Files:
	lib-common.php 
Log Message:
When reading an RSS feed fails, check if allow_url_fopen = off and report it (in error.log) if it is.


Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.394
retrieving revision 1.395
diff -C2 -d -r1.394 -r1.395
*** lib-common.php	26 Oct 2004 02:03:13 -0000	1.394
--- lib-common.php	30 Oct 2004 14:57:31 -0000	1.395
***************
*** 3994,3997 ****
--- 3994,4003 ----
      {
          $errmsg = sprintf( 'Geeklog can not reach the feed at %s.', $rdfurl );
+ 
+         if( !@ini_get( 'allow_url_fopen' ))
+         {
+             $errmsg = 'Sorry, your webserver configuration does not allow reading of remote files (allow_url_fopen = off).';
+         }
+ 
          COM_errorLog( $errmsg, 1 );
          $rdferror = true;
***************
*** 5677,5681 ****
  * Will detect links starting with "http:", "https:", "ftp:", and "www.".
  *
! * Derived from a newgroup posting by Andreas Schwarz in
  * news:de.comp.lang.php <aieq4p$12jn2i$3 at ID-16486.news.dfncis.de>
  *
--- 5683,5687 ----
  * Will detect links starting with "http:", "https:", "ftp:", and "www.".
  *
! * Derived from a newsgroup posting by Andreas Schwarz in
  * news:de.comp.lang.php <aieq4p$12jn2i$3 at ID-16486.news.dfncis.de>
  *




More information about the geeklog-cvs mailing list