<?php if( $_SESSION["user_id"] != "" ){ $operation = OperationData::getById( $_GET["id"] ); $operation->del(); Core::redir("./?view=order_canceled"); } ?>