public function testChangePhpSettings() { TikiImporter::changePhpSettings(); $this->assertEquals(E_ALL & ~E_DEPRECATED, ini_get('error_reporting'), 'Should change the value of the error reporting'); $this->assertEquals('on', ini_get('display_errors'), 'Should change the value of display_errors'); $this->assertEquals(0, ini_get('max_execution_time'), 'Should change the value of max_execution_time'); }
$access->check_permission('tiki_p_admin_importer'); if (!empty($_POST['importerClassName'])) { $importerClassName = filter_input(INPUT_POST, 'importerClassName', FILTER_SANITIZE_STRING); switch ($importerClassName) { case 'TikiImporter_Wiki_Mediawiki': require_once 'lib/importer/tikiimporter_wiki_mediawiki.php'; break; case 'TikiImporter_Blog_Wordpress': require_once 'lib/importer/tikiimporter_blog_wordpress.php'; break; case 'default': break; } $importer = new $importerClassName(); $smarty->assign('softwareName', $importer->softwareName); TikiImporter::changePhpSettings(); } if (isset($_SESSION['tiki_importer_feedback'])) { $smarty->assign('importFeedback', $_SESSION['tiki_importer_feedback']); $smarty->assign('importLog', $_SESSION['tiki_importer_log']); $smarty->assign('importErrors', $_SESSION['tiki_importer_errors']); $smarty->assign('safe_mode', ini_get('safe_mode')); unset($_SESSION['tiki_importer_feedback']); unset($_SESSION['tiki_importer_log']); unset($_SESSION['tiki_importer_errors']); // wordpress specific if (isset($_SESSION['tiki_importer_wordpress_urls'])) { $smarty->assign('wordpressUrls', $_SESSION['tiki_importer_wordpress_urls']); unset($_SESSION['tiki_importer_wordpress_urls']); } } else {