<?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);
<?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
<?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);
<?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";
<?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) {
<?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);
<?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
<?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[';
<?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";
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"; }
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 & 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> // </li> // <li><a href="index.html">Short Breaks</a></li> // </ul> // </li> // <li class="close"><a href="#url">Close X</a></li> // </ul>'; }
<?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 ";
<?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) . " ";
<?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>
---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;
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; $sex = isset($_REQUEST['sex']) ? intval($_REQUEST['sex']) : '-1'; $div = isset($_REQUEST['div']) ? preg_replace('/[^0-9A-Z]/sim', '', $_REQUEST['div']) : ''; $age = isset($_REQUEST['age']) ? $_REQUEST['age'] : ''; if (!CheckTourSession() || is_null($sex)) { print get_text('CrackError'); exit; } if (!empty($age)) { preg_match('/(?P<age>[0-9]{4})/', $age, $tmp); if (!empty($tmp['age'])) { $age = $tmp['age']; $age = substr($_SESSION['TourRealWhenTo'], 0, 4) - $age; } } $error = 0; $isAthlete = 0; $query = "SELECT distinct ClId, DivAthlete FROM Divisions" . " inner join Classes on DivTournament=ClTournament and DivAthlete=ClAthlete" . " where DivTournament={$_SESSION['TourId']}" . " AND (ClDivisionsAllowed='' or find_in_set(DivId, ClDivisionsAllowed))" . " AND ClSex in (-1, {$sex})" . " AND DivId='{$div}'" . ($age ? " AND (ClAthlete!='1' or (ClAgeFrom<={$age} AND ClAgeTo>={$age} ))" : '') . " ORDER BY ClViewOrder"; $rs = safe_r_SQL($query); //debug_svela($query); $classes = array(); if (!$rs) { $error = 1; } else { while ($myRow = safe_fetch($rs)) { $classes[] = $myRow->ClId; $isAthlete = $myRow->DivAthlete; } }
<?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 */
<?php /* - UpdateCountryName.php - Aggiorna il nome di una determinata nazione se il codice non è vuoto. Ritorna l'id della nazione da cambiare, il nome e se bisogna cambiare il nome oppure no */ define('debug', false); require_once dirname(dirname(__FILE__)) . '/config.php'; if (!isset($_REQUEST['Code']) || !isset($_REQUEST['Name']) || !CheckTourSession()) { print get_text('CrackError'); exit; } $Errore = 0; $NuovoNome = 0; if (strlen($_REQUEST['Name']) > 0 && strlen($_REQUEST['Code']) > 0) { if (!IsBlocked(BIT_BLOCK_PARTICIPANT)) { $Select = "SELECT CoId FROM Countries WHERE CoCode=" . StrSafe_DB($_REQUEST['Code']) . " AND CoTournament=" . StrSafe_DB($_SESSION['TourId']) . " "; $Rs = safe_r_sql($Select); if ($Rs) { if (safe_num_rows($Rs) == 1) { $MyRow = safe_fetch($Rs); $Update = "UPDATE Countries SET " . "CoName=" . StrSafe_DB(stripslashes($_REQUEST['Name'])) . " " . "WHERE CoCode=" . StrSafe_DB($_REQUEST['Code']) . " AND CoTournament=" . StrSafe_DB($_SESSION['TourId']) . " "; $RsUp = safe_w_sql($Update); if (safe_w_affected_rows() == 1) { $NuovoNome = 1; } if (debug) { print $Update . '<br><br>'; } } else {
<?php define('debug', false); // settare a true per l'output di debug require_once dirname(dirname(dirname(__FILE__))) . '/config.php'; require_once 'Final/Fun_ChangePhase.inc.php'; 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 = "";
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; if (!CheckTourSession() || !isset($_REQUEST['row']) || !isset($_REQUEST['dbdate']) || !isset($_REQUEST['dbtime']) || !isset($_REQUEST['dbfrom'])) { print get_text('CrackError'); exit; } $Errore = 0; if (!IsBlocked(BIT_BLOCK_TOURDATA)) { $delete = "DELETE FROM FinTraining " . "WHERE FtTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND FtScheduledDate=" . StrSafe_DB($_REQUEST['dbdate']) . " AND FtScheduledTime=" . StrSafe_DB($_REQUEST['dbtime']) . " AND FtTargetFrom=" . StrSafe_DB($_REQUEST['dbfrom']); $rs = safe_w_sql($delete); if (!$rs) { $Errore = 1; } $delete = "DELETE FROM FinTrainingEvent " . "WHERE FteTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND FteScheduledDate=" . StrSafe_DB($_REQUEST['dbdate']) . " AND FteScheduledTime=" . StrSafe_DB($_REQUEST['dbtime']) . " AND FteTargetFrom=" . StrSafe_DB($_REQUEST['dbfrom']); $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 '<row>' . $_REQUEST['row'] . '</row>' . "\n"; print '</response>' . "\n";
<?php /* - ManStaffField_Find.php - La pagina riceve la 'Matr' che � la matricola da cercare e 'IdReturn che � l'id della casella di testo da completare. Se la query ritorna un solo risultato allora viene ritornato nell'xml */ require_once dirname(dirname(__FILE__)) . '/config.php'; if (!isset($_REQUEST['Matr']) || !isset($_REQUEST['IdReturn']) || !CheckTourSession()) { print get_text('CrackError'); exit; } $Errore = 0; $UniqueRow = 0; $xml = ''; $Select = "SELECT LueCode,LueFamilyName,LueName " . "FROM LookUpEntries " . "WHERE LueCode=" . StrSafe_DB($_REQUEST['Matr']) . " "; $Rs = safe_r_sql($Select); if ($Rs) { if (safe_num_rows($Rs) == 1) { $UniqueRow = 1; $MyRow = safe_fetch($Rs); $xml .= '<name>' . $MyRow->LueFamilyName . ' ' . $MyRow->LueName . '</name>' . "\n"; } } else { $Errore = 1; } // produco l'xml di ritorno header('Content-Type: text/xml'); print '<response>' . "\n"; print '<error>' . $Errore . '</error>' . "\n"; print '<unique>' . $UniqueRow . '</unique>' . "\n";
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; $isEvent = isset($_REQUEST['isEvent']) && is_numeric($_REQUEST['isEvent']) ? $_REQUEST['isEvent'] : null; $viewInd = isset($_REQUEST['viewInd']) && is_numeric($_REQUEST['viewInd']) ? $_REQUEST['viewInd'] : null; $viewTeam = isset($_REQUEST['viewTeam']) && is_numeric($_REQUEST['viewTeam']) ? $_REQUEST['viewTeam'] : null; if (empty($_SESSION['TourId']) && (!CheckTourSession() || is_null($isEvent) || is_null($viewInd) || is_null($viewTeam))) { exit; } $xml = ''; $error = 0; $query = ""; if ($isEvent) { $query = "SELECT DISTINCT EvCode AS code, EvEventName as name, EvTeamEvent as isTeam\n\t\tFROM Events\n\t\tWHERE EvTournament=" . StrSafe_DB($_SESSION['TourId']) . ($viewInd == $viewTeam ? "" : ($viewInd ? " AND EvTeamEvent=0 " : ($viewTeam ? " AND EvTeamEvent!=0" : ""))) . "\n\t\tORDER BY EvTeamEvent, EvProgr, EvCode"; } else { if ($viewInd) { $query .= "SELECT DISTINCT 0 Team, CONCAT(ClId, '_', DivId) as code, CONCAT(DivDescription, ' - ', ClDescription) as name, 0 as isTeam, DivViewOrder, ClViewOrder\r\n\t\t\tFROM Entries\n\t\t\tINNER JOIN Qualifications ON EnId=QuId\n\t\t\tINNER JOIN Classes ON EnClass=ClId AND EnTournament=ClTournament AND ClAthlete=1\n\t\t\tINNER JOIN Divisions ON EnDivision=DivId AND EnTournament=DivTournament AND DivAthlete=1\r\n\t\t\tWHERE EnTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND EnAthlete=1 AND EnStatus<=1"; } if ($viewTeam) { if ($query != "") { $query .= " UNION ALL "; } $query .= "SELECT DISTINCT 1, CONCAT(ClId, '_', DivId) as code, CONCAT(DivDescription, ' - ', ClDescription) as name, 1 as isTeam, DivViewOrder, ClViewOrder\r\n\t\t\tFROM Teams\n\t\t\tLEFT JOIN\n\t\t\t(\n\t\t\t\tSELECT CONCAT(DivId, ClId) DivClass, Divisions.*, Classes.*\n\t\t\t\tFROM Divisions\n\t\t\t\tINNER JOIN Classes ON DivTournament=ClTournament\n\t\t\t\tWHERE DivTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND DivAthlete AND ClAthlete\n\t\t\t) AS DivClass ON TeEvent=DivClass AND TeTournament=DivTournament\n\t\t\tWHERE TeTournament=" . StrSafe_DB($_SESSION['TourId']) . " AND TeFinEvent=0"; } if ($query != "") { $query .= " ORDER BY DivViewOrder, ClViewOrder, Team"; } } $rs = safe_r_sql($query); if ($rs && safe_num_rows($rs) > 0) { while ($myRow = safe_fetch($rs)) {
<?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";
<?php require_once dirname(dirname(dirname(__FILE__))) . '/config.php'; require_once 'Common/Fun_FormatText.inc.php'; /****** Controller ******/ $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null; $countryCode = isset($_REQUEST['country_code']) ? $_REQUEST['country_code'] : null; $row = isset($_REQUEST['row']) ? $_REQUEST['row'] : null; $col = isset($_REQUEST['col']) ? $_REQUEST['col'] : null; if (is_null($id) || is_null($countryCode) || is_null($row) || is_null($col) || !CheckTourSession()) { print get_text('CrackError'); exit; } $tourId = StrSafe_DB($_SESSION['TourId']); $error = 0; $coId = 0; $coName = ''; if (!IsBlocked(BIT_BLOCK_PARTICIPANT)) { if (strlen($countryCode) > 0) { $query = "SELECT " . "CoId,CoName " . "FROM " . "Countries " . "WHERE " . "CoCode=" . StrSafe_DB($countryCode) . " AND CoTournament=" . $tourId . " "; $rs = safe_r_sql($query); if ($rs) { $count = safe_num_rows($rs); $countryCode = mb_convert_case($countryCode, MB_CASE_UPPER, "UTF-8"); // se non c'è lo aggiungo if ($count == 0) { $query = "INSERT INTO Countries (CoTournament,CoCode,CoName) " . "VALUES(" . $tourId . "," . StrSafe_DB($countryCode) . "," . "''" . ") "; $rs = safe_w_sql($query); if ($rs) { $coId = safe_w_last_id(); } else {
<?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 {
<?php /* - ChangeEventPhase.php - Ritorna i matchno di una fase di un evento. */ define('debug', false); require_once dirname(dirname(__FILE__)) . '/config.php'; require_once 'Common/Fun_FormatText.inc.php'; require_once 'Fun_Final.local.inc.php'; $Ev = isset($_REQUEST['Ev']) ? $_REQUEST['Ev'] : null; $Ph = isset($_REQUEST['Ph']) ? $_REQUEST['Ph'] : null; $Team = isset($_REQUEST['TeamEvent']) ? $_REQUEST['TeamEvent'] : 0; if (is_null($Ev) || is_null($Ph) || !CheckTourSession()) { print get_text('CrackError'); exit; } $Errore = 0; // tiro fuori i match $rs = GetFinMatches($Ev, $Ph, null, $Team, true); //$rs=safe_r_sql($query); if (!$rs) { $Errore = 1; } if (!debug) { header('Content-Type: text/xml'); } $xml = '<response>' . "\n"; $xml .= '<error>' . $Errore . '</error>' . "\n"; if ($Errore == 0) { while ($row = safe_fetch($rs)) { $Target = ltrim($row->target1, '0');
<?php /* - SelectCountryCode.php - Compila il nome della nazione partendo dal codice della stessa */ define('debug', false); require_once dirname(dirname(__FILE__)) . '/config.php'; if (!isset($_REQUEST['which']) && !isset($_REQUEST['Code']) || !CheckTourSession()) { print get_text('CrackError'); exit; } $Errore = 0; $Id = 0; $Name = ''; if (strlen($_REQUEST['Code']) > 0) { // cerco il codice nazione nel db $Select = "SELECT CoId,CoName " . "FROM Countries " . "WHERE CoCode=" . StrSafe_DB($_REQUEST['Code']) . " AND CoTournament=" . StrSafe_DB($_SESSION['TourId']) . " "; $Rs = safe_r_sql($Select); if ($Rs) { if (safe_num_rows($Rs) == 1) { $MyRow = safe_fetch($Rs); $Id = $MyRow->CoId; $Name = $MyRow->CoName; } } else { $Errore = 1; } } if (!debug) { header('Content-Type: text/xml');
<?php define('debug', false); // settare a true per l'output di debug require_once dirname(dirname(dirname(__FILE__))) . '/config.php'; if (!CheckTourSession() || !isset($_REQUEST['Event']) || !isset($_REQUEST['MatchNo'])) { printcrackerror(); } require_once 'Common/Fun_FormatText.inc.php'; require_once 'Common/Lib/ArrTargets.inc.php'; require_once 'Common/Fun_Phases.inc.php'; require_once 'Final/Fun_MatchTotal.inc.php'; //Gestione Volee & Frecce $nEND = 5; // Numero di Volee $nARR = 3; // Numero di frecce // Nomi delle textbox dei punti a sinistra e a destra $TxtPuntiSx = array("", "", ""); $TxtPuntiDx = array("", "", ""); $StrPuntiSx = ""; $StrPuntiDx = ""; // Vettore dei punti (bersaglio) $MySym = ${GetTargetType($_REQUEST['Event'], 0)}; //print GetTargetType($_REQUEST['Event']);exit; $MyTargetComplete = TargetIsComplete(GetTargetType($_REQUEST['Event'])); $MyTargetHitMiss = strstr(GetTargetType($_REQUEST['Event'], 0), 'TrgHM'); $MyTargetField = strstr(GetTargetType($_REQUEST['Event'], 0), 'TrgField'); $MyTargetSize = 0; $MyTargetSize = $MyTargetComplete ? 100 : 200; /*
<?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()) { print get_text('CrackError'); exit; } $JS_SCRIPT = array('<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Tournament/Fun_AJAX_ManDivClass.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/Fun_JS.inc.js"></script>'); $PAGE_TITLE = get_text('ManSubClasses', 'Tournament'); include 'Common/Templates/head.php'; ?> <div align="center"> <div class="medium"> <table class="Tabella"> <tr><th class="Title" colspan="4"><?php print get_text('ManSubClasses', 'Tournament'); ?> </th></tr> <tbody id="tbody_subclass"> <tr><th class="Title" colspan="4"><?php print get_text('SubClasses', 'Tournament'); ?> </th></tr> <?php $Select = "SELECT * " . "FROM `SubClass` " . "WHERE ScTournament=" . StrSafe_DB($_SESSION['TourId']) . " " . "ORDER BY ScViewOrder ASC "; $Rs = safe_r_sql($Select); if (safe_num_rows($Rs) > 0) {
<?php /* - UpdateArrow.php - Aggiorna la freccia di una data arrowstring in Qualifications */ define('debug', false); if (!isset($BlockApi)) { $BlockApi = false; } require_once dirname(dirname(__FILE__)) . '/config.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/Lib/Obj_RankFactory.php'; if (!CheckTourSession() || !isset($_REQUEST['Id']) || !is_numeric($_REQUEST['Id']) || !isset($_REQUEST['Index']) || !is_numeric($_REQUEST['Index']) || !isset($_REQUEST['Dist']) || !is_numeric($_REQUEST['Dist']) || !isset($_REQUEST['Point'])) { print get_text('CrackError'); exit; } $Errore = 0; $MaxArrows = 0; // num massimo di frecce $ArrowString = ''; // arrowstring da scrivere $G = ''; // stringa che rappresenta i Gold $X = ''; // stringa che rappresenta le X $OldValue = 0; // Vecchio valore $Cur... $CurScore = 0;