Example #1
0
function intDeleteUser(&$smarty, $user_id, $delete_comment, $del_connection_logs)
{
    $req = new DelUser($user_id, $delete_comment, $del_connection_logs);
    $resp = $req->sendAndRecv();
    if ($resp->isSuccessful()) {
        $smarty->assign("delete_successful", TRUE);
    } else {
        $resp->setErrorInSmarty($smarty);
    }
    intShowDeleteUserFace($smarty, $user_id);
}
function showDeleteUserFace($smarty, $user_ids)
{
    intShowDeleteUserFace($smarty, join(",", $user_ids));
}
Example #3
0
<?php

require_once "del_user_funcs.php";
needAuthType(ADMIN_AUTH_TYPE);
$smarty = new IBSSmarty();
if (isInRequest("user_id", "delete", "delete_comment")) {
    intDeleteUser($smarty, $_REQUEST["user_id"], $_REQUEST["delete_comment"], isInRequest("delete_connection_logs"));
} else {
    if (isInRequest("user_id")) {
        intShowDeleteUserFace($smarty, $_REQUEST["user_id"]);
    } else {
        redirectToUserSearch("");
    }
}