Exemplo n.º 1
0
define('_MEXEC', 'OK');
require_once "../../system/load.php";
$action = $_REQUEST['action'];
switch ($action) {
    case "viewClients":
        viewClients();
        break;
    case "addClient":
        addClient();
        break;
    case "updateClient":
        updateClient();
        break;
    case "deleteClient":
        deleteClient();
    case "ExisUserName":
        ExisUserName();
        break;
    case "ExisEmail":
        ExisEmail();
        break;
    case "ExisEmailEdit":
        ExisEmailEdit();
        break;
    case "loginClient":
        loginClient();
        break;
    case "logout":
        logout();
        break;
Exemplo n.º 2
0
<?php

include_once 'connect.php';
switch ($_GET["table"]) {
    case "client":
        deleteClient($_GET);
        break;
    case "colis":
        deleteColis($_GET);
        break;
    default:
        break;
}
function deleteClient($data)
{
    global $conn;
    $sql = "DELETE FROM client where ( Id_Clie =" . $data["Id_Clie"] . ")";
    //echo $sql;
    if ($conn->query($sql) === TRUE) {
        echo "client deleted successfully";
    } else {
        echo "Error: " . $sql . "<br>" . $conn->error;
    }
}
function deleteColis($data)
{
    global $conn;
    $sql = "DELETE FROM colis where ( Num_Coli =" . $data["Num_coli"] . ")";
    //echo $sql;
    if ($conn->query($sql) === TRUE) {
        echo "document deleted successfully";
Exemplo n.º 3
0
}
if ($action == "closeclient") {
    check_token("WHMCS.admin.default");
    checkPermission("Edit Clients Details");
    checkPermission("Edit Clients Products/Services");
    checkPermission("Edit Clients Domains");
    checkPermission("Manage Invoice");
    closeClient($userid);
    redir("userid=" . $userid);
    exit;
}
if ($action == "deleteclient") {
    check_token("WHMCS.admin.default");
    checkPermission("Delete Client");
    run_hook("ClientDelete", array("userid" => $userid));
    deleteClient($userid);
    redir("", "clients.php");
}
if ($action == "savenotes") {
    check_token("WHMCS.admin.default");
    checkPermission("Edit Clients Details");
    update_query("tblclients", array("notes" => $adminnotes), array("id" => $userid));
    logActivity("Client Summary Notes Updated - User ID: " . $userid, $userid);
    redir("userid=" . $userid);
    exit;
}
if ($action == "addfunds") {
    check_token("WHMCS.admin.default");
    $addfundsamt = round($addfundsamt, 2);
    if (0 < $addfundsamt) {
        $invoiceid = createInvoices($userid);
Exemplo n.º 4
0
<?php

/**
 *
 * @ WHMCS FULL DECODED & NULLED
 *
 * @ Version  : 5.2.15
 * @ Author   : MTIMER
 * @ Release on : 2013-12-24
 * @ Website  : http://www.mtimer.cn
 *
 **/
if (!defined("WHMCS")) {
    exit("This file cannot be accessed directly");
}
if (!function_exists("deleteClient")) {
    require ROOTDIR . "/includes/clientfunctions.php";
}
$result = select_query("tblclients", "id", array("id" => $clientid));
$data = mysql_fetch_array($result);
if (!$data['id']) {
    $apiresults = array("result" => "error", "message" => "Client ID Not Found");
    return 1;
}
deleteClient($_POST['clientid']);
$apiresults = array("result" => "success", "clientid" => $_POST['clientid']);
Exemplo n.º 5
0
 */
include_once "mod.client.php";
$client_com_name = '';
$client_user_name = '';
$address = '';
if (isset($_POST['submit'])) {
    $client_com_name = $_POST['comname'];
    $client_user_name = $_POST['c_username'];
    $address = $_POST['add'];
    if (strlen($client_com_name) == 0) {
        $name_error = "Please enter your company name";
    }
    if (strlen($client_user_name) == 0) {
        $user_name_error = "Please enter your user name";
    }
    if (strlen($address) == 0) {
        $add_error = "Please specify your address";
    }
    if (strlen($client_com_name) != 0 && strlen($client_user_name) != 0 && strlen($address) != 0) {
        insertClient($client_com_name, $client_user_name, $address, $db);
    }
}
if (isset($_POST['continue'])) {
    $_SESSION['sess_order_type'] = $_POST['order_type'];
    $_SESSION['sess_client'] = $_POST['client'];
    header('Location: ' . ROOT . "order.php");
    session_write_close();
}
if (isset($_GET['cid'])) {
    deleteClient($_GET['cid'], $db);
}