getByEmail($t['email'])) { if ($c->newsletter == 0) { header('HTTP/1.1 304 Not Modified'); die('0'); } else { $c->newsletter = 0; $c->ip_registration_newsletter = null; $c->newsletter_date_add = null; $c->update(); header('HTTP/1.1 200 OK'); die('1'); } } else { header('HTTP/1.1 404 Not Found'); die('0'); } break; default: header('HTTP/1.1 423 No handler'); die('0'); } } }