<?php include_once 'controller/ApiYandexController.php'; if (!empty($_GET['login']) && !empty($_GET['domain'])) { $start = new ApiYandexController(); if ($start->deleteUser($_GET)) { header('Location:index.php'); } else { echo 'Error'; } } else { header('Location:index.php'); }