bouncer_r/php/inc navigation.inc,NONE,1.1 template.inc,NONE,1.1
David Farning (dfarning)
fedora-extras-commits at redhat.com
Mon Aug 1 20:38:02 UTC 2005
Author: dfarning
Update of /cvs/fedora/bouncer_r/php/inc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13863/php/inc
Added Files:
navigation.inc template.inc
Log Message:
cvs cleanup for fedora initial commit
--- NEW FILE navigation.inc ---
<?
/* Navigation Heiarchy */
/* There MUST be a starting slash for all URIs.
A trailing slash for directories is ALSO REQUIRED. */
/*$download_list=array("Dag"=>array("uri"=>WEBPATH."/downloads/dag/"),
"Fedora Core"=>array("uri"=>WEBPATH."/downloads/core/"),
"Fedora Extras"=>array("uri"=>WEBPATH."/downloads/extras/","sub"=>array(
"3"=>array("uri"=>WEBPATH."/downloads/extras/3/","sub"=>array(
"i386"=>array("uri"=>WEBPATH."/downloads/extras/3/i386/"),
"x86_64"=>array("uri"=>WEBPATH."/downloads/extras/3/x86_64/"),
)),
"4"=>array("uri"=>WEBPATH."/downloads/extras/4/"),
))
);
"sub"=>$download_list
*/
$nav_list=array(
"Home"=>array("uri"=>WEBPATH."/"),
"Downloads"=>array("uri"=>WEBPATH."/downloads/"),
"Status"=>array("uri"=>WEBPATH."/status/","sub"=>array(
"Repositories"=>array("uri"=>WEBPATH."/status/repositories/"),
"Mirrors"=>array("uri"=>WEBPATH."/status/mirrors/")
)),
"Admin"=>array("uri"=>WEBPATH."/admin/","sub"=>array(
"Mirrors"=>array("uri"=>WEBPATH."/admin/mirrors/","sub"=>array(
"Regions"=>array("uri"=>WEBPATH."/admin/mirrors/regions/","sub"=>array(
"Continets"=>array("uri"=>WEBPATH."/admin/mirrors/regions/continents/")
)),
"Types"=>array("uri"=>WEBPATH."/admin/mirrors/types/"),
"Subscribe"=>array("uri"=>WEBPATH."/admin/mirrors/subscribe/")
)),
"Repos"=>array("uri"=>WEBPATH."/admin/repos/","sub"=>array(
"Products"=>array("uri"=>WEBPATH."/admin/repos/products/"),
"Versions"=>array("uri"=>WEBPATH."/admin/repos/versions/"),
"Archs"=>array("uri"=>WEBPATH."/admin/repos/arches/")
)),
"Users"=>array("uri"=>WEBPATH."/admin/users/","sub"=>array(
"Contacts"=>array("uri"=>WEBPATH."/admin/users/contacts/")
)),
"Templates"=>array("uri"=>WEBPATH."/admin/templates/"),
"Tasks"=>array("uri"=>WEBPATH."/admin/tasks"),
)),
);
?>
--- NEW FILE template.inc ---
<?php
class Page {
var $options;
var $printable;
function displayHeader($header) {
header("Content-Type: text/html; charset=utf-8");
print '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>'.$header.'</title>
<meta http-equiv="Content-Type" content="text/html">
<style type="text/css" media="screen">
@import url("'.CSS.'/layout.css");
@import url("'.CSS.'/content.css");
@import url("'.CSS.'/screen.css");
</style>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<link rel="shortcut icon" href="'.IMG.'/favicon.ico">
<link rel="icon" href="'.IMG.'/favicon.ico">
</head>
<body>
<!-- header BEGIN -->
<div id="fedora-header">
<div id="fedora-header-logo">
<a href="/"><img src="'.IMG.'/header-fedora_logo.png" alt="Fedora Project"></a>
</div>
<div id="fedora-header-items">
<span class="fedora-header-icon">
<a href="/download/"><img src="'.IMG.'/header-download.png" alt=" ">Download</a>
<a href="/projects/"><img src="'.IMG.'/header-projects.png" alt=" ">Projects</a>
<a href="/about/faq/"><img src="'.IMG.'/header-faq.png" alt=" ">FAQ</a>
<a href="'.WEBPATH.'/admin/logout.php" class="logout" title="Logout to end your session.">Logout '.$_SESSION['user']['username'].'»</a></span>
</div>
</div>
<div id="fedora-nav"></div>
<!-- header END -->
<!-- leftside BEGIN -->
<div id="fedora-side-left">
'.
side_nav($this->options);
print '
</div>
<!-- leftside END -->
<!-- content BEGIN -->
';
print '<div id="fedora-middle-two">';
print '
<div class="fedora-corner-tr"> </div>
<div class="fedora-corner-tl"> </div>
<div id="fedora-content">
';
}
function displayFooter($date = "", $front = 0) {
print '
</div>
<div class="fedora-corner-br"> </div>
<div class="fedora-corner-bl"> </div>
</div>
<!-- content END -->
';
if ($this->options['side_content']) {
print '<!-- rightside BEGIN --><div id="fedora-side-right">'.
$this->options['side_content'].
'</div><!-- rightside END -->';
}
print '
<!-- footer BEGIN -->
<div id="fedora-footer">
Copyright © 2005 David T. Farning. All rights reserved.
<br>';
print'The Fedora Finder is not a supported product of Fedora or Red Hat, Inc.
<br>';
if ($front) {
print 'Fedora is a trademark of Red Hat, Inc.
<br>';
}
if ($front) {
print 'Red Hat, Inc. is not responsible for the content of other sites.
<br>';
}
print '<a href="/legal/">Legal</a> | <a href="/about/trademarks/">Trademark Guidelines</a>
<br>';
if (!empty($date)) {
print '
This page last modified at: '.ereg_replace('\\$Da'.'te: (.*)\\$', '\\1', $date).'
<br>';
}
print '
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=140672&type=5" width="105" height="31" border="0" alt="SourceForge.net Logo" /></A>
</div>
<!-- footer END -->
</body>
</html>
';
}
}
?>
More information about the fedora-extras-commits
mailing list