code.fastix.org

Dateiansicht:

Datei:Projekte -> Missbräuchliche Anmeldungen blockieren -> checkAbuser_api.php
md5:395ef727c0be1cee22bba72298349e6b
sha1:b9b264e95b53efe2224836c6c6768b0f0a0cbade
Download-Link:Download
  1. <?php
  2. if ( isset ( $_REQUEST['abuser'] ) and $_REQUEST['abuser'] ) {
  3.         require_once 'abusers.class.php';
  4.         $abusers = new abusers;
  5.         if ( true === $abusers->check( $_REQUEST['abuser'] ) ) {
  6.                 echo '1';
  7.         } else {
  8.                 echo '0';
  9.         }
  10. } else {
  11.         http_response_code( 400 );
  12. }