Add quoted_printable_encode()
This commit is contained in:
parent
a58513cb59
commit
d9126e1105
15
classes.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
|
class ActionBase64Encode extends AbstractAction
|
||||||
{
|
{
|
||||||
public function __construct( $value )
|
public function __construct( $value )
|
||||||
|
@ -36,6 +36,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
|
|||||||
<select name="action">
|
<select name="action">
|
||||||
<option value="DoubleEntityDecode" <?php echo selected($action_str, 'DoubleEntityDecode'); ?>>html_entity_decode(html_entity_decode())</option>
|
<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="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="Urlencode" <?php echo selected($action_str, 'Urlencode'); ?>>urlencode()</option>
|
||||||
<option value="Urldecode"<?php echo selected($action_str, 'Urldecode'); ?>>urldecode()</option>
|
<option value="Urldecode"<?php echo selected($action_str, 'Urldecode'); ?>>urldecode()</option>
|
||||||
<option value="Unserialize"<?php echo selected($action_str, 'Unserialize'); ?>>unserialize()</option>
|
<option value="Unserialize"<?php echo selected($action_str, 'Unserialize'); ?>>unserialize()</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user