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


PHP check_post函数代码示例

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


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

示例1: call

 static function call($name, $subname, Contact $user, $qreq, $selection)
 {
     $uf = null;
     if (isset(self::$byname[$name])) {
         $ufm = self::$byname[$name];
         if ((string) $subname !== "" && isset($ufm[$subname])) {
             $uf = $ufm[$subname];
         } else {
             if (isset($ufm[""])) {
                 $uf = $ufm[""];
             }
         }
     }
     if (is_array($selection)) {
         $selection = new SearchSelection($selection);
     }
     if (!$uf) {
         $error = "No such search action.";
     } else {
         if (!($uf[1] & SiteLoader::API_GET) && !check_post($qreq)) {
             $error = "Missing credentials.";
         } else {
             if ($uf[1] & SiteLoader::API_PAPER && $selection->is_empty()) {
                 $error = "No papers selected.";
             } else {
                 if (!$uf[0]->allow($user)) {
                     $error = "Permission error.";
                 } else {
                     $error = $uf[0]->run($user, $qreq, $selection);
                 }
             }
         }
     }
     if (is_string($error) && $qreq->ajax) {
         json_exit(["ok" => false, "error" => $error]);
     } else {
         if (is_string($error)) {
             Conf::msg_error($error);
         }
     }
     return $error;
 }
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:42,代码来源:searchaction.php

示例2: check_login

function check_login()
{
    $username = check_post("username");
    $password = check_post("password");
    $remember = check_post("remember");
    if (!$username || !$password) {
        return false;
    }
    include '../bbdd/bbdd.php';
    foreach ($users as $user) {
        if ($username == $user["username"] && $password == $user["password"]) {
            /*Pregunto si queremos cookies*/
            if ($remember) {
                setcookie("login", $username, strtotime("+15 days"), "/");
            }
            session_start();
            $_SESSION["username"] = $username;
            header("location:profile.php");
            exit;
        }
    }
    echo "No existe el usuario y/o contraseña";
    return false;
}
开发者ID:kikeneo,项目名称:bbdd,代码行数:24,代码来源:functions.php

示例3: check_login

function check_login()
{
    $username = check_post('username');
    $password = check_post('password');
    $remember = check_post('remember');
    if (!$username || !$password) {
        return false;
    }
    include '../bbdd/bbdd.php';
    foreach ($users as $user) {
        if ($username == $user['username'] && $password == $user['password']) {
            /* Pregunto si queremos cookies */
            if ($remember) {
                setcookie('login', $username, strtotime('+15 days'), '/');
            }
            session_start();
            $_SESSION['username'] = $username;
            header('Location:profile.php');
            exit;
        }
    }
    echo "No existe el usuario y/o contraseña";
    return false;
}
开发者ID:kikeneo,项目名称:bbdd,代码行数:24,代码来源:functions.php

示例4: loginHandle

 public static function loginHandle()
 {
     if (check_post('cc_login_uname', 'cc_login_passwd', 'cc_login_login')) {
         // for security, we don't want session fixation :(
         session_regenerate_id();
         $_SESSION['uname'] = $_POST['cc_login_uname'];
         $_SESSION['pword'] = hash('whirlpool', $_POST['cc_login_passwd']);
         $_SESSION['last_ip'] = $_SERVER['REMOTE_ADDR'];
         $_SESSION['last_user_agent'] = $_SERVER['HTTP_USER_AGENT'];
         if (self::checkSession()) {
             //var_dump(TH_PUB_ADMIN);exit();
             if ($_POST['cc_login_remember'] == "yes") {
                 $host = $_SERVER['HTTP_HOST'];
                 if (substr($host, 0, 4) == "www.") {
                     $host = substr($host, 3);
                 }
                 setcookie('ln', self::packCookie(), time() + 60 * 60 * 24 * 30 * 12);
             }
             cc_redirect(TH_PUB_ADMIN, true);
         } else {
             Filters::bind('post_output_login', 'Users::outputError');
         }
     }
 }
开发者ID:alecgorge,项目名称:TopHat,代码行数:24,代码来源:cc-users.php

示例5: redirectSelf

