} elseif ($action == 'del') { if ($_SESSION["rand"] != $_POST["u_token_key"]) { header("Location: /404.php"); exit; } $sId = intval($_GET['id']); $sUid = intval($_GET['uid']); $bForce = isset($_GET['force']); if ($sId && $sUid) { $aInfo = account::getOperationInfo($sId); if ($account->GetInfo($sUid) && ($bForce || $account->sum >= $aInfo['ammount'])) { $account->Del($sUid, $sId); // уведомление о том, что ошибочно зачисленное списано require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/smail.php'; $sm = new smail(); $sm->alphaBankMistakeSorry($sUid, $aInfo['op_date']); $_SESSION['success'] = 'ok'; header('Location: /siteadmin/alpha/?ds=' . $_GET['ds'] . '&de=' . $_GET['de']); exit; } else { $bAskForce = true; } } else { $sError = 'Данные указаны не верно'; } } if ($_GET['ds']) { $ds = date("Y-m-d", strtotime($_GET['ds'])); } if ($_GET['de']) { $de = date("Y-m-d", strtotime($_GET['de']));