Browse Source

Add quoted_printable_encode()

master
Adam Backstrom 9 years ago
parent
commit
d9126e1105
  1. 15
      classes.php
  2. 1
      index.php

15
classes.php

@ -53,6 +53,21 @@ class ActionQuotedPrintableDecode extends AbstractAction
}
}
class ActionQuotedPrintableEncode extends AbstractAction
{
public function __construct( $value )
{
parent::__construct( $value );
$this->setContainer( new TextareaContainer );
$this->setFormatter( new EchoFormatter );
}
public function decode()
{
return quoted_printable_encode( $this->value );
}
}
class ActionBase64Encode extends AbstractAction
{
public function __construct( $value )

1
index.php

@ -36,6 +36,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
<select name="action">
<option value="DoubleEntityDecode" <?php echo selected($action_str, 'DoubleEntityDecode'); ?>>html_entity_decode(html_entity_decode())</option>
<option value="QuotedPrintableDecode" <?php echo selected($action_str, 'QuotedPrintableDecode'); ?>>quoted_printable_decode()</option>
<option value="QuotedPrintableEncode" <?php echo selected($action_str, 'QuotedPrintableEncode'); ?>>quoted_printable_encode()</option>
<option value="Urlencode" <?php echo selected($action_str, 'Urlencode'); ?>>urlencode()</option>
<option value="Urldecode"<?php echo selected($action_str, 'Urldecode'); ?>>urldecode()</option>
<option value="Unserialize"<?php echo selected($action_str, 'Unserialize'); ?>>unserialize()</option>

Loading…
Cancel
Save