source: trunk/www/includes/warnings.inc @ 73358

Last change on this file since 73358 was 31803, checked in by jmpp@…, 13 years ago

Whitespace cleanups.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-php
File size: 1.6 KB
Line 
1<?php
2    /* -*- coding: utf-8; mode: php; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=php:et:sw=4:ts=4:sts=4 */
3    /* $Id: warnings.inc 31803 2007-12-08 00:55:15Z jmpp@macports.org $ */
4    /* Copyright (c) 2004-2007, The MacPorts Project. */
5?>
6
7
8<?php
9# Warning against darwinports.com leech!
10if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'darwinports.com') !== false) {
11?>
12
13    <div class="warnings">
14
15    <p>You have arrived at the <b>Official MacPorts Web Site</b> from <i>darwinports.com</i>.</p>
16
17    <p><i>darwinports.com</i> <b>is not the official MacPorts Web Site</b>, nor is it a mirror of the <i>Official MacPorts
18    Web Site</i>. There is <b>no relationship</b> between <i>The MacPorts Project</i> and <i>darwinports.com</i>.</p>
19
20    <p>The information you may have been presented with on <i>darwinports.com</i> may be incorrect or outdated and is not
21    endorsed in any way by <i>The MacPorts Project</i>. For the most accurate information about MacPorts, please bookmark
22    this site, <a href="http://www.macports.org">http://www.macports.org</a>.</p>
23   
24    </div>
25
26<?php       
27}
28
29
30# Warn about us being a valid mirror if we're not being served off htt://www.macports.org itself
31if (isset($_SERVER['HTTP_HOST']) && !preg_match('%(^|\.)macports\.org$%', $_SERVER['HTTP_HOST'])) {   
32?>
33
34    <div class="warnings">
35
36    <p>Warning: This is a mirror installation of the official site for The MacPorts Project, located at <a href="http://www.macports.org">
37    http://www.macports.org</a> as always. Information here is not guaranteed to be up to date.</p>
38   
39    </div>
40
41<?php
42}
43?>
Note: See TracBrowser for help on using the repository browser.