migrate-sigs-form.php 900 B

12345678910111213141516171819202122
  1. <?php
  2. function phorum_htmlpurifier_show_migrate_sigs_form() {
  3. $frm = new PhorumInputForm ('', "post", "Migrate");
  4. $frm->hidden("module", "modsettings");
  5. $frm->hidden("mod", "htmlpurifier");
  6. $frm->hidden("migrate-sigs", "1");
  7. $frm->addbreak("Migrate user signatures to HTML");
  8. $frm->addMessage('This operation will migrate your users signatures
  9. to HTML. <strong>This process is irreversible and must only be performed once.</strong>
  10. Type in yes in the confirmation field to migrate.');
  11. if (!file_exists(dirname(__FILE__) . '/../migrate.php')) {
  12. $frm->addMessage('Migration file does not exist, cannot migrate signatures.
  13. Please check <tt>migrate.bbcode.php</tt> on how to create an appropriate file.');
  14. } else {
  15. $frm->addrow('Confirm:', $frm->text_box("confirmation", ""));
  16. }
  17. $frm->show();
  18. }
  19. // vim: et sw=4 sts=4