From f6d86611c41334a5551b96f11d68ba2574893040 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 12 Jul 2009 06:56:51 +0000 Subject: [PATCH] Add: possibility to add google adsense in demo mode --- htdocs/lib/security.lib.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/htdocs/lib/security.lib.php b/htdocs/lib/security.lib.php index 1adae7005a0..1783dda7387 100644 --- a/htdocs/lib/security.lib.php +++ b/htdocs/lib/security.lib.php @@ -1,5 +1,6 @@ + * Copyright (C) 2008-2009 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -270,6 +271,24 @@ function dol_loginfunction($langs,$conf,$mysoc) print nl2br($conf->global->MAIN_HOME); print '
'."\n"; } + + // Google Adsense (ex: demo mode) + if (! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT)) + { + print '
'."\n"; + print ''."\n"; + print ''."\n"; + print '
'."\n"; + } print "\n"; print ''."\n";