где мне его здесь поставить? между какими строчками?
<?php
session_start();
define('unisitecms', true);
include_once("../../../systems/config.php");
include_once("{$_SERVER['DOCUMENT_ROOT']}/systems/classes/UniSite.php");
$languages_content = json_decode( ob_get($_SERVER["DOCUMENT_ROOT"]."/lang/".$settings["lang_site_default"].".php"), true );
$title_payment = $languages_content["payment-replenishment-title"];
$param = paymentParams('liqpay');
$bonus = bonusProgram("balance_profile");
$data = $_POST["data"];
$signature = $_POST["signature"];
$data_json = json_decode(base64_encode($data), true);
$sign = base64_encode( sha1(
trim($param["private_key"]) .
$data .
trim($param["private_key"])
, 1 ));
$id = explode("-", $data_json["order_id"]);
if($sign == $signature && ($data_json["status"] == "success" || $data_decode["status"] == "wait_accept" || $data_json["status"] == "sandbox")){
$Profile->profileBalance(array("id_user"=>intval($id[0]),"summa"=>round($data_json["amount"],2),"method"=>"LiqPay","title"=>$title_payment,"id_order"=>intval($id[1])),"+");
if($bonus["procent"]){
$summa = (($data_json["amount"] / 100) * $bonus["procent"]);
$Profile->profileBalance(array("id_user"=>intval($id[0]),"summa"=>round($summa,2),"method"=>"LiqPay","title"=>$bonus["title"],"id_order"=>intval($id[1])),"+");
}