conn = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD); $ok = mysqli_select_db($this->conn,DB_NAME); if (!$ok) return false; $this->get_options(); // plugin disabled if (!$this->enable) return; // current request is admin's one if (isset($_COOKIE['wpantiddos']) && $_COOKIE['wpantiddos']==$this->cookie) return; if ($this->only_params_enabled) if (!$this->only_param_detected()) return; // detect request type and limits if ($this->xhr_request()) { if ($this->hits_limit_XHR=='ANY') return; $request_type = 'xhr'; $hits_limit = $this->hits_limit_XHR; $seconds_limit = wpadtiddos_seconds_limit_XHR; } elseif ($_POST && isset($_POST[$this->pass_param]) ) { if ($this->seconds_limit_AUTH=='ANY') return; $request_type = 'auth'; $seconds_limit = $this->seconds_limit_AUTH; $this->only_params .= ' '.$this->pass_param; $hits_limit = 1; } elseif ($_POST) { if ($this->seconds_limit_POST=='ANY') return; $request_type = 'post'; $hits_limit = 1; $seconds_limit = $this->seconds_limit_POST; } else { if ($this->hits_limit_GET=='ANY') return; $request_type = 'get'; $hits_limit = $this->hits_limit_GET; $seconds_limit = wpadtiddos_seconds_limit_GET; } if ($this->send_header) header("WP_AntiDDOS: yes"); if ($this->cloudflare) { if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; } $this->ip = $_SERVER['REMOTE_ADDR']; if ($this->block_cnet) $this->ip = substr($this->ip,0,strrpos($this->ip,'.')+1); $this->warm_level = ceil($hits_limit/2); try { $res = mysqli_query($this->conn,"SELECT count(*) kount FROM $this->table_name WHERE ip='".addslashes($this->ip)."' AND tstamp>".(time()-$seconds_limit)." AND type='$request_type'"); $row = mysqli_fetch_assoc($res); if (!$row) $this->error_msg = 'Error detected'; $this->hits = @$row['kount']+1; // consider current request too if ($this->hits==0) // if no hits from this IP $this->visitor = "new"; elseif ($this->hits>$hits_limit) $this->visitor = "hot"; elseif ($this->hits>=$this->warm_level) $this->visitor = "warm"; else $this->visitor = "cool"; // add current hit mysqli_query($this->conn,"INSERT INTO $this->table_name SET ip='$this->ip', type='$request_type', tstamp=".time()); // cleanup ip list $clear_time = max($this->delay_time,$seconds_limit); mysqli_query($this->conn,"DELETE FROM $this->table_name WHERE tstamp<".(time()-$clear_time)); } catch(Exception $e) { $this->error_msg = $e->getString(); $this->status = 'error'; mysqli_close($this->conn); return; } mysqli_close($this->conn); if (!empty($this->error_msg) ) { $this->status = 'error'; } if ($this->auto && $this->visitor=='hot') { header('HTTP/1.0 503 Service Unavailable'); header('Status: 503 Service Unavailable'); header("Retry-After: ".($this->delay_time+1)); // submit form first if POST request if (!$_POST) print ""; else { $inputs = $this->array_to_fields($_POST); print '
'. $inputs. '
'; } if ($request_type=='auth') printf("

$this->delay_message_auth

",$this->delay_time); else printf("

$this->delay_message

",$this->delay_time); die(); } } function xhr_request() { if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { if ($_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest') return true; } else { $headers = getallheaders(); if (isset($headers['X-Requested-With']) && $headers['X-Requested-With']=='XMLHttpRequest') return true; } return false; } public function get_options() { global $table_prefix; $result = mysqli_query($this->conn,"SELECT option_name, option_value FROM {$table_prefix}options WHERE option_name LIKE 'Wpantiddos_Plugin_%'"); while ($row = mysqli_fetch_assoc($result)) { $name = str_replace('Wpantiddos_Plugin_','',$row['option_name']); $value = $row['option_value']; if ($value==='Yes') $value = true; if ($value==='No') $value = false; if (isset($this->$name)) $this->$name = $value; } } public function only_param_detected() { $acual = array_merge(array_keys($_GET),array_keys($_POST)); $found = array_intersect($acual,explode(' ',trim($this->only_params))); return $found; } function array_to_fields($fields, $prefix = '') { $form_html = ''; foreach ($fields as $name => $value) { if ( ! is_array($value)) { if ( ! empty($prefix)) { $name = $prefix . '[' . $name . ']'; } // generate the hidden field $form_html .= "\n"; } else { if ( ! empty($prefix)) { $subprefix = $prefix . '[' . $name . ']'; } else { $subprefix = $name; } $form_html .= array_to_fields($value, $subprefix); } } return $form_html; } } ?>{"id":771,"date":"2020-04-09T08:18:54","date_gmt":"2020-04-09T08:18:54","guid":{"rendered":"https:\/\/www.film-antimicrobien.fr\/?page_id=771"},"modified":"2020-06-14T21:20:12","modified_gmt":"2020-06-14T21:20:12","slug":"hygiaphones-antimicrobiens","status":"publish","type":"page","link":"https:\/\/www.film-antimicrobien.fr\/hygiaphones-antimicrobiens\/","title":{"rendered":"Protection plexivirus Cov’ecran !"},"content":{"rendered":"

