function logout() { require "functions/cmum.php"; if (checksetting("fetchcsp") == "1") { if (checkcspconn() == "1") { cspupdateusers(); } } @session_start(); session_unset(); session_destroy(); header("Location:index.php?logout=1"); exit; }
$creategrp = "0"; } if (isset($_POST["createprof"]) && $_POST["createprof"] != "") { $createprof = $_POST["createprof"]; } else { $createprof = "0"; } $impstatus = impusrcsv($_POST["csv"], $creategrp, $createprof, $_POST["cmumcsvver"]); if (!empty($impstatus["usrimp"]) || !empty($impstatus["usrexi"])) { $notice = "\$('#modalImpUsrRes').modal({ show: true });"; } else { $notice = "toastr.error('Something went wrong, try again');"; } } if (isset($_POST["baction"]) && $_POST["baction"] == "Update CSP Users") { $status = cspupdateusers(); if ($status == "1") { $notice = "toastr.success('Updated performed');"; } else { $notice = "toastr.error('Something went wrong, try again');"; } } if (isset($_POST["baction"]) && $_POST["baction"] == "Send OSD") { $status = cspsendosdtoall($_POST["osdmsg"]); $status = explode(";", $status); if ($status["0"] == "1") { $notice = "toastr.success('Message sent to " . $status["1"] . " active and compatible newcamd sessions');"; } elseif ($status["0"] == "2") { $notice = "toastr.error('No active/compatible newcamd sessions found');"; } elseif ($status["0"] == "0") { $notice = "toastr.error('Message not sent, please try again');";