From 76e55fcdb1ec51c7d12623960aa91aa953b15802 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Wed, 8 Mar 2017 09:06:38 +0100 Subject: [PATCH] NEW :hidden Easter egg to display commitstrip strip on login page --- htdocs/core/tpl/login.tpl.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php index 3772b44c9fc..ba501e802dd 100644 --- a/htdocs/core/tpl/login.tpl.php +++ b/htdocs/core/tpl/login.tpl.php @@ -239,6 +239,18 @@ if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file 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; +} + ?>