本文整理汇总了PHP中freshports_PageBannerText函数的典型用法代码示例。如果您正苦于以下问题:PHP freshports_PageBannerText函数的具体用法?PHP freshports_PageBannerText怎么用?PHP freshports_PageBannerText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了freshports_PageBannerText函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: toHTML
function toHTML()
{
$HTML = '';
if ($this->_ShowLogo) {
$HTML .= freshports_Logo();
}
if ($this->_ShowAnnouncements) {
$Announcement = new Announcement($this->{$_db});
$NumRows = $Announcement->FetchAllActive();
if ($NumRows > 0) {
$HTML .= DisplayAnnouncements($Announcement);
}
}
$HTML .= freshports_MainTable() . "\n<tr><td width='100%' valign='top'>\n" . freshports_MainContentTable() . "\n<tr>\n" . freshports_PageBannerText($this->_title);
$this->prependBodyContent($HTML);
$this->addBodyContent("\n</table><td valign=\"top\">" . freshports_SideBar() . "</td></tr></table>\n" . freshports_ShowFooter());
return parent::toHTML();
}
示例2: number_format
<li>These statistics are updated daily.
<li><sup>1</sup><a name="1"></a>The number of Google pages used in this calculation is <?php
echo number_format($GooglePages);
?>
.
</ul>
</td></tr>
<?php
echo freshports_BannerSpace();
?>
<TR>
<?php
echo freshports_PageBannerText("How much diskspace?");
?>
</TR>
<TR><TD>
<P>
The total space used by the FreshPorts database is:
<blockquote><code class="code">
# select pg_database_size('freshports.org');<br>
pg_database_size<br>
------------------<br>
<?php
$Value = DBSize($db);
echo number_format($Value) . '<br>';
?>
示例3: freshports_PageBannerText
<ul>
<li>www/ports pages
<li>portsmon
<li>fenner's output
<li>GNATS
<li>cvsweb
</ul>
<p>
In short, it doesn't make sense to obscure that which is freely available elsewhere.
</TD></TR><TR><TD> </TD></TR>
<TR>
<?php
echo freshports_PageBannerText('Why does the PORTVERSION at the top of page differ from that of the first commit?');
?>
</TR>
<TR><TD>
<P>
This question refers to the a port page.
<p>
This situation usually occurs with MASTER/SLAVE ports. The Master port is updated with a new
REVISION. No commit is done against the Slave port. FreshPorts knows to refresh the Slave port
when its Master port is updated. This refresh updates the PORTVERSION at the top of the
page. This update reflects the REVISION you would get if you were to install the Slave port
now that the Master has been upgraded.
</TD></TR><TR><TD> </TD></TR>
示例4: freshports_Start
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/common.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/freshports.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/databaselogin.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/getvalues.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/design-voting/voting.php';
$Debug = 0;
$Title = "FreshPorts Design Contest - Voting";
freshports_Start($Title, 'freshports - new ports, applications', 'FreeBSD, index, applications, ports');
echo freshports_MainTable();
?>
<tr><td valign="top" width="100%" colspan="2">
<table width="100%" border="0">
<tr>
<?php
echo freshports_PageBannerText($Title);
?>
</tr>
</table>
</td></tr>
<tr><td valign="top" width="100%">
<?php
if (!$User->id) {
echo 'You must login to vote.';
} else {
if (AlreadyVoted($db, $User->id)) {
echo 'You have already voted. Thank you';
} else {
?>
<p>
Read about the <a href="http://news.freshports.org/2007/01/30/freshports-design-contest/">FreshPorts Design Contest</a> first. Then
示例5: freshports_ErrorMessage
function freshports_ErrorMessage($Title, $ErrorMessage)
{
$HTML = '
<table width="100%" border="1" align="center" cellpadding="1" cellspacing="0" border="1">
<tr><td valign=TOP>
<table width="100%">
<tr>
' . freshports_PageBannerText($Title) . '
</tr>
<tr bgcolor="#ffffff">
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign=top>
<td><img src="/images/warning.gif"></td>
<td width="100%">
<p>' . "WARNING: {$ErrorMessage}" . '</p>
<p>If you need help, please ask in the forum. </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>';
return $HTML;
}
示例6: freshports_PortDisplay
//.........这里部分代码省略.........
if ($ElementID == 0) {
syslog(LOG_ERR, "Extract of ElementID from cache failed. Is cache corrupt/deprecated? port was {$category}/{$port}");
die('sorry, I encountered a problem with the cache. Please send the URL and this message to the webmaster.');
}
if ($User->id) {
$OnWatchList = freshports_OnWatchList($db, $User->id, $ElementID);
} else {
$OnWatchList = 0;
}
$HTML = substr($HTML, $EndOfFirstLine + 1);
} else {
if ($Debug) {
echo "found NOTHING in cache for '{$category}/{$port}'<br>\n";
}
$HTML = '';
$port_id = freshports_GetPortID($db, $category, $port);
if (!isset($port_id)) {
if ($Debug) {
echo "{$category}/{$port} is not a port according to freshports_GetPortID<br>\n";
}
return -1;
}
if ($Debug) {
echo "{$category}/{$port} found by freshports_GetPortID<br>";
}
$MyPort = new Port($db);
$MyPort->FetchByID($port_id, $User->id);
$port_display->port = $MyPort;
$HTML .= $port_display->Display();
$HTML .= "</TD></TR>\n</TABLE>\n\n";
$HTML .= DisplayPortCommits($MyPort, $PageNumber);
# If we are not reading
if (!$BypassCache || $RefreshCache) {
$Cache->CacheDataSet($MyPort->{'element_id'} . "\n" . $HTML);
$Cache->AddPort($MyPort->category, $MyPort->port, CACHE_PORT_DETAIL, $PageNumber);
}
$ElementID = $MyPort->{'element_id'};
$OnWatchList = $MyPort->{'onwatchlist'};
}
# At this point, we have the port detail HTML
$HTML = $port_display->ReplaceWatchListToken($OnWatchList, $HTML, $ElementID);
global $ShowAds, $BannerAd;
global $ShowAds;
global $BannerAd;
if ($ShowAds && $BannerAd) {
$HTML_For_Ad = "<hr><center>\n" . Ad_728x90PortDescription() . "\n</center>\n<hr>\n";
} else {
$HTML_For_Ad = '';
}
$HTML = $port_display->ReplaceAdvertismentToken($HTML, $HTML_For_Ad);
freshports_ConditionalGetUnix($Cache->LastModifiedGet());
header("HTTP/1.1 200 OK");
$Title = $category . "/" . $port;
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/getvalues.php';
freshports_Start($Title, "{$FreshPortsTitle} - new ports, applications", "FreeBSD, index, applications, ports");
?>
<?php
echo freshports_MainTable();
?>
<tr><TD VALIGN="top" width="100%">
<?php
echo freshports_MainContentTable();
?>
<TR>
<?php
echo freshports_PageBannerText("Port details");
?>
</TR>
<tr><td valign="top" width="100%">
<?php
echo $HTML;
?>
</TD>
<TD VALIGN="top" WIDTH="*" ALIGN="center">
<?php
echo freshports_SideBar();
?>
</td>
</TR>
</TABLE>
<?php
echo freshports_ShowFooter();
?>
</body>
</html>
<?php
return 0;
}
示例7: icon
?>
) in the
Commit History for any port, you'll see a new link. This link is represented
by the Revision Details icon (<?php
echo freshports_Revision_Icon();
?>
).
</P>
</TD></TR>
<?php
echo freshports_BannerSpace();
?>
<TR>
<?php
echo freshports_PageBannerText('Expanded search options');
?>
</TR>
<TR><TD>
<P>
The <a href="/search.php">search page</a> now allows you to search by
the following fields.
<blockquote>
<table cellpadding="5" cellspacing="0" border="0">
<tr><td><b>Field</b></td><td><b>Origin</b></td></tr>
<tr><td>Port Name</td><td><code class="code">PORTNAME</code></td></tr>
<tr><td>Package Name</td><td><code class="code">PKGNAME</code></td></tr>
<tr><td>Latest Link</td><td><code class="code">PKGNAME</code></td></tr>
<tr><td>Maintainer</td><td><code class="code">MAINTAINER</code></td></tr>
<tr><td>Short Description</td><td><code class="code">COMMENT</code></td></tr>
示例8: freshports_MainContentTable
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchbox-only></gcse:searchbox-only>
<!-- SiteSearch Google -->
</table>
<br>
<?php
echo freshports_MainContentTable();
?>
<tr>
<?php
echo freshports_PageBannerText("The FreshPorts Search");
?>
</tr>
<tr><td valign="top">
<form ACTION="<?php
echo $_SERVER["PHP_SELF"];
?>
" name="search" >
<SELECT NAME="stype" size="1">
<OPTION VALUE="<?php
echo SEARCH_FIELD_NAME . '"';
if ($stype == SEARCH_FIELD_NAME) {
echo 'SELECTED';
}
示例9: freshports_PageBannerText
</TD></TR><TR><TD> </TD></TR>
<TR>
<?php
echo freshports_PageBannerText("What are these check boxes in my staging area?");
?>
</TR>
<TR><TD>
Your staging area is just a temporary situation. You must save this information
to your watch list. You can choose the ports you wish to watch using the
check boxes. Only selected ports will be saved to your watch list.
</TD></TR><TR><TD> </TD></TR>
<TR>
<?php
echo freshports_PageBannerText("Why would I want to clear my staging area?");
?>
</TR>
<TR><TD>
You cannot upload anything to your staging area unless it is empty. If you
don't wish to save the data to your watch list, you must first clear
your staging area before uploading again.
</TD></TR>
</TABLE>
</TD>
<TD VALIGN="top" WIDTH="*" ALIGN="center">
<?php
示例10: freshports_BannerSpace
FreshPorts will notify you of any problems it encounters when processing a port change
which you committed. In the past, such problems are related to syntax errors in the Makefile.
</P>
<P>
One committer referred to this service as a automated nagging mentor...
</P>
</TD></TR>
<?php
echo freshports_BannerSpace();
?>
<TR>
<?php
echo freshports_PageBannerText("Your opt-in status");
?>
</TR>
<TR><TD>
<P>
<?php
if (!empty($visitor)) {
$sql = "select committer\n\t\t\t from committer_notify\n\t\t\t where user_id = {$User->id}";
if ($Debug) {
echo "sql={$sql}<br>\n";
}
$result = pg_exec($db, $sql) or die("determine committer query failed " . pg_errormessage());
if ($result) {
echo 'You are: ';
if ($Debug) {
示例11: require_once
<BR>';
}
if (!IsSet($submit) && !$errors) {
// provide default values for an empy form.
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/getvalues.php');
}
</script>
<?php
echo freshports_MainContentTable();
?>
<TR>
<?php
echo freshports_PageBannerText("New User Details");
?>
</TR>
<TR>
<TD>
<P><BIG><BIG>Please observe the following points:</BIG></BIG>
<ul>
<li>
You must supply a valid email address. Instructions to enable your account
will be emailed to you at that address.
<li>If you have a spam filter, please allow all
mail from <CODE CLASS="code">unixathome.org</CODE> and <CODE CLASS="code">freshports.org</CODE>.
示例12: freshports_Start
freshports_Start('Privacy Policy', 'freshports - new ports, applications', 'FreeBSD, index, applications, ports');
?>
<?php
echo freshports_MainTable();
?>
<tr><td valign="top" width="100%">
<?php
echo freshports_MainContentTable();
?>
<TR>
<?php
echo freshports_PageBannerText('Privacy statement');
?>
</TR>
<TR><TD>
<CENTER>
<?php
if ($ShowAds) {
echo Ad_728x90();
}
?>
</CENTER>
<P>All the information we
gather is for our own use. We do not release it to anyone else.</P>
<P>For example, when you subscribe to our mailing list, we
示例13: freshports_MainTable
<script src="jquery.flot.pack.js"></script>
<script src="graphs.js"></script>
<?php
echo freshports_MainTable();
?>
<tr><td valign="top" width="100%">
<?php
echo freshports_MainContentTable();
?>
<TR>
<?php
echo freshports_PageBannerText("Statistics - everyone loves a graph");
?>
</TR>
<TR><TD>
<P>
All of these graphs require javascript. Please select the graph you would like to view from the dropdown.
</P>
<P>
If you have suggestions for graphs, please submit them via the forum.
</P>
<center>
<?php
if ($ShowAds) {
echo Ad_728x90();
示例14: freshports_ConditionalGet
freshports_ConditionalGet(freshports_LastModified());
freshports_Start('The Authors', 'freshports - new ports, applications', 'FreeBSD, index, applications, ports');
?>
<?php
echo freshports_MainTable();
?>
<tr><td valign="top" width="100%">
<?php
echo freshports_MainContentTable();
?>
<tr>
<?php
echo freshports_PageBannerText("About the authors");
?>
</tr>
<TR><TD>
<CENTER>
<?php
if ($ShowAds) {
echo Ad_728x90();
}
?>
</CENTER>
<p><a href="http://www.langille.org/">Dan Langille</a> thought up the idea, found the data sources, bugged people to
write scripts, and did the html and database work. But he certainly didn't
do it alone.</p>
示例15: CreateHTML
function CreateHTML($WhichRepo)
{
global $TableWidth;
global $freshports_CommitMsgMaxNumOfLinesToShow;
global $DaysMarkedAsNew;
$this->HTML = '';
if (!$this->ResultSet) {
die("read from database failed");
exit;
}
$NumRows = pg_numrows($this->ResultSet);
if ($this->Debug) {
echo __FILE__ . ':' . __LINE__ . " Number of rows = {$NumRows}<br>\n";
}
if (!$NumRows) {
$this->HTML = "<TR><TD>\n<P>Sorry, nothing found in the database....</P>\n</td></tr>\n";
return $this->HTML;
}
$this->HTML .= '
<table border="1" width="100%" CELLSPACING="0" CELLPADDING="5">
<TR>
';
switch ($NumRows) {
case 0:
$title = 'no files found';
break;
case 1:
$title = '1 file found';
break;
default:
$title = $NumRows . ' files found';
}
$this->HTML .= freshports_PageBannerText($title, 4);
$this->HTML .= "\n\t\t<TR>\n\t\t\t<TD><b>Action</b></TD><TD><B>Revision</B></TD><td><b>Links</b></td><TD><b>File</b></TD>\n\t\t</TR>\n";
for ($i = 0; $i < $NumRows; $i++) {
$myrow = pg_fetch_array($this->ResultSet, $i);
$this->HTML .= "<TR>\n";
switch ($myrow["change_type"]) {
case "M":
$Change_Type = "modify";
break;
case "A":
$Change_Type = "import";
break;
case "R":
$Change_Type = "remove";
break;
default:
$Change_Type = $myrow["change_type"];
}
$this->HTML .= " <TD>" . $Change_Type . "</TD>";
$this->HTML .= ' <TD>' . $myrow["revision_name"];
$this->HTML .= "</TD>";
$this->HTML .= '<td>';
if ($Change_Type == "modify") {
switch ($WhichRepo) {
case FREEBSD_REPO_CVS:
$this->HTML .= ' ';
$previousRevision = $this->GetPreviousRevision($myrow["revision_name"]);
$this->HTML .= freshports_cvsweb_Diff_Link($myrow["pathname"], $previousRevision, $myrow["revision_name"]);
break;
case FREEBSD_REPO_SVN:
$this->HTML .= ' ';
$previousRevision = $this->GetPreviousRevision($myrow["revision_name"]);
# we want something like http://svnweb.freebsd.org/ports/head/www/p5-App-Nopaste/Makefile?r1=300951&r2=300950&pathrev=300951
$this->HTML .= ' <A HREF="http://' . $myrow['svn_hostname'] . $myrow["pathname"] . '?r1=' . $myrow["revision_name"] . '&r2=' . $previousRevision . '&pathrev=' . $myrow["revision_name"] . '">';
$this->HTML .= freshports_Diff_Icon() . '</a> ';
break;
}
}
switch ($WhichRepo) {
case FREEBSD_REPO_CVS:
$this->HTML .= freshports_cvsweb_Annotate_Link($myrow["pathname"], $myrow["revision_name"]);
break;
case FREEBSD_REPO_SVN:
# we want something like
# http://svn.freebsd.org/ports/head/x11-wm/awesome/Makefile
$this->HTML .= ' <A HREF="http://' . $myrow['svn_hostname'] . $myrow["pathname"] . '?annotate=' . $myrow["revision_name"] . '">';
$this->HTML .= freshports_Revision_Icon() . '</a> ';
break;
default:
$this->HTML .= 'unknown: \'' . htmlentities($WhichRepo) . '\'';
}
$this->HTML .= '</td>';
$this->HTML .= ' <TD WIDTH="100%" VALIGN="middle">';
switch ($WhichRepo) {
case FREEBSD_REPO_CVS:
$this->HTML .= freshports_cvsweb_Revision_Link($myrow["pathname"], $myrow["revision_name"]);
break;
case FREEBSD_REPO_SVN:
# we want something like
# http://svnweb.freebsd.org/ports/head/textproc/bsddiff/Makefile?view=log#rev300953
$this->HTML .= ' <A HREF="http://' . $myrow['svn_hostname'] . $myrow["pathname"] . '?view=log#rev' . $myrow["revision_name"] . '">';
break;
}
$this->HTML .= '<CODE CLASS="code">' . $myrow["pathname"] . "</CODE></A></TD>";
$this->HTML .= "</TR>\n";
}
$this->HTML .= "</table>";
return $this->HTML;
//.........这里部分代码省略.........