Merge pull request #6494 from atm-florian/dev_easter_eggs_commit_strip
new : hidden easter egg to display commitstrip strip on login page
This commit is contained in:
commit
6484fb2a38
@ -239,6 +239,18 @@ if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file
|
|||||||
</div></div>
|
</div></div>
|
||||||
<?php
|
<?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)
|
<?php if ($main_home)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user