mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-23 16:36:38 +00:00
Added cross domain grap loading.
This commit is contained in:
18
backend/crossDomain.php
Normal file
18
backend/crossDomain.php
Normal 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']);
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user