mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-01 07:15:29 +00:00
Added redirect for Dutch
This commit is contained in:
parent
de90c5c409
commit
7cf11b0fa4
@ -11,7 +11,7 @@ $domains = array(
|
||||
|
||||
function isCurrentDomain($domain)
|
||||
{
|
||||
return strtolower($domain) == strtolower($_SERVER['SERVER_NAME']);
|
||||
return strcasecmp($domain, $_SERVER['SERVER_NAME']) == 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
'fr' => array('name' => 'Français'),
|
||||
'el' => array('name' => 'Greek'),
|
||||
'es' => array('name' => 'Spanish'),
|
||||
'nl' => array('name' => 'Dutch'),
|
||||
'nl' => array('name' => 'Dutch', 'domain' => 'graphonline.top'),
|
||||
'sv' => array('name' => 'Swedish'),
|
||||
'de' => array('name' => 'German'),
|
||||
'pt' => array('name' => 'Portuguese'),
|
||||
|
@ -398,7 +398,8 @@
|
||||
// If we have any params then ignore redirect.
|
||||
if (count(array_values($_GET)) > 1)
|
||||
{
|
||||
return NULL;
|
||||
// Redirect with params.
|
||||
//return NULL;
|
||||
}
|
||||
|
||||
// Skip for localhost
|
||||
|
Loading…
x
Reference in New Issue
Block a user