global $User, $Pset, $Info, $Commit;
$User = $Me;
if (isset($_REQUEST["u"]) && (!$Me->isPC || !($User = ContactView::prepare_user($_REQUEST["u"])))) {
    redirectSelf(array("u" => null));
}
assert($User == $Me || $Me->isPC);
assert($Me->privChair);
if (@$_POST["enable"] && check_post()) {
    UserActions::enable(array($User->contactId), $Me);
    redirectSelf();
}
if (@$_POST["disable"] && check_post()) {
    UserActions::disable(array($User->contactId), $Me);
    redirectSelf();
}
if (@$_POST["update"] && check_post()) {
    $ck = $cv = array();
    $roles = 0;
    if (@$_POST["pctype"] === "chair") {
        $roles |= Contact::ROLE_CHAIR | Contact::ROLE_PC;
    } else {
        if (@$_POST["pctype"] === "pc") {
            $roles |= Contact::ROLE_PC;
        }
    }
    if (@$_POST["sysadmin"]) {
        $roles |= Contact::ROLE_ADMIN;
    }
    $ck[] = "roles={$roles}";
    Dbl::qe_apply("update ContactInfo set " . join($ck, ",") . " where contactId=" . $User->contactId, $cv);
    redirectSelf();
开发者ID:benesch,项目名称:peteramati,代码行数:31,代码来源:profile.php

示例6: mysql_query

        //    echo $query;
        $lng_id_query = mysql_query($query, $GLOBALS["link"]) or die("" . $query . " <br> " . mysql_error($GLOBALS["link"]));
        $lng_id = mysql_fetch_assoc($lng_id_query);
        for ($i = 1; $i <= 4; $i++) {
            echo "<img src=\"assets/images/" . ($lng_id["cena" . $i] > 0 ? "checked" : "unchecked") . ".png\">";
        }
        echo "</td>";
        echo "<td><img src=\"assets/images/" . (file_exists("../docs/products/{$pol['id']}.3ds") ? "checked" : "unchecked") . ".png\"></td>";
        echo "<td><img src=\"assets/images/" . (file_exists("../docs/products/{$pol['id']}.max") ? "checked" : "unchecked") . ".png\"></td>";
        echo "</tr>";
    }
    echo "\r\n  </tbody>\r\n</table>\r\n";
}
if ($action == "edit") {
    if ($_POST[submit]) {
        $id = check_post($_POST[id]);
        $zobraz = check_sql($zobraz);
        if (is_numeric($id) and is_numeric($zobraz) and is_numeric($rodic)) {
            $query = "UPDATE " . PREFIX . "{$table} SET vyrobok=\"{$vyrobok}\", zobraz={$zobraz}, druh={$druh}, seria={$seria}, popis_serie={$popis_serie},\r\n                    farby=\"{$farby}\", rozmer=\"{$rozmer}\", hmotnost={$hmotnost}, parent={$rodic}, novinka={$novinka} \r\n                    WHERE id={$id}";
            //echo $query;
            $result_menu = mysql_query($query, $GLOBALS[link]) or die("SQL nebol uspesne napojeny<br>" . $query . " <br> " . mysql_error($GLOBALS[link]));
            // ---------- uprava cien vyrobku
            $query = "SELECT id FROM " . PREFIX . "vyrobky_ceny WHERE id_vyrobky={$id}";
            $lng_id_query = mysql_query($query, $GLOBALS["link"]) or die("" . $query . " <br> " . mysql_error($GLOBALS["link"]));
            $lng_id = mysql_num_rows($lng_id_query);
            if ($lng_id > 0) {
                $query = "UPDATE " . PREFIX . "vyrobky_ceny SET cena1={$cena1}, cena2={$cena2}, cena3={$cena3}, cena4={$cena4}\r\n                        WHERE id_vyrobky={$id}";
                echo $query;
                $result_menu = mysql_query($query, $GLOBALS[link]) or die("SQL nebol uspesne napojeny<br>" . $query . " <br> " . mysql_error($GLOBALS[link]));
            } else {
                $query = "INSERT INTO " . PREFIX . "vyrobky_ceny (id, id_vyrobky, cena1, cena2, cena3,  cena4) \r\n                        VALUES ( '', {$id}, '{$cena1}', '{$cena2}', '{$cena3}', '{$cena4}')";
开发者ID:jozefvasko,项目名称:benap-app,代码行数:31,代码来源:vyrobky.php

示例7: sqlq

        Dbl::qe_raw("delete from ReviewRequest where paperId={$prow->paperId} and email='" . sqlq($email) . "'");
        if (($reqId = Contact::id_by_email($email)) > 0) {
            Dbl::qe_raw("insert into PaperReviewRefused (paperId, contactId, requestedBy, reason) values ({$prow->paperId}, {$reqId}, {$Requester->contactId}, 'request denied by chair')");
        }
        // send anticonfirmation email
        HotCRPMailer::send_to($Requester, "@denyreviewrequest", $prow, array("reviewer_contact" => (object) array("fullName" => trim(defval($_REQUEST, "name", "")), "email" => $email)));
        $Conf->confirmMsg("Proposed reviewer denied.");
    } else {
        Conf::msg_error("No one has proposed that " . htmlspecialchars($email) . " review this paper.");
    }
    Dbl::qx_raw("unlock tables");
    unset($_REQUEST["email"], $_GET["email"], $_POST["email"]);
    unset($_REQUEST["name"], $_GET["name"], $_POST["name"]);
}
// add primary or secondary reviewer
if (isset($_REQUEST["addpc"]) && $Me->allow_administer($prow) && check_post()) {
    if (($pcid = cvtint(@$_REQUEST["pcid"])) <= 0) {
        Conf::msg_error("Enter a PC member.");
    } else {
        if (($pctype = cvtint(@$_REQUEST["pctype"])) == REVIEW_PRIMARY || $pctype == REVIEW_SECONDARY || $pctype == REVIEW_PC) {
            $Me->assign_review($prow->paperId, $pcid, $pctype);
            $Conf->update_rev_tokens_setting(false);
        }
    }
    loadRows();
}
// paper table
$paperTable = new PaperTable($prow, make_qreq(), "assign");
$paperTable->initialize(false, false);
confHeader();
// begin form and table
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:31,代码来源:assign.php

示例8: save_config_overrides

    if (get($_POST, "anonymous") === "yes") {
        $o->anonymous = true;
    } else {
        $o->anonymous = $old_pset->anonymous ? false : null;
    }
    save_config_overrides($psetkey, $o, $json);
}
if ($Me->privChair && check_post() && get($_GET, "reconfig")) {
    reconfig();
}
// check global system settings
if ($Me->privChair) {
    require_once "adminhome.php";
}
// Enable users
if ($Me->privChair && check_post() && isset($_GET["enable_user"])) {
    if ($_GET["enable_user"] == "college") {
        $users = edb_first_columns(Dbl::qe_raw("select contactId from ContactInfo where (roles&" . Contact::ROLE_PCLIKE . ")=0 and not extension"));
    } else {
        if ($_GET["enable_user"] == "extension") {
            $users = edb_first_columns(Dbl::qe_raw("select contactId from ContactInfo where (roles&" . Contact::ROLE_PCLIKE . ")=0 and extension"));
        } else {
            if ($_GET["enable_user"] == "pc") {
                $users = edb_first_columns(Dbl::qe_raw("select contactId from ContactInfo where (roles&" . Contact::ROLE_PC . ")!=0"));
            } else {
                $users = edb_first_columns(Dbl::qe("select contactId from ContactInfo where email like ?", $_GET["enable_user"]));
            }
        }
    }
    if (!count($users)) {
        $Conf->warnMsg("No users match.");
开发者ID:kohler,项目名称:peteramati,代码行数:31,代码来源:home.php

示例9: hotcrp_random_password

            $kiosk_keys[$kj->show_papers ? 1 : 0] = $k;
        }
    }
    for ($i = 0; $i <= 1; ++$i) {
        if (!$kiosk_keys[$i]) {
            $key = hotcrp_random_password();
            $kiosks[$key] = (object) array("update_at" => $Now, "show_papers" => !!$i);
            $kiosk_keys[$i] = $kchange = $key;
        }
    }
    // save kiosks
    if ($kchange) {
        $Conf->save_setting("__tracker_kiosk", 1, $kiosks);
    }
}
if ($Me->privChair && isset($_POST["signout_to_kiosk"]) && check_post()) {
    LoginHelper::logout(false);
    $Me->change_capability("tracker_kiosk", $kiosk_keys[@$_POST["buzzer_showpapers"] ? 1 : 0]);
    redirectSelf();
}
function kiosk_lookup($key)
{
    global $Conf, $Now;
    $kiosks = (array) ($Conf->setting_json("__tracker_kiosk") ?: array());
    if (@$kiosks[$key] && $kiosks[$key]->update_at >= $Now - 604800) {
        return $kiosks[$key];
    }
    return null;
}
$kiosk = null;
if (!$Me->has_email() && !$Me->capability("tracker_kiosk") && ($key = Navigation::path_component(0)) && ($kiosk = kiosk_lookup($key))) {
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:31,代码来源:buzzer.php

示例10: call_api

 public static function call_api($fn, $user, $qreq, $prow)
 {
     // XXX precondition: $user->can_view_paper($prow) || !$prow
     if (isset(SiteLoader::$api_map[$fn])) {
         $uf = SiteLoader::$api_map[$fn];
         if (!($uf[1] & SiteLoader::API_GET) && !check_post($qreq)) {
             json_exit(["ok" => false, "error" => "Missing credentials."]);
         }
         if ($uf[1] & SiteLoader::API_PAPER && !$prow) {
             json_exit(["ok" => false, "error" => "No such paper."]);
         }
         call_user_func($uf[0], $user, $qreq, $prow);
         return true;
     }
     return false;
 }
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:16,代码来源:init.php

示例11: check_post

 $groestl_power = check_post($_POST["groestl_power"], $groestl_power);
 $qubit_power = check_post($_POST["qubit_power"], $qubit_power);
 $sha_hardware = check_post($_POST["sha_hardware"], $sha_hardware);
 $scrypt_hardware = check_post($_POST["scrypt_hardware"], $scrypt_hardware);
 $skein_hardware = check_post($_POST["skein_hardware"], $skein_hardware);
 $groestl_hardware = check_post($_POST["groestl_hardware"], $groestl_hardware);
 $qubit_hardware = check_post($_POST["qubit_hardware"], $qubit_hardware);
 $sha_poolfee = check_post($_POST["sha_poolfee"], $sha_poolfee);
 $scrypt_poolfee = check_post($_POST["scrypt_poolfee"], $scrypt_poolfee);
 $skein_poolfee = check_post($_POST["skein_poolfee"], $skein_poolfee);
 $groestl_poolfee = check_post($_POST["groestl_poolfee"], $groestl_poolfee);
 $qubit_poolfee = check_post($_POST["qubit_poolfee"], $qubit_poolfee);
 $power_cost = check_post($_POST["power_cost"], $power_cost);
 $myr_price = check_post($_POST["myr_price"], $myr_price);
 $btc_price = check_post($_POST["btc_price"], $btc_price);
 $coins_per_block = check_post($_POST["coins_per_block"], $coins_per_block);
 $results = calculate();
 if (search_ip_address($user_array, $ip) >= 0) {
     update_user($ip, $sha_hashrate, $scrypt_hashrate, $skein_hashrate, $groestl_hashrate, $qubit_hashrate, $sha_power, $scrypt_power, $skein_power, $groestl_power, $qubit_power, $sha_hardware, $scrypt_hardware, $skein_hardware, $groestl_hardware, $qubit_hardware, $sha_poolfee, $scrypt_poolfee, $skein_poolfee, $groestl_poolfee, $qubit_poolfee, $power_cost);
 } else {
     add_user($ip, $sha_hashrate, $scrypt_hashrate, $skein_hashrate, $groestl_hashrate, $qubit_hashrate, $sha_power, $scrypt_power, $skein_power, $groestl_power, $qubit_power, $sha_hardware, $scrypt_hardware, $skein_hardware, $groestl_hardware, $qubit_hardware, $sha_poolfee, $scrypt_poolfee, $skein_poolfee, $groestl_poolfee, $qubit_poolfee, $power_cost);
 }
 if ($_POST["clear"]) {
     $diff = get_avg_diffs($avg);
     $average_string = "(24 hr average)";
     $sha_diff = number_format($diff[0], 2, '.', '');
     $scrypt_diff = number_format($diff[1], 2, '.', '');
     $skein_diff = number_format($diff[2], 2, '.', '');
     $groestl_diff = number_format($diff[3], 2, '.', '');
     $qubit_diff = number_format($diff[4], 2, '.', '');
     $sha_hashrate = "";
开发者ID:newmight2015,项目名称:myr-profit-calc,代码行数:31,代码来源:index.php

示例12: hoturl_post

        }
    }
    // Double-encoding bugs found?
    if ($Conf->setting("bug_doubleencoding")) {
        $m[] = "Double-encoded URLs have been detected. Incorrect uses of Apache’s <code>mod_rewrite</code>, and other middleware, can encode URL parameters twice. This can cause problems, for instance when users log in via links in email. (“<code>a@b.com</code>” should be encoded as “<code>a%40b.com</code>”; a double encoding will produce “<code>a%2540b.com</code>”.) HotCRP has tried to compensate, but you really should fix the problem. For <code>mod_rewrite</code> add <a href='http://httpd.apache.org/docs/current/mod/mod_rewrite.html'>the <code>[NE]</code> option</a> to the relevant RewriteRule. <a href=\"" . hoturl_post("index", "clearbug=doubleencoding") . "\">(Clear&nbsp;this&nbsp;message)</a>";
    }
    // Unnotified reviews?
    if ($Conf->setting("pcrev_assigntime", 0) > $Conf->setting("pcrev_informtime", 0)) {
        $assigntime = $Conf->setting("pcrev_assigntime");
        $result = $Conf->qe("select paperId from PaperReview where reviewType>" . REVIEW_PC . " and timeRequested>timeRequestNotified and reviewSubmitted is null and reviewNeedsSubmit!=0 limit 1");
        if (edb_nrows($result)) {
            $m[] = "PC review assignments have changed. You may want to <a href=\"" . hoturl("mail", "template=newpcrev") . "\">send mail about the new assignments</a>. <a href=\"" . hoturl_post("index", "clearnewpcrev={$assigntime}") . "\">(Clear&nbsp;this&nbsp;message)</a>";
        } else {
            $Conf->save_setting("pcrev_informtime", $assigntime);
        }
    }
    if (count($m)) {
        $Conf->warnMsg("<div>" . join('</div><div style="margin-top:0.5em">', $m) . "</div>");
    }
}
assert($Me->privChair);
if (isset($_REQUEST["clearbug"]) && check_post()) {
    $Conf->save_setting("bug_" . $_REQUEST["clearbug"], null);
}
if (isset($_REQUEST["clearnewpcrev"]) && ctype_digit($_REQUEST["clearnewpcrev"]) && check_post() && $Conf->setting("pcrev_informtime", 0) <= $_REQUEST["clearnewpcrev"]) {
    $Conf->save_setting("pcrev_informtime", $_REQUEST["clearnewpcrev"]);
}
if (isset($_REQUEST["clearbug"]) || isset($_REQUEST["clearnewpcrev"])) {
    redirectSelf(array("clearbug" => null, "clearnewpcrev" => null));
}
admin_home_messages();
开发者ID:benesch,项目名称:peteramati,代码行数:31,代码来源:adminhome.php

