$r = $core->con->select('SELECT url FROM flfref WHERE ref="' . $core->con->escape($this->args['ref']) . '"');
if ($r->count()) {
- header('Location: http://www.flf.fr' . $r->url . '?tkpub=ecatalogue-com-cata2018-170830&tkcmpg=&utm_source=ecatalogue&utm_medium=com&utm_campaign=cata2018&utm_term=170830&utm_content=');
+ if(strpos($r->url,'http')===0) {
+ header('Location: ' . $r->url);
+ }else{
+ header('Location: https://www.flf.fr' . $r->url);
+ }
exit;
}
- $q = 'site:http://www.flf.fr/formation-professionnelle/ "Code stage : ' . $this->args['ref'] . '"';
+ $q = 'site:https://www.flf.fr/formation-professionnelle/ "Code stage : ' . $this->args['ref'] . '"';
header('Location: https://www.google.fr/search?q=' . urlencode($q) . '&ie=utf-8&oe=utf-8&btnI');
exit;
}