echo '<div class="wrap" id="poststuff">
		<h2>' . __('Your Minder Block List', 'ymind') . '</h2>';
echo ymind_start_box('Your Minder - Block List');
if (isset($_POST['delete'])) {
    ymind_blocks_delete();
}
if (isset($_REQUEST['block_edit'])) {
    ymind_block_edit();
} else {
    if (isset($_POST['block_save'])) {
        ymind_block_save();
    } else {
        ymind_block_list();
    }
}
echo ymind_end_box();
function ymind_block_save()
{
    global $wpdb;
    $id = htmlspecialchars($_POST['id']);
    $ip = htmlspecialchars($_POST['ip']);
    if (!$ip) {
        ymind_display_error(__('Please fill in all the fields', 'ymind'));
        ymind_block_edit();
        return;
    }
    if ($id > 0) {
        $ret = ymind_block_update($id, $ip);
    } else {
        $ret = ymind_block_insert($ip);
    }
function ymind_key_check()
{
    global $ymind_auth;
    //	$ymind_auth->render_activation_form();
    echo '<div class="wrap" id="poststuff">';
    echo '<div id="message" class="error fade ymind_auth">';
    if ($ymind_auth->message) {
        echo '<div style="margin: 5px 0px; color:red; font-weight:bold;">' . $ymind_auth->message . '</div>';
    }
    echo '<p>' . __('Your Minder will not function until a valid License Key has been entered. Please enter the email address you used to purchase the plugin in the box below to activate it. We also ask for the site that you purchased YMIND at so that the license check can be performed on the correct database.', 'ymind') . '</p>';
    echo '<p>' . __('If you don\'t have a key then please visit <a href=\'http://www.yourmembers.co.uk/\'>http://www.yourmembers.co.uk/</a> to purchase one.', 'ymind') . '</p>';
    echo '</div>';
    echo ymind_start_box('Your Minder Activation');
    echo '<div style="margin-bottom:10px;">
			<form method="POST">
				<table class="form-table">
					<tr>
						<th style="width: 230px; vertical-align: top; text-align: left;">Where did you purchase YMIND?</th>
						<td>
							<ul>
								<li><label><input type="radio" name="method" checked="checked" value="' . YMIND_PLUGIN_LICENSING . '" /> http://www.yourmembers.co.uk</label></li>
								<li><label><input type="radio" name="method" value="' . YMIND_PLUGIN_LICENSING_OLD . '" /> http://www.newmedias.co.uk</label></li>
								<li><label><input type="radio" name="method" value="other" /> Other</label> <input type="text" name="other_site" value="Where from?" /></li>
							</ul>
						</td>
					</tr>
					<tr>
						<th style="text-align: left;">Email / Activation Code</th>
						<td>
							<input name="registration_email" value="' . $default_text . '" style="width:300px;" type="text" />
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align: right;">
							<input name="activate_plugin_yourminder" value="Activate" type="submit" class="button"/>
						</td>
					</tr>
				</table>
			</form>
		</div>';
    echo ymind_end_box();
    echo '</div>';
}