[geeklog-cvs] geeklog-1.3/public_html usersettings.php,1.68,1.69

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri Jul 25 04:29:58 EDT 2003


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

Modified Files:
	usersettings.php 
Log Message:
Check that language files end in .php and filter any files starting with '.'.


Index: usersettings.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** usersettings.php	22 Jul 2003 18:46:16 -0000	1.68
--- usersettings.php	25 Jul 2003 08:29:55 -0000	1.69
***************
*** 395,399 ****
          $fd = opendir ($_CONF['path_language']);
          while (($file = @readdir ($fd)) !== false) {
!             if (is_file ($_CONF['path_language'] . $file)) {
                  clearstatcache ();
                  $file = str_replace ('.php', '', $file);
--- 395,400 ----
          $fd = opendir ($_CONF['path_language']);
          while (($file = @readdir ($fd)) !== false) {
!             if ((substr ($file, 0, 1) != '.') && preg_match ('/\.php$/i', $file)
!                     && is_file ($_CONF['path_language'] . $file)) {
                  clearstatcache ();
                  $file = str_replace ('.php', '', $file);





More information about the geeklog-cvs mailing list