function menuDataProc($dbHandle, $menuListUrl, $kind, $menuStealRegex, $menuQuery) { $menuDataArray = menuReArray(menuDataPregMatch(menuSteal($menuListUrl), $menuStealRegex)); menuInsert($menuDataArray, $kind, $menuQuery, $dbHandle); }
$times = []; timeTest("ProcStart"); memoryGetUse("base"); $queryList = getSQLQuery(getPDO()); $censorList = getCensorList(getPDO(), $queryList["SELECT_CENSOR"]); $regexList = getRegex(getPDO(), $queryList["SELECT_REGEX"]); $fixedList = getFix(getPDO(), $queryList["SELECT_FIX"]); $menuUrl = getMenu(getPDO(), $queryList["SELECT_MENUURL"]); $isMenuSteal = false; $isThreadSteal = true; $isResSteal = true; $isProc = true; if ($isMenuSteal) { foreach ($menuUrl as $value) { $ip = useIp(getPDO(), getUseIpMod(getPDO())); $html = menuSteal(getPDO(), $ip, "menuSteal", $value["menu_url"], $queryList["INSERT_IP_ACCESS"], getUa(getPDO(), $queryList["SELECT_UA"]), "open2ch.net"); $regex = getDiRegex(getPDO(), "menuStealRegex", $value["kind"], $queryList["SELECT_DIREGEX"]); $menuListArray = menuReArray(menuDataPregMatch($html, $regex)); menuInsert(getPDO(), $menuListArray, $value["kind"], $queryList["INSERT_MENU"]); } unset($value); } // $menuList = [ // [0]=> // [ // ["id"]=> "850", // ["menu_url"]=> "http://hayabusa3.open2ch.net/news", // ["menu_title"]=> "ニュース速報", // ["menu_defaultname"]=> "", // ["kind"]=> "open2ch.net", // ["menu_order"]=> 1