Make scripts translatable

This commit is contained in:
2023-01-22 20:00:49 +01:00
parent 21eb38c393
commit 78ba449fa3
22 changed files with 1652 additions and 418 deletions

View File

@ -2,28 +2,28 @@
require('../common.php');
if(!ENABLE_UPGRADES){
die('Upgrades disabled');
die(_('Upgrades disabled'));
}
if(!COINPAYMENTS_ENABLED){
die('CoinPayments disabled');
die(_('CoinPayments disabled'));
}
if(empty($_SERVER['HTTP_HMAC'])){
die("No HMAC signature sent");
die(_('No HMAC signature sent'));
}
$merchant = $_POST['merchant'] ?? '';
if(empty($merchant)){
die("No Merchant ID passed");
die(_('No Merchant ID passed'));
}
if($merchant !== COINPAYMENTS_MERCHANT_ID){
die("Invalid Merchant ID");
die(_('Invalid Merchant ID'));
}
$request = file_get_contents('php://input');
if(empty($request)){
die("Error reading POST data");
die(_('Error reading POST data'));
}
$hmac = hash_hmac("sha512", $request, COINPAYMENTS_IPN_SECRET);
if($hmac !== $_SERVER['HTTP_HMAC']){
die("HMAC signature does not match");
die(_('HMAC signature does not match'));
}
$db = get_db_instance();
$status = 0;