[35222] trunk/www/ports.php
jmpp at macports.org
jmpp at macports.org
Thu Mar 20 22:34:48 PDT 2008
Revision: 35222
http://trac.macosforge.org/projects/macports/changeset/35222
Author: jmpp at macports.org
Date: 2008-03-20 22:34:48 -0700 (Thu, 20 Mar 2008)
Log Message:
-----------
You did miss one! :-P
Also moved the print_header() function call to just above the beginning of the page, as it makes more sense there.
Modified Paths:
--------------
trunk/www/ports.php
Modified: trunk/www/ports.php
===================================================================
--- trunk/www/ports.php 2008-03-21 05:29:51 UTC (rev 35221)
+++ trunk/www/ports.php 2008-03-21 05:34:48 UTC (rev 35222)
@@ -6,8 +6,7 @@
/* Copyright (c) 2004-2007, The MacPorts Project. */
$MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
- include_once($MPWEB . '/includes/common.inc');
- print_header('The MacPorts Project -- Available Ports', 'utf-8');
+ include_once("$MPWEB/includes/common.inc");
$portsdb_info = portsdb_connect($portsdb_host, $portsdb_user, $portsdb_passwd);
$sql = "SELECT UNIX_TIMESTAMP(activity_time) FROM $portsdb_name.log ORDER BY UNIX_TIMESTAMP(activity_time) DESC";
@@ -21,6 +20,8 @@
}
$by = isset($_GET['by']) ? $_GET['by'] : '';
$substr = isset($_GET['substr']) ? $_GET['substr'] : '';
+
+ print_header('The MacPorts Project -- Available Ports', 'utf-8');
?>
<div id="content">
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080320/0daca0d4/attachment.html
More information about the macports-changes
mailing list