Skip to content

Commit

Permalink
ignore yap data, remove root_server_uri info
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Aug 10, 2018
1 parent 1408eba commit d86bb54
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions changes.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
$xml = simplexml_load_file($url);

// loop begins
foreach($xml->row as $row)
{
foreach($xml->row as $row) {
if( strpos( $row->meeting_name, 'YAP' ) !== false ) {
// dont show YAP data
}
else {
// begin new paragraph
echo "<p>";
// show Date
Expand All @@ -53,6 +56,8 @@
echo "<strong>Service Body:</strong> ".$row->service_body_name."</br><OL>";
// show details
$details=$row->details;
// remove root_server_uri info
$details = str_replace(". root_server_uri was added as \"https:\" "," ",$details);
// Remove last . at end of details
$details = preg_replace('/.$/',"",$details);
// Remove the weird #@-@# from the format codes
Expand Down Expand Up @@ -103,6 +108,7 @@ function ($matches) {
echo "</p> <hr>";
// end paragraph
}
}
// loop ends

echo "END of File<br>BMLT Changes</body></html>"
Expand Down

0 comments on commit d86bb54

Please sign in to comment.