Program: 94061
Project: 94061
Buggy source:
public static boolean CheckScript(String type,String script,String player,String password,String email,String ipAddress) throws SQLException {
  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.equals("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.equals("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.equals("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.equals("String_Node_Str")) {
        Custom.adduser(player,email,password,ipAddress);
      }
 else       if (type.equals("String_Node_Str")) {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.custom_table + "String_Node_Str");
        ResultSet rs=ps.executeQuery();
        if (rs.next()) {
          Util.Log("String_Node_Str",rs.getInt("String_Node_Str") + "String_Node_Str");
        }
      }
    }
 else     if (script.equals(phpBB.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        phpBB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(SMF.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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")|| CheckVersionInRange("String_Node_Str")) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.HasForumBoard=true;
        bans=true;
        number=2;
        if (type.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        SMF.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(MyBB.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        MyBB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(vBulletin.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        vBulletin.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(Drupal.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        Drupal.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(Joomla.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        Joomla.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(Vanilla.Name) || script.equals(Vanilla.ShortName)) {
      if (CheckVersionInRange(Vanilla.VersionRange)) {
        usertable="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.HasForumBoard=true;
        number=1;
        if (type.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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;
          }
        }
      }
 else       if (CheckVersionInRange(Vanilla.VersionRange2)) {
        usertable="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.HasForumBoard=true;
        number=1;
        if (type.equals("String_Node_Str")) {
          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);
          if (Vanilla.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equals("String_Node_Str")) {
        String emailcheck=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",email);
        if (emailcheck.equals("String_Node_Str")) {
          Vanilla.adduser(number,player,email,password,ipAddress);
          return true;
        }
        return false;
      }
    }
 else     if (script.equals(PunBB.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        PunBB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(XenForo.Name) || script.equals(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.equals("String_Node_Str")) {
          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) {
            e.printStackTrace();
          }
          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 (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;
          }
        }
      }
      if (type.equals("String_Node_Str")) {
        XenForo.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(bbPress.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        bbPress.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(DLE.Name) || script.equals(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.equals("String_Node_Str")) {
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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.equals("String_Node_Str")) {
        DLE.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(IPB.Name) || script.equals(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.equals("String_Node_Str")) {
          player=player.toLowerCase();
          eBean eBeanClass=eBean.find(player);
          String StoredPassword=eBeanClass.getPassword();
          if (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;
          }
        }
      }
      if (type.equals("String_Node_Str")) {
        player=player.toLowerCase();
        IPB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
    if (!Config.HasForumBoard) {
      if (!Config.custom_enabled) {
        String TempVers=Config.script_version;
        Config.script_version=ScriptVersion();
        Log("String_Node_Str","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.equals("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;
      }
    }
 else     if (Config.HasForumBoard && type.equals("String_Node_Str") && !Config.custom_enabled) {
      if (script.equals(phpBB.Name) || script.equals(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()) {
        Util.Log("String_Node_Str",rs.getInt("String_Node_Str") + "String_Node_Str");
      }
    }
 else     if (Config.HasForumBoard && type.equals("String_Node_Str") && !Config.custom_enabled) {
      String hash=MySQL.getfromtable(Config.script_tableprefix,"String_Node_Str" + passwordfield + "String_Node_Str",usernamefield,player);
      eBean.CheckPassword(player,hash);
      return true;
    }
 else     if (Config.HasForumBoard && type.equals("String_Node_Str") && !Config.custom_enabled&& saltfield != null && saltfield != "String_Node_Str") {
      String salt=MySQL.getfromtable(Config.script_tableprefix,"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 (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.equals("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.equals("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.equals("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.equals("String_Node_Str")) {
        Custom.adduser(player,email,password,ipAddress);
      }
 else       if (type.equals("String_Node_Str")) {
        ps=(PreparedStatement)MySQL.mysql.prepareStatement("String_Node_Str" + Config.custom_table + "String_Node_Str");
        ResultSet rs=ps.executeQuery();
        if (rs.next()) {
          Util.Log("String_Node_Str",rs.getInt("String_Node_Str") + "String_Node_Str");
        }
      }
    }
 else     if (script.equals(phpBB.Name) || script.equals(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.equals("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.equals("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.equals("String_Node_Str")) {
        phpBB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(SMF.Name) || script.equals(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.equals("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")|| CheckVersionInRange("String_Node_Str")) {
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.HasForumBoard=true;
        bans=true;
        number=2;
        if (type.equals("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.equals("String_Node_Str")) {
        SMF.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(MyBB.Name) || script.equals(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.equals("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.equals("String_Node_Str")) {
        MyBB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(vBulletin.Name) || script.equals(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.equals("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.equals("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.equals("String_Node_Str")) {
        vBulletin.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(Drupal.Name) || script.equals(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.equals("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.equals("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.equals("String_Node_Str")) {
        Drupal.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(Joomla.Name) || script.equals(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.equals("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.equals("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.equals("String_Node_Str")) {
        Joomla.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(Vanilla.Name) || script.equals(Vanilla.ShortName)) {
      if (CheckVersionInRange(Vanilla.VersionRange)) {
        usertable="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.HasForumBoard=true;
        number=1;
        if (type.equals("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;
          }
        }
      }
 else       if (CheckVersionInRange(Vanilla.VersionRange2)) {
        usertable="String_Node_Str";
        usernamefield="String_Node_Str";
        passwordfield="String_Node_Str";
        Config.HasForumBoard=true;
        number=1;
        if (type.equals("String_Node_Str")) {
          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);
          if (Vanilla.check_hash(password,hash)) {
            return true;
          }
        }
      }
      if (type.equals("String_Node_Str")) {
        String emailcheck=MySQL.getfromtable(Config.script_tableprefix + usertable,"String_Node_Str","String_Node_Str",email);
        if (emailcheck.equals("String_Node_Str")) {
          Vanilla.adduser(number,player,email,password,ipAddress);
          return true;
        }
        return false;
      }
    }
 else     if (script.equals(PunBB.Name) || script.equals(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.equals("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.equals("String_Node_Str")) {
        PunBB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(XenForo.Name) || script.equals(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.equals("String_Node_Str")) {
          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) {
            e.printStackTrace();
          }
          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;
          }
        }
      }
      if (type.equals("String_Node_Str")) {
        XenForo.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(bbPress.Name) || script.equals(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.equals("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.equals("String_Node_Str")) {
        bbPress.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(DLE.Name) || script.equals(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.equals("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.equals("String_Node_Str")) {
        DLE.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
 else     if (script.equals(IPB.Name) || script.equals(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.equals("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;
          }
        }
      }
      if (type.equals("String_Node_Str")) {
        player=player.toLowerCase();
        IPB.adduser(number,player,email,password,ipAddress);
        return true;
      }
    }
    if (!Config.HasForumBoard) {
      if (!Config.custom_enabled) {
        String TempVers=Config.script_version;
        Config.script_version=ScriptVersion();
        Log("String_Node_Str","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.equals("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;
      }
    }
 else     if (Config.HasForumBoard && type.equals("String_Node_Str") && !Config.custom_enabled) {
      if (script.equals(phpBB.Name) || script.equals(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()) {
        Util.Log("String_Node_Str",rs.getInt("String_Node_Str") + "String_Node_Str");
      }
    }
 else     if (Config.HasForumBoard && type.equals("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.equals("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;
}