I don&#39;t recommend making the change to page.tpl.php since it won&#39;t be compatible with caching.<br clear="all"><div><br></div><font color="#333333">Carl Wiedemann</font><div><div><font color="#333333">Website design and development consulting</font></div>
<div><font color="#333333"><a href="mailto:carl.wiedemann@gmail.com" target="_blank">carl.wiedemann@gmail.com</a> | skype: c4rlww</font></div></div><br>
<br><br><div class="gmail_quote">On Sun, Aug 28, 2011 at 10:08 AM, Buratino <span dir="ltr">&lt;<a href="mailto:x9nx@mail.ru">x9nx@mail.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><br><br><br>28 августа 2011, 20:57 от Sébastien Hinderer &lt;<a href="mailto:Sebastien.Hinderer@ens-lyon.org" target="_blank">Sebastien.Hinderer@ens-lyon.org</a>&gt;:<div><div></div><div class="h5"><br><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px">
<div>
                        <div>
                                <div>
        
        <div>
                
                
                        <div>Dear all,<br>
<br>
I&#39;m administrating a site for which I run several development version:<br>
one private on my laptop, just for me, one also on the same machine as<br>
the production version, for public testing...<br>
<br>
I&#39;m wondering whether you guys know a way to show something on the pages<br>
that make it clear that one is browsing a dev version rather than the<br>
production site.<br>
The algorithm could be something like this:<br>
if ip=PROD_IP and vhost=PROD_VHOST<br>
then production site<br>
else dev site<br>
<br>
So the feature should require no database change, so that the different<br>
versions of the site can be differenciated from each other even after a<br>
database synchronisation.<br>
Any suggestion warmly appreciated.<br>
Thanks,<br>
Sebastien.<br>
 <br>
-- <br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div>
                        
                
                
        </div>
</div>

                                </div>
                        <div>


</div>
                </div></blockquote></div></div>There is a <a href="http://drupal.org/project/environment" target="_blank">http://drupal.org/project/environment</a> module, i didn&#39;t test it for D7 though.<span></span></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>