migrate-sigs-form.php 899 B

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