header('Location: http://www.wesco-eshop.fr');
}
+ public function pierronRef() {
+ global $core;
+ $ref = $this->args['ref'];
+
+ $r = $core->con->select('SELECT url FROM pierronref WHERE ref="' . $core->con->escape($ref) . '"');
+ if ($r->count()) {
+ header('Location: http://www.pierron.fr/' . $r->url);
+ exit;
+ }
+ header('Location: http://www.pierron.fr/');
+ }
+
public function flfRef() {
global $core;
return new flfLink($id, $init, $compiler);
} else if ($compiler->book->parametres->customLinkClass == 'InpesPopinLink') {
return new inpesPopinLink($id, $init, $compiler);
+ } else if ($compiler->book->parametres->customLinkClass == 'PierronLink') {
+ return new pierronLink($id, $init, $compiler);
}
case 8:
case 9:
class wescoLink extends normalLink {
public function getURL() {
- return 'http://workshop.fluidbook.com/services/wescoRef?ref=' . $this->to;
+ return 'https://workshop.fluidbook.com/services/wescoRef?ref=' . $this->to;
+ }
+
+ public function getTarget() {
+ return '_blank';
+ }
+
+}
+
+class pierronLink extends normalLink {
+
+ public function getURL() {
+ return 'https://workshop.fluidbook.com/services/pierronRef?ref=' . $this->to;
}
public function getTarget() {
class flfLink extends wescoLink {
public function getURL() {
- return 'http://workshop.fluidbook.com/services/flfRef?ref=' . $this->to;
+ return 'https://workshop.fluidbook.com/services/flfRef?ref=' . $this->to;
}
public function getTarget() {