Skip to content
Snippets Groups Projects
Commit 6484fb2a authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #6494 from atm-florian/dev_easter_eggs_commit_strip

new : hidden easter egg to display commitstrip strip on login page
parents 4b638348 76e55fcd
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,18 @@ if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file
</div></div>
<?php
}
if (!empty($conf->global->MAIN_EASTER_EGG_COMMITSTRIP)) {
if (substr($langs->defaultlang,0,2)=='fr') {
$xml = simplexml_load_file("http://www.commitstrip.com/fr/feed/");
} else {
$xml = simplexml_load_file("http://www.commitstrip.com/en/feed/");
}
$little = $xml->channel->item[0]->children('content',true);
print $little->encoded;
}
?>
<?php if ($main_home)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment