Пример #1
0
function main()
{
    $action = $_REQUEST['action'];
    if (isset($action)) {
        switch ($action) {
            case "save_map":
                save_map($_REQUEST);
                break;
            case "show_tiles":
                show_tiles();
                break;
            case "show_maps":
                show_maps();
                break;
            case "load_map":
                load_map($_REQUEST['map']);
                break;
            default:
                echo 'invalid action';
        }
    }
}
Пример #2
0
} elseif (file_exists("../inc/common.inc")) {
    require_once "../inc/common.inc";
} elseif (file_exists("../../../inc/common.inc")) {
    require_once "../../../inc/common.inc";
}
require_once BASEPATH . '/qcn/inc/utils.inc';
require_once BASEPATH . '/qcn/inc/qcn_auto_detect.inc';
$show_mg = $_GET["show_mag"];
page_top();
if ($show_mg == "y" || $show_mg == "Y") {
    event_info("y");
} else {
    event_info();
}
if ($show_mg == "y" || $show_mg == "Y") {
    show_maps("y");
} else {
    show_maps();
}
echo "<hr> \n<h2>Triggers:</h2>\n";
trigger_info();
show_scatter_tvt();
// Show Estimated v. Observed Travel time  scatter plot
show_scatter_avd();
// Show Amplitude v. Distance scatter plot
show_triggers_db();
// Show the trigger database
show_disclaimer();
show_viewed_on();
show_seismograms();
page_end();
Пример #3
0
function hugeitgooglemaps_main()
{
    if (is_plugin_active('google-map-wp/googlemap.php')) {
        header('Location:admin.php?page=hugeitgooglemap_main');
    }
    require_once "admin/maps_func.php";
    require_once "admin/maps_view.php";
    global $wpdb;
    if (!isset($_GET['task'])) {
        show_maps();
    } else {
        if (isset($_GET['id'])) {
            $id = $_GET['id'];
        }
        $task = $_GET['task'];
        switch ($task) {
            case 'add_cat':
                add_maps();
                break;
            case 'edit_cat':
                edit_maps();
                break;
            case 'remove_cat':
                remove_maps($id);
                show_maps();
                break;
        }
    }
}