当前位置: 首页>>代码示例>>PHP>>正文


PHP output_header函数代码示例

本文整理汇总了PHP中output_header函数的典型用法代码示例。如果您正苦于以下问题:PHP output_header函数的具体用法?PHP output_header怎么用?PHP output_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了output_header函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: output_dot_from_parser_tree

function output_dot_from_parser_tree(sfEvent $ev)
{
    $node = $ev->getSubject();
    output_header();
    output_node_info($node);
    output_children($node);
    output_footer();
}
开发者ID:hnw,项目名称:PhpParser,代码行数:8,代码来源:print-php-parse-tree.php

示例2: output_message

function output_message($title, $msg)
{
    clear_buffer();
    output_header($title);
    output_block_start($title);
    echo $msg;
    output_block_end();
    output_footer();
    exit;
}
开发者ID:darwinkim,项目名称:onlinesequencer,代码行数:10,代码来源:main.php

示例3: undo_all_magic_quotes

<?php

$relPath = '../pinc/';
include_once $relPath . 'base.inc';
include_once $relPath . 'faq.inc';
include_once $relPath . 'theme.inc';
include_once $relPath . 'misc.inc';
// undo_all_magic_quotes()
undo_all_magic_quotes();
output_header(_('Site Progress Snapshot'), NO_STATSBAR);
?>

<h1>Site Progress Snapshot</h1>

<p>The Site Progress Snapshot is a status dashboard of how many projects there are in the various stages of production and how well we're tracking to the page goals for the day.</p>

<p>Each row has three major components:
<ul>
  <li>General activity information: abbreviation, name, and your access to that activity.</li>
  <li>Project-specific details.</li>
  <li>Page-specific details.</li>
</ul>
</p>


<h2>Activity information</h2>
<p>Every row contains information about the activity, including an abbreviation and name. Hovering over the name also shows a description of the round. For example:
<ul>
  <li><b>Abbreviation:</b> <?php 
echo $ELR_round->id;
?>
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:site_progress_snapshot_legend.php

示例4: undo_all_magic_quotes

include_once $relPath . 'base.inc';
include_once $relPath . 'faq.inc';
include_once $relPath . 'pg.inc';
include_once $relPath . 'theme.inc';
include_once $relPath . 'metarefresh.inc';
include_once $relPath . 'misc.inc';
// undo_all_magic_quotes()
undo_all_magic_quotes();
# SITE-SPECIFIC
# Redirect users to this document in the wiki
if (strpos($code_url, '://www.pgdp.')) {
    $url = 'http://www.pgdp.net/wiki/DP_Official_Documentation:Formatting/Italian/Regole_di_Formattazione';
    metarefresh(0, $url);
}
$theme_args["css_data"] = "p.backtotop {text-align:right; font-size:75%;margin-right:-5%;}";
output_header('Regole di Formattazione', NO_STATSBAR, $theme_args);
?>

<!-- NOTE TO MAINTAINERS AND DEVELOPERS:

     There are now HTML comments interspersed in this document which are/will be
     used by a script which automagically slices out the Random Rule text for the
     database. It does this by copying:
       1) All text from one h_3 to the next h_3
          -OR-
       2) All text from h_3 to the END_RR comment line.

    This allows us to have "extra" information in the Guidelines, but leave it out
    in the Random Rule for purposes of clarity/brevity.

    If you are updating this document, the above should be kept in mind.
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:formatting_guidelines_italian.php

示例5: switch

switch ($cmd) {
    case 'login':
        output_header();
        form_login();
        output_footer();
        break;
    case 'process_login':
        output_header();
        process_login();
        output_footer();
        break;
    case 'publish':
        output_header();
        form_publish();
        output_footer();
        break;
    case 'create_album':
        output_header();
        create_album();
        output_footer();
        break;
    case 'add_picture':
        process_picture();
        break;
    case 'send_reg':
        send_reg_file();
        break;
    default:
        display_instructions();
}
// switch
开发者ID:BackupTheBerlios,项目名称:copperexport-svn,代码行数:31,代码来源:xp_publish.php

