include_once $relPath . 'SettingsClass.inc';
require_login();
undo_all_magic_quotes();
// Load user settings
$userSettings =& Settings::get_Settings($pguser);
$title = _("Activity Hub");
output_header($title);
echo "<h1><center>" . get_translated_graphic_or_text("page_header", "HUB", $title) . "</center></h1>";
echo "<p>\n";
echo sprintf(_('Welcome to the %1$s Activity Hub. From this page you can view the phases of %1$s production.'), $site_abbreviation);
echo "\n";
echo _("Follow the links to the specific areas of the site.");
echo "</p>\n";
$pagesproofed = get_pages_proofed_maybe_simulated();
alert_re_unread_messages($pagesproofed);
welcome_see_beginner_forum($pagesproofed, "HUB");
thoughts_re_mentor_feedback($pagesproofed);
// Site News
if ($pagesproofed >= 20) {
    if ($pagesproofed < 40) {
        echo "<div class='callout'>";
        echo "<div class='calloutheader'>";
        echo _("You can now see Site News.");
        echo "</div>";
        echo "<p>";
        echo _("Now that you have proofread 20 pages you can see the Site News. This is updated regularly with announcements from the administrators.");
        echo "</p>";
        echo "<p><small>";
        echo _("After a period of time, this message will no longer appear.");
        echo "</small></p>";
        echo "</div>";
示例#2
0
include_once $relPath . 'page_tally.inc';
require_login();
$round_id = get_enumerated_param($_GET, 'round_id', null, array_keys($Round_for_round_id_));
$round = get_Round_for_round_id($round_id);
output_header("{$round->id}: {$round->name}");
$uao = $round->user_access($pguser);
$round->page_top($uao);
// show user how to access this round
if (!$uao->can_access) {
    echo "<hr width='75%'>\n";
    show_user_access_object($uao);
}
// ---------------------------------------
$pagesproofed = get_pages_proofed_maybe_simulated();
alert_re_unread_messages($pagesproofed);
welcome_see_beginner_forum($pagesproofed, $round->id);
show_news_for_page($round_id);
if ($pagesproofed <= 100 && $ELR_round->id == $round_id) {
    echo "<hr width='75%'>\n";
    if ($pagesproofed > 80) {
        echo "<i><font size=-1>";
        printf(_("After you proofread a few more pages, the following introductory Simple Proofreading Rules will be removed from this page. However, they are permanently available <a href='%s'>here</a> if you wish to refer to them later. (You can bookmark that link if you like.)"), "{$code_url}/faq/simple_proof_rules.php");
        echo "</font></i><br><br>";
    }
    include $relPath . 'simple_proof_text.inc';
}
// What guideline document are we needing?
$round_doc_url = "{$code_url}/faq/{$round->document}";
if ($pagesproofed >= 10) {
    echo "<hr width='75%'>\n";
    if ($pagesproofed < 40) {