[28945] trunk/www/includes/common.inc
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 12 10:12:44 PDT 2007
Revision: 28945
http://trac.macosforge.org/projects/macports/changeset/28945
Author: jmpp at macports.org
Date: 2007-09-12 10:12:44 -0700 (Wed, 12 Sep 2007)
Log Message:
-----------
Whitespace chanegs only.
Modified Paths:
--------------
trunk/www/includes/common.inc
Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc 2007-09-12 16:58:22 UTC (rev 28944)
+++ trunk/www/includes/common.inc 2007-09-12 17:12:44 UTC (rev 28945)
@@ -2,10 +2,10 @@
# $Id$
# Copyright (c) 2003, OpenDarwin
+# Copyright (c) 2003-2007, MacPorts Team.
+#####################################################################
-######################################################################
-
# Ports database connection parameters:
$portsdb = 'macports_ports';
$portsdb_host = 'localhost';
@@ -24,26 +24,26 @@
# print the page header
function print_header($title, $encoding) {
- global $MPWEB;
+ global $MPWEB;
?>
<!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>
- <meta http-equiv="Content-type" content="application/xhtml+xml; charset=<?php echo("$encoding"); ?>" />
- <meta name="author" content="Jim Mock (mij at macports.org)" />
- <meta name="author" content="Juan Manuel Palacios (jmpp at macports.org)" />
- <meta name="author" content="Chris Pickel (sfiera at macports.org)" />
- <meta name="copyright" content="2003, OpenDarwin" />
- <meta name="copyright" content="2007, MacPorts Team" />
- <meta name="robots" content="all" />
- <link rel="stylesheet" type="text/css" href="macports.css" />
- <link rel="alternate" type="application/rss+xml" href="macports_news.xml" />
- <script type="text/javascript" src="mootools.v1.11.js"></script>
- <script type="text/javascript" src="language.js"></script>
- </head>
- <body>
+ <head>
+ <title><?php echo("$title"); ?></title>
+ <meta http-equiv="Content-type" content="application/xhtml+xml; charset=<?php echo("$encoding"); ?>" />
+ <meta name="author" content="Jim Mock (mij at macports.org)" />
+ <meta name="author" content="Juan Manuel Palacios (jmpp at macports.org)" />
+ <meta name="author" content="Chris Pickel (sfiera at macports.org)" />
+ <meta name="copyright" content="2003, OpenDarwin" />
+ <meta name="copyright" content="2007, MacPorts Team" />
+ <meta name="robots" content="all" />
+ <link rel="stylesheet" type="text/css" href="macports.css" />
+ <link rel="alternate" type="application/rss+xml" href="macports_news.xml" />
+ <script type="text/javascript" src="mootools.v1.11.js"></script>
+ <script type="text/javascript" src="language.js"></script>
+ </head>
+<body>
<?php
include("$MPWEB/includes/header.inc");
check_referer();
@@ -53,49 +53,49 @@
# print the page footer
function print_footer() {
- global $MPWEB;
+ global $MPWEB;
- include("$MPWEB/includes/footer.inc");
+ include("$MPWEB/includes/footer.inc");
- echo " </body>\n";
- echo "</html>\n";
+ echo " </body>\n";
+ echo "</html>\n";
}
######################################################################
# Print a total count of currently available ports:
function ports_count() {
- global $portsdb;
+ global $portsdb;
- $result = mysql_query("SELECT count(*) FROM $portsdb.portfiles") or die("Error: " . mysql_error());
- if ($result) {
- $row = mysql_fetch_array($result);
- $count = $row[0];
- } else {
- $count = 0;
- }
- return $count;
+ $result = mysql_query("SELECT count(*) FROM $portsdb.portfiles") or die("Error: " . mysql_error());
+ if ($result) {
+ $row = mysql_fetch_array($result);
+ $count = $row[0];
+ } else {
+ $count = 0;
+ }
+ return $count;
}
######################################################################
# Warn against darwinports.com leach!
function check_referer() {
- global $_SERVER;
- if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'darwinports.com') !== false) {
+ 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
- Project</i> and <i>darwinports.com</i>.</p>
+ <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
+ 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>
-
+ <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/20070912/4cfce096/attachment.html
More information about the macports-changes
mailing list