• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getNormalParam函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenEventId, $chosenCompetitionId, $chosenShow, $chosenAnything;
    $chosenEventId = getNormalParam('eventId');
    $chosenCompetitionId = getNormalParam('competitionId');
    $chosenShow = getBooleanParam('show');
    $chosenAnything = $chosenEventId || $chosenCompetitionId;
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:9,代码来源:check_regional_record_markers.php


示例2: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenEventId, $chosenRegionId, $chosenPatternHtml, $chosenPatternMysql;
    $chosenEventId = getNormalParam('eventId');
    $chosenRegionId = getNormalParam('regionId');
    $chosenPatternHtml = getHtmlParam('pattern');
    $chosenPatternMysql = getMysqlParam('pattern');
}
开发者ID:yuxuibbs,项目名称:worldcubeassociation.org,代码行数:9,代码来源:persons.php


示例3: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenCompetitionId, $chosenShow, $competitionCondition, $competitionDescription;
    $chosenCompetitionId = getNormalParam('competitionId');
    $chosenShow = getBooleanParam('show');
    $competitionCondition = competitionCondition();
    $competitionDescription = $chosenCompetitionId ? $chosenCompetitionId : "all competitions";
}
开发者ID:yuxuibbs,项目名称:worldcubeassociation.org,代码行数:9,代码来源:check_rounds.php


示例4: analyzeChoices

function analyzeChoices () {
#----------------------------------------------------------------------
  global $chosenUpload, $chosenConfirm, $chosenNamesFile, $chosenFilename;

  $chosenUpload      = getBooleanParam( 'upload' );
  $chosenConfirm     = getBooleanParam( 'confirm' );
  $chosenNamesFile   = getNormalParam( 'namesFile' );
  $chosenFilename    = getNormalParam( 'filename' );

}
开发者ID:neodude,项目名称:worldcubeassociation.org,代码行数:10,代码来源:add_local_names.php


示例5: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenRegionId;
    global $chosenSingle, $chosenAverage;
    $chosenRegionId = getNormalParam('regionId');
    $chosenSingle = getBooleanParam('single');
    $chosenAverage = getBooleanParam('average');
    if (!$chosenAverage) {
        $chosenSingle = true;
    }
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:12,代码来源:index.php


示例6: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenEventId, $chosenCompetitionId, $chosenWhat, $chosenShow, $chosenWhich, $competitionCondition;
    $chosenEventId = getNormalParam('eventId');
    $chosenCompetitionId = getNormalParam('competitionId');
    $chosenWhat = getNormalParam('what');
    $chosenShow = getBooleanParam('show');
    $chosenWhich = "";
    $chosenWhich .= $chosenEventId ? $chosenEventId : "all events";
    $chosenWhich .= " in " . ($chosenCompetitionId ? $chosenCompetitionId : "all competitions");
    $competitionCondition = eventCondition() . competitionCondition();
}
开发者ID:Baiqiang,项目名称:worldcubeassociation.org,代码行数:13,代码来源:check_results.php


示例7: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenYears, $chosenRegionId, $chosenOrder;
    $chosenYears = getNormalParam('years');
    $chosenRegionId = getNormalParam('regionId');
    $chosenOrder = getNormalParam('order');
    if (getNormalParam('filter') == '') {
        $chosenYears = "only " . wcaDate('Y');
    }
    if (!preg_match('/^(date|submission)$/', $chosenOrder)) {
        $chosenOrder = 'submission';
    }
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:14,代码来源:media.php


示例8: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenEventId, $chosenRegionId, $chosenYears, $chosenShow;
    global $chosenSingle, $chosenAverage;
    $chosenEventId = getNormalParamDefault('eventId', '333');
    $chosenRegionId = getNormalParam('regionId');
    $chosenYears = getNormalParam('years');
    $chosenShow = getNormalParamDefault('show', '100 Persons');
    $chosenSingle = getBooleanParam('single');
    $chosenAverage = getBooleanParam('average');
    if (!$chosenAverage) {
        $chosenSingle = true;
    }
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:15,代码来源:events.php


示例9: analyzeChoices

