本文整理汇总了PHP中site_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP site_footer函数的具体用法?PHP site_footer怎么用?PHP site_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了site_footer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: goodbye
/**
* goodbye - Just prints a message and a close button.
*
* @param string The message.
*/
function goodbye($msg)
{
site_header(array('title' => _('Attachments')));
html_feedback_top($msg);
echo '<p><p><center><form method="post"><input type="button" value="Close Window" onclick="window.close()"></form></center>';
site_footer(array());
exit;
/*echo "<center>" . $msg . "</center><p>";
die ('<center><form method="post"><input type="button" value="Close Window" onclick="window.close()"></form></center>');*/
}
示例2: exit_with_pretty_error
function exit_with_pretty_error($title, $header, $msg)
{
if ($title) {
site_header($title, array("noindex"));
}
echo '<h2>' . $header . '</h2>';
echo '<p>' . $msg . '</p>';
site_footer();
exit;
}
示例3: process
public function process(Codendi_Request $request)
{
switch ($request->get('action')) {
case 'provide_datas':
header('Content-type : text/csv');
echo file_get_contents($this->getCacheFolder() . 'data.csv');
break;
case 'beacon':
$this->processBoomerangDatas($request);
break;
default:
require_once 'common/templating/TemplateRendererFactory.class.php';
$header_params = array('title' => 'Boomerang');
site_header($header_params);
$renderer = TemplateRendererFactory::build()->getRenderer(BOOMERANG_BASE_DIR . '/../templates');
$presenter = new PerfDataPresenter();
$renderer->renderToPage('perf-data', $presenter);
site_footer(null);
break;
}
}
示例4: array
}
if (preg_match("/^[A-Za-z]+:\\/\\//i", $return_to)) {
$return_url = $return_to;
} else {
$return_url = $server_url . $return_to;
}
$redirect = $Language->getText('my_redirect', 'return_to', array($hp->purify($return_url, CODENDI_PURIFIER_CONVERT_HTML)));
print '
<script language="JavaScript">
<!--
function return_to_url() {
window.location="' . $hp->purify($return_url, CODENDI_PURIFIER_JS_QUOTE) . '";
}
setTimeout("return_to_url()",1000);
//-->
</script>
';
} else {
$redirect = $Language->getText('my_redirect', 'default_txt');
}
?>
<p><big><?php
echo $redirect;
?>
</big></p>
<?
($pv == 2) ? $HTML->pv_footer(array()) : site_footer(array());
?>
示例5: site_footer
$announcements .= '</ul></div>';
$announcements .= '</div>';
}
}
} else {
$announcements = '';
}
$SIDEBAR = <<<SIDEBAR_DATA
<p class='panel'><a href='/migration56' title='Upgrading to PHP 5.6' class='headline'>Upgrading to PHP 5.6</a></p>
{$announcements}
<p class='panel'><a href='/cal.php'>User Group Events</a></p>
<p class='panel'><a href='/thanks.php'>Special Thanks</a></p>
<p class='panel social-media'>
<span class='headline'>Social media</span>
<div class='body'>
<ul>
<li>
<a href="https://twitter.com/official_php">
<i class="icon-twitter"></i>
@official_php
</a>
</li>
</ul>
</div>
</p>
SIDEBAR_DATA;
// Print the common footer.
site_footer(array("atom" => "/feed.atom", 'elephpants' => true, 'sidebar' => $SIDEBAR));
示例6: gen_date
echo gen_date($DBLANG);
break;
case 'graph':
$path = "images/revcheck/info_revcheck_php_{$lang}.png";
if (is_readable($path)) {
echo '<img src="' . $path . '" alt="info">';
echo gen_date($DBLANG);
} else {
echo "<p>Can't find graph.</p>";
}
break;
default:
if ($lang == 'en') {
echo '<img src="images/revcheck/info_revcheck_php_all_lang.png" alt="Info" class="chart">';
echo '<p>This is all what we can show for original manual. To get more tools, please select translation language.</p>';
echo gen_date($DBLANG);
$sidebar = nav_languages();
site_footer($sidebar);
} else {
$intro_result = $dbhandle->query("SELECT intro FROM description WHERE lang = '{$lang}'");
$intro = $intro_result->fetchArray();
echo '<h2>Intro for language</h2>';
echo '<p>' . $intro[0] . '</p>';
echo '<p>Links to available tools are placed on the right sidebar.</p>';
}
break;
}
if ($lang != 'en') {
$sidebar = nav_tools($lang);
site_footer($sidebar);
}
示例7: foreach
echo " <table>\n";
foreach ($CONF_TEASER as $k => $a) {
if (is_array($a) && count($a)) {
echo " <tr>\n <td valign='top' style='white-space: nowrap'>" . $categories[$k] . ":</td>\n";
echo " <td valign='top'>\n";
echo ' <ul class="' . $k . '">' . "\n";
$count = 0;
$a = preg_replace("'([A-Za-z0-9])([\\s\\:\\-\\,]*?)call for(.*?)\$'i", "\$1", $a);
foreach ($a as $url => $title) {
if ($count++ >= 4) {
break;
}
echo ' <li><a href="' . $url . '">' . $title . '</a></li>' . "\n";
}
echo " </ul>\n </td>\n </tr>\n";
}
// if set
}
echo " </table>\n </div>\n\n<br />\n";
}
/* Where the h*ll did all the news go?
* See archives/2007.xml
*/
print_news($NEWS_ENTRIES, "frontpage");
?>
<p class="center"><a href="/archive/index.php">News Archive</a></p>
<?php
site_footer(array("atom" => "/feed.atom"));
示例8: unset
}
// If the two are more then 70% similar or $notfound is a substring
// of $funcname, then the match is a very similar one
if ($p >= 70 || strpos($functions[$file], $notfound) !== FALSE) {
$maybe[$file] = '<b>' . $functions[$file] . '</b>';
} else {
$maybe[$file] = $functions[$file];
}
}
unset($matches, $temp);
}
// Do not index page if presented as a search result
if (count($maybe) > 0) {
$head_options = array("noindex");
} else {
$head_options = array();
}
site_header("Manual Quick Reference", $head_options + array("current" => "help"));
// Note: $notfound is defined (with htmlspecialchars) inside manual-lookup.php
// Let's decode it for a nice search text box display.
$notfound_dec = htmlspecialchars_decode($notfound);
if ($snippet = is_known_snippet($notfound)) {
echo "<h1>Related snippet found for '{$notfound}'</h1>";
echo "<p>{$snippet}</p>";
}
// Left side content
primary_content($notfound_dec);
// Right side content (sidebar)
$config = array("sidebar" => '<p class="panel">' . sidebar_content($notfound, $maybe));
site_footer($config);
示例9: create_project
//.........这里部分代码省略.........
$query = "UPDATE groups SET svn_tracker='" . $arr['svn_tracker'] . "', svn_mandatory_ref='" . $arr['svn_mandatory_ref'] . "', svn_preamble='" . db_escape_string($arr['svn_preamble']) . "' " . "WHERE group_id = {$group_id}";
$result = db_query($query);
if (!$result) {
exit_error($GLOBALS['Language']->getText('global', 'error'), $GLOBALS['Language']->getText('register_confirmation', 'cant_copy_svn_infos'));
}
// Activate other system references not associated with any service
$reference_manager =& ReferenceManager::instance();
$reference_manager->addSystemReferencesWithoutService($template_id, $group_id);
// Create default document group
$query = "INSERT INTO doc_groups(groupname,group_id,group_rank) " . "values (" . "'Documents'," . "'{$group_id}'," . "'10')";
$result = db_query($query);
if (!$result) {
exit_error($GLOBALS['Language']->getText('global', 'error'), $GLOBALS['Language']->getText('register_confirmation', 'cant_create_docgroup'));
}
//Copy ugroups
$ugroup_mapping = array();
ugroup_copy_ugroups($template_id, $group_id, $ugroup_mapping);
$sql_ugroup_mapping = ' ugroup_id ';
if (is_array($ugroup_mapping) && count($ugroup_mapping)) {
$sql_ugroup_mapping = ' CASE ugroup_id ';
foreach ($ugroup_mapping as $key => $val) {
$sql_ugroup_mapping .= ' WHEN ' . $key . ' THEN ' . $val;
}
$sql_ugroup_mapping .= ' ELSE ugroup_id END ';
}
//Copy packages from template project
$sql = "SELECT package_id, name, status_id, rank, approve_license FROM frs_package WHERE group_id = {$template_id}";
if ($result = db_query($sql)) {
while ($p_data = db_fetch_array($result)) {
$template_package_id = $p_data['package_id'];
$sql = sprintf("INSERT INTO frs_package(group_id, name, status_id, rank, approve_license) VALUES (%s, '%s', %s, %s, %s)", $group_id, db_escape_string($p_data['name']), $p_data['status_id'], $p_data['rank'], $p_data['approve_license']);
$rid = db_query($sql);
if ($rid) {
$package_id = db_insertid($rid);
$sql = "INSERT INTO permissions(permission_type, object_id, ugroup_id) \n SELECT permission_type, {$package_id}, {$sql_ugroup_mapping}\n FROM permissions\n WHERE permission_type = 'PACKAGE_READ'\n AND object_id = {$template_package_id}";
db_query($sql);
}
}
}
//Set up some mailing lists
//will be done at some point. needs to communicate with geocrawler
// TBD
// Generic Trackers Creation
$atf = new ArtifactTypeFactory($template_group);
//$tracker_error = "";
// Add all trackers from template project (tracker templates) that need to be instanciated for new trackers.
$res = $atf->getTrackerTemplatesForNewProjects();
$tracker_mapping = array();
$report_mapping = array();
while ($arr_template = db_fetch_array($res)) {
$ath_temp = new ArtifactType($template_group, $arr_template['group_artifact_id']);
$report_mapping_for_this_tracker = array();
$new_at_id = $atf->create($group_id, $template_id, $ath_temp->getID(), db_escape_string($ath_temp->getName()), db_escape_string($ath_temp->getDescription()), $ath_temp->getItemName(), $ugroup_mapping, $report_mapping_for_this_tracker);
if (!$new_at_id) {
$GLOBALS['Response']->addFeedback('error', $atf->getErrorMessage());
} else {
$report_mapping = $report_mapping + $report_mapping_for_this_tracker;
$tracker_mapping[$ath_temp->getID()] = $new_at_id;
// Copy all the artifacts from the template tracker to the new tracker
$ath_new = new ArtifactType($group, $new_at_id);
// not now. perhaps one day
//if (!$ath_new->copyArtifacts($ath_temp->getID()) ) {
//$GLOBALS['Response']->addFeedback('info', $ath_new->getErrorMessage());
//}
// Create corresponding reference
$ref = new Reference(0, strtolower($ath_temp->getItemName()), $GLOBALS['Language']->getText('project_reference', 'reference_art_desc_key'), '/tracker/?func=detail&aid=$1&group_id=$group_id', 'P', 'tracker', ReferenceManager::REFERENCE_NATURE_ARTIFACT, '1', $group_id);
$result = $reference_manager->createReference($ref, true);
// Force reference creation because default trackers use reserved keywords
}
}
// Clone wiki from the template
$clone = new WikiCloner($template_id, $group_id);
// check if the template project has a wiki initialised
if ($clone->templateWikiExists() and $clone->newWikiIsUsed()) {
//clone wiki.
$clone->CloneWiki();
}
//Create the summary page
$lm = new WidgetLayoutManager();
$lm->createDefaultLayoutForProject($group_id, $template_id);
//Create project specific references if template is not default site template
if (!$system_template) {
$reference_manager =& ReferenceManager::instance();
$reference_manager->addProjectReferences($template_id, $group_id);
}
// Raise an event for plugin configuration
$em =& EventManager::instance();
$em->processEvent('register_project_creation', array('reportMapping' => $report_mapping, 'trackerMapping' => $tracker_mapping, 'ugroupsMapping' => $ugroup_mapping, 'group_id' => $group_id, 'template_id' => $template_id));
if (!$do_not_exit) {
$content = '';
include $GLOBALS['Language']->getContent('project/complete');
site_header(array('title' => $GLOBALS['Language']->getText('register_confirmation', 'registration_complete')));
echo $content;
site_footer(array());
exit(0);
} else {
return $group_id;
}
}
}
示例10: header
</ul>
<p>
Further details about this release can be found in the <a href="/release_4_4_2.php">release announcement</a>
and the full list of changes is available in the <a href="/ChangeLog-4.php#4.4.2">PHP 4 ChangeLog</a>.
</p>
<hr>
<h1>PHP 5.1.2 Released</h1>
<p>
<span class="newsdate">[12-Jan-2006]</span>
The PHP development team is proud to announce the release of <a href="/downloads.php">PHP 5.1.2</a>.
This release combines small feature enhancements with a fair number of
bug fixes and addresses three security issues. All PHP 5 users are encouraged to
upgrade to this release. Some of the key changes of PHP 5.1.2 include:
</p>
<ul>
<li>HTTP Response Splitting has been addressed in ext/session and in the header() function.</li>
<li>Fixed format string vulnerability in ext/mysqli.</li>
<li>Fixed possible cross-site scripting problems in certain error conditions.</li>
<li>Hash & XMLWriter extensions added and enabled by default.</li>
<li>Upgraded OCI8 extension.</li>
<li>Over 85 various bug fixes.</li>
</ul>
<p>
Further details about this release can be found in the <a href="/release_5_1_2.php">release announcement</a>
and the full list of changes is available in the <a href="/ChangeLog-5.php#5.1.2">PHP 5 ChangeLog</a>.
</p>
<?php
site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
示例11: array
$lang_input = "\n";
}
?>
<h1>Search</h1>
<form action="/search.php" method="post">
<p><?php
echo $lang_input;
?>
Search for:
<input type="text" name="pattern" value="" size="30" />
in the
<select name="show">
<?php
if (empty($_FORM['show'])) {
$_FORM['show'] = 'quickref';
}
$searchoptions = array("quickref" => "function list", "all" => "all php.net sites", "local" => "this mirror only", "manual" => "online documentation [en]", "bugdb" => "bug database", "news_archive" => "Site News Archive", "changelogs" => "All Changelogs", "pear" => "just pear.php.net", "pecl" => "just pecl.php.net", "talks" => "just talks.php.net", "maillist" => "general mailing list", "devlist" => "developer mailing list", "phpdoc" => "documentation mailing list");
// Print out an <option> for all search options
foreach ($searchoptions as $key => $value) {
echo ' <option value="' . $key . '"' . ($key == $_FORM['show'] ? ' selected="selected"' : '') . '>' . $value . "</option>\n";
}
?>
</select>
<input type="submit" value=" Search " />
</p>
</form>
<?php
}
echo '<script type="text/javascript">loadSuggestCode();</script>';
site_footer(array("functionsjs"));
}
示例12: foreach
} else {
foreach ($source as $src) {
if (!isset($src["filename"])) {
continue;
}
printf('<a href="http://museum.php.net/php%d/%s">%s</a>' . "\n", $major, $src["filename"], $src["name"]);
}
foreach ($windows as $src) {
printf('<a href="http://museum.php.net/%s/%s">%s</a>' . "\n", $major == 5 ? "php5" : "win32", $src["filename"], $src["name"]);
}
}
echo " </li>\n";
echo " </ul>\n";
}
$latest = max(array_keys($OLDRELEASES));
foreach ($OLDRELEASES as $major => $a) {
echo '<a id="v' . $major . '"></a>';
if ($major != $latest) {
echo "\n<hr>\n";
if ($major == 4) {
echo '<p>Support for PHP 4 has been <b style="color: red;">discontinued</b> since 2007-12-31. Please consider upgrading to PHP 5.</p>' . "\n";
}
}
$i = 0;
foreach ($a as $ver => $release) {
$i++;
mk_rel($major, $ver, $release["date"], isset($release["announcement"]) ? $release["announcement"] : false, $release["source"], isset($release["windows"]) ? $release["windows"] : array(), isset($release["museum"]) ? $release["museum"] : ($i < 3 ? false : true));
}
}
site_footer(array("sidebar" => $SIDEBAR_DATA));
示例13: print_view
// Print body of home page.
print_view('homepage/sidebar.php', array('announcements' => $announcements));
print $content;
$thanksTo = <<<THANKS
<section id='thanks-to'>
<h3>Thanks To</h3>
<ul>
<li><a target="_blank" href="http://www.easydns.com/?V=698570efeb62a6e2" title="DNS Hosting provided by easyDNS">easyDNS</a></li>
<li><a target="_blank" href="http://www.directi.com/" title="Directi">Directi</a></li>
<li><a target="_blank" href="http://promote.pair.com/direct.pl?php.net" title="pair Networks">pair Networks</a></li>
<li><a target="_blank" href="http://www.servercentral.net/" title="Server Central">Server Central</a></li>
<li><a target="_blank" href="http://www.hostedsolutions.com/" title="Hosted Solutions">Hosted Solutions</a></li>
<li><a target="_blank" href="http://www.spry.com/" title="Spry VPS Hosting">Spry VPS Hosting</a></li>
<li><a target="_blank" href="http://ez.no/" title="eZ Systems">eZ Systems</a> / <a href="http://www.hit.no/">HiT</a></li>
<li><a target="_blank" href="http://www.osuosl.org" title="OSU Open Source Lab">OSU Open Source Lab</a></li>
<li><a target="_blank" href="http://www.yahoo.com/" title="Yahoo! Inc.">Yahoo! Inc.</a></li>
<li><a target="_blank" href="http://www.binarysec.com/" title="BinarySEC">BinarySEC</a></li>
<li><a target="_blank" href="http://www.nexcess.net/" title="NEXCESS.NET">NEXCESS.NET</a></li>
<li><a target="_blank" href="http://www.rackspace.com/" title="Rackspace">Rackspace</a></li>
<li><a target="_blank" href="http://www.eukhost.com/" title="EUKhost">EUKhost</a></li>
<li><a target="_blank" href="http://www.sohosted.nl/webhosting/" title="Sohosted">Sohosted</a></li>
<li><a target="_blank" href="http://www.redpill-linpro.com" title="Redpill Linpro">Redpill Linpro</a></li>
<li><a target="_blank" href="http://www.facebook.com" title="Facebook">Facebook</a></li>
<li><a target="_blank" href="http://krystal.co.uk" title="Krystal.co.uk">Krystal.co.uk</a></li>
<li><a target="_blank" href="http://servergrove.com/" title="ServerGrove">ServerGrove</a></li>
</ul>
</section>
THANKS;
// Print the common footer.
site_footer(array("atom" => "/feed.atom", 'elephpants' => true, 'spanning-content' => $thanksTo));
示例14: isset
}
echo '<dt class="ug"><a href="' . $group["url"] . '">' . $group["name"] . "</a></dt><dd>{$details}</dd>";
}
if (!$matches) {
echo "<dt>Sorry</dt><dd>There are no known User Groups in {$COUNTRIES[$country]} at this time :(</dd>";
}
echo "</dl>";
}
$country = isset($_GET["cc"]) ? $_GET["cc"] : $COUNTRY;
$country_alpha_2 = isset($COUNTRY_ALPHA_3_TO_2[$country]) ? $COUNTRY_ALPHA_3_TO_2[$country] : "NA";
$allcountries = array();
$matches = get_usergroups_in($country_alpha_2, $allcountries);
if (isset($COUNTRIES[$country])) {
print_cc_header($country);
print_ug_matches($matches);
} else {
echo "<h1>Unknown country</h1>";
}
uksort($allcountries, function ($first, $second) {
global $COUNTRIES;
return strnatcasecmp($COUNTRIES[$first], $COUNTRIES[$second]);
});
$SIDEBAR_DATA = <<<EOF
<p class="panel"><a href="http://php.ug/ug/promote">Register new UG</a></p>
EOF;
foreach ($allcountries as $country => $nada) {
$SIDEBAR_DATA .= '<p class="panel"><a href="/ug.php?cc=' . $country . '">' . $COUNTRIES[$country] . '</a></p>';
}
// Print the common footer.
site_footer(array("atom" => "/feed.atom", "sidebar" => $SIDEBAR_DATA));
示例15: site_header
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
// $Id: contact.php,v 1.3 2001/01/13 18:32:01 child Exp $
require "pre.php";
// Initial db and session library, opens session
site_header(array('title' => 'Contact Us'));
?>
<P>You may contact any of the <A href="staff.php">staff</A> directly via email.
<P>
All <B>support questions</B> should be submitted through the
<A HREF="/support/?func=addsupport&group_id=1">Support Manager</A>.
<P>
If you feel you are encountering a <B>bug</B> or unusual error of any kind,
please <A HREF="/bugs/?func=addbug&group_id=1"><B>submit a bug</B></A>.
<P>All press inquiries should be directed to:
<UL><LI><A href="/sendmessage.php?toaddress=eureka_maillink_valinux.com">Eureka Endo</A>
<BR>Press Relations Manager, VA Linux Systems
<BR>408.542.5754</UL>
<P>All complaints/bugs should be directed to:
<UL><LI><A href="/bugs/?group_id=1">Our Bug Tracking System</A></UL>
<P>If you're especially bored, you can visit our bug tracking system
to see what other people have submitted, too.
<?php
site_footer(array());