Update of /cvsroot/easymod/easymod2/mods/easymod/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23815/includes
Modified Files:
admin_easymod.php.txt
Log Message:
First major commit for the review of the ACP script.
Index: admin_easymod.php.txt
===================================================================
RCS file: /cvsroot/easymod/easymod2/mods/easymod/includes/admin_easymod.php.txt,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** admin_easymod.php.txt 31 Oct 2005 17:57:15 -0000 1.28
--- admin_easymod.php.txt 2 Nov 2005 04:27:42 -0000 1.29
***************
*** 24,34 ****
if (!empty($setmodules))
{
! if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_easymod.' . $phpEx)) )
{
! include($phpbb_root_path . 'language/lang_english/lang_easymod.' . $phpEx);
}
else
{
! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_easymod.' . $phpEx);
}
[...4674 lines suppressed...]
{
! message_die(GENERAL_ERROR, '<br />' . $lang['EM_err_write_pp'] . '<br />' . $lang['EM_err_cwd'] . ': ' . getcwd() . '<br />');
}
// closs the FTP session
! $command_file->modio_cleanup('move');
+ $phpbb_version = get_phpbb_version();
+ $mod_title = str_replace("'", "''", substr($mod_title, 0, 255));
+ $mod_author_handle = str_replace("'", "''", substr($mod_author_handle, 0, 25));
+ $mod_author_email = str_replace("'", "''", substr($mod_author_email, 0, 100));
+ $mod_author_name = str_replace("'", "''", substr($mod_author_name, 0, 100));
+ $mod_author_url = str_replace("'", "''", substr($mod_author_url, 0, 100));
+ $mod_description = str_replace("'", "''", $mod_description);
+ $mod_version = str_replace("'", "''", substr($mod_version, 0, 15));
+ $themes = str_replace("'", "''", $themes);
+ $languages = str_replace("'", "''", $languages);
if ($preview)
|