if (isset($zmSize) && $userP['h_zoom'] != $zmSize) {
            $userP['h_zoom'] = $zmSize;
            $isChg = 1;
        }
    }
    $userP['prefschanged'] = $isChg;
    dpsession_set_preferences_temp($userP);
}
// If the user simply wants to leave the proofing interface,
// then it doesn't matter what state the project or page is in.
// So handle that case before we do any continuity/permission checks.
if ($tbutton == B_QUIT) {
    leave_proofing_interface(_("Stop Proofreading"));
    exit;
}
$ppage = get_requested_PPage($_POST);
// $_SESSION key name for storing WordCheck corrections
$page = $ppage->lpage->imagefile;
$wcTempCorrections = "WC_temp_corrections-{$projectid}-{$page}";
// BUTTON CODE
switch ($tbutton) {
    case B_TEMPSAVE:
        $ppage->saveAsInProgress($text_data, $pguser);
        echo_proof_frame($ppage);
        break;
    case B_SWITCH_LAYOUT:
        $ppage->saveAsInProgress($text_data, $pguser);
        switch_layout();
        echo_proof_frame($ppage);
        break;
    case B_REVERT_TO_ORIGINAL:
<?php

$relPath = "./../../pinc/";
include_once $relPath . 'base.inc';
include_once $relPath . 'http_headers.inc';
include_once 'PPage.inc';
include_once 'text_frame_std.inc';
require_login();
// This script is invoked only for the standard interface now.
// cpeel - disabled assert 2016-04-04. foofAid is loading this
// page even if the user's editing interface is set to enhanced
// resulting in PHP errors.
//assert($userP['i_type'] == 0);
$ppage = get_requested_PPage($_GET);
echo_text_frame_std($ppage);
// vim: sw=4 ts=4 expandtab