[geeklog-cvs] geeklog-1.3/public_html/admin auth.inc.php,1.17,1.18
dhaun at geeklog.net
dhaun at geeklog.net
Sun Dec 28 13:50:09 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory geeklog_prod:/tmp/cvs-serv1219
Modified Files:
auth.inc.php
Log Message:
A simple check to see if the file was called up on its own instead of being included.
Index: auth.inc.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/auth.inc.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** auth.inc.php 1 Sep 2003 19:01:05 -0000 1.17
--- auth.inc.php 28 Dec 2003 18:50:07 -0000 1.18
***************
*** 34,37 ****
--- 34,43 ----
// $Id$
+ // this file can't be used on its own
+ if (eregi ('auth.inc.php', $PHP_SELF))
+ {
+ die ('This file can not be used on its own.');
+ }
+
// MAIN
More information about the geeklog-cvs
mailing list