function analyzeChoices () {
#----------------------------------------------------------------------
  global $chosenId, $chosenConfirm, $chosenName, $chosenNameHtml, $chosenCountryId, $chosenGender, $chosenDay, $chosenMonth, $chosenYear, $chosenUpdate, $chosenFix;

  $chosenConfirm     = getBooleanParam( 'confirm'   );
  $chosenUpdate      = getBooleanParam( 'update'    );
  $chosenFix         = getBooleanParam( 'fix'       );
  $chosenId          = getNormalParam ( 'id'        );
  $chosenName        = getMysqlParam  ( 'name'      );
  $chosenNameHtml    = getHtmlParam   ( 'name'      );
  $chosenCountryId   = getMysqlParam  ( 'countryId' );
  $chosenGender      = getNormalParam ( 'gender'    );
  $chosenDay         = getNormalParam ( 'day'       );
  $chosenMonth       = getNormalParam ( 'month'     );
  $chosenYear        = getNormalParam ( 'year'      );

}
开发者ID:neodude,项目名称:worldcubeassociation.org,代码行数:17,代码来源:change_person.php


示例10: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenRegionId, $chosenEventId, $chosenYears;
    global $chosenMixed, $chosenSlim, $chosenSeparate, $chosenHistory, $chosenMixHist;
    $chosenRegionId = getNormalParam('regionId');
    $chosenEventId = getNormalParam('eventId');
    $chosenYears = getNormalParam('years');
    $chosenMixed = getBooleanParam('mixed');
    $chosenSlim = getBooleanParam('slim');
    $chosenSeparate = getBooleanParam('separate');
    $chosenHistory = getBooleanParam('history');
    $chosenMixHist = getBooleanParam('mixHist');
    if (!$chosenSlim && !$chosenSeparate && !$chosenHistory && !$chosenMixHist) {
        $chosenMixed = true;
    }
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:17,代码来源:regions.php


示例11: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenEventId, $chosenRegionId, $chosenYears, $chosenPatternHtml, $chosenPatternMysql, $chosenList, $chosenMap;
    $chosenEventId = getNormalParam('eventId');
    $chosenRegionId = getNormalParam('regionId');
    $chosenPatternHtml = getHtmlParam('pattern');
    $chosenPatternMysql = getMysqlParam('pattern');
    $chosenYears = getNormalParam('years');
    $chosenList = getBooleanParam('list');
    $chosenMap = getBooleanParam('map');
    if (!$chosenList && !$chosenMap) {
        $chosenYears = "current";
    }
    if (!$chosenMap) {
        $chosenList = true;
    }
}
开发者ID:Baiqiang,项目名称:worldcubeassociation.org,代码行数:18,代码来源:competitions.php


示例12: analyzeChoices

function analyzeChoices () {
#----------------------------------------------------------------------
  global $chosenCompetitionId;
  global $chosenByPerson, $chosenAllResults, $chosenTop3, $chosenWinners;
  global $chosenForm, $chosenList;

  $chosenCompetitionId = getNormalParam( 'competitionId' );

  $chosenByPerson      = getBooleanParam( 'byPerson' );
  $chosenAllResults    = getBooleanParam( 'allResults' );
  $chosenTop3          = getBooleanParam( 'top3' );
  $chosenWinners       = getBooleanParam( 'winners' );
  if( !$chosenAllResults  &&  !$chosenTop3 && !$chosenByPerson )
    $chosenWinners = true;
    
  $chosenForm          = getBooleanParam( 'form' );
  $chosenList          = getBooleanParam( 'list' );
  if( !$chosenForm ) $chosenList = true;
}
开发者ID:neodude,项目名称:worldcubeassociation.org,代码行数:19,代码来源:competition.php


