browser displays the source php on macports site ?
When I clicked on : http://svn.macosforge.org/repository/macports/trunk/www/.htaccess I got : <Files ~ "\.inc$"> Order allow,deny Deny from all </Files> As you travel down the hierarchy to the link below : http://svn.macosforge.org/repository/macports/trunk/www/ports.php All the php content is displayed. Is that something you guys want to do ? This is part of the page shown on link above. <?php /* -*- 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 */ /* $Id$ */ /* Copyright (c) 2004, OpenDarwin. */ /* Copyright (c) 2004-2007, The MacPorts Project. */ $MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER ['SCRIPT_NAME']); include_once("$MPWEB/includes/common.inc"); include_once("$MPWEB/includes/email.inc"); print_header('The MacPorts Project -- Available Ports', 'utf-8'); $by = isset($_GET['by']) ? $_GET['by'] : ''; $substr = isset($_GET['substr']) ? $_GET['substr'] : ''; ?> <div id="content"> <h2 class="hdr">MacPorts Portfiles</h2> <p> This form allows you to search the current index of MacPorts software. <br /> <i>Index last updated: </i> <?php $sql = "SELECT UNIX_TIMESTAMP(activity_time) FROM $portsdb.log ORDER BY UNIX_TIMESTAMP(activity_time) DESC"; $result = mysql_query($sql); if ($result && $row = mysql_fetch_row($result)) { echo date("d-M-Y H:i:s", $row[0]); } ?>
On Nov 8, 2007, at 15:46, Bill Hernandez wrote:
When I clicked on :
http://svn.macosforge.org/repository/macports/trunk/www/.htaccess
I got :
<Files ~ "\.inc$"> Order allow,deny Deny from all </Files>
As you travel down the hierarchy to the link below :
http://svn.macosforge.org/repository/macports/trunk/www/ports.php
All the php content is displayed. Is that something you guys want to do ?
Well.... yes. The source code of the new web site is in the repository, which you're browsing, so it's expected that you're seeing the source code there. What were you expecting to see? If you want to see the new web site served up thru a PHP interpreter, that's currently happening at a URL which I forget but I'm sure someone will reply with it.
On Nov 8, 2007, at 6:03 PM, Ryan Schmidt wrote:
What were you expecting to see? If you want to see the new web site served up thru a PHP interpreter, that's currently happening at a URL which I forget but I'm sure someone will reply with it.
http://apollo.homeunix.net/macports , served directly from my lovely MacBook Pro! ;-) Be warned, though, that the main page you'll see there (index.php) is not what's in svn. The former is empty, a clean slate on which I can start rewriting that page, the only that that's still pending; the latter (index.php in svn) is the old main page (back in DarwinPorts days). Regards,.... -jmpp
On Nov 8, 2007, at 16:03, Ryan Schmidt wrote:
On Nov 8, 2007, at 15:46, Bill Hernandez wrote:
When I clicked on :
http://svn.macosforge.org/repository/macports/trunk/www/.htaccess
I got :
<Files ~ "\.inc$"> Order allow,deny Deny from all </Files>
As you travel down the hierarchy to the link below :
http://svn.macosforge.org/repository/macports/trunk/www/ports.php
All the php content is displayed. Is that something you guys want to do ?
Well.... yes. The source code of the new web site is in the repository, which you're browsing, so it's expected that you're seeing the source code there.
What were you expecting to see? If you want to see the new web site served up thru a PHP interpreter, that's currently happening at a URL which I forget but I'm sure someone will reply with it.
It's been brought to my attention that "What were you expecting to see?" came across as rude. My apologies; that was not intended. I meant it merely in the traditional bug reporting sense, in which users report the behavior they expected from a product and the differing behavior they actually observed. I've been a Subversion user for years, so the behavior of Subversion and repository browsing products like Trac is very familiar to me, so I had trouble imagining what differing behavior Bill had expected, which is why I asked "what were you expecting to see?" Suffice it to say that the observed behavior of the repository browser is correct: its function is to deliver the source of any file. Apologies for any offense caused by my wording. There are certainly enough things in MacPorts that could use improvement, from aspects of the web presence to the base code to the ports. And reports about any such issues are of course appreciated.
participants (3)
-
Bill Hernandez
-
Juan Manuel Palacios
-
Ryan Schmidt