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


PHP CheckTourSession函数代码示例

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


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

示例1: define

<?php

/*
													- DeleteRow.php -
	Elimina un partecipante e ritorna il suo id
*/
define('debug', false);
require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Qualification/Fun_Qualification.local.inc.php';
require_once 'Partecipants/Fun_Partecipants.local.inc.php';
if (!isset($_REQUEST['id']) || !CheckTourSession()) {
    print get_text('CrackError');
    exit;
}
if (!IsBlocked(BIT_BLOCK_PARTICIPANT)) {
    $indFEvent = $teamFEvent = $country = $div = $cl = $zero = null;
    $recalc = Params4Recalc($_REQUEST['id']);
    if ($recalc !== false) {
        $recalc = true;
        list($indFEvent, $teamFEvent, $country, $div, $cl, $zero) = $recalc;
    }
    $Delete = "DELETE FROM Entries WHERE EnId=" . StrSafe_DB($_REQUEST['id']) . " ";
    $Rs = safe_w_sql($Delete);
    $Delete = "DELETE FROM Qualifications WHERE QuId=" . StrSafe_DB($_REQUEST['id']) . " ";
    $Rs = safe_w_sql($Delete);
    // ricalcolo
    if ($recalc) {
        RecalculateShootoffAndTeams($indFEvent, $teamFEvent, $country, $div, $cl, $zero);
        // rank di classe x tutte le distanze
        $q = "SELECT ToNumDist FROM Tournament WHERE ToId={$_SESSION['TourId']}";
        $r = safe_r_sql($q);
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:DeleteRow.php

示例2: 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

示例3: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
CheckTourSession(true);
print_r($_COOKIE);
$JS_SCRIPT = array('<script type="text/javascript" src="Fun_AJAX_GetImage.js"></script>', '<script type="text/javascript" src="../Fun_JS.js"></script>');
$txtHeader = "";
$athId = empty($_REQUEST['AthId']) || $_REQUEST['AthId'] == 0 ? null : $_REQUEST['AthId'];
$sql = "SELECT EnCode, EnFirstName, EnName FROM Entries WHERE EnId=" . StrSafe_DB($athId) . " AND EnTournament=" . StrSafe_DB($_SESSION['TourId']);
$Rs = safe_r_sql($sql);
if (safe_num_rows($Rs) == 1) {
    $MyRow = safe_fetch($Rs);
    $txtHeader = $MyRow->EnCode . " - " . $MyRow->EnFirstName . " " . $MyRow->EnName;
}
$x = 168;
$y = 78;
$w = 300;
$camurl = empty($_REQUEST['CamUrl']) ? "" : urldecode($_REQUEST['CamUrl']);
if (!$camurl) {
    $camurl = $_COOKIE['CamUrl'];
}
$boundary = "\n--";
$f = @fopen($camurl, "r");
if ($camurl and $f) {
    $r = "";
    $im = null;
    if (preg_match('/\\.jpg$/i', $camurl) != 0) {
        while (!feof($f)) {
            $r .= fread($f, 4096);
        }
        $im = imagecreatefromstring($r);
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:getImage.php

示例4: dirname

<?php

require_once dirname(dirname(__FILE__)) . '/config.php';
if (!CheckTourSession() || !isset($_REQUEST['Id'])) {
    print get_text('CrackError');
    exit;
}
$Errore = 0;
if (!(IsBlocked(BIT_BLOCK_QUAL) && IsBlocked(BIT_BLOCK_IND) && IsBlocked(BIT_BLOCK_TEAM))) {
    $delete = "DELETE FROM HhtEvents " . "WHERE HeHhtId=" . StrSafe_DB($_REQUEST['Id']) . " AND HeTournament=" . StrSafe_DB($_SESSION['TourId']) . " ";
    $rs = safe_w_sql($delete);
    $delete = "DELETE FROM HhtSetup " . "WHERE HsId=" . StrSafe_DB($_REQUEST['Id']) . " AND HsTournament=" . StrSafe_DB($_SESSION['TourId']) . " ";
    $rs = safe_w_sql($delete);
    if (!$rs) {
        $Errore = 1;
    }
} else {
    $Errore = 1;
}
header('Content-Type: text/xml');
print '<response>' . "\n";
print '<error>' . $Errore . '</error>' . "\n";
print '<id>' . $_REQUEST['Id'] . '</id>' . "\n";
print '</response>' . "\n";
开发者ID:brian-nelson,项目名称:ianseo,代码行数:24,代码来源:DeleteHHT.php

示例5: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once 'Common/Fun_Sessions.inc.php';
/****** Controller ******/
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
$session = isset($_REQUEST['session']) ? $_REQUEST['session'] : null;
$row = isset($_REQUEST['row']) ? $_REQUEST['row'] : null;
$col = isset($_REQUEST['col']) ? $_REQUEST['col'] : null;
if (!CheckTourSession() || is_null($session) || is_null($id) || is_null($row) || is_null($col)) {
    print get_text('CrackError');
    exit;
}
$tourId = StrSafe_DB($_SESSION['TourId']);
$error = 0;
$tooMany = 0;
$num4session = 999;
$msg = get_text('CmdOk');
$resetTarget = 0;
if (!IsBlocked(BIT_BLOCK_PARTICIPANT)) {
    // Calcolo il numero di bersagli disponibili per la sessione scelta
    if ($session > 0) {
        $ses = GetSessions('Q', false, array($session . '_Q'));
        $num4session = $ses[0]->SesTar4Session * $ses[0]->SesAth4Target;
    }
    // Mi serve la sessione attuale del tizio
    $query = "SELECT " . "QuSession " . "FROM " . "Qualifications " . "WHERE QuId=" . StrSafe_DB($id) . " ";
    $rs = safe_r_sql($query);
    $old = 0;
    if ($rs) {
        if (safe_num_rows($rs) == 1) {
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:xmlUpdateSession.php

示例6: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
/****** Controller ******/
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
$row = isset($_REQUEST['row']) ? $_REQUEST['row'] : null;
if (!CheckTourSession() && !is_null($id) && !is_null($row)) {
    print get_text('CrackError');
    exit;
}
$error = 0;
$has_photo = 0;
$query = "SELECT " . "PhEnId " . "FROM " . "Photos " . "WHERE " . "PhEnId=" . StrSafe_DB($id) . " AND PhPhoto<>'' ";
$rs = safe_r_sql($query);
//print $query;exit;
if ($rs) {
    if (safe_num_rows($rs) == 1) {
        $has_photo = 1;
    }
} else {
    $error = 1;
}
$xmlDoc = new DOMDocument('1.0', PageEncode);
$xmlRoot = $xmlDoc->createElement('response');
$xmlDoc->appendChild($xmlRoot);
// Header
$xmlHeader = $xmlDoc->createElement('header');
$xmlRoot->appendChild($xmlHeader);
$node = $xmlDoc->createElement('error', $error);
$xmlHeader->appendChild($node);
$node = $xmlDoc->createElement('row', $row);
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:xmlCheckPhoto.php

示例7: define

<?php

/*
													- UpdateCtrlCode.php -
	Controlla il codice fiscale dei tizio in Partecipants.php
	Decide anche come gestire le tendine delle classi
*/
define('debug', false);
require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/Lib/Fun_DateTime.inc.php';
require_once 'Partecipants/Fun_Partecipants.local.inc.php';
if (!CheckTourSession() || !isset($_REQUEST['d_e_EnCtrlCode']) || !isset($_REQUEST['d_e_EnSex'])) {
    print get_text('CrackError');
    exit;
}
$Errore = 0;
$AgeClass = '';
$Classes = '';
$ctrlCode = ConvertDateLoc($_REQUEST['d_e_EnCtrlCode']);
if ($ctrlCode !== false) {
    $dob = '0000-00-00';
    $AgeClass = '';
    $Classes = '';
    if (!empty($ctrlCode)) {
        list($__yy, $mm, $dd) = explode('-', $ctrlCode);
        // Ultime 2 cifre dell'anno
        $__yy = substr($__yy, -2);
        // Prime 2 cifre dell'anno
        $yy__ = '19';
        /*
        	Pivot per discriminare 19xx e 20xx
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:CheckCtrlCode_Par.php

示例8: dirname

<?php

require_once dirname(dirname(__FILE__)) . '/config.php';
if (!CheckTourSession() || !isset($_REQUEST['rowid']) || !isset($_REQUEST['cl']) || !isset($_REQUEST['ath']) || !isset($_REQUEST['col']) || !isset($_REQUEST['titlereverse']) || !isset($_REQUEST['area0']) || !isset($_REQUEST['area1']) || !isset($_REQUEST['area2']) || !isset($_REQUEST['area3']) || !isset($_REQUEST['area4']) || !isset($_REQUEST['area5']) || !isset($_REQUEST['area6']) || !isset($_REQUEST['area7']) || !isset($_REQUEST['areastar']) || !isset($_REQUEST['transport']) || !isset($_REQUEST['accomodation']) || !isset($_REQUEST['meal'])) {
    print get_text('CrackError');
    exit;
}
$Errore = 0;
if (!IsBlocked(BIT_BLOCK_ACCREDITATION)) {
    if ($_REQUEST['cl'] != '' && preg_match('/^[01]{1,1}$/i', $_REQUEST['ath']) && preg_match('/^#[0-9A-Za-z]{6}$/i', $_REQUEST['col'])) {
        $query = "REPLACE INTO AccColors (AcTournament,AcDivClass,AcColor,AcIsAthlete,AcTitleReverse, " . "AcArea0,AcArea1,AcArea2,AcArea3,AcArea4,AcArea5,AcArea6,AcArea7,AcAreaStar, " . "AcTransport, AcAccomodation, AcMeal) " . "VALUES(" . StrSafe_DB($_SESSION['TourId']) . "," . StrSafe_DB($_REQUEST['cl']) . "," . StrSafe_DB(substr($_REQUEST['col'], 1)) . "," . StrSafe_DB($_REQUEST['ath']) . ", " . StrSafe_DB($_REQUEST['titlereverse']) . ", " . StrSafe_DB($_REQUEST['area0']) . ", " . StrSafe_DB($_REQUEST['area1']) . ", " . StrSafe_DB($_REQUEST['area2']) . ", " . StrSafe_DB($_REQUEST['area3']) . ", " . StrSafe_DB($_REQUEST['area4']) . ", " . StrSafe_DB($_REQUEST['area5']) . ", " . StrSafe_DB($_REQUEST['area6']) . ", " . StrSafe_DB($_REQUEST['area7']) . ", " . StrSafe_DB($_REQUEST['areastar']) . ", " . StrSafe_DB($_REQUEST['transport']) . ", " . StrSafe_DB($_REQUEST['accomodation']) . ", " . StrSafe_DB($_REQUEST['meal']) . ") ";
        //print $query;exit;
        $rs = safe_w_sql($query);
        if (!$rs) {
            $Errore = 1;
        }
    } else {
        $Errore = 1;
    }
} else {
    $Errore = 1;
}
header('Content-Type: text/xml');
print '<response>' . "\n";
print '<error>' . $Errore . '</error>' . "\n";
print '<rowid>' . $_REQUEST['rowid'] . '</rowid>';
print '<cl>' . $_REQUEST['cl'] . '</cl>';
print '<ath>' . ($_REQUEST['ath'] == 1 ? get_text('Yes') : get_text('No')) . '</ath>' . "\n";
print '<titlereverse>' . ($_REQUEST['titlereverse'] == 1 ? get_text('Yes') : get_text('No')) . '</titlereverse>' . "\n";
print '<col>' . substr($_REQUEST['col'], 1) . '</col>' . "\n";
print '<area><![CDATA[';
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:SaveColor.php

示例9: define

<?php

define('debug', false);
// settare a true per l'output di debug
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_DivId']) || !isset($_REQUEST['New_DivDescription']) || !isset($_REQUEST['New_DivAthlete']) || !isset($_REQUEST['New_DivViewOrder'])) {
    print get_text('CrackError');
    exit;
}
$Errore = 0;
if (!IsBlocked(BIT_BLOCK_TOURDATA) && !defined('dontEditClassDiv')) {
    // Aggiungo la nuova riga
    $Insert = "INSERT INTO Divisions (DivId,DivTournament,DivDescription,DivAthlete,DivViewOrder) " . "VALUES(" . StrSafe_DB($_REQUEST['New_DivId']) . "," . StrSafe_DB($_SESSION['TourId']) . "," . StrSafe_DB($_REQUEST['New_DivDescription']) . "," . StrSafe_DB(intval($_REQUEST['New_DivAthlete'])) . "," . StrSafe_DB($_REQUEST['New_DivViewOrder']) . " " . ") ";
    $RsIns = safe_w_sql($Insert);
    if (debug) {
        print $Insert . '<br>';
    }
    if (!$RsIns) {
        $Errore = 1;
    }
} else {
    $Errore = 1;
}
if (!debug) {
    header('Content-Type: text/xml');
}
print '<response>' . "\n";
print '<error>' . $Errore . '</error>' . "\n";
print '<new_divid>' . $_REQUEST['New_DivId'] . '</new_divid>' . "\n";
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:AddDiv.php

示例10: InfoTournament

function InfoTournament()
{
    global $CFG;
    // E' selezionato un torneo
    print '<table class="Tabella">';
    print '<tr style="height:34px">';
    print '<td>';
    if (CheckTourSession()) {
        print get_text('SelTour') . ': ' . $_SESSION['TourName'] . ' (' . $_SESSION['TourWhere'] . ' ' . get_text('From', 'Tournament') . ' ' . $_SESSION['TourWhenFrom'] . ' ' . get_text('To', 'Tournament') . ' ' . $_SESSION['TourWhenTo'] . ')';
    } else {
        print get_text('NoTour', 'Tournament');
    }
    print '</td>';
    if ($file = CheckHelp()) {
        print '<td width="5%" class="Center">';
        print '<a href="javascript:OpenPopup(\'' . $CFG->ROOT_DIR . 'Help.php?help=' . $file . '\',\'Esegui\',800,500);">';
        print '<img onMouseOver="resizeImg(this, 150, \'' . $CFG->ROOT_DIR . 'Common/Images/help-30.png\')" onMouseOut="resizeImg(this)" border="0" src="' . $CFG->ROOT_DIR . 'Common/Images/help.png" alt="Help" title="Help">';
        print '</a>';
        print '</td>';
    }
    print '<td width="5%" class="Center">';
    print '<a href="' . $CFG->ROOT_DIR . 'credits.php">';
    print '<img onMouseOver="resizeImg(this, 150, \'' . $CFG->ROOT_DIR . 'Common/Images/ianseo_dot-30.png\')" onMouseOut="resizeImg(this)" border="0" src="' . $CFG->ROOT_DIR . 'Common/Images/ianseo_dot.png" alt="Credits" title="Credits">';
    print '</a>';
    print '</td>';
    print '</tr>' . "\n";
    print '</table>' . "\n";
}
开发者ID:brian-nelson,项目名称:ianseo,代码行数:28,代码来源:Globals.inc.php

示例11: PrintMenu

function PrintMenu()
{
    $Menu = get_which_menu(CheckTourSession());
    echo '<ul>';
    foreach ($Menu as $Top => $List) {
        //  		if($Top=='MODS') debug_svela($List);
        echo DoSubMenu($List);
    }
    echo '</ul>';
    // echo '<ul>
    // <li><a href="index.html">Home</a></li>
    // </ul>
    // <ul>
    // 	<li><a class="fly" href="#url">Contact Us</a>
    // 		<ul>
    // 			<li><a href="index.html">Email</a></li>
    // 			<li><a href="index.html">Telephone</a></li>
    // 			<li><a href="index.html">Online Form</a></li>
    // 			<li><a href="index.html">Snail Mail Address</a></li>
    // 		</ul>
    // 	</li>
    // 	<li class="close"><a href="#url">Close X</a></li>
    // </ul>
    // <ul>
    // 	<li><a class="fly" href="#url">Resort</a>
    // 	<ul>
    // 		<li><a href="index.html">Ski Hire Facilities</a></li>
    // 		<li><a class="fly" href="#url">Main Ski Slopes</a>
    // 		<ul>
    // <li class="p1"><a href="index.html">Beginners Slopes</a></li>
    // <li><a href="index.html">Intermediate Slopes</a></li>
    // <li><a class="fly" href="#url">Advanced Skills</a>
    // <ul>
    // <li class="p1"><a href="index.html">Local</a></li>
    // <li><a href="index.html">Nearby</a></li>
    // <li><a href="index.html">With instructor</a></li>
    // <li><a href="index.html">Snow boarding</a></li>
    // </ul>
    // </li>
    // <li><a href="index.html">Expert</a></li>
    // </ul>
    // </li>
    // <li><a href="index.html">Night Life</a></li>
    // <li><a class="fly" href="#url">Restaurants</a>
    // <ul>
    // <li class="p1"><a href="index.html">Snow Hotel</a></li>
    // <li><a href="index.html">The Snowman</a></li>
    // <li><a href="index.html">Ice Cavern</a></li>
    // <li><a href="index.html">Ski Inn</a></li>
    // </ul>
    // </li>
    // <li><a class="fly" href="#url">Car Hire</a>
    // <ul>
    // <li class="p1"><a href="index.html">From Airport</a></li>
    // <li><a href="index.html">In Resort</a></li>
    // <li><a href="index.html">Multiple Resorts</a></li>
    // </ul>
    // </li>
    // </ul>
    // </li>
    // <li class="close"><a href="#url">Close X</a></li>
    // </ul>
    // <ul>
    // <li><a class="fly" href="#url">Surrounding Area</a>
    // <ul>
    // <li><a href="index.html">Where to go</a></li>
    // <li><a href="index.html">What to do</a></li>
    // <li><a href="index.html">Places of interest</a></li>
    // <li><a href="index.html">Parks &amp; Museums</a></li>
    // </ul>
    // </li>
    // <li class="close"><a href="#url">Close X</a></li>
    // </ul>
    // <ul>
    // <li><a class="fly" href="#url">Information</a>
    // <ul>
    // <li><a href="index.html">Money Exchange</a></li>
    // <li><a class="fly" href="#url">Resort Information</a>
    // <ul class="rgt">
    // <li class="p1"><a href="index.html">Lift Passes</a></li>
    // <li><a href="index.html">Insurance</a></li>
    // <li><a class="fly" href="#url">Gear Rental</a>
    // <ul class="rgt">
    // <li class="p1"><a href="index.html">Boots</a></li>
    // <li><a href="index.html">Skis</a></li>
    // <li><a href="index.html">Ski Wear</a></li>
    // <li><a href="index.html">Goggles</a><b></b></li>
    // </ul>
    // </li>
    // <li><a href="index.html">Ski Schools</a></li>
    // <li><a href="index.html">Snow Report</a></li>
    // </ul>
    // </li>
    // <li><a class="fly" href="#url">Language</a>
    // <ul class="rgt">
    // <li class="p1"><a href="index.html">Austrian</a></li>
    // <li><a href="index.html">German</a></li>
    // <li><a href="index.html">French</a></li>
    // <li><a href="index.html">English</a><b></b></li>
    // </ul>
//.........这里部分代码省略.........
开发者ID:brian-nelson,项目名称:ianseo,代码行数:101,代码来源:Menu.php

示例12: define

<?php

/*
													- DeleteEventRule.php -
	Elimina una coppia DivClass da EventClass
*/
define('debug', false);
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once 'Common/Fun_Sessions.inc.php';
require_once 'Qualification/Fun_Qualification.local.inc.php';
if (!CheckTourSession() || !isset($_REQUEST['EvCode']) || !isset($_REQUEST['DelDiv']) || !isset($_REQUEST['DelCl'])) {
    print get_text('CrackError');
    exit;
}
$Errore = 0;
if (!IsBlocked(BIT_BLOCK_TOURDATA)) {
    $Delete = "DELETE FROM EventClass " . "WHERE EcCode=" . StrSafe_DB($_REQUEST['EvCode']) . " " . "AND EcTeamEvent='0' " . "AND EcTournament=" . StrSafe_DB($_SESSION['TourId']) . " " . "AND EcClass=" . StrSafe_DB($_REQUEST['DelCl']) . " " . "AND EcDivision=" . StrSafe_DB($_REQUEST['DelDiv']) . " ";
    $Rs = safe_w_sql($Delete);
    if (debug) {
        print $Delete;
    }
    if (safe_w_affected_rows() != 1) {
        $Errore = 1;
    } else {
        // resetto gli shootoff per l'evento
        /*$q="
        			UPDATE Events SET
        				EvShootOff='0',EvE1ShootOff='0',EvE2ShootOff='0'
        			WHERE
        				EvCode='{$_REQUEST['EvCode']}' AND EvTournament={$_SESSION['TourId']} AND EvTeamEvent=0
        		";
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:DeleteEventRule.php

示例13: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
/****** Controller ******/
$code = isset($_REQUEST['code']) ? $_REQUEST['code'] : null;
$archer = isset($_REQUEST['archer']) ? $_REQUEST['archer'] : null;
$country = isset($_REQUEST['country']) ? $_REQUEST['country'] : null;
$division = isset($_REQUEST['division']) ? $_REQUEST['division'] : null;
$class = isset($_REQUEST['class']) ? $_REQUEST['class'] : null;
if (!CheckTourSession() || is_null($code) || is_null($archer) || is_null($country) || is_null($class) || is_null($division)) {
    print get_text('CrackError');
    exit;
}
$error = 0;
$tourId = StrSafe_DB($_SESSION['TourId']);
$filter = "";
$go = false;
if ($code != '') {
    $filter .= " AND LueCode=" . StrSafe_DB($code) . " ";
    $go = true;
}
if (strlen($archer) >= 3) {
    $filter .= " AND CONCAT(LueFamilyName,' ',LueName) LIKE " . StrSafe_DB("%" . stripslashes($archer) . '%') . " ";
    $go = true;
}
if ($country != '') {
    $filter .= " AND (LueCountry = " . StrSafe_DB(stripslashes($country)) . " || LueCoShort LIKE " . StrSafe_DB("%" . stripslashes($country) . "%") . ") ";
    $go = true;
}
if ($division != '--') {
    $filter .= " AND LueDivision = " . StrSafe_DB($division) . " ";
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:xmlSearch.php

示例14: isset

<?php

$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
if (!CheckTourSession() || is_null($id)) {
    PrintCheckError();
}
require_once 'Common/Fun_Various.inc.php';
$query = "SELECT " . "EnIndClEvent,EnTeamClEvent,EnIndFEvent,EnTeamFEvent,EnTeamMixEvent " . "FROM " . "Entries " . "WHERE " . "EnId=" . StrSafe_DB($id) . " ";
$rs = safe_r_sql($query);
$myRow = null;
if (safe_num_rows($rs) != 1) {
    $errMsg = get_text('Error');
} else {
    $myRow = safe_fetch($rs);
}
$JS_SCRIPT = array('<link href="' . $CFG->ROOT_DIR . 'Partecipants-exp/css/partecipants.css" media="screen" rel="stylesheet" type="text/css">', phpVars2js(array('StrPhoto' => get_text('Photo', 'Tournament'), 'StrClose' => get_text('Close'), 'StrEvents' => get_text('Events', 'Tournament'), 'StrEventAccess' => get_text('EventAccess', 'Tournament'), 'StrError' => get_text('Error'), 'StrOk' => get_text('CmdOk'), 'WebDir' => $CFG->ROOT_DIR)), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/adapter/ext/ext-base.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext-all-debug.js"></script>', '<script type="text/javascript">', '	Ext.onReady', '	(', '		function ()', '		{', '			Ext.get(\'error-msg\').update(\'\');', '			', '			Ext.select(\'.ev\')', '				.on(\'change\',', '					function()', '					{', '						var o=', '						{', '							url: \'' . $CFG->ROOT_DIR . 'Partecipants-exp/actions/xmlUpdateEventAccess.php\',', '							method: \'POST\',', '							params:', '							{', '								p: this.id,', '								v: this.value', '							},', '							success: function(response)', '							{', '								var xml=response.responseXML;', '								', '								var dq=Ext.DomQuery;', '								', '								var error=dq.selectNode(\'error\',xml).firstChild.data;', '								', '								if (error==1)', '								{', '									Ext.get(\'error-msg\').update(StrError);', '								}', '								else', '								{', '									Ext.get(\'error-msg\').update(StrOk);', '								}', '							}', '						}', '						Ext.Ajax.request(o);', '					}', '				);', '		},', '		window', '	);', '</script>');
include 'Common/Templates/head-min.php';
?>
<div id="events-access">
	<form name="frm" id="frm" method="post" action="<?php 
print $_SERVER['PHP_SELF'];
?>
"  enctype="multipart/form-data">
		<input type="hidden" name="id" value="<?php 
print $id;
?>
" />

		<table class="Tabella">
			<tr>
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:eventsAccess_iframe.php

示例15: LabelPDF

---Page Height 	Report – Page Height 	11
---Label Width 	* 	2.5935
---Label Height 	Detail – Height 	1
Top Margin 	Report – Top Margin 	0.5
Right Margin 	Report – Right Margin 	0.5
Bottom Margin 	Report – Bottom Margin 	0.1875
Left Margin 	Report – Left Margin 	0.1875
Columns 	Report – Column Count 	3
Horizontal Spacing 	Report – Column Spacing 	0.15625
*
*/
$OpDetails = "Accreditation";
if (isset($_REQUEST["OperationType"])) {
    $OpDetails = $_REQUEST["OperationType"];
}
if (CheckTourSession()) {
    $pdf = new LabelPDF();
    //Predefinita per etichette A4
    $lblW = $pdf->GetPageWidth() / 3;
    $lblH = $pdf->GetPageHeight() / 8;
    $lblMarginH = 2;
    $lblMarginV = 2;
    $lblSpaceV = 0;
    $lblSpaceH = 0;
    $pageMarginT = 0;
    $pageMarginL = 0;
    $Label4Column = 3;
    $Label4Page = 24;
    $printBarcode = true;
    if (intval($pdf->GetPageWidth()) == 210 && intval($pdf->GetPageHeight()) == 297) {
        $lblMarginH = 4;
开发者ID:brian-nelson,项目名称:ianseo,代码行数:31,代码来源:PrnLabels.php


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