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


PHP IsBlocked函数代码示例

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


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

示例1: Footer

 public function Footer()
 {
     parent::Footer();
     $this->SetXY(IanseoPdf::sideMargin, $this->h - $this->savedBottomMargin);
     $this->MultiCell(70, 5, $this->copy2, 0, "L", 0);
     //$this->Line(195, $this->tMargin, 195, $this->tMargin+50);
     //$this->Line(195, $this->tMargin+60, 195, $this->tMargin+110);
     $this->StartTransform();
     $this->setXY(195, $this->tMargin + 50);
     $this->Rotate(90);
     $this->Cell(45, 5, get_text('OrgResponsible', 'Tournament'), 'T', 0, 'C');
     $this->setXY(195, $this->tMargin + 100);
     $this->Rotate(90);
     $this->Cell(45, 5, get_text('Judge', 'Tournament'), 'T', 0, 'C');
     $this->setXY(185, $this->tMargin + 175);
     $this->Rotate(90);
     $this->SetFont('barcode', '', 40);
     $this->Cell(65, 15, IsBlocked(BIT_BLOCK_REPORT) ? '*' . str_replace(".", "", $this->validationCode) . '*' : '', 0, 0, 'C');
     $this->setXY(185, $this->tMargin + 235);
     $this->Rotate(90);
     $this->SetFont($this->FontFix, 'B', 20);
     $this->Cell(50, 15, IsBlocked(BIT_BLOCK_REPORT) ? $this->validationCode : get_text('TourNoBlock', 'Tournament'), 0, 0, 'C');
     $this->StopTransform();
     if (!IsBlocked(BIT_BLOCK_REPORT)) {
         $this->WaterMark(get_text('TourNoBlock', 'Tournament'));
     }
 }
开发者ID:brian-nelson,项目名称:ianseo,代码行数:27,代码来源:Report.inc.php

示例2: define

<?php

define('debug', false);
// settare a true per l'output di debug
require_once dirname(dirname(__FILE__)) . '/config.php';
if (!CheckTourSession()) {
    print get_text('CrackError');
    exit;
}
$Errore = 2;
if (!IsBlocked(BIT_BLOCK_TOURDATA) and $q = safe_r_sql("select * from TargetFaces where TfTournament={$_SESSION['TourId']}") and safe_num_rows($q) > 1) {
    // targets can be deleted only if there are targets left!
    $delete = "DELETE FROM TargetFaces " . "WHERE TfTournament={$_SESSION['TourId']} AND TfId=" . intval($_REQUEST['tfid']);
    $rs = safe_w_sql($delete);
    $Errore = safe_w_affected_rows() ? 0 : 2;
}
if (!debug) {
    header('Content-Type: text/xml');
}
print '<response>' . "\n";
print '<error>' . $Errore . '</error>' . "\n";
print '<row>' . $_REQUEST['row'] . '</row>' . "\n";
print '</response>' . "\n";
开发者ID:brian-nelson,项目名称:ianseo,代码行数:23,代码来源:DeleteTargets.php

示例3: define

<?php

define('debug', false);
// settare a true per l'output di debug
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
if (!CheckTourSession() || !isset($_REQUEST['EvCode'])) {
    printCrackError();
}
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Qualification/Fun_Qualification.local.inc.php';
require_once 'Common/Fun_Sessions.inc.php';
require_once 'Common/Fun_Various.inc.php';
if (isset($_REQUEST['DelRow']) && !IsBlocked(BIT_BLOCK_TOURDATA)) {
    list($EcClass, $EcDivision) = explode('~', $_REQUEST['DelRow']);
    //print $EcClass . ' - ' . $EcDivision . '<br>';exit;
    $Delete = "DELETE FROM EventClass " . "WHERE EcCode=" . StrSafe_DB($_REQUEST['EvCode']) . " AND EcClass=" . StrSafe_DB($EcClass) . " AND EcDivision=" . StrSafe_DB($EcDivision) . " " . "AND EcTeamEvent!='0' AND EcTournament=" . StrSafe_DB($_SESSION['TourId']) . " ";
    //print $Delete;exit;
    $Rs = safe_w_sql($Delete);
    // calcolo il numero massimo di persone nel team
    calcMaxTeamPerson(array($_REQUEST['EvCode']));
    // cancello le righe di Team per l'evento passato
    $queries[] = "DELETE FROM Teams WHERE TeTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND TeFinEvent=1 AND TeEvent=" . StrSafe_DB($_REQUEST['EvCode']) . " ";
    // cancello i nomi
    $queries[] = "DELETE FROM TeamComponent WHERE TcTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND TcFinEvent=1 AND TcEvent=" . StrSafe_DB($_REQUEST['EvCode']) . " ";
    // cancello i nomi fin
    $queries[] = "DELETE FROM TeamFinComponent WHERE TfcTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND TfcEvent=" . StrSafe_DB($_REQUEST['EvCode']) . " ";
    // elimino le griglie
    $queries[] = "DELETE FROM TeamFinals " . "WHERE TfEvent=" . StrSafe_DB($_REQUEST['EvCode']) . " AND TfTournament=" . StrSafe_DB($_SESSION['TourId']) . " ";
    $Rs = safe_w_sql($Delete);
    // reset shootoff
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:SetEventRules.php

示例4: define

<?php

define('debug', false);
// settare a true per l'output di debug
require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Tournament/Fun_Tournament.local.inc.php';
if (!CheckTourSession() || !isset($_REQUEST['ClId']) || !isset($_REQUEST['Age']) || !isset($_REQUEST['FromTo']) || $_REQUEST['FromTo'] != 'From' && $_REQUEST['FromTo'] != 'To') {
    print get_text('CrackError');
    exit;
}
$Errore = 0;
if (!IsBlocked(BIT_BLOCK_TOURDATA) && !defined('dontEditClassDiv')) {
    $Age = $_REQUEST['Age'];
    $ClId = $_REQUEST['ClId'];
    if (!is_numeric($Age)) {
        $Errore = 1;
    } else {
        $ClDivAllowed = empty($_REQUEST['AlDivs']) ? '' : $_REQUEST['AlDivs'];
        if (!CheckClassAge($ClId, $Age, $_REQUEST['FromTo'], $ClDivAllowed)) {
            $Errore = 1;
        }
    }
    if (!$Errore) {
        $Update = "UPDATE Classes SET " . "ClAge" . $_REQUEST['FromTo'] . "=" . StrSafe_DB($Age) . " " . ", ClDivisionsAllowed=" . StrSafe_DB($ClDivAllowed) . " " . "WHERE ClId=" . StrSafe_DB($ClId) . " AND ClTournament=" . StrSafe_DB($_SESSION['TourId']) . "";
        $Rs = safe_w_sql($Update);
        $err = safe_w_error();
        if ($err->errno != 0) {
            $Errore = 1;
        }
    }
} else {
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:UpdateClassAge.php

示例5: define

<?php

define('debug', false);
require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Tournament/Fun_Tournament.local.inc.php';
if (!CheckTourSession() || !isset($_REQUEST['New_ClId']) || !isset($_REQUEST['New_ClSex']) || !isset($_REQUEST['New_ClDescription']) || !isset($_REQUEST['New_ClAthlete']) || !isset($_REQUEST['New_ClViewOrder']) || !isset($_REQUEST['New_ClAgeFrom']) || !isset($_REQUEST['New_ClAgeTo']) || !isset($_REQUEST['New_ClValidClass']) || !isset($_REQUEST['New_ClValidDivision'])) {
    print get_text('CrackError');
    exit;
}
$Errore = intval(IsBlocked(BIT_BLOCK_TOURDATA) && !defined('dontEditClassDiv'));
$MsgErrore = '';
if (!$Errore) {
    if (!is_numeric($_REQUEST['New_ClAgeFrom']) || !is_numeric($_REQUEST['New_ClAgeTo']) || $_REQUEST['New_ClAgeFrom'] <= 0 || $_REQUEST['New_ClAgeTo'] <= 0 || $_REQUEST['New_ClAgeFrom'] > $_REQUEST['New_ClAgeTo']) {
        $Errore = 1;
    }
}
if (!$Errore) {
    // Aggiungo la nuova riga
    $Insert = "INSERT IGNORE INTO Classes (ClId,ClTournament,ClDescription,ClAthlete,ClViewOrder,ClAgeFrom,ClAgeTo,ClValidClass,ClDivisionsAllowed,ClSex) " . "VALUES(" . StrSafe_DB($_REQUEST['New_ClId']) . "," . StrSafe_DB($_SESSION['TourId']) . "," . StrSafe_DB($_REQUEST['New_ClDescription']) . "," . StrSafe_DB(intval($_REQUEST['New_ClAthlete'])) . "," . StrSafe_DB($_REQUEST['New_ClViewOrder']) . ", " . StrSafe_DB($_REQUEST['New_ClAgeFrom']) . ", " . StrSafe_DB($_REQUEST['New_ClAgeTo']) . ", " . StrSafe_DB(CreateValidClass($_REQUEST['New_ClId'], $_REQUEST['New_ClValidClass'])) . ", " . StrSafe_DB($_REQUEST['New_ClValidDivision']) . ", " . StrSafe_DB($_REQUEST['New_ClSex']) . " " . ") ";
    $RsIns = safe_w_sql($Insert);
    //duplicate entries is OK
    if (!safe_w_affected_rows()) {
        $Errore = 2;
        $MsgErrore = get_text('DuplicateEntry', 'Tournament');
    }
}
header('Content-Type: text/xml');
print '<response>' . "\n";
print '<error>' . $Errore . '</error>' . "\n";
print '<errormsg><![CDATA[' . $MsgErrore . ']]></errormsg>' . "\n";
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:AddCl.php

示例6: PrintCrackError

require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Fun_Phases.inc.php';
require_once 'HHT/Fun_HHT.local.inc.php';
if (!CheckTourSession() || !isset($_REQUEST['d_Phase'])) {
    PrintCrackError();
}
$Cols2Remove = isset($_REQUEST['d_Tie']) && $_REQUEST['d_Tie'] == 1 ? 0 : 2;
$Error = false;
$Tie_Error = array();
// Contiene gl'indici delle tendine Tie con errore
$Score_Error = array();
// contiene gl'indici degli score che superano il max
$Set_Error = array();
// contiene gl'indici dei set che superano il max
if (isset($_REQUEST['Command']) && $_REQUEST['Command'] == 'SAVE' && !IsBlocked(BIT_BLOCK_IND)) {
    // Update dei punti e dei tie
    $AllowedEvents = array();
    foreach ($_REQUEST as $Key => $Value) {
        if (strpos($Key, 'S_') === 0) {
            if (!(is_numeric($Value) && $Value >= 0)) {
                $Value = 0;
            }
            $ee = "";
            $mm = "";
            // evento e matchno estratti dal nome campo
            list($ee, $mm) = explode('_', substr($Key, 2));
            // get the match maximum values
            $MaxScores = GetMaxScores($ee, $mm);
            if (empty($AllowedEvents[$ee])) {
                // dal matchno recupero la fase
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:InsertPoint2.php

示例7: define

<?php

/*
													- UpdateFieldEventList.php -
	Aggiorna il campo di Events passato in querystring.
*/
define('debug', false);
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once 'Common/Fun_FormatText.inc.php';
if (!CheckTourSession() || !isset($_REQUEST['New_EvCode']) || !isset($_REQUEST['New_EvEventName']) || !isset($_REQUEST['New_EvProgr']) || !isset($_REQUEST['New_EvMatchMode']) || !isset($_REQUEST['New_EvFinalFirstPhase']) || !isset($_REQUEST['New_EvFinalTargetType']) || !isset($_REQUEST['New_EvTargetSize']) || !isset($_REQUEST['New_EvDistance'])) {
    print get_text('CrackError');
    exit;
}
$Errore = 0;
$xml = '';
if (!IsBlocked(BIT_BLOCK_TOURDATA)) {
    // Aggiungo la nuova riga
    $Insert = "INSERT INTO Events (EvCode,EvTeamEvent,EvTournament,EvEventName,EvProgr,EvShootOff,EvFinalFirstPhase,EvFinalTargetType,EvTargetSize,EvDistance,EvMatchMode) " . "VALUES(" . StrSafe_DB($_REQUEST['New_EvCode']) . "," . StrSafe_DB('1') . "," . StrSafe_DB($_SESSION['TourId']) . "," . StrSafe_DB($_REQUEST['New_EvEventName']) . "," . StrSafe_DB($_REQUEST['New_EvProgr']) . "," . StrSafe_DB('0') . "," . StrSafe_DB($_REQUEST['New_EvFinalFirstPhase']) . "," . StrSafe_DB($_REQUEST['New_EvFinalTargetType']) . ", " . StrSafe_DB($_REQUEST['New_EvTargetSize']) . ", " . StrSafe_DB($_REQUEST['New_EvDistance']) . ", " . StrSafe_DB($_REQUEST['New_EvMatchMode']) . " " . ") ";
    $RsIns = safe_w_sql($Insert);
    set_qual_session_flags();
    if (debug) {
        print $Insert . '<br>';
    }
    if (!$RsIns) {
        $Errore = 1;
    } else {
        /*
         *  imposto i parametri delle frecce.
         *  Sicuramente ho un evento team cumulativo e non mixed perchè il flag del mixed si
         *  gestisce dopo la creazione dell'evento
         */
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:AddEvent.php

示例8: IN

 * Se $_REQUEST['MatchNo'] è pari la coppia è data da lui e dal successivo
 * altrimenti dal precedente e lui.
 */
$MatchSx = -1;
$MatchDx = -1;
if ($_REQUEST['MatchNo'] % 2 == 0) {
    $MatchSx = $_REQUEST['MatchNo'];
    $MatchDx = $_REQUEST['MatchNo'] + 1;
} else {
    $MatchSx = $_REQUEST['MatchNo'] - 1;
    $MatchDx = $_REQUEST['MatchNo'];
}
if (debug) {
    print 'MatchNo ' . $MatchSx . ' - ' . $MatchDx . '<br>';
}
if (!IsBlocked(BIT_BLOCK_TEAM)) {
    // Scrittura nel db
    if (isset($_REQUEST['Command']) && $_REQUEST['Command'] == 'OK' || isset($_REQUEST["TargetSx_x"]) && isset($_REQUEST["TargetSx_y"]) || isset($_REQUEST["TargetDx_x"]) && isset($_REQUEST["TargetDx_y"])) {
        // Estraggo le arrowstring coinvolte
        $Select = "SELECT TfMatchNo AS MatchNo,TfEvent AS Event,TfArrowString AS ArrowString,TfTieBreak AS TieBreak,TfArrowPosition AS ArrPos,TfTiePosition AS TiePos " . "FROM TeamFinals " . "WHERE TfMatchNo IN(" . StrSafe_DB($MatchSx) . "," . StrSafe_DB($MatchDx) . ") AND TfEvent=" . StrSafe_DB($_REQUEST['Event']) . " " . "AND TfTournament=" . StrSafe_DB($_SESSION['TourId']) . " " . "ORDER BY TfMatchNo ASC ";
        $Rs = safe_r_sql($Select);
        if (debug) {
            print $Select . '<br>';
        }
        //exit;
        $MyRow = safe_fetch($Rs);
        $ArrSx = str_pad($MyRow->ArrowString, 24);
        $TieSx = str_pad($MyRow->TieBreak, $nSO);
        $PosArrSx = explode('|', str_pad($MyRow->ArrPos, 24 - substr_count($MyRow->ArrPos, "|"), "|"));
        $PosTieSx = explode('|', str_pad($MyRow->TiePos, 9 - substr_count($MyRow->TiePos, "|"), "|"));
        $MyRow = safe_fetch($Rs);
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:SpotMatch.php

示例9: imagesy

 }
 if ($x < 0) {
     $x = (imagesx($im) - $w - 2) / 2;
 }
 if ($y < 0) {
     $y = imagesy($im) - $h - 2;
 }
 if ($x + $w > imagesx($im)) {
     $x = imagesx($im) - $w - 2;
 }
 if ($y + $h > imagesy($im)) {
     $y = imagesy($im) - $h - 2;
 }
 $lineColor = imagecolorallocate($im, 255, 255, 0);
 imagesetthickness($im, 3);
 if (!empty($_REQUEST['get']) && $_REQUEST['get'] == 1 && !IsBlocked(BIT_BLOCK_ACCREDITATION)) {
     setcookie("getPhotoX", $x, time() + 24 * 60);
     setcookie("getPhotoY", $y, time() + 24 * 60);
     setcookie("getPhotoW", $w, time() + 24 * 60);
     $dest = imagecreatetruecolor(MAX_WIDTH, MAX_HEIGHT);
     if (!imagecopyresampled($dest, $im, 0, 0, $x, $y, MAX_WIDTH, MAX_HEIGHT, $w, $h)) {
         $errMsg = get_text('PhotoDimError', 'Tournament', array(MAX_WIDTH, MAX_HEIGHT));
     } else {
         if (!empty($athId)) {
             imagejpeg($dest, '/tmp/salvala', 90);
             $image = addslashes(base64_encode(file_get_contents('/tmp/salvala')));
             $query = "INSERT INTO Photos (PhEnId,PhPhoto,PhPhotoEntered) " . "VALUES(" . Strsafe_DB($athId) . ", " . "'" . $image . "', " . "NOW()" . ") " . "ON DUPLICATE KEY UPDATE " . "PhPhoto='" . $image . "', PhPhotoEntered=NOW() ";
             //print $query . '<br>';
             $rs = safe_w_sql($query);
             $lineColor = imagecolorallocate($im, 0, 0, 255);
             imagesetthickness($im, 10);
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:grabImage.php

示例10: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once 'Common/Fun_Number.inc.php';
require_once 'Common/Fun_FormatText.inc.php';
CheckTourSession(true);
$ev = isset($_REQUEST['ev']) ? $_REQUEST['ev'] : null;
if (is_null($ev)) {
    header('Location: ChangeComponents1.php');
    exit;
}
$command = isset($_REQUEST['command']) ? $_REQUEST['command'] : null;
if (!is_null($command)) {
    if ($command == 'Set' && !IsBlocked(BIT_BLOCK_TEAM)) {
        $team = isset($_REQUEST['team']) ? $_REQUEST['team'] : null;
        $subTeam = isset($_REQUEST['subTeam']) ? $_REQUEST['subTeam'] : null;
        $oldId = isset($_REQUEST['oldId']) ? $_REQUEST['oldId'] : null;
        $newId = isset($_REQUEST['newId']) ? $_REQUEST['newId'] : null;
        //print $team . ' ' . $subTeam . ' ' . $oldId . ' ' . $newId;exit;
        if (!is_null($team) && !is_null($subTeam) && !is_null($oldId) && !is_null($newId)) {
            /*$query
            				= "UPDATE "
            					. "TeamFinComponent "
            				. "SET "
            					. "TfcId=" . StrSafe_DB($newId) . " "
            				. "WHERE "
            					. "TfcCoId=" . StrSafe_DB($team) . " AND TfcSubTeam=" . StrSafe_DB($subTeam) . " AND "
            					. "TfcTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND TfcEvent=" . StrSafe_DB($ev) . " AND "
            					. "TfcId=" . StrSafe_DB($oldId) . " ";
            		//	print $query;exit;
            			$rs=safe_w_sql($query);*/
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:ChangeComponents2.php

示例11: define

<?php

define('debug', false);
// settare a true per l'output di debug
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
CheckTourSession(true);
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/Fun_Phases.inc.php';
if (isset($_REQUEST['Command'])) {
    if (!IsBlocked(BIT_BLOCK_TOURDATA) && $_REQUEST['Command'] == 'SAVE') {
        $BitMask = 0;
        foreach ($_REQUEST as $Key => $Value) {
            if (substr($Key, 0, 19) == 'd_EvFinalAthTarget_') {
                list(, , $e) = explode('_', $Key);
                $BitMask += $Value * pow(2, $e);
                //print $e . ' - ' . $Value . ' - ' . ($Value*pow(2,$e)) . '<br>';
                /*
                 * Questa parte potrebbe essere risolta tramite una sola query.
                 * Occorre usare gli operatori bit a bit di mysql per trovare
                 * le fasi con il Bit=1
                 */
                if ($Value == 1) {
                    $Phase = floor(pow(2, $e) / 2);
                    //print '--> '. $e . ' - ' . $Phase . '<br>';
                    $Update = "UPDATE " . "FinSchedule AS fs1 LEFT JOIN FinSchedule AS fs2 ON fs1.FSMatchNo=(fs2.FSMatchNo-1) AND fs1.FSEvent=fs2.FSEvent AND fs1.FSTeamEvent=fs2.FSTeamEvent AND fs1.FSTournament=fs2.FSTournament " . "SET fs2.FSTarget = fs1.FSTarget " . "WHERE fs1.FSEvent=" . StrSafe_DB($_REQUEST['d_Event2Set']) . " AND fs1.FSTeamEvent='0' AND " . "fs1.FSTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND (fs1.FSMatchNo% 2)=0 " . "AND fs1.FSMatchNO IN(SELECT GrMatchNo FROM Grids WHERE GrPhase=" . StrSafe_DB($Phase) . ") ";
                    $Rs = safe_w_sql($Update);
                    //print $Update . '<br>';
                }
            }
        }
        //exit;
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:SetAthForTarget.php

示例12: header

require_once 'Tournament/Fun_Tournament.local.inc.php';
require_once 'Tournament/Fun_ManSessions.inc.php';
if (defined('hideSchedulerAndAdvancedSession')) {
    header('location: ManSessions_kiss.php');
    exit;
}
if (!CheckTourSession()) {
    print get_text('CrackError');
    exit;
}
$msg = "";
$tourId_safe = StrSafe_DB($_SESSION['TourId']);
$command = isset($_REQUEST['Command']) ? $_REQUEST['Command'] : null;
// tipi sessione
$sessionsTypes = GetSessionsTypes();
if (!is_null($command) && !IsBlocked(BIT_BLOCK_TOURDATA)) {
    if ($command == 'SAVE') {
        $myRequest = array('oldKey', 'd_SesOrder', 'd_SesType', 'd_SesName', 'd_SesTar4Session', 'd_SesAth4Target', 'd_SesFirstTarget', 'd_SesFollow');
        $toSave = array();
        foreach ($myRequest as $v) {
            if (isset($_REQUEST[$v])) {
                $toSave[$v] = $_REQUEST[$v];
            } else {
                $toSave[$v] = null;
            }
        }
        /*print '<pre>';
        		print_r($toSave);
        		print '</pre>';exit;*/
        // le var ci devono esser tutte
        if (!in_array(null, $toSave, true)) {
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:ManSessions.php

示例13: define

<?php

define('debug', false);
require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Fun_Final.local.inc.php';
require_once 'Fun_ChangePhase.inc.php';
CheckTourSession(true);
$event = isset($_REQUEST['event']) ? $_REQUEST['event'] : null;
$team = isset($_REQUEST['team']) ? $_REQUEST['team'] : null;
$match = isset($_REQUEST['match']) ? $_REQUEST['match'] : null;
$Errore = 0;
$msg = get_text('CmdOk');
$ok = false;
$isBlocked = $team == 0 ? IsBlocked(BIT_BLOCK_IND) : IsBlocked(BIT_BLOCK_TEAM);
if (is_null($event) || is_null($team) || is_null($match) || $isBlocked) {
    $Errore = 1;
} else {
    if ($team == 0) {
        $ok = move2NextPhase(null, $event, $match);
    } else {
        $ok = move2NextPhaseTeam(null, $event, $match);
    }
    if ($ok === false) {
        $Errore = 1;
    }
}
if ($Errore == 1) {
    $msg = get_text('Error');
}
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:Move2NextPhase.php

示例14: define

<?php

define('debug', false);
// settare a true per l'output di debug
require_once dirname(dirname(__FILE__)) . '/config.php';
if (!CheckTourSession()) {
    print get_text('CrackError');
    exit;
}
$Errore = 1;
$xml = '';
$cl = empty($_REQUEST['cl']) ? '' : $_REQUEST['cl'];
$TfName = empty($_REQUEST['TfName']) ? '' : $_REQUEST['TfName'];
$RegExp = empty($_REQUEST['RegExp']) ? '' : $_REQUEST['RegExp'];
if (!IsBlocked(BIT_BLOCK_TOURDATA) and ($cl or $RegExp) and $TfName) {
    $ok = true;
    $targets = array();
    foreach ($_REQUEST['tdface'] as $dist => $face) {
        if (!$face or empty($_REQUEST['tddiam'][$dist]) and !in_array($face, array(6, 8, 11))) {
            $ok = false;
        }
        $targets[$face] = '';
    }
    // check if the rule hits one or more div/cl
    $select = "SELECT " . "CONCAT(trim(DivId),trim(ClId)) as Ev " . "FROM " . "Divisions INNER JOIN Classes ON DivTournament=ClTournament " . "WHERE " . "CONCAT(trim(DivId),trim(ClId)) " . ($RegExp ? "RLIKE " . StrSafe_DB($RegExp) : "LIKE " . StrSafe_DB($cl)) . " AND DivTournament=" . StrSafe_DB($_SESSION['TourId']) . " ";
    $rs = safe_r_sql($select);
    if (safe_num_rows($rs) and $ok) {
        $TfId = 1;
        $q = safe_r_sql("select max(TfId) MaxId from TargetFaces where TfTournament={$_SESSION['TourId']}");
        if ($r = safe_fetch($q)) {
            $TfId = $r->MaxId + 1;
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:SaveTargets.php

示例15: isBlocked

 private function isBlocked()
 {
     $ret = false;
     switch ($this->getPhase()) {
         case ARF::QUALIFICATION:
             $ret = IsBlocked(BIT_BLOCK_QUAL);
             break;
         case ARF::ELIMINATION:
             $ret = IsBlocked(BIT_BLOCK_ELIM);
             break;
         case ARF::INDIVIDUAL_FINAL:
             $ret = IsBlocked(BIT_BLOCK_IND);
             break;
         case ARF::TEAM_FINAL:
             $ret = IsBlocked(BIT_BLOCK_TEAM);
             break;
     }
     return $ret;
 }
开发者ID:brian-nelson,项目名称:ianseo,代码行数:19,代码来源:ARFInput.class.php


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