if ($interface->estCon($_GET['u']) && isset($_GET['dtyp'])) {
    $c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
    $b = $_GET['dtyp'];
    $c['desease'][$b][] = array(explode(',', $_GET['dnose']), strtotime($_GET['dt']));
    var_export($c);
    //file_put_contents ( $interface->card[0] . ":\\Global", base64_encode ( serialize( $c ) ) ) or print "failed";
    exit;
}
if (isset($_GET['delRec'])) {
    $c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
    print_r($c);
    $y = $c['desease'][2][$_GET['delRec']];
    unset($c['desease'][2][$_GET['delRec']]);
    $c['desease'][2] = array_values($c['desease'][2]);
    print_r($c);
    $interface->log(array("DEL RECEIPT", $y));
    file_put_contents($interface->card[0] . ":\\Global", base64_encode(serialize($c))) or print "failed";
    exit;
}
if (isset($_GET['delMeeting'])) {
    $c = unserialize(base64_decode(file_get_contents($interface->card[0] . ":\\Global")));
    print_r($c);
    $y = $c['cdates'][$_GET['delMeeting']];
    unset($c['cdates'][$_GET['delMeeting']]);
    $c['cdates'] = array_values($c['cdates']);
    print_r($c);
    $interface->log(array("DEL MEETING", $y));
    file_put_contents($interface->card[0] . ":\\Global", base64_encode(serialize($c))) or print "failed";
    exit;
}
if (isset($_GET['delDiagnose'])) {