本文整理汇总了PHP中response_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP response_footer函数的具体用法?PHP response_footer怎么用?PHP response_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了response_footer函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handle_pear_errors
function handle_pear_errors($error_obj)
{
response_header("Oops! We are sorry that you are unable to report an undocumented feature today.");
$error = "<p>Greetings! We are experiencing an error, and in the spirit of Open Source would like you to fix it. ";
$error .= "Or more likely, just wait and someone else will find and solve this.</p>\n";
$error .= "<p>It's our guess that the database is down. Argh!!!</p>\n";
// FIXME: If logged in, show other stuff....
response_footer($error);
exit;
}
示例2: dirname
include dirname(__FILE__) . '/index.php';
exit;
}
if (isset($_POST['url']) && !empty($_POST['url'])) {
$pendingComments = $manualNotes->getPageComments($_POST['url'], 'pending');
} else {
$pendingComments = $manualNotes->getPageComments('', 'pending', true);
}
$url = isset($_POST['url']) ? strip_tags($_POST['url']) : '';
$error = '';
require PEARWEB_TEMPLATEDIR . '/notes/note-manage-admin.tpl.php';
break;
case 'updatesingle':
break;
default:
response_header('Note Administration', null, null);
report_error('Missing action');
response_footer();
exit;
}
function getPackageNameForId($id)
{
global $dbh;
$res = preg_match('/^package\\.[\\w-]+\\.([\\w-]+).*\\.php$/', $id, $matches);
if ($res === 0) {
return null;
}
$package = str_replace('-', '_', $matches[1]);
$query = 'SELECT name FROM packages WHERE LCASE(name) = LCASE(?)';
return $dbh->getOne($query, $package);
}
示例3: manualFooter
/**
* Display html footer and closing html tag
*
* @param string $id ID of docbook chunk (manual page id)
* @param string $title Manual page title
*
* @return void
*/
function manualFooter($id, $title = '')
{
echo "</div>\n";
global $HTDIG;
if (!$HTDIG) {
navigationBar($id, $title, 'bottom');
}
response_footer();
}
示例4: response_footer
\t\t\t\t\$(this).hide('slow');
\t\t\t}
\t\t});
\t}
\treturn false;
}
</script>
bug_JS;
if ($edit == 1) {
$bug_JS .= '
<script type="text/javascript" src="js/jquery.autocomplete-min.js"></script>
<script type="text/javascript" src="js/userlisting.php"></script>
<script type="text/javascript" src="js/search.js"></script>
';
}
response_footer($bug_JS);
// Helper functions
function mark_related_bugs($from, $comment_name, $ncomment)
{
global $bug_id;
$related = get_ticket_links($ncomment);
/**
* Adds a new comment on the related bug pointing to the current report
*/
foreach ($related as $bug) {
bugs_add_comment($bug, $from, $comment_name, 'Related To: Bug #' . $bug_id, 'related');
}
}
function link_to_people($email, $text)
{
$domain = strstr($email, "@");
示例5: auth_require
function auth_require()
{
global $auth_user;
$res = true;
$user = @$_COOKIE['PEAR_USER'];
$passwd = @$_COOKIE['PEAR_PW'];
if (!auth_verify($user, $passwd)) {
auth_reject();
// exits
}
$num = func_num_args();
for ($i = 0; $i < $num; $i++) {
$arg = func_get_arg($i);
$res = auth_check($arg);
if ($res === true) {
return true;
}
}
if ($res === false) {
response_header("Insufficient Privileges");
report_error("Insufficient Privileges");
response_footer();
exit;
}
return true;
}
示例6: error_handler
/**
* Generates a complete PEAR web page with an error message in it then
* calls exit
*
* For use with PEAR_ERROR_CALLBACK error handling mode to print fatal
* errors and die.
*
* @param string|array|PEAR_Error $in see report_error() for more info
* @param string $title string to be put above the message
*
* @return void
*
* @see report_error()
*/
function error_handler($errobj, $title = 'Error')
{
response_header($title);
report_error($errobj);
response_footer();
exit;
}
示例7: error_handler
/**
* Generates a complete PEAR web page with an error message in it then
* calls exit
*
* For use with PEAR_ERROR_CALLBACK error handling mode to print fatal
* errors and die.
*
* @param string|array|PEAR_Error $in see report_error() for more info
* @param string $title string to be put above the message
*
* @return void
*
* @see report_error()
*/
function error_handler($errobj, $title = 'Error')
{
response_header($title);
report_error($errobj);
response_footer();
error_log('pearweb errorhandler: ' . get_detail_error_msg($errobj), 0);
exit;
}
示例8: manualFooter
function manualFooter($title, $id = "")
{
global $HTDIG;
if (!$HTDIG) {
navigationBar($title, $id, "bottom");
}
response_footer();
}
示例9: auth_require
function auth_require($admin = false)
{
global $auth_user;
$res = true;
if (!is_logged_in()) {
auth_reject();
// exits
}
$num = func_num_args();
for ($i = 0; $i < $num; $i++) {
$arg = func_get_arg($i);
$res = auth_check($arg);
if ($res == true) {
return true;
}
}
if ($res == false) {
response_header("Insufficient Privileges");
report_error("Insufficient Privileges");
response_footer();
exit;
}
return true;
}