session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>phpMyFAQ Attachment Migration</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="../template/default/favicon.ico" type="image/x-icon" /> <link rel="icon" href="../template/default/favicon.ico" type="image/x-icon" /> <style media="screen" type="text/css">@import url(style/setup.css);</style> </head> <body> <h1 id="header">phpMyFAQ Attachment Migration</h1> <?php $migrationType = PMF_Filter::filterInput(INPUT_POST, 'migrationType', FILTER_SANITIZE_STRING); $migration = new PMF_Attachment_Migration(); $options = array(); switch ($migrationType) { case PMF_Attachment_Migration::MIGRATION_TYPE1: //TODO implenemt this break; case PMF_Attachment_Migration::MIGRATION_TYPE2: /* case PMF_Attachment_Migration::MIGRATION_TYPE3: case PMF_Attachment_Migration::MIGRATION_TYPE4:*/ $options['defaultKey'] = PMF_Filter::filterInput(INPUT_POST, 'defaultKey', FILTER_SANITIZE_STRING); break; default: echo '<center><h2><font color="red">BACKUP YOUR FILES BEFORE ', 'PROCEED!!!</font></h2></center>'; showForm(); break; }
require PMF_ROOT_DIR . '/inc/Bootstrap.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <title>phpMyFAQ Attachment Migration</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="../assets/template/default/favicon.ico" type="image/x-icon" /> <link rel="icon" href="../assets/template/default/favicon.ico" type="image/x-icon" /> <style media="screen" type="text/css">@import url(css/setup.css);</style> </head> <body> <h1 id="header">phpMyFAQ Attachment Migration</h1> <?php $migrationType = PMF_Filter::filterInput(INPUT_POST, 'migrationType', FILTER_SANITIZE_STRING); $migration = new PMF_Attachment_Migration($faqConfig); $options = array(); switch ($migrationType) { case PMF_Attachment_Migration::MIGRATION_TYPE1: //TODO implenemt this break; case PMF_Attachment_Migration::MIGRATION_TYPE2: /* case PMF_Attachment_Migration::MIGRATION_TYPE3: case PMF_Attachment_Migration::MIGRATION_TYPE4:*/ $options['defaultKey'] = PMF_Filter::filterInput(INPUT_POST, 'defaultKey', FILTER_SANITIZE_STRING); break; default: echo '<h2 style="color: red;">BACKUP YOUR FILES BEFORE PROCEED!!!</h2>'; showForm(); break; }