Skip to content
Snippets Groups Projects
Commit ce08a088 authored by Olav Morken's avatar Olav Morken
Browse files

Update HTTP-POST and HTTP-Redirect debug pages to be translateable.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@762 44740490-163a-0410-bde0-09ae8108e29a
parent a7b09df7
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,27 @@ $lang = array(
'sv' => 'Skicka metadata till %FEDERATION%',
'es' => 'Enviar mis metadatos a %FEDERATION%',
),
'debug_sending_message_title' => array (
'en' => 'Sending message',
),
'debug_sending_message_text_button' => array (
'en' => 'You are about to send a message. Hit the submit message button to continue.',
),
'debug_sending_message_text_link' => array (
'en' => 'You are about to send a message. Hit the submit message link to continue.',
),
'debug_sending_message_send' => array (
'en' => 'Submit message',
),
'debug_sending_message_msg_title' => array (
'en' => 'Message',
),
'debug_sending_message_msg_text' => array (
'en' => 'As you are in debug mode, you get to see the content of the message you are sending:',
),
'debug_disable_debug_mode' => array (
'en' => 'You can turn off debug mode in the global simpleSAMLphp configuration file <tt>config/config.php</tt>.',
),
);
......
......@@ -8,18 +8,18 @@
<h2>Sending a SAML message using HTTP-REDIRECT</h2>
<h2><?php echo($this->t('{admin:debug_sending_message_title}')); ?></h2>
<p>You are about to send a SAML message using HTTP REDIRECT. Here is the message:</p>
<p><?php echo($this->t('{admin:debug_sending_message_text_link}')); ?></p>
<pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['message']; ?></pre>
<p>[ <a id="sendlink" href="<?php echo htmlentities($this->data['url']); ?>">send SAML message</a> ]</p>
<h2>Debug mode</h2>
<p>[ <a id="sendlink" href="<?php echo htmlentities($this->data['url']); ?>"><?php echo($this->t('{admin:debug_sending_message_send}')); ?></a> ]</p>
<p>As you are in debug mode you are lucky to see the content of the response you are sending. You can turn off debug mode in the global simpleSAMLphp configuration file <tt>config/config.php</tt>.</p>
<h2><?php echo($this->t('{admin:debug_sending_message_msg_title}')); ?></h2>
<p><?php echo($this->t('{admin:debug_sending_message_msg_text}')); ?></p>
<pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['message']; ?></pre>
<p><?php echo($this->t('{admin:debug_disable_debug_mode}')); ?></p>
<?php $this->includeAtTemplateBase('includes/footer.php'); ?>
\ No newline at end of file
......@@ -10,20 +10,22 @@
<h2>Sending a SAML response to the service</h2>
<h2><?php echo($this->t('{admin:debug_sending_message_title}')); ?></h2>
<p>You are about to send a SAML response back to the service. Hit the send response button to continue.</p>
<p><?php echo($this->t('{admin:debug_sending_message_text_button}')); ?></p>
<form method="post" action="<?php echo htmlspecialchars($this->data['destination']); ?>">
<input type="hidden" name="SAMLResponse" value="<?php echo htmlspecialchars($this->data['response']); ?>" />
<input type="hidden" name="<?php echo htmlspecialchars($this->data['RelayStateName']); ?>" value="<?php echo htmlspecialchars($this->data['RelayState']); ?>" />
<input type="submit" value="Submit the response to the service" id="sendbutton" />
<input type="submit" value="<?php echo($this->t('{admin:debug_sending_message_send}')); ?>" id="sendbutton" />
</form>
<h2>Debug mode</h2>
<h2><?php echo($this->t('{admin:debug_sending_message_msg_title}')); ?></h2>
<p>As you are in debug mode you are lucky to see the content of the response you are sending:</p>
<p><?php echo($this->t('{admin:debug_sending_message_msg_text}')); ?></p>
<pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['responseHTML']; ?></pre>
<p><?php echo($this->t('{admin:debug_disable_debug_mode}')); ?></p>
<?php $this->includeAtTemplateBase('includes/footer.php'); ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment