function step2($option) { global $ff_mospath, $ff_admpath, $ff_compath, $mosConfig_fileperms; // remove erraneous by installer created dirs @rmdir($ff_admpath.'/exports'); @rmdir($ff_admpath.'/images/pizzashop'); @rmdir($ff_admpath.'/uploads'); @rmdir($ff_compath.'/admin'); @rmdir($ff_compath.'/images/icons'); @rmdir($ff_compath.'/packages'); @rmdir($ff_compath.'/sql'); // change file permissions if (!isset($mosConfig_fileperms)) { // pre 4.5.2, need to chmod myself $filemode = 0644; $dirmode = 0755; facileFormsInstaller::chmodRecursive($ff_admpath, $filemode, $dirmode); facileFormsInstaller::chmodRecursive($ff_compath, $filemode, $dirmode); $ff_modpath = $ff_mospath.'/modules'; facileFormsInstaller::chmodRecursive($ff_modpath.'/mod_breezingforms.php', $filemode, $dirmode); facileFormsInstaller::chmodRecursive($ff_modpath.'/mod_breezingforms.xml', $filemode, $dirmode); $ff_botpath = $ff_mospath.'/mambots/content'; facileFormsInstaller::chmodRecursive($ff_botpath.'/bot_breezingforms.php', $filemode, $dirmode); facileFormsInstaller::chmodRecursive($ff_botpath.'/bot_breezingforms.xml', $filemode, $dirmode); } // if // detect release $release = '1.4'; if (!facileFormsInstaller::testdb('#__facileforms_forms', 'package')) { $release = '1.3'; if (!facileFormsInstaller::testdb('#__facileforms_forms', 'runmode')) { $release = '1.2'; if (!facileFormsInstaller::testdb('#__facileforms_forms', 'class1')) { $release = '1.1'; if (!facileFormsInstaller::testdb('#__facileforms_forms', 'description')) { $release = '1.0'; if (!facileFormsInstaller::testdb('#__facileforms_forms', 'id')) $release = ''; // was not yet installed } // if } // if } // if } // if HTML_facileFormsInstaller::step2($option, $release); } // step2