Exemplo n.º 1
0
if (!empty($_POST['arg']) & $_POST['arg'] == 'sperren') {
    $sql = "SELECT \r\n                        m.Online\r\n                    FROM \r\n                        meeting AS m                          \r\n                    WHERE                        \r\n                         m.xMeeting = " . $_COOKIE['meeting_id'];
    $res = mysql_query($sql);
    if (mysql_errno() > 0) {
        AA_printErrorMsg(mysql_errno() . ": " . mysql_error());
    } else {
        if (mysql_num_rows($res) > 0) {
            $sql = "UPDATE meeting \r\n                                    SET Online = 'n'  \r\n                             WHERE                                                            \r\n                                         xMeeting = " . $_COOKIE['meeting_id'];
            mysql_query($sql);
            if (mysql_errno() > 0) {
                $GLOBALS['AA_ERROR'] = mysql_errno() . ": " . mysql_error();
            }
        }
    }
} else {
    if (AA_checkControl() == 0) {
        echo "<p>{$strErrNoControl1}</p>";
        echo "<form action='./meeting_relay_add.php' method='post'>    \r\n            <p><input name='' value='' checked='checked' onclick='submit()' type='checkbox'>\r\n            <input name='arg' value='sperren' type='hidden'> \r\n                {$strMeetingWithUpload}  &nbsp; ({$strErrNoControl2})</p>\r\n            </form>";
        return;
    }
}
?>
<table>
<tr>
	<td class='forms'>
		<?php 
AA_printClubSelection("meeting_relay_add.php", $club, $category, 0, true);
?>
	</td>
	<td class='forms'>
		<?php 
Exemplo n.º 2
0
            mysql_query("UPDATE runde SET StatusUpload = 1 WHERE xRunde = {$xRunde}");
            if (mysql_errno() > 0) {
                AA_printErrorMsg(mysql_errno() . ": " . mysql_error());
            }
        }
        if ($nbr_effort > 0) {
            echo "<p><b>{$strResultsUploaded}</b></p>";
            echo $strNumberEfforts . ": " . $nbr_effort;
        } else {
            echo "<p><b>{$strResultsUploadedNoResults}</b></p>";
        }
    } else {
        echo "<p>{$strErrResultUpload}</p>";
    }
} else {
    $cControl = AA_checkControl();
    if ($cControl == 0) {
        echo "<p>{$strErrNoControl}</p>";
        return;
    } elseif ($cControl == 2) {
        ?>
		<p><?php 
        echo $strErrNoControl3;
        ?>
</p><br/>
		<!--<img src="img/nosync_<?php 
        echo $_COOKIE['language'];
        ?>
.gif" alt="" style="border: solid 1px #000000;"/>  -->
		<?php 
        return;