示例13: htmlspecialchars

        }
    }
    // update trueuser
    if (strcasecmp($_SESSION["trueuser"]->email, $new_user->email)) {
        $_SESSION["trueuser"] = (object) ["email" => $new_user->email];
    }
    if ($MergeError == "") {
        $Conf->confirmMsg("Merged account " . htmlspecialchars($old_user->email) . ".");
        $new_user->log_activity("Merged account {$old_user->email}");
        go(hoturl("index"));
    } else {
        $new_user->log_activity("Merged account {$old_user->email} with errors");
        $MergeError .= $Conf->db_error_html(true);
    }
}
if (isset($_REQUEST["merge"]) && check_post()) {
    if (!$_REQUEST["email"]) {
        $MergeError = "Enter an email address to merge.";
    } else {
        if (!$_REQUEST["password"]) {
            $MergeError = "Enter the password of the account to merge.";
        } else {
            $MiniMe = Contact::find_by_email($_REQUEST["email"]);
            if (!$MiniMe) {
                $MergeError = "No account for " . htmlspecialchars($_REQUEST["email"]) . " exists.  Did you enter the correct email address?";
            } else {
                if (!$MiniMe->check_password($_REQUEST["password"])) {
                    $MergeError = "That password is incorrect.";
                } else {
                    if ($MiniMe->contactId == $Me->contactId) {
                        $Conf->confirmMsg("Accounts successfully merged.");
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:31,代码来源:mergeaccounts.php

示例14: redirectSelf

                        $nfail = $Conf->session("rev_token_fail", 0) + 1;
                        $Conf->save_session("rev_token_fail", $nfail);
                    }
                }
            }
        }
    }
    if ($cleared && !count($tokeninfo)) {
        $tokeninfo[] = "Review tokens cleared.";
    }
    if (count($tokeninfo)) {
        $Conf->infoMsg(join("<br />\n", $tokeninfo));
    }
    redirectSelf();
}
if (isset($_REQUEST["token"]) && check_post() && !$Me->is_empty()) {
    change_review_tokens();
}
if (isset($_REQUEST["cleartokens"])) {
    $Me->change_review_token(false, false);
}
if ($Me->privChair) {
    require_once "adminhome.php";
}
$title = $Me->is_empty() || isset($_REQUEST["signin"]) ? "Sign in" : "Home";
$Conf->header($title, "home", actionBar());
$xsep = " <span class='barsep'>·</span> ";
if ($Me->privChair) {
    echo "<div id='clock_drift_container'></div>";
}
// Sidebar
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:31,代码来源:home.php

