Пример #1
0
<?php

include '../../includes/header.php';
if (isset($_GET) && !empty($_GET)) {
    $postData = array('id' => $_GET['id']);
    // echo "<pre>"; print_r($_GET); exit;
    $patientInfoDel = WSModel::get_ws_service(BASE_WS_URL . $ws_url['patientInfoDel'] . '/' . $_GET['id'], $postData);
    echo "<pre>";
    print_r($patientInfoDel);
    exit;
    if (isset($patientInfoDel) && $patientInfoDel->status == 1) {
        $_SESSION['message'] = 'Your account has been activated. Please login.';
        header('Location: ' . BASE_URL . 'pages/user/login.html');
    } else {
        $_SESSION['message'] = 'Token Expired';
    }
}
Пример #2
0
<?php

$status = '';
if (isset($_GET['status']) && !empty($_GET['status'] && $_GET['status'] == 'success')) {
    $status = "pages/user/login.html?status=success";
}
include 'includes/header.php';
WSModel::get_ws_service(BASE_WS_URL . $ws_url['logoutUser']);
unset($_SESSION);
session_destroy();
$_SESSION['message'] = "logout";
header('Location: ' . BASE_URL . $status);
Пример #3
0
        $postData = array('dob' => date('Y-m-d H:i:s', strtotime($_POST['dob'])), 'email' => $_POST['email'], 'firstname' => $_POST['firstname'], 'gender' => $_POST['gender'], 'lastname' => $_POST['lastname'], 'phone' => $_POST['phone'], 'title' => $_POST['title'], 'patientId' => $_POST['patientId'], 'relation' => $_POST['relation'], 'user' => $_POST['user']);
        $addPatientCircle = WSModel::get_ws_service(BASE_WS_URL . $ws_url['circleAdd'], $postData, TRUE, 'POST');
        echo $addPatientCircle;
        break;
    case "patientInfoDel":
        $patientInfoDel = WSModel::get_ws_service(BASE_WS_URL . $ws_url['patientInfoDel'] . $_POST['id'], TRUE, 'DELETE');
        echo $patientInfoDel;
        break;
    case "patientDelete":
        $patientDelete = WSModel::get_ws_service(BASE_WS_URL . $ws_url['patientDelete'] . $_POST['id'], TRUE, 'DELETE');
        echo $patientDelete;
        break;
    case "patientPblmDel":
        $patientPblmDel = WSModel::get_ws_service(BASE_WS_URL . $ws_url['patientPblmDel'] . $_POST['id'], TRUE, 'DELETE');
        echo $patientPblmDel;
        break;
    case "patientHisDel":
        $patientHisDel = WSModel::get_ws_service(BASE_WS_URL . $ws_url['patientHisDel'] . $_POST['id'], TRUE, 'DELETE');
        echo $patientHisDel;
        break;
    case "patientSurDel":
        $patientSurDel = WSModel::get_ws_service(BASE_WS_URL . $ws_url['patientSurDel'] . $_POST['id'], TRUE, 'DELETE');
        echo $patientSurDel;
        break;
    case "patientCircleDel":
        $patientCircleDel = WSModel::get_ws_service(BASE_WS_URL . $ws_url['patientCircleDel'] . $_POST['id'], TRUE, 'DELETE');
        echo $patientCircleDel;
        break;
    default:
        echo "Your favorite color is neither red, blue, nor green!";
}
Пример #4
0
<?php

include '../../includes/header.php';
if (isset($_GET) && !empty($_GET)) {
    $postData = array('token' => $_GET['token']);
    // echo "<pre>"; print_r($_GET); exit;
    $regConf = WSModel::get_ws_service(BASE_WS_URL . $ws_url['regConf'], $postData);
    if (isset($regConf) && $regConf->status == 1) {
        $_SESSION['message'] = 'Your account has been activated. Please login.';
        header('Location: ' . BASE_URL . 'pages/user/login.html');
    } else {
        $_SESSION['message'] = 'Token Expired';
    }
}