query($sql) as $row) { $clientID = $row['client_id']; $retcode = exec("/srv/hydra/bin/hydra delete oauth2-client $clientID --endpoint $internalHydraEndpointURL ", $hydraArray); $outArray = []; foreach ($hydraArray as $hydra) { $keyIDX = strpos($hydra,"\t"); if ( $keyIDX === false ) { $outArray[ $hydra ] = ""; } else { $valIDX = strrpos($hydra,"\t", -1); $key = substr( $hydra, 0, $keyIDX ); $val = substr( $hydra, $valIDX + 1 ); $outArray[ $key ] = $val; } } echo "Input: " . var_export($clientID,true) . "
"; echo "Hydra: " . var_export($outArray,true) . "
"; $stmt = $db->prepare("update clients set deleted_at = now() where client_id = :client_id"); $retcode = $stmt->execute( [ $clientID ]); echo "

"; echo "DB Retcode: " . var_export($retcode,true). "
"; } echo file_get_contents("html/footer.html"); echo "
"; echo '

Copyright © CAcert, Inc '; echo date("Y"); echo "

";