code.fastix.org

Dateiansicht:

Datei:Projekte -> Missbräuchliche Anmeldungen blockieren -> addAbuser_api.php
md5:2d411a03bd61704ed19be50fb1ffedc5
sha1:60bc3a65b44dca78bcd99884c2f0fcb235820213
Download-Link:Download
  1. <?php
  2. if ( isset ( $_POST['abuser'] ) and '' != $_POST['abuser'] ) {
  3.         require_once 'abusers.class.php';
  4.         $abusers = new abusers;
  5.         if ( $abusers->add( $_POST['abuser'] ) ) {
  6.                 echo '1';
  7.         } else {
  8.                 echo '0';
  9.         }
  10. } else {
  11.         http_response_code( 400 );
  12. }