//////////////////// Parameter ////////////////////////////////////////////////////////////
$URL = array();
$URL['t=home'] = 'https://www.fortenotation.com/en/';
$URL['t=contact'] = 'https://www.fortenotation.com/en/help/contact/form/';
$URL['t=forum'] = 'https://www.fortenotation.com/en/forum';
$URL['t=tips'] = 'https://www.fortenotation.com/en/category/how-to/';
$URL['t=faq'] = 'https://www.fortenotation.com/en/help/faq';
$URL['t=tutorial'] = 'https://www.fortenotation.com/en/files/FirstSteps.pdf';
$URL['t=tutorials'] = 'https://www.fortenotation.com/en/help/tutorials/';
$URL['t=intro-video'] = 'https://www.fortenotation.com/en/help/tutorials/video-tutorials/';
$URL['t=intro-video-scan'] = 'https://www.youtube.com/watch?v=gbkpO6Xfyik';
$URL['t=versions'] = 'https://www.fortenotation.com/en/products/writing-scores/forte-editions/';
$URL['t=feedback'] = 'https://www.fortenotation.com/en/form/cs/feedback.php';
$URL['t=community'] = 'http://www.facebook.com/FORTE.Notation';
$URL['t=facebook'] = 'http://www.facebook.com/FORTE.Notation';
$URL['t=facebook-like'] = 'http://www.facebook.com/FORTE.Notation';
$URL['t=youtube'] = 'http://www.fortenotation.com/youtube';
$URL['t=twitter'] = 'http://www.fortenotation.com/twitter';
$URL['t=support'] = 'https://www.fortenotation.com/en/help/support-ways/';
$URL['t=get-dropbox'] = 'https://www.dropbox.com/downloading';
$URL['t=trial|r=mnm'] = 'https://www.fortenotation.com/en/transaction/downloads/t/?t=forte_premium';
$URL['t=product-overview'] = 'https://www.fortenotation.com/en/products/writing-scores/product-overview/';
$URL['t=product-fplayer'] = 'https://www.fortenotation.com/en/products/writing-scores/forte-player/';
$URL['t=product-fscan'] = 'https://www.fortenotation.com/en/products/sheet-music-scanning/forte-scan-light/';
$URL['t=workspace-overview'] = 'https://www.fortenotation.com/en/help/tutorials/forte-workspace/';
$URL['t=info-education'] = 'https://www.fortenotation.com/en/products/writing-scores/special-licenses/';
$URL['t=dl-java'] = 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=106246';
$URL['t=buy|ti=all'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett.htm';
$URL['t=buy|g=321|r=email|i=6'] = 'https://www.fortenotation.com/en/lp/lp-forte-premium-of.htm';
$URL['t=buy|g=322|r=email|i=6'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=323|r=email|i=6'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=324|r=email|i=6'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=321|r=email|i=7'] = 'https://www.fortenotation.com/en/lp/lp-forte-premium-of.htm';
$URL['t=buy|g=322|r=email|i=7'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=323|r=email|i=7'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=324|r=email|i=7'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=321|i=of'] = 'https://www.fortenotation.com/en/lp/lp-forte-premium-of.htm';
$URL['t=buy|g=322|i=of'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=323|i=of'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=324|i=of'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|g=321'] = 'https://www.fortenotation.com/en/lp/lp-forte-premium.htm';
$URL['t=buy|g=322'] = 'https://www.fortenotation.com/en/lp/lp-forte-home.htm';
$URL['t=buy|g=323'] = 'https://www.fortenotation.com/en/lp/lp-forte-basic.htm';
$URL['t=buy|g=324'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett.htm';
$URL['t=buy|ti=all'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett.htm';
$URL['t=buy|ti=all-of'] = 'https://www.fortenotation.com/en/lp/lp-forte-komplett-of.htm';
$URL['t=buy|ti=premium-of'] = 'https://www.fortenotation.com/en/lp/lp-forte-premium-of.htm';
$URL['t=upgrade-fp-exp1'] = 'http://www.fortenotation.com';
$URL['t=upgrade-fp-exp2'] = 'hier kommt der LP-Link zum Upgrade einer 1-Jahr-Lizenz von FORTE Premium';
$URL_HOME = 'https://www.fortenotation.com/en/';
$TXT_REDIRECT_F = 'You should be automatically redirected. If not, please click here.’;
$TXT_ERROR = ‘This link is invalid.’;
?>
//////////////////// Run ////////////////////////////////////////////////////////////
$url = '';
if (isset($_GET['url']))
{
$url = $_GET['url'];
}
else
{
$arr_query = explode('&', $_SERVER['QUERY_STRING']);
foreach ($URL as $left => $right)
{
$match = true;
$arr = explode(‘|’, $left);
foreach ($arr as $i_query)
{
if (!in_array($i_query, $arr_query))
{
$match = false;
break;
}
}
if ($match)
{
$url = $right;
break;
}
}
}
if ($url == ” && $_GET[‘force_error’] == ‘1’)
{
$error = $TXT_ERROR;
}
else
{
$redirect_url = ($url != ”) ? $url : $URL_HOME;
$redirect_msg = ”;
$redirect_class = ‘info’;
}
?>
setTimeout(function () { window.location = ""; }, 1000);