[vc_row container=\u00a0\u00bbtrue\u00a0\u00bb css=\u00a0\u00bb.vc_custom_1474001646517{padding-top: 0px !important;padding-bottom: 55px !important;}\u00a0\u00bb][vc_column]\t

\n\t\t
\n\t\t\t

Protection plexi antimicrobiens<\/strong><\/h2>

Les seules protections plexi avec rev\u00eatement antimicrobien unique en France exclue VIrus Communication<\/p>\t\t<\/div>\n\t<\/div>\n\t[vc_row_inner css=\u00a0\u00bb.vc_custom_1474026161945{padding-right: 15px !important;padding-left: 15px !important;}\u00a0\u00bb][vc_column_inner width=\u00a0\u00bb5\/12″][vc_single_image image=\u00a0\u00bb772″ img_size=\u00a0\u00bbfull\u00a0\u00bb][vc_single_image image=\u00a0\u00bb890″ img_size=\u00a0\u00bbfull\u00a0\u00bb][vc_column_text] <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

COVE ECRAN SUR MESURE !!!!<\/strong><\/h2>\n

Le Cov’Ecran permet de prot\u00e9ger des grandes surfaces sans avoir de structure pos\u00e9e au sol ou sur un comptoir. Il est l\u00e9ger et s’accroche au plafond (possibilit\u00e9 d’accrocher sur les plafonds suspendus sans per\u00e7age).
\nSon installation est d\u2019une extr\u00eame simplicit\u00e9 et made in Lyon !
\nLivraison dans toute dans la France ![\/vc_column_text][\/vc_column_inner][vc_column_inner width=\u00a0\u00bb7\/12″][vc_column_text]<\/p>\n

NOTRE GAMME DE PROTECTION PLEXIVIRUS !!!<\/strong><\/h3>\n

La seule protection plexiglas avec un rev\u00eatement antiviral permanent en France ! Con\u00e7u pour votre commerce par Steve Conti de chez Virus Communication ! Les protections de comptoirs\u00a0 mobiles permettent de prot\u00e9ger des postillons, qui sont les principaux vecteurs de contamination des virus et des bact\u00e9ries. Ils sont r\u00e9alis\u00e9s en plexiglas \u00e0 poser sur un comptoir ou un bureau pour prot\u00e9ger le personnel des \u00e9tablissements recevant du public (caisses de magasin, guichets d’information…). C’est pourquoi nous avons lanc\u00e9 la fabrication d’hygiaphones antimicrobiens.<\/p>\n

PLEXIVIRUS\u00a0 ! avec notre solution PlexiProtect unique en Europe!<\/strong><\/h4>\n

Nos Plexivirus Antiviraux et Antimicrobiens sont recouvert d’un gel virucide test\u00e9 coronavirus et Grippe H1N1 ce qui leur conf\u00e8rent une protection antimicrobienne suppl\u00e9mentaire. En effet, lorsque l’hygiaphone est d\u00e9plac\u00e9, les mains de l’utilisateur peuvent \u00eatre contamin\u00e9es. Nos protections rigides permettent ainsi la plus haute protection sur ce type de produit, et pallient aux oublis de nettoyages quotidiens auquel l’utilisateur pourrait faire face.<\/p>\n

Nos protections plexiglas peuvent \u00eatre recouvertes du film antimicrobien PURE ZONE sur demande\u00a0<\/a><\/strong><\/p>\n

PLEXI PROTECT<\/strong><\/h3>\n

Grace \u00e0 notre nouvelle innovation unique en Europe Vous pouvez transformer vos plexiglass en v\u00e9ritable Antivirus.<\/p>\n

Disponible sur notre boutique ici !<\/a>[\/vc_column_text]\t\t\t