Changeset 8963 for trunk/www


Ignore:
Timestamp:
Oct 27, 2004, 5:28:17 AM (15 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.

Location:
trunk/www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/dp.css

    r8297 r8963  
    11/*
    2   $Id: dp.css,v 1.3 2004/09/14 20:56:54 matt Exp $
     2  $Id: dp.css,v 1.4 2004/10/27 05:28:17 wbb4 Exp $
    33*/
    44
     
    219219        padding: 0;
    220220}
     221
     222.referer_box {
     223        margin: auto;
     224        margin-bottom: 1em;
     225        width: 90%;
     226        border: 1px solid #CC6633;
     227        background-color: #D37F54;
     228        color: black;
     229        padding: 1em;
     230}
     231.referer_box a {
     232        color: white;
     233}
     234
  • 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.