Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

29 lines
538 B
PHP

<?php
class Tools extends ToolsCore {
public static function getRedirectString($array = null)
{
if($array === null)
$array_var_redirect = array(
'utm_source',
'utm_campaign',
'utm_medium',
'utm_term',
'utm_content',
'tr'
);
$redirect_string = '';
foreach($array_var_redirect as $value)
{
$value_get = Tools::getValue($value, false);
if($value_get !== false)
{
$redirect_string .= (!empty($redirect_string) ? '&' : '').$value.'='.$value_get;
}
}
return $redirect_string;
}
}