示例6: undo_all_magic_quotes

include_once $relPath . 'base.inc';
include_once $relPath . 'faq.inc';
include_once $relPath . 'pg.inc';
include_once $relPath . 'theme.inc';
include_once $relPath . 'metarefresh.inc';
include_once $relPath . 'misc.inc';
// undo_all_magic_quotes()
undo_all_magic_quotes();
# SITE-SPECIFIC
# Redirect users to this document in the wiki
if (strpos($code_url, '://www.pgdp.')) {
    $url = 'http://www.pgdp.net/wiki/DP_Official_Documentation:Formatting/Formatting_Guidelines';
    metarefresh(0, $url);
}
$theme_args["css_data"] = "p.backtotop {text-align:right; font-size:75%;margin-right:-5%;}";
output_header('Formatting Guidelines', 'header', NO_STATSBAR, $theme_args);
?>

<!-- NOTE TO MAINTAINERS AND DEVELOPERS:

     There are now HTML comments interspersed in this document which are/will be
     used by a script which automagically slices out the Random Rule text for the
     database. It does this by copying:
       1) All text from one h_3 to the next h_3
          -OR-
       2) All text from h_3 to the END_RR comment line.

    This allows us to have "extra" information in the Guidelines, but leave it out
    in the Random Rule for purposes of clarity/brevity.

    If you are updating this document, the above should be kept in mind.
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:document.php

示例7: output_header

<?php

$relPath = '../../pinc/';
include_once $relPath . 'base.inc';
include_once $relPath . 'theme.inc';
output_header(_('Basic Proofreading Tutorial'));
echo "<h2>" . sprintf(_("Basic Proofreading Tutorial, Step %d"), 2) . "</h2>\n";
echo "<h3>" . _("Paragraph Spacing/Indenting") . "</h3>\n";
echo "<p>" . _("Put a blank line before the start of a paragraph, even if it starts at the top of a page. You should not indent the start of the paragraph, but if it is already indented don't bother removing those spaces&mdash;that can be done automatically during post-processing.") . "</p>\n";
echo "<h3>" . _("End-of-line Dashes") . "</h3>\n";
echo "<p>" . _("As with end-of-line hyphenation, if an em-dash appears at the start or end of a line of your OCR'd text, join it with the other line so that there are no spaces or line breaks around it. See the examples below.") . "</p>\n";
echo "<h3>" . _("Dashes") . "</h3>\n";
echo "<p>" . _("<i>Em-dashes &amp; long dashes</i>. These serve as <b>separators</b> between words&mdash;sometimes for emphasis like this&mdash;or when a speaker gets a word caught in his throat&mdash;&mdash;!");
echo "<br>" . _("Proofread these as two hyphens if the dash is as long as 2-3 letters (an <i>em-dash</i>) and four hyphens if the dash is as long as 4-5 letters (a <i>long dash</i>). Don't leave a space before or after, even if it looks like there was a space in the original book image.") . "</p>\n";
echo "<table width='100%' align='center' border='1'  cellpadding='4' cellspacing='0' summary='" . _("Hyphens and Dashes") . "'>\n";
echo "  <tbody>\n    <tr>\n      <th valign='top' bgcolor='cornsilk'>" . _("Original Image:") . "</th>\n";
echo "      <th valign='top' bgcolor='cornsilk'>" . _("Correctly Proofread Text:") . "</th>\n    </tr>\n";
echo "    <tr>\n      <td valign='top'>sensations&mdash;sweet, bitter, salt, and sour<br>\n        &mdash;if even all of these are simple tastes. What</td>\n";
echo "      <td valign='top'><tt>sensations--sweet, bitter, salt, and sour--if<br>\n        even all of these are simple tastes. What</tt></td>\n    </tr>\n";
echo "    <tr>\n      <td valign='top'>senses&mdash;touch, smell, hearing, and sight&mdash;<br>\n        with which we are here concerned,</td>\n";
echo "      <td valign='top'><tt>senses--touch, smell, hearing, and sight--with<br>\n        which we are here concerned,</tt></td>\n    </tr>\n";
echo "    <tr>\n      <td valign='top'><img src='../../faq/dashes.png' width='300' height='28' alt=''></td>\n";
echo "      <td valign='top'><tt>how a--a--cannon-ball goes----\"</tt></td>\n";
echo "    </tr>\n  </tbody>\n</table>\n";
echo "<h3>" . _("End-of-page Hyphenation and Dashes") . "</h3>\n";
echo "<p>" . _("Proofread end-of-page hyphens or em-dashes by leaving the hyphen or em-dash at the end of the last line, and mark it with a <tt>*</tt> after the hyphen or dash.") . "</p>\n";
echo "<p><a href='../generic/main.php?quiz_page_id=p_basic_2'>" . _("Continue to quiz") . "</a></p>\n";
// vim: sw=4 ts=4 expandtab
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:28,代码来源:tut_p_basic_2.php

