[30049] trunk/www/includes/common.inc
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 18 21:03:40 PDT 2007
Revision: 30049
http://trac.macosforge.org/projects/macports/changeset/30049
Author: jmpp at macports.org
Date: 2007-10-18 21:03:40 -0700 (Thu, 18 Oct 2007)
Log Message:
-----------
Whitespace cleanups and corrected some comments.
Modified Paths:
--------------
trunk/www/includes/common.inc
Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc 2007-10-19 03:07:17 UTC (rev 30048)
+++ trunk/www/includes/common.inc 2007-10-19 04:03:40 UTC (rev 30049)
@@ -18,7 +18,7 @@
######################################################################
-# print the current MacPorts version:
+# MacPorts version variables:
$mp_version_major = '1.5.0';
$mp_version_latest = '1.5.2';
@@ -39,12 +39,11 @@
######################################################################
-# print the page header
+# Page header
function print_header($title, $encoding) {
global $MPWEB;
?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><?php echo $title; ?></title>
@@ -68,7 +67,7 @@
######################################################################
-# print the page footer
+# Page footer
function print_footer() {
global $MPWEB;
@@ -81,7 +80,7 @@
######################################################################
-# Print a total count of currently available ports:
+# Total count of currently available ports:
function ports_count() {
global $portsdb;
@@ -98,21 +97,24 @@
######################################################################
-# Warn against darwinports.com leach!
+# Warning against darwinports.com leach!
function check_referer() {
global $_SERVER;
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'darwinports.com') !== false) {
?>
<div class="warning">
+
<p>You have arrived at the <b>Official MacPorts Web Site</b> from <i>darwinports.com</i>.</p>
+
<p><i>darwinports.com</i> <b>is not the official MacPorts Web Site</b>, nor is it a mirror of
- the <i>Official MacPorts Web Site</i>. There is <b>no relationship</b> between the <i>MacPorts
+ the <i>Official MacPorts Web Site</i>. There is <b>no relationship</b> between the <i>MacPorts
Project</i> and <i>darwinports.com</i>.</p>
<p>The information you may have been presented with on <i>darwinports.com</i> may be incorrect
or outdated and is not endorsed in any way by the <i>MacPorts Project</i>. For the most accurate
information about MacPorts, please bookmark this site, <a href="http://www.macports.org">http://www.macports.org</a>.</p>
+
</div>
<?php
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071018/345e80d5/attachment-0001.html
More information about the macports-changes
mailing list