Added cross domain grap loading.

This commit is contained in:
Oleg Sh
2024-10-12 18:40:51 +02:00
parent 7848441c56
commit 53ed898c68
2 changed files with 41 additions and 2 deletions

18
backend/crossDomain.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
/*
Function to save/open graph
*/
// Domains of service.
$domains = array(
"graphonline.ru",
"graphonline.top",
);
function isCurrentDomain($domain)
{
return strtolower($domain) == strtolower($_SERVER['SERVER_NAME']);
}
?>