示例8: row

        row(_("Default Scanner Credit (deprecated)"), 'text_field', $scannercredit, 'scannercredit');
    }
    row(_("Default Clearance Information"), 'text_field', $clearance, 'clearance');
    row(_("Default Project Comments"), 'proj_comments_field', $comments);
    echo "<tr><td bgcolor='{$bgcol}' colspan='2' align='center'><input type='submit' name='saveUberAndQuit' value='" . _("Save Uber Project and Quit") . "'><input type='submit' name='saveUberAndNewProject' value='" . _("Save Uber Project and Create \na New Project from this Uber Project") . "'><input type='submit' name='saveUberAndReturn' value='" . _("Save Uber Project\n and Refresh") . "'><input type='button' value='" . _("Quit Without Saving") . "' onclick='javascript:location.href=\"projectmgr.php\";'></td></tr>\n</table></center>";
    echo "</form>";
} elseif (isset($_POST['saveUberAndQuit']) || isset($_POST['saveUberAndNewProject'])) {
    $errorMsg = saveUberProject($_POST);
    if (empty($errorMsg)) {
        if (isset($_POST['saveUberAndQuit'])) {
            metarefresh(0, "projectmgr.php", _("Save Uber Project and Quit"), "");
        } else {
            metarefresh(0, "editproject.php?action=createnewfromuber&up_projectid=" . $up_projectid, _("Save Uber Project and Create New Project"), "");
        }
    } else {
        output_header(_("Uber Project Error!"));
        echo "<br><center><h3><font color='#ff0000'>{$errorMsg}<br><br>";
        echo _("Press browser Back button to return, edit, and try again");
        echo "</font></h3></center>";
    }
}
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
function saveUberProject()
{
    //Let's check to make sure everything is correct & there are no errors
    if (empty($_POST['up_nameofwork'])) {
        $errormsg .= "Overall Name of Uber Project is required.<br>";
    }
    if (!empty($_POST['checkedoutby'])) {
        $checkedoutby = $_POST['checkedoutby'];
        $errormsg .= check_user_exists($checkedoutby, 'PPer/PPVer');
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:edit_uberproject.php

示例9: output_header

<?php

$relPath = './../pinc/';
include_once $relPath . 'base.inc';
include_once $relPath . 'theme.inc';
output_header(_("User Logon Statistics"));
echo "<center><h1><i>" . _("User Logon Statistics") . "</i></h1></center>";
echo "<center><img src=\"jpgraph_files/users_logging_on.php?past=day&preceding=hour\"></center><br>";
echo "<center><img src=\"jpgraph_files/users_logging_on.php?past=year&preceding=hour\"></center><br>";
echo "<center><img src=\"jpgraph_files/users_logging_on.php?past=year&preceding=day\"></center><br>";
echo "<center><img src=\"jpgraph_files/users_logging_on.php?past=year&preceding=week\"></center><br>";
echo "<center><img src=\"jpgraph_files/users_logging_on.php?past=year&preceding=fourweek\"></center><br>";
// vim: sw=4 ts=4 expandtab
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:13,代码来源:user_logon_stats.php

示例10: dpsession_set_preferences_from_db

            dpsession_set_preferences_from_db();
            // Bounce user back to the proofreading preferences tab.
            $selected_tab = 1;
            $url = "{$code_url}/userprefs.php?tab={$selected_tab}&amp;origin=" . urlencode($origin);
            metarefresh(3, $url, _('Delete profile'), _('Reloading current tab....'));
        } else {
            // Show the same tab that was just saved
            $url = "{$code_url}/userprefs.php?tab={$selected_tab}&amp;origin=" . urlencode($origin);
            metarefresh(0, $url, _('Saving preferences'), _('Reloading current tab....'));
        }
    }
}
// header, start of table, form, etc. common to all tabs
$header = _("Personal Preferences");
$theme_extra_args["js_data"] = get_newHelpWin_javascript("{$code_url}/pophelp.php?category=prefs&name=set_") . "\n\n    // function that can be used to check/uncheck a lot\n    // of checkboxes at a time.\n    // First parameter: true/false.\n    // Following parameters: The name of the checkboxes.\n    // The code checks that a checkbox really exists\n    // before accessing it.\n    function check_boxes(value) {\n        var f = document.forms[0];\n        for (var i = 1; i < arguments.length; i++) {\n            var name = arguments[i];\n            eval('if (f.'+name+') f.'+name+'.checked=value');\n        }\n    }";
output_header($header, SHOW_STATSBAR, $theme_extra_args);
echo_stylesheet_for_tabs();
echo "<br><center>";
echo "<form action='userprefs.php' method='post'>";
echo "<table width='90%' bgcolor='#ffffff' border='1' cellspacing='0' cellpadding='0' style='border: 1px solid #111; border-collapse: collapse'>";
echo "<tr><td bgcolor='" . $theme['color_headerbar_bg'] . "' colspan='6' align='center'>";
echo "<font size=\"+2\" color='" . $theme['color_headerbar_font'] . "'><b>" . sprintf(_("Preferences Page for %s"), $pguser) . "</b></font>\n";
echo "<br><font color='" . $theme['color_headerbar_font'] . "'><i>" . _("Your preferences are grouped into tabs. Switch between the tabs by clicking on e.g. 'General' or 'Proofreading'.") . "</i></font>\n";
echo "<br><font color='" . $theme['color_headerbar_font'] . "'><i>" . _("(click the ? for help on that specific preference)") . "</i></font></td></tr>";
echo_tabs($tabs, $selected_tab);
echo "<input type='hidden' name='tab' value='{$selected_tab}'>";
// display one of the tabs
if ($selected_tab == 1) {
    echo_proofreading_tab();
} else {
    if ($selected_tab == 2 && user_is_PM()) {
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:userprefs.php

示例11: output_header

    output_header($preview . " " . $_POST['teamname'], SHOW_STATSBAR, $theme_extra_args);
    $teamimages = uploadImages(1, $tid, "both");
    $curTeam['teamname'] = stripAllString($_POST['teamname']);
    $curTeam['team_info'] = stripAllString($_POST['text_data']);
    $curTeam['webpage'] = stripAllString($_POST['teamwebpage']);
    $curTeam['avatar'] = $teamimages['avatar'];
    echo "<center><br>";
    showEdit(stripslashes($_POST['teamname']), stripslashes($_POST['text_data']), stripslashes($_POST['teamwebpage']), 0, $tid);
    echo "<br>";
    showTeamProfile($curTeam, TRUE);
    echo "</center><br>";
} elseif (isset($_POST['edMake'])) {
    $result = mysql_query("SELECT id FROM user_teams WHERE id != " . $tid . " AND teamname = '" . addslashes(stripAllString(trim($_POST['teamname']))) . "'");
    if (mysql_num_rows($result) > 0 || trim($_POST['teamname']) == '') {
        $preview = _("Preview");
        output_header($preview, SHOW_STATSBAR, $theme_extra_args);
        $teamimages = uploadImages(1, $tid, "both");
        $curTeam['avatar'] = $teamimages['avatar'];
        if (trim($_POST['teamname']) == "") {
            echo "<center><br>" . _("The team name must not be empty.") . "<br>";
        } else {
            echo "<center><br>" . _("The team name must be unique. Please make any changes and resubmit.") . "<br>";
        }
        showEdit(stripslashes($_POST['teamname']), stripslashes($_POST['text_data']), stripslashes($_POST['teamwebpage']), 0, $tid);
        echo "<br></center><br>";
    } else {
        if (!empty($_POST['tavatar'])) {
            mysql_query("UPDATE user_teams SET avatar='" . $_POST['tavatar'] . "' WHERE id = {$tid}");
        } elseif (!empty($_FILES['teamavatar'])) {
            uploadImages(0, $tid, "avatar");
        }
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:tedit.php

示例12: output_header

<?php

$relPath = '../../../pinc/';
include_once $relPath . 'base.inc';
include_once $relPath . 'theme.inc';
output_header(_('Quiz Wizard'));
if ($_SESSION['quiz_data']['lastpage'] == 'output_quiz' || $_SESSION['quiz_data']['lastpage'] == 'start') {
    unset($_SESSION['quiz_data']['messages']);
    unset($_SESSION['quiz_data']['tests']);
}
echo "<h2>" . _("New Quiz Page") . "</h2>";
echo "<p>" . _("Please fill in the following fields. Don't be disturbed if they appear somewhat small. There is no limit for the length of the text you can insert. (At least none that would be relevant.)") . "</p>\n";
echo "<hr>\n<form method='post' action='./messages.php'>\n<p>";
echo _("Title of quiz page (will be displayed in browser title bar):");
echo " <input type='text' name='browser_title' size='50'></p>\n";
echo "<hr>\n<p>";
echo _("Welcome message (will be displayed initially on right hand side):");
echo " <input type='text' name='welcome' size='50'><br>";
echo _("HTML allowed. A typical value would be: &lt;h2&gt;Quiz, page 1&lt;/h2&gt; Try to correct the text ...") . "</p>\n";
echo "<hr>\n<p>";
echo _("Initial text the user will have to correct:");
echo "<br>\n<textarea name='initial_text' rows='12' cols='80' wrap='off'>\n</textarea></p>\n";
echo "<hr>\n<p>";
echo _("Corrected text the user is expected to leave:");
echo "<br>\n<textarea name='solution1' rows='12' cols='80' wrap='off'>\n</textarea><br>\n";
echo _("Use this solution if the following is present:");
echo " <input type='text' name='criterion1' size='20'><br>\n";
echo _("(Fill in <b>only</b> if you have a second solution below. Use \\n if needed for a line break.)") . "</p>\n";
echo "<p>";
echo _("Alternative corrected text the user is expected to leave (optional):");
echo "<br>\n<textarea name='solution2' rows='12' cols='80' wrap='off'>\n</textarea><br>\n";
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:general.php

示例13: User

    try {
        $user_test = new User();
        $user_test->load("id", $ID);
        $existing_user = $user_test->username;
        if ($pguser == $existing_user) {
            metarefresh(0, "{$code_url}/activity_hub.php");
        }
    } catch (Exception $exception) {
        $existing_user = NULL;
    }
}
// A newly registered user has clicked the link in the welcoming e-mail and has thus
// proved that the e-mail is working. It is time to 'activate' the account, i.e.
// create a record in the users table, create a profile, stats data, etc.
// and send a welcome mail.
output_header(_('Activate account'));
if (!$user) {
    echo "<p>\n";
    echo sprintf(_("There is no account with the id '%s' waiting to be activated."), $ID);
    if ($existing_user) {
        echo "\n";
        echo _("It appears that the account has already been activated.");
        echo "\n";
        echo _("(Probably you just clicked the activation link more than once.)");
        echo "\n";
        echo _("There should be an introductory email message on its way to you.");
        echo "\n";
        if (!$pguser) {
            echo _("Please enter your username and password in the fields above to login to your account.");
            echo "\n";
        }
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:activate.php

示例14: _

} else {
    // No 'select_by_user' parameter, so show all pages.
    $username_for_page_selection = NULL;
}
// this only has any effect if the user is set too.
$round_for_page_selection = NULL;
if (isset($_GET['select_by_round'])) {
    $sbr = $_GET['select_by_round'];
    if (!empty($sbr) && $sbr != 'ALL') {
        $round_for_page_selection = $sbr;
    }
}
$state = $project->state;
$title = $project->nameofwork;
$page_details_str = _('Page Detail');
output_header("{$page_details_str}: {$title}", NO_STATSBAR);
echo "<h1>{$title}</h1>\n";
echo "<h2>{$page_details_str}</h2>\n";
$url = "{$code_url}/project.php?id={$projectid}&amp;expected_state={$state}";
$label = _("Return to Project Page");
echo "<p><a href='{$url}'>{$label}</a></p>\n";
if ($project->pages_table_exists) {
    include_once 'detail_legend.inc';
    echo "<p>" . _("It is <b>strongly</b> recommended that you view page differentials by right-clicking on a diff link and opening the link in a new window or tab.") . "</p>";
    echo "<p>";
    if (!is_null($username_for_page_selection)) {
        if (is_null($round_for_page_selection)) {
            echo sprintf(_("Showing only the pages of user '%s'."), $username_for_page_selection);
        } else {
            echo sprintf(_("Showing only the pages of user '%s' in round %s."), $username_for_page_selection, $round_for_page_selection);
        }
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:page_detail.php

示例15: addcslashes

    } else {
        $where_clause = "WHERE username LIKE '%" . addcslashes($uname, "%_") . "%'";
    }
    $mResult = mysql_query("\n        SELECT u_id, username, date_created, u_privacy\n        FROM users\n        {$where_clause}\n        ORDER BY {$order} {$direction}\n        LIMIT {$mstart},20\n    ");
    $mRows = mysql_num_rows($mResult);
    if ($mRows == 1) {
        metarefresh(0, "mdetail.php?id=" . mysql_result($mResult, 0, "u_id") . "", '', '');
        exit;
    }
    $uname = "uname=" . $uname . "&";
} else {
    $mResult = mysql_query("\n        SELECT u_id, username, date_created, u_privacy\n        FROM users\n        ORDER BY {$order} {$direction}\n        LIMIT {$mstart},20\n    ");
    $mRows = mysql_num_rows($mResult);
    $uname = "";
}
output_header(_("Member List"));
echo "<center><br>";
//Display of user teams
echo "<table border='1' cellspacing='0' cellpadding='4' style='border: 1px solid #111; border-collapse: collapse' width='95%'>";
echo "<tr bgcolor='" . $theme['color_headerbar_bg'] . "'><td colspan='6' align='center'><b><font color='" . $theme['color_headerbar_font'] . "'>" . sprintf(_("%s Members"), $site_name) . "</font></b></td></tr>";
echo "<tr bgcolor='" . $theme['color_navbar_bg'] . "'>";
if ($order == "u_id" && $direction == "asc") {
    $newdirection = "desc";
} else {
    $newdirection = "asc";
}
echo "<td width='5%' align='center'><b><a href='mbr_list.php?" . $uname . "mstart={$mstart}&order=u_id&direction={$newdirection}'>" . _("ID") . "</a></b></td>";
if ($order == "username" && $direction == "asc") {
    $newdirection = "desc";
} else {
    $newdirection = "asc";
开发者ID:cpeel,项目名称:dproofreaders-shadow,代码行数:31,代码来源:mbr_list.php


注:本文中的output_header函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。