Program: 93970
Project: 93970
Buggy source:
public static boolean checkScript(String type,String script,String player,String password,String email,String ipAddress) throws SQLException {
  if (player != null) {
    player=player.toLowerCase();
  }
  if (Util.databaseManager.getDatabaseType().equalsIgnoreCase("String_Node_Str")) {
    EBean eBeanClass=EBean.checkPlayer(player,true);
    if (type.equalsIgnoreCase("String_Node_Str")) {
      if (eBeanClass.getRegistered().equalsIgnoreCase("String_Node_Str")) {
        return true;
      }
      return false;
    }
 else     if (type.equalsIgnoreCase("String_Node_Str")) {
      String storedPassword=eBeanClass.getPassword();
      if (Encryption.SHA512(password).equals(storedPassword)) {
        return true;
      }
      return false;
    }
 else     if (type.equalsIgnoreCase("String_Node_Str")) {
      Custom.adduser(player,email,password,ipAddress);
      eBeanClass.setEmail(email);
      eBeanClass.setPassword(Encryption.SHA512(password));
      eBeanClass.setRegistered("String_Node_Str");
      eBeanClass.setIp(ipAddress);
    }
 else     if (type.equalsIgnoreCase("String_Node_Str")) {
      int amount=EBean.getUsers();
      logging.Info(amount + "String_Node_Str");
    }
  }
 else   if (Config.database_ison) {
    String usertable=null, usernamefield=null, passwordfield=null, saltfield="String_Node_Str";
    boolean bans=false;
    PreparedStatement ps=null;
    int number=0;
    if (Config.custom_enabled) {
      if (type.equalsIgnoreCase("String_Node_Str")) {
        String check=MySQL.getfromtable(Config.custom_table,"String_Node_Str",Config.custom_userfield,player);
        if (check != "String_Node_Str") {
          Config.hasForumBoard=true;
          return true;
        }
        return false;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        EBean eBeanClass=EBean.find(player);
        String storedPassword=eBeanClass.getPassword();
        if (Custom.check_hash(password,storedPassword)) {
          return true;
        }
        String hash=MySQL.getfromtable(Config.custom_table,"String_Node_Str" + Config.custom_passfield + "String_Node_Str","String_Node_Str" + Config.custom_userfield + "String_Node_Str",player);
        EBean.checkPassword(player,hash);
        if (Custom.check_hash(password,hash)) {
          return true;
        }
        return false;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        String hash=MySQL.getfromtable(Config.custom_table,"String_Node_Str" + Config.custom_passfield + "String_Node_Str","String_Node_Str" + Config.custom_userfield + "String_Node_Str",player);
        EBean.checkPassword(player,hash);
        return true;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        Custom.adduser(player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.custom_table + "String_Node_Str");
        ResultSet rs=ps.executeQuery();
        if (rs.next()) {
          logging.Info(rs.getInt("String_Node_Str") + "String_Node_Str");
        }
      }
    }
 else     if (script.equalsIgnoreCase(PhpBB.Name) || script.equalsIgnoreCase(PhpBB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(PhpBB.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && PhpBB.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (PhpBB.check_hash(password,hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(PhpBB.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && PhpBB.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (PhpBB.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        PhpBB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(SMF.Name) || script.equalsIgnoreCase(SMF.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(SMF.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        saltfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && SMF.check_hash(SMF.hash(1,player,password),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (SMF.check_hash(SMF.hash(1,player,password),hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(SMF.VersionRange2) || checkVersionInRange("String_Node_Str") || checkVersionInRange("String_Node_Str")) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && SMF.check_hash(SMF.hash(2,player,password),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (SMF.check_hash(SMF.hash(2,player,password),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        SMF.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(MyBB.Name) || script.equalsIgnoreCase(MyBB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(MyBB.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && MyBB.check_hash(MyBB.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (MyBB.check_hash(MyBB.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        MyBB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(VBulletin.Name) || script.equalsIgnoreCase(VBulletin.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(VBulletin.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(VBulletin.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        VBulletin.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(Drupal.Name) || script.equalsIgnoreCase(Drupal.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(Drupal.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Encryption.md5(password).equals(storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Encryption.md5(password).equals(hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(Drupal.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && storedPassword.equals(Drupal.user_check_password(password,storedPassword))) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (hash.equals(Drupal.user_check_password(password,hash))) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        Drupal.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(Joomla.Name) || script.equalsIgnoreCase(Joomla.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(Joomla.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Joomla.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Joomla.check_hash(password,hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(Joomla.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Joomla.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Joomla.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        Joomla.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(Vanilla.Name) || script.equalsIgnoreCase(Vanilla.ShortName)) {
      if (checkVersionInRange(Vanilla.VersionRange)) {
        usertable="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        if (Vanilla.check() == 2) {
          usertable=usertable.toLowerCase();
        }
        Config.hasForumBoard=true;
        number=Vanilla.check();
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Vanilla.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Vanilla.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        String emailcheck=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",email);
        if (emailcheck.equalsIgnoreCase("String_Node_Str")) {
          Vanilla.adduser(number,player,email,password,ipAddress);
          EBean.sync(player);
          return true;
        }
        return false;
      }
    }
 else     if (script.equalsIgnoreCase(PunBB.Name) || script.equalsIgnoreCase(PunBB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(PunBB.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && PunBB.check_hash(PunBB.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (PunBB.check_hash(PunBB.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        PunBB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(XenForo.Name) || script.equalsIgnoreCase(XenForo.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(XenForo.VersionRange)) {
        String userid=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",player);
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          Blob hash=MySQL.getfromtableBlob(Config.script_tableprefix + "String_Node_Str","String_Node_Str","String_Node_Str",userid);
          if (hash != null) {
            int offset=-1;
            int chunkSize=1024;
            long blobLength=hash.length();
            if (chunkSize > blobLength) {
              chunkSize=(int)blobLength;
            }
            char buffer[]=new char[chunkSize];
            StringBuilder stringBuffer=new StringBuilder();
            Reader reader=new InputStreamReader(hash.getBinaryStream());
            try {
              while ((offset=reader.read(buffer)) != -1) {
                stringBuffer.append(buffer,0,offset);
              }
            }
 catch (            IOException e) {
              logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
            }
            String cache=stringBuffer.toString();
            String thehash=forumCacheValue(cache,"String_Node_Str");
            String thesalt=forumCacheValue(cache,"String_Node_Str");
            EBean eBeanClass=EBean.find(player);
            String storedPassword=eBeanClass.getPassword();
            String storedSalt=eBeanClass.getSalt();
            if (storedPassword != null && storedSalt != null && XenForo.check_hash(XenForo.hash(1,storedSalt,password),storedPassword)) {
              return true;
            }
            EBean.checkSalt(player,thesalt);
            EBean.checkPassword(player,thehash);
            if (XenForo.check_hash(XenForo.hash(1,thesalt,password),thehash)) {
              return true;
            }
          }
 else {
            return false;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        XenForo.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
 else       if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
        String userid=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",player);
        Blob hash=MySQL.getfromtableBlob(Config.script_tableprefix + "String_Node_Str","String_Node_Str","String_Node_Str",userid);
        int offset=-1;
        int chunkSize=1024;
        long blobLength=hash.length();
        if (chunkSize > blobLength) {
          chunkSize=(int)blobLength;
        }
        char buffer[]=new char[chunkSize];
        StringBuilder stringBuffer=new StringBuilder();
        Reader reader=new InputStreamReader(hash.getBinaryStream());
        try {
          while ((offset=reader.read(buffer)) != -1) {
            stringBuffer.append(buffer,0,offset);
          }
        }
 catch (        IOException e) {
          logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
        }
        String cache=stringBuffer.toString();
        String thehash=forumCacheValue(cache,"String_Node_Str");
        EBean.checkPassword(player,thehash);
        return true;
      }
 else       if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled&& saltfield != null && saltfield != "String_Node_Str") {
        String userid=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",player);
        Blob hash=MySQL.getfromtableBlob(Config.script_tableprefix + "String_Node_Str","String_Node_Str","String_Node_Str",userid);
        int offset=-1;
        int chunkSize=1024;
        long blobLength=hash.length();
        if (chunkSize > blobLength) {
          chunkSize=(int)blobLength;
        }
        char buffer[]=new char[chunkSize];
        StringBuilder stringBuffer=new StringBuilder();
        Reader reader=new InputStreamReader(hash.getBinaryStream());
        try {
          while ((offset=reader.read(buffer)) != -1) {
            stringBuffer.append(buffer,0,offset);
          }
        }
 catch (        IOException e) {
          logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
        }
        String cache=stringBuffer.toString();
        String thesalt=forumCacheValue(cache,"String_Node_Str");
        EBean.checkSalt(player,thesalt);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(BBPress.Name) || script.equalsIgnoreCase(BBPress.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(BBPress.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && BBPress.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (BBPress.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        BBPress.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(DLE.Name) || script.equalsIgnoreCase(DLE.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(DLE.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && DLE.check_hash(DLE.hash(password),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (DLE.check_hash(DLE.hash(password),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        DLE.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(IPB.Name) || script.equalsIgnoreCase(IPB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(IPB.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          player=player.toLowerCase();
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str",passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(IPB.VersionRange2)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          player=player.toLowerCase();
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str",passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        player=player.toLowerCase();
        IPB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(WordPress.Name) || script.equalsIgnoreCase(WordPress.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(WordPress.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && WordPress.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          Util.logging.Info("String_Node_Str" + hash);
          if (WordPress.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        WordPress.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
    if (!Config.hasForumBoard) {
      if (!Config.custom_enabled) {
        String tempVers=Config.script_version;
        Config.script_version=scriptVersion();
        logging.Info("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str" + Config.script_name + "String_Node_Str"+ tempVers+ "String_Node_Str"+ Config.script_version+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      }
    }
    if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
      String check=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str",usernamefield,player);
      if (check != "String_Node_Str") {
        return true;
      }
      return false;
    }
 else     if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
      if (script.equalsIgnoreCase(PhpBB.Name) || script.equalsIgnoreCase(PhpBB.ShortName)) {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.script_tableprefix + usertable+ "String_Node_Str");
      }
 else {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.script_tableprefix + usertable+ "String_Node_Str");
      }
      ResultSet rs=ps.executeQuery();
      if (rs.next()) {
        logging.Info(rs.getInt("String_Node_Str") + "String_Node_Str");
      }
    }
 else     if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
      String hash=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str" + passwordfield + "String_Node_Str",usernamefield,player);
      EBean.checkPassword(player,hash);
      return true;
    }
 else     if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled&& saltfield != null && saltfield != "String_Node_Str") {
      String salt=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str" + saltfield + "String_Node_Str",usernamefield,player);
      EBean.checkSalt(player,salt);
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public static boolean checkScript(String type,String script,String player,String password,String email,String ipAddress) throws SQLException {
  if (player != null) {
    player=player.toLowerCase();
  }
  if (Util.databaseManager.getDatabaseType().equalsIgnoreCase("String_Node_Str")) {
    EBean eBeanClass=EBean.checkPlayer(player,true);
    if (type.equalsIgnoreCase("String_Node_Str")) {
      if (eBeanClass.getRegistered().equalsIgnoreCase("String_Node_Str")) {
        return true;
      }
      return false;
    }
 else     if (type.equalsIgnoreCase("String_Node_Str")) {
      String storedPassword=eBeanClass.getPassword();
      if (Encryption.SHA512(password).equals(storedPassword)) {
        return true;
      }
      return false;
    }
 else     if (type.equalsIgnoreCase("String_Node_Str")) {
      Custom.adduser(player,email,password,ipAddress);
      eBeanClass.setEmail(email);
      eBeanClass.setPassword(Encryption.SHA512(password));
      eBeanClass.setRegistered("String_Node_Str");
      eBeanClass.setIp(ipAddress);
    }
 else     if (type.equalsIgnoreCase("String_Node_Str")) {
      int amount=EBean.getUsers();
      logging.Info(amount + "String_Node_Str");
    }
  }
 else   if (Config.database_ison) {
    String usertable=null, usernamefield=null, passwordfield=null, saltfield="String_Node_Str";
    boolean bans=false;
    PreparedStatement ps=null;
    int number=0;
    if (Config.custom_enabled) {
      if (type.equalsIgnoreCase("String_Node_Str")) {
        String check=MySQL.getfromtable(Config.custom_table,"String_Node_Str",Config.custom_userfield,player);
        if (check != "String_Node_Str") {
          Config.hasForumBoard=true;
          return true;
        }
        return false;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        EBean eBeanClass=EBean.find(player);
        String storedPassword=eBeanClass.getPassword();
        if (Custom.check_hash(password,storedPassword)) {
          return true;
        }
        String hash=MySQL.getfromtable(Config.custom_table,"String_Node_Str" + Config.custom_passfield + "String_Node_Str","String_Node_Str" + Config.custom_userfield + "String_Node_Str",player);
        EBean.checkPassword(player,hash);
        if (Custom.check_hash(password,hash)) {
          return true;
        }
        return false;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        String hash=MySQL.getfromtable(Config.custom_table,"String_Node_Str" + Config.custom_passfield + "String_Node_Str","String_Node_Str" + Config.custom_userfield + "String_Node_Str",player);
        EBean.checkPassword(player,hash);
        return true;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        Custom.adduser(player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
 else       if (type.equalsIgnoreCase("String_Node_Str")) {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.custom_table + "String_Node_Str");
        ResultSet rs=ps.executeQuery();
        if (rs.next()) {
          logging.Info(rs.getInt("String_Node_Str") + "String_Node_Str");
        }
      }
    }
 else     if (script.equalsIgnoreCase(PhpBB.Name) || script.equalsIgnoreCase(PhpBB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(PhpBB.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && PhpBB.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (PhpBB.check_hash(password,hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(PhpBB.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && PhpBB.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (PhpBB.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        PhpBB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(SMF.Name) || script.equalsIgnoreCase(SMF.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(SMF.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        saltfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && SMF.check_hash(SMF.hash(1,player,password),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (SMF.check_hash(SMF.hash(1,player,password),hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(SMF.VersionRange2) || checkVersionInRange("String_Node_Str") || checkVersionInRange("String_Node_Str")) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && SMF.check_hash(SMF.hash(2,player,password),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (SMF.check_hash(SMF.hash(2,player,password),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        SMF.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(MyBB.Name) || script.equalsIgnoreCase(MyBB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(MyBB.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && MyBB.check_hash(MyBB.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (MyBB.check_hash(MyBB.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        MyBB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(VBulletin.Name) || script.equalsIgnoreCase(VBulletin.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(VBulletin.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(VBulletin.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        bans=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (VBulletin.check_hash(VBulletin.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        VBulletin.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(Drupal.Name) || script.equalsIgnoreCase(Drupal.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(Drupal.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Encryption.md5(password).equals(storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Encryption.md5(password).equals(hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(Drupal.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && storedPassword.equals(Drupal.user_check_password(password,storedPassword))) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (hash.equals(Drupal.user_check_password(password,hash))) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        Drupal.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(Joomla.Name) || script.equalsIgnoreCase(Joomla.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(Joomla.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Joomla.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Joomla.check_hash(password,hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(Joomla.VersionRange2)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Joomla.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Joomla.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        Joomla.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(Vanilla.Name) || script.equalsIgnoreCase(Vanilla.ShortName)) {
      if (checkVersionInRange(Vanilla.VersionRange)) {
        usertable="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        if (Vanilla.check() == 2) {
          usertable=usertable.toLowerCase();
        }
        Config.hasForumBoard=true;
        number=Vanilla.check();
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && Vanilla.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (Vanilla.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        String emailcheck=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",email);
        if (emailcheck.equalsIgnoreCase("String_Node_Str")) {
          Vanilla.adduser(number,player,email,password,ipAddress);
          EBean.sync(player);
          return true;
        }
        return false;
      }
    }
 else     if (script.equalsIgnoreCase(PunBB.Name) || script.equalsIgnoreCase(PunBB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(PunBB.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && PunBB.check_hash(PunBB.hash("String_Node_Str",player,password,"String_Node_Str"),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (PunBB.check_hash(PunBB.hash("String_Node_Str",player,password,"String_Node_Str"),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        PunBB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(XenForo.Name) || script.equalsIgnoreCase(XenForo.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(XenForo.VersionRange)) {
        String userid=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",player);
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          Blob hash=MySQL.getfromtableBlob(Config.script_tableprefix + "String_Node_Str","String_Node_Str","String_Node_Str",userid);
          if (hash != null) {
            int offset=-1;
            int chunkSize=1024;
            long blobLength=hash.length();
            if (chunkSize > blobLength) {
              chunkSize=(int)blobLength;
            }
            char buffer[]=new char[chunkSize];
            StringBuilder stringBuffer=new StringBuilder();
            Reader reader=new InputStreamReader(hash.getBinaryStream());
            try {
              while ((offset=reader.read(buffer)) != -1) {
                stringBuffer.append(buffer,0,offset);
              }
            }
 catch (            IOException e) {
              logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
            }
            String cache=stringBuffer.toString();
            String thehash=forumCacheValue(cache,"String_Node_Str");
            String thesalt=forumCacheValue(cache,"String_Node_Str");
            EBean eBeanClass=EBean.find(player);
            String storedPassword=eBeanClass.getPassword();
            String storedSalt=eBeanClass.getSalt();
            if (storedPassword != null && storedSalt != null && XenForo.check_hash(XenForo.hash(1,storedSalt,password),storedPassword)) {
              return true;
            }
            EBean.checkSalt(player,thesalt);
            EBean.checkPassword(player,thehash);
            if (XenForo.check_hash(XenForo.hash(1,thesalt,password),thehash)) {
              return true;
            }
          }
 else {
            return false;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        XenForo.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
 else       if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
        String userid=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",player);
        Blob hash=MySQL.getfromtableBlob(Config.script_tableprefix + "String_Node_Str","String_Node_Str","String_Node_Str",userid);
        int offset=-1;
        int chunkSize=1024;
        long blobLength=hash.length();
        if (chunkSize > blobLength) {
          chunkSize=(int)blobLength;
        }
        char buffer[]=new char[chunkSize];
        StringBuilder stringBuffer=new StringBuilder();
        Reader reader=new InputStreamReader(hash.getBinaryStream());
        try {
          while ((offset=reader.read(buffer)) != -1) {
            stringBuffer.append(buffer,0,offset);
          }
        }
 catch (        IOException e) {
          logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
        }
        String cache=stringBuffer.toString();
        String thehash=forumCacheValue(cache,"String_Node_Str");
        EBean.checkPassword(player,thehash);
        return true;
      }
 else       if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled&& saltfield != null && saltfield != "String_Node_Str") {
        String userid=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",player);
        Blob hash=MySQL.getfromtableBlob(Config.script_tableprefix + "String_Node_Str","String_Node_Str","String_Node_Str",userid);
        int offset=-1;
        int chunkSize=1024;
        long blobLength=hash.length();
        if (chunkSize > blobLength) {
          chunkSize=(int)blobLength;
        }
        char buffer[]=new char[chunkSize];
        StringBuilder stringBuffer=new StringBuilder();
        Reader reader=new InputStreamReader(hash.getBinaryStream());
        try {
          while ((offset=reader.read(buffer)) != -1) {
            stringBuffer.append(buffer,0,offset);
          }
        }
 catch (        IOException e) {
          logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
        }
        String cache=stringBuffer.toString();
        String thesalt=forumCacheValue(cache,"String_Node_Str");
        EBean.checkSalt(player,thesalt);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(BBPress.Name) || script.equalsIgnoreCase(BBPress.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(BBPress.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && BBPress.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (BBPress.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        BBPress.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(DLE.Name) || script.equalsIgnoreCase(DLE.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(DLE.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && DLE.check_hash(DLE.hash(password),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (DLE.check_hash(DLE.hash(password),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        DLE.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(IPB.Name) || script.equalsIgnoreCase(IPB.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(IPB.VersionRange)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          player=player.toLowerCase();
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),hash)) {
            return true;
          }
        }
      }
 else       if (checkVersionInRange(IPB.VersionRange2)) {
        saltfield="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=2;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          player=player.toLowerCase();
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str",passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          if (IPB.check_hash(IPB.hash("String_Node_Str",player,password,null),hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        player=player.toLowerCase();
        IPB.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
 else     if (script.equalsIgnoreCase(WordPress.Name) || script.equalsIgnoreCase(WordPress.ShortName)) {
      usertable="String_Node_Str";
      if (checkVersionInRange(WordPress.VersionRange)) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.hasForumBoard=true;
        number=1;
        if (type.equalsIgnoreCase("String_Node_Str")) {
          EBean eBeanClass=EBean.find(player);
          String storedPassword=eBeanClass.getPassword();
          if (storedPassword != null && WordPress.check_hash(password,storedPassword)) {
            return true;
          }
          String hash=MySQL.getfromtable(Config.script_tableprefix + "String_Node_Str" + usertable+ "String_Node_Str","String_Node_Str" + passwordfield + "String_Node_Str","String_Node_Str" + usernamefield + "String_Node_Str",player);
          EBean.checkPassword(player,hash);
          Util.logging.Info("String_Node_Str" + hash);
          if (WordPress.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equalsIgnoreCase("String_Node_Str")) {
        WordPress.adduser(number,player,email,password,ipAddress);
        EBean.sync(player);
        return true;
      }
    }
    if (!Config.hasForumBoard) {
      if (!Config.custom_enabled) {
        String tempVers=Config.script_version;
        Config.script_version=scriptVersion();
        logging.Info("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str" + Config.script_name + "String_Node_Str"+ tempVers+ "String_Node_Str"+ Config.script_version+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      }
    }
    if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
      String check=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str",usernamefield,player);
      if (check != "String_Node_Str") {
        return true;
      }
      return false;
    }
 else     if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
      if (script.equalsIgnoreCase(PhpBB.Name) || script.equalsIgnoreCase(PhpBB.ShortName)) {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.script_tableprefix + usertable+ "String_Node_Str");
      }
 else {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.script_tableprefix + usertable+ "String_Node_Str");
      }
      ResultSet rs=ps.executeQuery();
      if (rs.next()) {
        logging.Info(rs.getInt("String_Node_Str") + "String_Node_Str");
      }
    }
 else     if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled) {
      String hash=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str" + passwordfield + "String_Node_Str",usernamefield,player);
      EBean.checkPassword(player,hash);
      return true;
    }
 else     if (Config.hasForumBoard && type.equalsIgnoreCase("String_Node_Str") && !Config.custom_enabled&& saltfield != null && saltfield != "String_Node_Str") {
      String salt=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str" + saltfield + "String_Node_Str",usernamefield,player);
      EBean.checkSalt(player,salt);
      return true;
    }
  }
  return false;
}