示例13: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenType, $chosenStatus, $chosenRegionId, $chosenOrder;
    $chosenType = getNormalParam('type');
    $chosenStatus = getNormalParam('status');
    $chosenRegionId = getNormalParam('regionId');
    $chosenOrder = getNormalParam('order');
    if (!preg_match('/^(article|report|multimedia)$/', $chosenType)) {
        $chosenType = '';
    }
    if (!preg_match('/^(date|submission)$/', $chosenOrder)) {
        $chosenOrder = 'submission';
    }
    if (!preg_match('/^(pending|accepted)$/', $chosenStatus)) {
        // Do we need a "refused" status ?
        $chosenStatus = 'pending';
    }
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:19,代码来源:validate_media.php


示例14: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenId, $chosenConfirm, $chosenName, $chosenNameHtml, $chosenCountryId, $chosenGender, $chosenDay, $chosenMonth, $chosenYear, $chosenUpdate, $chosenFix;
    $chosenConfirm = getBooleanParam('confirm');
    $chosenUpdate = getBooleanParam('update');
    $chosenFix = getBooleanParam('fix');
    $chosenId = getNormalParam('id');
    // Gah, this is awful. We can't call getNormalParam because it refuses to
    // return anything if the parameter has a quote in it. We don't want to call
    // getMysqlParam, as we're using pdo_query throughout this file, and we don't
    // want double escaping to occur.
    $chosenName = getRawParamThisShouldBeAnException('name');
    $chosenNameHtml = getHtmlParam('name');
    $chosenCountryId = getNormalParam('countryId');
    $chosenGender = getNormalParam('gender');
    $chosenDay = getNormalParam('day');
    $chosenMonth = getNormalParam('month');
    $chosenYear = getNormalParam('year');
}
开发者ID:yuxuibbs,项目名称:worldcubeassociation.org,代码行数:20,代码来源:change_person.php


示例15: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenCompetitionId, $chosenType, $chosenText, $chosenUri;
    global $chosenSubmitterName, $chosenSubmitterEmail, $chosenSubmitterComment;
    global $chosenTextHtml, $chosenUriHtml, $chosenSubmitterNameHtml, $chosenSubmitterEmailHtml, $chosenSubmitterCommentHtml;
    global $chosenRecaptchaChallenge, $chosenRecaptchaResponse;
    $chosenCompetitionId = getNormalParam('competitionId');
    $chosenType = getNormalParam('type');
    $chosenText = getMysqlParam('text');
    $chosenUri = getMysqlParam('uri');
    $chosenSubmitterName = getMysqlParam('submitterName');
    $chosenSubmitterEmail = getMysqlParam('submitterEmail');
    $chosenSubmitterComment = getMysqlParam('submitterComment');
    $chosenTextHtml = getHtmlParam('text');
    $chosenUriHtml = getHtmlParam('uri');
    $chosenSubmitterNameHtml = getHtmlParam('submitterName');
    $chosenSubmitterEmailHtml = getHtmlParam('submitterEmail');
    $chosenSubmitterCommentHtml = getHtmlParam('submitterComment');
    $chosenRecaptchaChallenge = getRawParamThisShouldBeAnException('recaptcha_challenge_field');
    $chosenRecaptchaResponse = getRawParamThisShouldBeAnException('recaptcha_response_field');
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:22,代码来源:media_insertion.php


示例16: saveMedium

