Optional reporting of versions to SilverStripe (merged from 2.1.0 branch, r42422)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42920 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-10-02 04:51:22 +00:00
parent bb2a97856f
commit bd81e2a2be

View File

@ -334,6 +334,11 @@ HTML;
$fourohfour->publish("Stage", "Live");
}
if(isset($_SESSION['StatsID']) && $_SESSION['StatsID']) {
$url = 'http://ss2stat.silverstripe.com/Installation/installed?ID=' . $_SESSION['StatsID'];
@file_get_contents($url);
}
$title = new Varchar("Title");
$content = new HTMLText("Content");
$username = Session::get('username');