Skip to content
Permalink
Browse files

New DarwinPorts site.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@3981 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jim Mock
Jim Mock committed Nov 19, 2003
1 parent cf72033 commit 7f64d5118ed1e60b83ddb9ab3d8dd6ba86532f7e
@@ -0,0 +1,4 @@
<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>
@@ -0,0 +1,4 @@
AuthName "DP Site Administration"
AuthType Basic
AuthUserFile /Users/mij/.htpasswd
require valid-user
@@ -0,0 +1,20 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts | Add news', 'iso-8859-1');
?>

<div id="content">
<h2 class="hdr">Add news</h2>

<?php
print_add_headline();
?>

</div>
</div>

<?php
print_footer();
?>
@@ -0,0 +1,20 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts | Edit news', 'iso-8859-1');
?>

<div id="content">
<h2 class="hdr">Edit news</h2>

<?php
print_edit_headline($_GET['id']);
?>

</div>
</div>

<?php
print_footer();
?>
@@ -0,0 +1,4 @@
<html>
<body>
</body>
</html>
@@ -0,0 +1,20 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts | List all news', 'iso-8859-1');
?>

<div id="content">
<h2 class="hdr">List all news</h2>

<?php
print_all_headlines();
?>

</div>
</div>

<?php
print_footer();
?>
@@ -0,0 +1,5 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/functions.inc");
create_rss();
?>
@@ -0,0 +1,27 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts Site Administration', 'iso-8859-1');
?>

<div id="content">
<h2 class="hdr">Site Administration</h2>

<p>Use the links below to manage the headlines on the front page of
the site:</p>

<ul>
<li><a href="/admin/headlines/add.php">Add headline</a></li>
<li><a href="/admin/headlines/list.php">List all headlines</a></li>
<li><a href="/admin/headlines/rss.php">Regenerate RSS feed</a></li>
</ul>

<p>If you need to edit an already-posted headline, find it in the <a
href="/admin/headlines/list.php">list</a>, and choose edit.</p>
</div>
</div>

<?php
print_footer();
?>
215 dp.css
@@ -0,0 +1,215 @@
/*
$Id: dp.css,v 1.1 2003/11/19 01:59:06 mij Exp $
*/

* {
font-family: Georgia, "New Century Schoolbook", "Times New Roman", Times, serif;
}

body {
background: #e3f1c7;
width: 720px;
margin: 15px auto 15px auto;
font-size: 12px;
}

a:link {
color: #669;
text-decoration: none;
font-weight: bold;
border-bottom: 1px dotted #c63;
}

a:visited {
color: #888;
text-decoration: none;
font-weight: bold;
border-bottom: 1px dotted #669;
}

a:hover {
color: #c63;
text-decoration: none;
font-weight: bold;
border-bottom: 1px dotted #369;
}

img, a img {
border: none;
text-decoration: none;
}

h1 {
font-size: 22px;
}

h2 {
font-size: 20px;
}

h3 {
font-size: 18px;
}

h4 {
font-size: 16px;
}

h5 {
font-size: 14px;
}

h6 {
font-size: 13px;
}

br {
clear: both;
}

p {
margin: 10px 0 1em 0;
line-height: 16px;
}

input, textarea {
font-family: Courier, "Courier New", monospace;
}

kbd {
color: #c63;
font-family: Courier, "Courier New", monospace;
}

pre {
color: #369;
font-family: Courier, "Courier New", monospace;
margin-left: 20px;
}

#nav {
height: 76px;
padding: 0;
font-size: 10px;
}

#logo {
background: #fff;
float: left;
display: inline;
width: 400px;
height: 75px;
border-top: 1px solid #bbb;
border-bottom: 1px solid #bbb;
}

#logo a {
border: none;
}

#nav #l {
width: 150px;
height: 75px;
float: left;
border: 1px solid #bbb;
}

#nav #r {
width: 150px;
height: 75px;
float: left;
border-top: 1px solid #bbb;
border-bottom: 1px solid #bbb;
}

#nav ul {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}

#nav li a {
background: #fff;
display: block;
text-decoration: none;
line-height: 20px;
padding: 2px;
border-bottom: 1px solid #bbb;
}

#nav li a:visited {
color: #999;
text-decoration: none;
}

#nav li a:hover {
background: #d8e6e7;
color: #888;
}

#nav li.last a {
border: none;
display: block;
line-height: 21px;
}

#nav li.selected a {
background: #f3f3f3;
color: #c63;
}

#nav li.sellast a {
background: #f3f3f3;
color: #c63;
border: none;
display: block;
line-height: 21px;
}

#main {
background: #fff;
width: 702px;
border-right: 1px solid #bbb;
border-left: 1px solid #bbb;
padding-bottom: 100px;
}

#content {
width: 80%;
margin: 10px 0 0 0;
padding: 5px 20px;
}

#news {
margin: 10px 0 0 0;
padding: 5px 0 0 0;
}

#footer {
width: 692px;
background: #fff;
border: 1px solid #bbb;
text-align: right;
font-size: 10px;
padding: 5px;
}

.hdr {
color: #669;
margin: 0;
padding: 10px 0 0 0;
border-bottom: 1px solid #bbb;
}

.subhdr {
color: #879880;
margin: 5px 0 0 0;
padding: 0;
}

.date {
color: #999;
margin: 0 auto;
padding: 0;
}
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/">

<channel>
<title>DarwinPorts Project News</title>
<link>http://darwinports.opendarwin.org/</link>
<description>DarwinPorts Project News</description>
<dc:language>en-us</dc:language>
<dc:creator>Jim Mock (mij@opendarwin.org)</dc:creator>
<dc:rights>Copyright 2002-2003</dc:rights>
<dc:date>2003-10-24T21:45:4:50</dc:date>
<admin:errorReportsTo rdf:resource"mailto:mij@opendarwin.org" />
<item>
<title>Test 2</title>
<link>http://darwinports.opendarwin.org/archives/2.php</link>
<description><![CDATA[<p>Another test.</p>...</p>]]></description>
<guid isPermaLink="true">http://darwinports.opendarwin.org/archives/2.php</guid>
<content:encoded><![CDATA[<p>Another test.</p>]]></content:encoded>
</item>
<item>
<title>Test</title>
<link>http://darwinports.opendarwin.org/archives/1.php</link>
<description><![CDATA[<p>This is a test.</p>...</p>]]></description>
<guid isPermaLink="true">http://darwinports.opendarwin.org/archives/1.php</guid>
<content:encoded><![CDATA[<p>This is a test.</p>]]></content:encoded>
</item>
</channel>
</rss>

0 comments on commit 7f64d51

Please sign in to comment.
You can’t perform that action at this time.