function saveMedium()
{
    #----------------------------------------------------------------------
    global $mediumId;
    $type = getNormalParam('type');
    $competitionId = getNormalParam('competitionId');
    $text = getMysqlParam('text');
    $link = getMysqlParam('link');
    $submitterName = getMysqlParam('submitterName');
    $submitterEmail = getMysqlParam('submitterEmail');
    $submitterComment = getMysqlParam('submitterComment');
    $command = "\n  UPDATE CompetitionsMedia\n    SET type='{$type}',\n        competitionId='{$competitionId}',\n        text='{$text}',\n        uri='{$link}',\n        submitterName='{$submitterName}',\n        submitterEmail='{$submitterEmail}',\n        submitterComment='{$submitterComment}'\n    WHERE id={$mediumId}";
    dbCommand($command);
    echo "I just did this : \n";
    echo $command;
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:16,代码来源:validate_media_ACTION.php


示例17: analyzeChoices

function analyzeChoices()
{
    #----------------------------------------------------------------------
    global $chosenPersonId;
    $chosenPersonId = strtoupper(getNormalParam('personId'));
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:6,代码来源:person.php


示例18: getNormalParam

<?php

$currentSection = "persons";
$mapsAPI = true;
require_once 'includes/_framework.php';
$chosenPersonId = getNormalParam('i');
$chosenCompetitions = dbQuery("\n  SELECT \n    competition.*\n  FROM\n    Results result,\n    Competitions competition\n  WHERE 1\n    AND result.personId='{$chosenPersonId}'\n    AND competition.id = result.competitionId\n  GROUP BY\n    competition.id\n  ORDER BY\n    latitude, longitude, year, month, day");
require 'includes/_header.php';
// simple validation first...
if (!preg_match('/\\d{4}\\w{4}\\d{2}/', $chosenPersonId)) {
    showErrorMessage('Invalid WCA id Format <strong>[</strong>' . o($chosenPersonId) . '<strong>]</strong>');
    print '<p><a href="persons.php">Click here to search for people.</a></p>';
    require 'includes/_footer.php';
    die;
}
#--- Get all incarnations of the person.
$persons = dbQuery("\n  SELECT person.name personName, country.name countryName, day, month, year, gender\n  FROM Persons person, Countries country\n  WHERE person.id = '{$chosenPersonId}' AND country.id = person.countryId\n  ORDER BY person.subId\n");
#--- If there are none, show an error and do no more.
if (!count($persons)) {
    showErrorMessage('Unknown person id <strong>[</strong>' . o($chosenPersonId) . '<strong>]</strong>');
    $namepart = substr($chosenPersonId, 4, 4);
    print '<p><a href="persons.php?pattern=' . urlEncode($namepart) . '">Click to search for people with `' . o($namepart) . '` in their name.</a></p>';
    require 'includes/_footer.php';
    die;
}
#--- Get and show the current incarnation.
$currentPerson = array_shift($persons);
echo "<h1>" . o($currentPerson['personName']) . " - Map of Competitions</h1>";
echo "<h2><a href='p.php?i=" . urlEncode($chosenPersonId) . "'>Back to Competitor Page</a></h2>";
// create map markers
$markers = array();
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:31,代码来源:person_map.php


示例19: getNormalParam

<?php

$currentSection = 'admin';
include "../../includes/_framework.php";
$compId = getNormalParam('c');
$eventId = getNormalParam('e');
$roundId = getNormalParam('r');
$table = getNormalParam('t');
if ($table == "Scrambles") {
    $deleted = $wcadb_conn->boundCommand("DELETE FROM Scrambles WHERE competitionId=? AND eventId=? AND roundId=?", array('sss', &$compId, &$eventId, &$roundId));
}
if ($table == "Results") {
    $deleted = $wcadb_conn->boundCommand("DELETE FROM Results WHERE competitionId=? AND eventId=? AND roundId=?", array('sss', &$compId, &$eventId, &$roundId));
}
if ($table == "All") {
    $deleted = $wcadb_conn->boundCommand("DELETE FROM Results WHERE competitionId=?", array('s', &$compId));
    $deleted = $wcadb_conn->boundCommand("DELETE FROM Scrambles WHERE competitionId=?", array('s', &$compId));
}
print '<span style="color:#A00;"><strong>Removed.</strong></span>';
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:19,代码来源:remove_data.php


示例20: getNormalParam

<?php

include "../../includes/_framework.php";
$compId = getNormalParam('c');
$deleted = $wcadb_conn->boundCommand("DELETE FROM InboxResults WHERE competitionId=?", array('s', &$compId));
$deleted = $wcadb_conn->boundCommand("DELETE FROM InboxPersons WHERE competitionId=?", array('s', &$compId));
// delete scrambles using the other interface
// $deleted = $wcadb_conn->boundCommand(
//    "DELETE FROM Scrambles WHERE competitionId=?",
//     array('s', &$compId)
//   );
print "Removal attempted.";
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:12,代码来源:remove_imported_data.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getNotEncodedUrl函数代码示例发布时间:2022-05-15
下一篇:
PHP getNonAdminAccessControlQuery函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap