Ejemplo n.º 1
0
<?php

if (!defined('IN_PHP')) {
    CD_redirect();
}
// Show the already made Chain
$RuleChain = '<table class="Tabella">';
$q = safe_r_sql("SELECT TVSequence.*,TVSOrder=(SELECT COUNT(*) FROM TVSequence WHERE TVSRule={$RuleId} AND TVSTournament={$TourId}) as last FROM TVSequence WHERE TVSRule={$RuleId} AND TVSTournament={$TourId} ORDER BY TVSOrder");
if (safe_num_rows($q)) {
    $RuleChain .= '<tr>';
    $RuleChain .= '<th class="TitleCenter">' . get_text('Order', 'Tournament') . '</th>';
    $RuleChain .= '<th class="TitleCenter">' . get_text('Type', 'Tournament') . '</th>';
    $RuleChain .= '<th class="TitleCenter">' . get_text('Name', 'Tournament') . '</th>';
    $RuleChain .= '<th class="TitleCenter">' . get_text('TVFilter-Display', 'Tournament') . '</th>';
    $RuleChain .= '<th class="TitleCenter">' . get_text('TVDefault-Scroll', 'Tournament') . '</th>';
    $RuleChain .= '</tr>';
    while ($r = safe_fetch($q)) {
        $RuleChain .= decode_chain($r, false);
    }
} else {
    $RuleChain .= '<tr><td>' . get_text('TVOutNoRules', 'Tournament') . '</td></tr>';
}
$RuleChain .= '</table>';
?>

<tr>
<th class="TitleLeft" width="15%"><?php 
print get_text('TVDefinedChain', 'Tournament');
?>
</th>
<td><?php 
Ejemplo n.º 2
0
}
// trucchetto per permettere o negare il debug nonostante il get di cui sopra
$ERROR_REPORT = ($ERROR_REPORT and $_SESSION['debug']);
if ($ERROR_REPORT) {
    error_reporting(E_ALL);
    ini_set('display_errors', 'On');
} else {
    error_reporting(0);
    ini_set('display_errors', 'off');
}
$_SESSION['debug'] = $ERROR_REPORT;
$CFG->TRACE_QUERRIES = ($CFG->TRACE_QUERRIES and $_SESSION['debug']);
// Autocheckin
if (!empty($CFG->ROOT_DIR) and dirname($_SERVER['PHP_SELF']) != $CFG->ROOT_DIR . 'Modules/AutoCheckin' and $Code = GetParameter('AutoCHK-Code') and !empty($_SERVER['REMOTE_ADDR']) && in_array($_SERVER['REMOTE_ADDR'], explode(',', GetParameter('AutoCHK-IP')))) {
    CreateTourSession(getIdFromCode($Code));
    CD_redirect($CFG->ROOT_DIR . 'Modules/AutoCheckin/AutoCheckin.php');
    die;
}
// RICONTROLLA TUTTE LE VOLTE GLI SPAREGGI!
//set_qual_session_flags();
/*
	deposito temporaneo per Chris nelle modifiche degli header :D
	$JS_SCRIPT=array(
		'',
		'',
		'',
		'',
		);
	include('Common/Templates/head.php');
	include('Common/Templates/tail.php');
*/
Ejemplo n.º 3
0
<?php

require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Language/lib.php';
include 'Common/Templates/head.php';
// nothing to do here without data
if (!in_array(ProgramRelease, array('STABLE', 'FITARCO')) and empty($_POST['Email'])) {
    CD_redirect('/');
}
$URL = 'http://www.ianseo.net/Update.php';
//$URL='http://ianseonet.dellinux/Update.php';
include 'FileList.php';
@ob_end_flush();
echo str_repeat(' ', 1500);
flush();
// preparing list
do_flush('<div><br/>' . get_text('Prepare', 'Install') . ':... ');
$tmp = new FileList($CFG->INCLUDE_PATH);
$tmp->EscludeFiles('^(\\.)');
$tmp->ShowSize(true);
$tmp->ShowMD5(true);
if (!$tmp->Load()) {
    echo '</div><div><br/>' . get_text('NotUpdatable', 'Install', $CFG->INCLUDE_PATH) . '</div>';
    include 'Common/Templates/tail.php';
    die;
}
do_flush(get_text('Done', 'Install') . '</div>');
// sending request to ianseo
do_flush('<div><br/>' . get_text('Sending', 'Install') . ':... ');
$Old = $tmp->serialize();
$Query = array('Json' => gzcompress($Old));
Ejemplo n.º 4
0
=> IDcard can have a back with schedule AND-OR a freetext
=> ALL elements are positional (negative x or y position means not printed at all)
*/
require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/Lib/Fun_DateTime.inc.php';
require_once 'IdCardEmpty.php';
//print_r($_REQUEST);exit;
CheckTourSession(true);
if (isset($_GET['delete'])) {
    $IdOrder = intval($_GET['delete']);
    safe_w_sql("delete from IdCardElements where IceTournament={$_SESSION['TourId']} and IceOrder={$IdOrder}");
    if (file_exists($File = $CFG->DOCUMENT_PATH . 'TV/Photos/' . $_SESSION['TourCodeSafe'] . '-Image-' . $IdOrder . '.jpg')) {
        unlink($File);
    }
    CD_redirect(basename(__FILE__));
}
$RowBn = NULL;
$Select = "SELECT IdCards.*, LENGTH(IcBackground) as ImgSize " . "FROM IdCards  " . "WHERE IcTournament=" . StrSafe_DB($_SESSION['TourId']);
$Rs = safe_r_sql($Select);
// debug_svela($_REQUEST);
if (!empty($_REQUEST['DeleteBgImage'])) {
    safe_w_sql("update IdCards set IcBackground='' where IcTournament={$_SESSION['TourId']} ");
    unlink($CFG->DOCUMENT_PATH . 'TV/Photos/' . $_SESSION['TourCodeSafe'] . '-Accreditation.jpg');
}
if (!empty($_REQUEST['IdCardsSettings'])) {
    $sql = "IcTournament={$_SESSION['TourId']}, IcSettings=" . StrSafe_DB(serialize($_REQUEST["IdCardsSettings"]));
    safe_w_sql("INSERT INTO IdCards set {$sql} on duplicate key update {$sql}");
    $Rs = safe_r_sql($Select);
}
if (!empty($_REQUEST["NewContent"])) {