Update of /cvsroot/easymod/easymod2/mods/easymod/em_includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10578/mods/easymod/em_includes
Modified Files:
em_functions.php
Log Message:
Added some changes by -=ET=-
Fixed a bug or two
Index: em_functions.php
===================================================================
RCS file: /cvsroot/easymod/easymod2/mods/easymod/em_includes/em_functions.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** em_functions.php 11 Jun 2005 23:05:53 -0000 1.6
--- em_functions.php 20 Jun 2005 22:15:41 -0000 1.7
***************
*** 723,730 ****
function check_access_read( &$access_msg)
{
! global $phpEx, $lang ;
// using a file that we know is present
! if ($fin = fopen( 'lang_easymod.'.$phpEx, 'r'))
{
// just make sure the first line is what we were expecting
--- 723,730 ----
function check_access_read( &$access_msg)
{
! global $phpEx, $lang, $language ;
// using a file that we know is present
! if ($fin = fopen( 'languages/lang_easymod_'.$language.'.'.$phpEx, 'r'))
{
// just make sure the first line is what we were expecting
***************
*** 739,743 ****
{
// $access_msg = $lang['EM_failed'] ;
! $access_msg = "Sucessfully opened [lang_easymod.$phpEx] for reading, but did not find the expected string.<br /> Found this instead: [" . htmlspecialchars($buffer) . "]" ;
return false ;
}
--- 739,743 ----
{
// $access_msg = $lang['EM_failed'] ;
! $access_msg = "Sucessfully opened [lang_easymod_$language.$phpEx] for reading, but did not find the expected string.<br /> Found this instead: [" . htmlspecialchars($buffer) . "]" ;
return false ;
}
***************
*** 746,750 ****
{
// $access_msg = $lang['EM_failed'] ;
! $access_msg = "Could not open file [lang_easymod.$phpEx] for reading." ;
return false ;
}
--- 746,750 ----
{
// $access_msg = $lang['EM_failed'] ;
! $access_msg = "Could not open file [lang_easymod_$language.$phpEx] for reading." ;
return false ;
}
***************
*** 944,951 ****
function check_access_copy( &$access_msg)
{
! global $phpbb_root_path, $phpEx, $lang ;
// check for copy command
! if ( copy( 'lang_easymod.' . $phpEx, $phpbb_root_path . 'EM_test.txt'))
{
// clean up!
--- 944,951 ----
function check_access_copy( &$access_msg)
{
! global $phpbb_root_path, $phpEx, $lang, $language ;
// check for copy command
! if ( copy( 'languages/lang_easymod_'.$language.'.' . $phpEx, $phpbb_root_path . 'EM_test.txt'))
{
// clean up!
|