/******************************************************************************* FILE: emailval.js v0.2 BY : Michael J. Ryan (tracker1 [at] theroughnecks [dot] net) ON : 2005-02-14 TABS: 4 character tabstops. -------------------------------------------------------------------------------- This is a simple telnet email validation script. *******************************************************************************/ //should match USER LEVEL settings for you bbs // modify the next two lines to match your bbs settings var LEVEL_BEFORE_VALIDATION = 50; var LEVEL_AFTER_VALIDATION = 60; //other constants, shouldn't need changing. var cValChars='ACDEFHJKLMNPQRTUVWXY23456789!@#$%&*'; var cPrevalText = "telvalcode"; var cValCodeLen = 16; //include SBBS Definition constants load("sbbsdefs.js"); //gets the validation code in use, if any, otherwise sets/returns a new code. function GetValidationCode() { var val = user.comment; if (val.indexOf(cPrevalText) == -1) return SetValidationCode(); //return a new code. //parse/return the existing code. return val.substr(val.indexOf(cPrevalText) + cPrevalText.length + 1, cValCodeLen); } //sets/returns a new validation code. function SetValidationCode() { var val=''; for (var i=0;i