#!/usr/bin/php -q 'http://localhost/pub/changes?buffer_length=1', CURLOPT_UNIX_SOCKET_PATH => '/var/run/nginx.socket', CURLOPT_POST => 1, CURLOPT_RETURNTRANSFER => true ]); foreach ($messages as $message) { curl_setopt($com, CURLOPT_POSTFIELDS, $message); curl_exec($com); } curl_close($com); } if ($file) { foreach ($valid as $check) if (strncmp($file,$check,strlen($check))===0) $good = true; if ($good && pathinfo($file)['extension']=='txt') write(Markdown(file_get_contents($file))); } else { write(Markdown("*"._('No release notes available')."!*")); } if (basename($file)!='my_alerts.txt') write('_DONE_'); write(''); ?>