mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
if (!defined('NOCSRFCHECK')) define('NOCSRFCHECK', '1');
|
|
if (!defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', '1');
|
|
if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
|
|
if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
|
if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
|
|
|
require '../main.inc.php';
|
|
|
|
if (empty($user->rights->takepos->run)) {
|
|
accessforbidden();
|
|
}
|
|
|
|
if (isset($_GET['status'])) {
|
|
die(strtoupper($_SESSION['SMP_CURRENT_PAYMENT']));
|
|
}
|
|
|
|
if ($_GET['smp-status']) {
|
|
print '<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<title>The HTML5 Herald</title>
|
|
<meta name="description" content="The HTML5 Herald">
|
|
<meta name="author" content="SitePoint">
|
|
|
|
<link rel="stylesheet" href="css/styles.css?v=1.0">
|
|
|
|
</head>
|
|
|
|
<body>';
|
|
$_SESSION['SMP_CURRENT_PAYMENT'] = $_GET['smp-status'];
|
|
|
|
print '<script type="application/javascript">
|
|
window.onload = function() {
|
|
window.close();
|
|
};
|
|
</script>';
|
|
|
|
print "Transaction status registered, you can close this";
|
|
|
|
die('</body></html>');
|
|
}
|
|
|
|
print 'NOOP';
|