#include "stdafx.h" #include "accountBind.h" #ifndef _ACCOUNT_BIND int isValidAccount( const char *account_name ) { account_name; return 1; } #else //#define ACC_ALLOWED "mincxclock" //#define ACC_ALL_LEN 10 int isValidAccount( const char *account_name ) { int ret = strcmp( account_name, "Max10209080" ); if( ret == 0 ) return 1; ret = strcmp( account_name, "10209080" ); if( ret == 0 ) return 1; ret = strcmp( account_name, "MaxMen228" ); if( ret == 0 ) return 1; ret = strcmp( account_name, "MaxMen609" ); if( ret == 0 ) return 1; ret = strcmp( account_name, "Shmell228" ); if( ret == 0 ) return 1; ret = strcmp( account_name, "buffer" ); if( ret == 0 ) return 1; ret = strcmp( account_name, "Shmel" ); if( ret == 0 ) return 1; return 0; } /*int isValidAccount_xor( const char *account_name ) { int ret = 0; // think not equal char *accAllowed = (char *)malloc( ACC_ALL_LEN*10 ); int offset_table[ACC_ALL_LEN] = { 5, 1, 3, 2, 4 }; int char_idx[ACC_ALL_LEN] = { 0, 0, 0, 0, 0 }; int i; for( i=0; i