Code:
if(_UV2) then {
_checkedClientVars = [];
_exclude =[_name,'a3randvar_','pvahr_0_','bis_','cba_','slx_','epoch_','curator_','mpmissions','life_','rhs_','zlt_','spy_fnc_','inputaction'];
_badString =['unlimited','zeus','doug','Jay','kill','fnc_exec','ly_','magic','setWaypointStatements','keydown','keyup','inputaction','create','.sqf','addaction','boom','sonic','VehicleLocal',
'menu loaded','rusty','rustler','hangender','hungender','monky','bypass','godmode','douggem','monster','cool','BigBen','swagger','nigg','fireworks','E_X_T_A_S_Y','JJJJ','JxMxE',
'amm0','weppp3','Att4chm3nt','F0od_Dr1nk','M3d1c4l','T0ol_it3ms','B4ckp4cks','It3m5','Cl0th1ng','A11','Lystic','Extasy','GLASSSIMON_FLO','Remote_Execution','GLADTWOOWN',
'Flo_Simon','Sonicccc_','Fury_','Phoenix_'];
_mytime3 = diag_tickTime;
};
while {true} do{
if(_UV2) then {
if(diag_tickTime > _mytime3 + 15) then{
_mytime3 = diag_tickTime;
_variables = (allVariables missionNamespace);
{
if!(_x in _checkedClientVars) then{
_checkedClientVars pushBack _x;
_variables = _variables - [_x];
_xlow = toLower _x;
_bv = _x;
_check = true;
{
_smallxtofind = toLower _x;
if(_xlow find _smallxtofind > -1) exitWith{_check = false;};
} forEach _exclude;
if(_check) then{
{
_smallxtofind = toLower _x;
if(_xlow find _smallxtofind > -1) then{
_log = format['BadVar: %1 - %2',_bv,_x];
[_name,_puid,'SLOG',toArray(_log)] call "+_AHKickLog+";
};
if(_V2C) then {
_m = missionNamespace getVariable _bv;
if(!isNil '_m') then{
_xcontent = toLower(str _m);
_findcontentstart = _xcontent find _smallxtofind;
if(_findcontentstart > -1) then{
_min = (_findcontentstart - 10) max 0;
_selectedcontent = _xcontent select [_min];
_selectedcontentArray = toArray _selectedcontent;
_newstring = [];
{if(_forEachIndex > 150) exitWith {};_newstring pushBack _x;} forEach _selectedcontentArray;
_newstring = toString _newstring;
_log = format['BadContent: %1 - %2 - %3',_x,_bv,_newstring];
[_name,_puid,'SLOG',toArray(_log)] call "+_AHKickLog+";
};
};
};
} forEach _badString;
};
};
} forEach _variables;
};
};
};