function counterize_options_page_callback()
{
    global $wpdb;
    //Not admin? Go away.
    if (!current_user_can('manage_options')) {
        die(__("You don't have sufficient privileges to display this page", COUNTERIZE_TD));
    }
    $MajorVersion = counterize_get_version('major');
    $MinorVersion = counterize_get_version('minor');
    $Revision = counterize_get_version('revision');
    ?>

	<div class="wrap">
		<div class="icon32" id="icon-options-general"></div>

		<h2><?php 
    echo __('Counterize configuration - Version ', COUNTERIZE_TD) . $MajorVersion . '.' . $MinorVersion . '.' . $Revision;
    ?>
</h2>

		<form method="post" action="options.php">

			<?php 
    settings_fields('counterize_options_group');
    do_settings_sections('counterize_options_page_id');
    ?>

			<p class="submit">
				<input type="submit" class="button-primary" value="<?php 
    _e('Save Changes', COUNTERIZE_TD);
    ?>
" />
			</p>
		</form>

	</div>

	<?php 
    counterize_pagefooter();
}
    public function counterize_display_dashboard_browsers_page_callback()
    {
        // Amount to pass as option to the graphs...
        $amount2 = counterize_get_option('amount2');
        if ($amount2 == '' || $amount2 == ' ' || !is_numeric($amount2)) {
            $amount2 = 10;
        }
        echo '
		<div id="icon-plugins" class="icon32"></div>
		<h1>' . __('Counterize', COUNTERIZE_PLUGIN_BROWSERS_TD) . ' - ' . __('Dashboard', COUNTERIZE_PLUGIN_BROWSERS_TD) . ' - ' . __('Browsers', COUNTERIZE_PLUGIN_BROWSERS_TD) . '</h1>
		';
        $this->counterize_show_data_browsers(true, $amount2, true);
        //Print the footer
        counterize_pagefooter();
    }
function counterize_display_dashboard_history_page_callback()
{
    // Amount to pass as option to the graphs...
    $amount2 = counterize_get_option('amount2');
    if ($amount2 == '' || $amount2 == ' ' || !is_numeric($amount2)) {
        $amount2 = 10;
    }
    echo '
	<div id="icon-plugins" class="icon32"></div>
	<h1>' . __('Counterize', COUNTERIZE_TD) . ' - ' . __('Dashboard', COUNTERIZE_TD) . ' - ' . __('History', COUNTERIZE_TD) . '</h1>
	';
    if (current_user_can('manage_options')) {
        $updateText = '';
        if (isset($_GET['killmass']) && check_admin_referer('action_killmass')) {
            if ($_GET['killmass'] == 'yes') {
                if (isset($_POST['counterize_killemall'])) {
                    foreach ($_POST['counterize_killemall'] as $key => $val) {
                        $val = intval($val);
                        counterize_killEntry($val);
                        $updateText .= __('Entry: ' . $val . ' removed<br />', COUNTERIZE_TD);
                    }
                    counterize_updateText($updateText);
                    unset($updateText);
                }
            }
        }
        // For the zap-an-entry-option
        if (isset($_GET['kill']) && check_admin_referer('action_uri_kill')) {
            $val = intval($_GET['kill']);
            counterize_killEntry($val);
            counterize_updateText(__('Deleting entry ', COUNTERIZE_TD) . $val);
        }
        //Show latest entries
        counterize_show_history('counterize_dashboard_history', true);
    }
    //Print the footer
    counterize_pagefooter();
}