mantis-matrix-integration – Rev 1

Subversion Repositories:
Rev:
<?php
/**
 * Matrix Integration
 * Copyright (C) 2024 Wizardry and Steamworks (wizardry.steamworks@outlook.com)
 *     based on: Slack Integration by 2014 Karim Ratib (karim.ratib@gmail.com)
 * License GPLv2
 */

auth_reauthenticate( );
access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );

html_page_top( plugin_lang_get( 'title' ) );

print_manage_menu( );

?>

<br />

<form action="<?php echo plugin_page( 'config_edit' )?>" method="post">
<?php echo form_security_field( 'plugin_Matrix_config_edit' ) ?>
  <table align="center" class="width75" cellspacing="1">

    <tr>
      <td class="form-title" colspan="3">
        <?php echo plugin_lang_get( 'title' ) . ' : ' . plugin_lang_get( 'config' )?>
      </td>
    </tr>

    <tr <?php echo helper_alternate_class( )?>>
      <td class="category">
        <?php echo plugin_lang_get( 'server' )?>
      </td>
      <td  colspan="2">
        <input size="80" type="text" name="server" value="<?php echo plugin_config_get( 'server' )?>" />
      </td>
    </tr>

    <tr <?php echo helper_alternate_class( )?>>
      <td class="category">
        <?php echo plugin_lang_get( 'username' )?>
      </td>
      <td  colspan="2">
        <input type="text" name="username" value="<?php echo plugin_config_get( 'username' )?>" />
      </td>
    </tr>
    
    <tr <?php echo helper_alternate_class( )?>>
      <td class="category">
        <?php echo plugin_lang_get( 'password' )?>
      </td>
      <td  colspan="2">
        <input type="password" name="password" value="<?php echo plugin_config_get( 'password' )?>" />
      </td>
    </tr>

    <tr <?php echo helper_alternate_class( )?>>
      <td class="category">
        <?php echo plugin_lang_get( 'skip_bulk' )?>
      </td>
      <td  colspan="2">
        <input type="checkbox" name="skip_bulk" <?php if (plugin_config_get( 'skip_bulk' )) echo "checked"; ?> />
      </td>
    </tr>

    <tr <?php echo helper_alternate_class( )?>>
      <td class="category">
        <?php echo plugin_lang_get( 'room' )?>
      </td>
      <td  colspan="2">
        <input type="text" name="room" value="<?php echo plugin_config_get( 'room' )?>" />
      </td>
    </tr>

    <tr>
      <td class="center" colspan="3">
        <input type="submit" class="button" value="<?php echo lang_get( 'change_configuration' )?>" />
      </td>
    </tr>

  </table>
</form>

<?php
html_page_bottom();