Update of /cvsroot/easymod/easymod2/mods/easymod
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv20896
Modified Files:
easymod_display_functions.php easymod_install.php
Log Message:
- MODs can't edit files with 'config' in them. Makes it so can't edit config.php
- Attempt to move a .htaccess file into place so that you can't browse the mods folder after installing EasyMOD
- Removed the EasyMOD version check on install.
Index: easymod_display_functions.php
===================================================================
RCS file: /cvsroot/easymod/easymod2/mods/easymod/easymod_display_functions.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** easymod_display_functions.php 30 Sep 2006 17:59:09 -0000 1.26
--- easymod_display_functions.php 22 Feb 2007 03:32:20 -0000 1.27
***************
*** 746,755 ****
{
// if this version matches the one in the DB, then throw an error
if ( $row['config_value'] == $easymod_install_version)
{
$error_msg = '<strong>' . $lang['EM_err_critical_error'] . ':</strong> ' . $lang['EM_err_dupe_install'];
$error_msg .= '<br /><br />' . $lang['EN_reinstall_version'];
! handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $error_msg);
! }
}
$db->sql_freeresult($result);
--- 746,756 ----
{
// if this version matches the one in the DB, then throw an error
+ /* 0.4.0 removing check to see if EasyMOD has already been installed. Reinstalling easymod won't hurt anything
if ( $row['config_value'] == $easymod_install_version)
{
$error_msg = '<strong>' . $lang['EM_err_critical_error'] . ':</strong> ' . $lang['EM_err_dupe_install'];
$error_msg .= '<br /><br />' . $lang['EN_reinstall_version'];
! handle_error( OPEN_FAIL_OK, $file_list, false, $error_msg);
! }*/
}
$db->sql_freeresult($result);
Index: easymod_install.php
===================================================================
RCS file: /cvsroot/easymod/easymod2/mods/easymod/easymod_install.php,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** easymod_install.php 1 Oct 2006 22:09:24 -0000 1.49
--- easymod_install.php 22 Feb 2007 03:32:20 -0000 1.50
***************
*** 791,794 ****
--- 791,796 ----
$command_file->afile[] = 'copy includes/sql/sql_reserved_keywords.php ../../../includes/sql/sql_reserved_keywords.php';
$command_file->afile[] = 'copy languages/lang_sql_parser.php ../../../language/lang_english/lang_sql_parser.php';
+
+ //$command_file->afile[] = 'copy includes/htaccess.txt ../../../admin/mods/.htaccess';
//////////////
***************
*** 1872,1875 ****
--- 1874,1884 ----
}
+ // move protective .htaccess file into place
+ $type = $lang['EM_pp_download'];
+ $link = 'easymod_install.' . $phpEx . '?install_step=6&mode=file&pw=' . md5($em_pass) . '&file=../../../admin/mods/.htaccess';
+ $io = new mod_io('post_process.sh', '', $read, $write, $move, $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_port, $ftp_type, $ftp_cache);
+ $io->modio_prep('move');
+ $io->modio_move('../../../admin/mods/.htaccess', 'includes/htaccess.txt', 1, $link, $type);
+ echo '<br /><br /><strong>' . $lang['EM_move_htaccess'] . '</strong>: <b class="ok">' . $lang['EM_done'] . "</b>\n";
//
|