function mpc_front_end()
{
    if (!empty($_GET['mpc-clear-url'])) {
        if (is_user_logged_in()) {
            echo '<div class="mpc-frontend-wrapper">';
            $response = mpc_purge_cache($_GET['mpc-clear-url']);
            if (!empty($response)) {
                echo '<script type="text/javascript">alert("' . strip_tags(str_replace('</p>', '\\n', $response)) . '");</script>';
            }
            echo '</div>';
        }
    }
}
<?php

if (isset($_POST["mpc-url"])) {
    $rawurl = $_POST['mpc-url'];
    ?>
<div id="message" class="updated">
<?php 
    echo mpc_purge_cache($rawurl);
    ?>
</div>
<?php 
}
?>
<div class="wrap">
	<h2><?php 
echo __("Manual purge cache", "mpc");
?>
</h2>
<?php 
if (file_exists(ABSPATH . W3TC_LOCATION)) {
    echo "<p>You are using W3 Total Cache.</p>";
} elseif (file_exists(ABSPATH . SUPERCACHE_LOCATION)) {
    echo "<p>You are using WP Super Cache.</p>";
} else {
    echo "<p>You seem to not have either W3 Total Cache or Super Cache installed</p>";
}
?>
	<form method="post" action="<?php 
echo str_replace('%7E', '~', $_SERVER['REQUEST_URI']);
?>
">