'include', 'require_once' => 'require')); //preg_match_all('/\$modSettings\[\'(.+?)\'\]/', $opened_file, $matches); //preg_match_all('/\$context\[\'(.+?)\'\]/', $opened_file, $matches); /*preg_match_all('/allowedTo\(\'(.+?)\'\)/', $opened_file, $matches); if (!empty($matches[1])) { foreach ($matches[1] as $key => $match) { /* per file if (!isset($array[$match])) $array[$match] = array(); if (isset($array[$match]) && !in_array($file, $array[$match])) $array[$match][] = $file; */ // all $array[] = $match; } }*/ } } return $return; } ?>