[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.268,1.269

dhaun at geeklog.net dhaun at geeklog.net
Sun Dec 28 13:51:47 EST 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv1259

Modified Files:
	lib-common.php 
Log Message:
When lib-common.php is called up via a URL instead of being included, redirect to index.php.


Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.268
retrieving revision 1.269
diff -C2 -d -r1.268 -r1.269
*** lib-common.php	23 Nov 2003 09:57:22 -0000	1.268
--- lib-common.php	28 Dec 2003 18:51:45 -0000	1.269
***************
*** 94,97 ****
--- 94,104 ----
  }
  
+ // this file can't be used on its own - redirect to index.php
+ if( eregi( 'lib-common.php', $PHP_SELF ))
+ {
+     echo COM_refresh( $_CONF['site_url'] . '/index.php' );
+     exit;
+ }
+ 
  // +---------------------------------------------------------------------------+
  // | Library Includes: You shouldn't have to touch anything below here         |





More information about the geeklog-cvs mailing list