Changeset 35222 for trunk/www


Ignore:
Timestamp:
Mar 21, 2008, 5:34:48 AM (12 years ago)
Author:
jmpp@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/ports.php

    r35221 r35222  
    77   
    88    $MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
    9     include_once($MPWEB . '/includes/common.inc');
    10     print_header('The MacPorts Project -- Available Ports', 'utf-8');
     9    include_once("$MPWEB/includes/common.inc");
    1110   
    1211    $portsdb_info = portsdb_connect($portsdb_host, $portsdb_user, $portsdb_passwd);
     
    2221    $by = isset($_GET['by']) ? $_GET['by'] : '';
    2322    $substr = isset($_GET['substr']) ? $_GET['substr'] : '';
     23
     24    print_header('The MacPorts Project -- Available Ports', 'utf-8');
    2425?>
    2526
Note: See TracChangeset for help on using the changeset viewer.