示例15: list

                $Conf->warnMsg("That assignment file makes no changes.");
            } else {
                $atype = $assignset->type_description();
                echo '<h3>Proposed ', $atype ? $atype . " " : "", 'assignment</h3>';
                $Conf->infoMsg("Select “Apply changes” if this looks OK. (You can always alter the assignment afterwards.)");
                list($atypes, $apids) = $assignset->types_and_papers(true);
                echo Ht::form_div(hoturl_post("bulkassign", ["saveassignment" => 1, "assigntypes" => join(" ", $atypes), "assignpids" => join(" ", $apids)]));
                $assignset->echo_unparse_display();
                echo '<div class="g"></div>', '<div class="aahc"><div class="aa">', Ht::submit("Apply changes"), ' &nbsp;', Ht::submit("cancel", "Cancel"), Ht::hidden("default_action", $defaults["action"]), Ht::hidden("rev_roundtag", $defaults["round"]), Ht::hidden("file", $text), Ht::hidden("assignment_size_estimate", $csv_lineno), Ht::hidden("filename", $filename), Ht::hidden("requestreview_notify", req("requestreview_notify")), Ht::hidden("requestreview_subject", req("requestreview_subject")), Ht::hidden("requestreview_body", req("requestreview_body")), Ht::hidden("bulkentry", req("bulkentry")), '</div></div></div></form>', "\n";
                $Conf->footer();
                exit;
            }
        }
    }
}
if (isset($_REQUEST["saveassignment"]) && check_post() && isset($_POST["file"]) && get($_POST, "assignment_size_estimate") >= 1000) {
    complete_assignment("keep_browser_alive");
    finish_browser_alive();
}
echo Ht::form_div(hoturl_post("bulkassign", "upload=1"), array("divstyle" => "margin-top:1em"));
// Upload
echo '<div class="f-contain"><div class="f-i"><div class="f-e">', Ht::textarea("bulkentry", req_s("bulkentry"), ["rows" => 1, "cols" => 80, "placeholder" => "Enter assignments"]), '</div></div></div>';
echo '<div class="g"><strong>OR</strong> &nbsp;', '<input type="file" name="bulk" accept="text/plain,text/csv" size="30" /></div>';
echo '<div id="foldoptions" class="lg foldc fold2o">', 'By default, assign&nbsp; ', Ht::select("default_action", array("primary" => "primary reviews", "secondary" => "secondary reviews", "pcreview" => "optional PC reviews", "review" => "external reviews", "conflict" => "PC conflicts", "lead" => "discussion leads", "shepherd" => "shepherds", "tag" => "add tags", "settag" => "replace tags", "preference" => "reviewer preferences"), defval($_REQUEST, "default_action", "primary"), array("id" => "tsel", "onchange" => "fold(\"options\",this.value!=\"review\");fold(\"options\",!/^(?:primary|secondary|(?:pc)?review)\$/.test(this.value),2)"));
$rev_rounds = $Conf->round_selector_options();
if (count($rev_rounds) > 1) {
    echo '<span class="fx2">&nbsp; in round &nbsp;', Ht::select("rev_roundtag", $rev_rounds, $_REQUEST["rev_roundtag"] ?: "unnamed"), '</span>';
} else {
    if (!get($rev_rounds, "unnamed")) {
        echo '<span class="fx2">&nbsp; in round ', $Conf->current_round_name(), '</span>';
    }
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:31,代码来源:bulkassign.php


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