Template:Version2

From Citizens Wiki

Revision as of 14:31, 19 February 2012 by NeonMaster (talk | contribs)

<?php $jnksUrl = "http://ci.citizensnpcs.net"; $jnksJob = "Citizens2";

// No configuration required below. $contents = @file_get_contents($jnksUrl . "/job/" . $jnksJob . "/lastSuccessfulBuild/"); $matches = array(); $match = preg_match('/\<title\>[A-Za-z0-9-_]+ \#([0-9]+) \[Jenkins\]\<\/title\>/i', $contents, $matches); if ($match == 0) exit; print $matches[1]; exit;