Ignore:
Timestamp:
Oct 27, 2004, 5:28:17 AM (16 years ago)
Author:
wbb4
Message:

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

Add a note to visitors from darwinports.com about the (non-existent) relationship.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/common.inc

    r3981 r8963  
    11<?php
    22
    3 # $Id: common.inc,v 1.1 2003/11/19 01:59:08 mij Exp $
     3# $Id: common.inc,v 1.2 2004/10/27 05:28:17 wbb4 Exp $
    44# Copyright (c) 2003, OpenDarwin
    55
     
    2525  <body>
    2626
     27  <?php check_referer(); ?>
     28 
    2729  <div id="main">
    2830
     
    4244  echo "</html>\n";
    4345}
     46
     47######################################################################
     48function check_referer() {
     49        global $_SERVER;
     50        if (preg_match("/darwinports.com/", $_SERVER['HTTP_REFERER'])) {
    4451?>
     52        <div class="referer_box">
     53                <h1>The Official DarwinPorts Web Site</h1>
     54               
     55                <p>You have arrived at the <b>Official DarwinPorts Web Site</b> from <i>darwinports.com</i>.</p>
     56         
     57                <p><i>darwinports.com</i> <b>is not the official DarwinPorts Web Site</b>, nor is it a mirror of the <i>Official DarwinPorts Web Site</i>.  There is <b>no relationship</b> between the <i>DarwinPorts Project</i> and <i>darwinports.com</i>.</p>
     58
     59                <p>The information you may have been presented with on <i>darwinports.com</i> may be incorrect or outdated and is not maintained by the <i>DarwinPorts Project</i>.  For the most accurate information about DarwinPorts, please bookmark this site, <a href="http://darwinports.opendarwin.org">http://darwinports.opendarwin.org</a>.</p>
     60        </div>
     61
     62<?php
     63        }
     64}       
     65?>
Note: See TracChangeset for help on using the changeset viewer.