<HTML><BODY><br><br><br>28 августа 2011, 20:57 от Sébastien Hinderer &lt;Sebastien.Hinderer@ens-lyon.org&gt;:<br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;" class="mailru-blockquote"><div id="class_1314551030">
                        <div id="13145506720000000392_TEXT">
                                <div class="js-helper">
        <style type="text/css"></style>
        <div id="viewmessagebody" class="mr_read__body">
                <base target="_self" href="http://e.mail.ru/cgi-bin/">
                
                        <div id="style_13145506720000000392_BODY">Dear all,<br>
<br>
I'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'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>
&nbsp;<br>
-- <br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div>
                        
                
                <base target="_self" href="http://e.mail.ru/cgi-bin/">
        </div>
</div>

                                <script type="text/javascript">document.write('</scr' + 'ipt>')</script></div>
                        <div id="ReadMsgAttachment13145506720000000392">


</div>
                </div></blockquote>There is a&nbsp;<a href="http://drupal.org/project/environment" _mce_href="http://drupal.org/project/environment">http://drupal.org/project/environment</a>&nbsp;module, i didn't test it for D7 though.<span></span></BODY></HTML>