<table><tr><td valign="top">
<SCRIPT language="javascript">
who="<?php 
echo $whocolor;
?>
";
setgame(<?php 
echo $gameID;
?>
);
DisplayBoard();
MoveEnd();
</SCRIPT>
</td>
<td valign="top">

<div style="width: 340; height: 310; overflow:auto;" align="center">
<?php 
writeHistory();
?>

<br>
<a href="#top"><b>Nach oben ^</b></a>
</td>
</tr>
</table>
<br>
</div>
</html>

Ejemplo n.º 2
0
function shout($nickname, $message) {
	global $dirs, $paths, $prefs;
	ensureExists($dirs['logs']); // Ensure the log directory exists

	$timestamp =  microtime_float();

	$nickname = substr($nickname, 0, 25);
	$message = substr($message, 0, 175);

	$nickname = formatString($nickname);
	$message = formatString($message);

	$nickname = cursesGetAway($nickname);
	$message = cursesGetAway($message);
	
	$message = parseLinks($message);
	
	$shouttype =  (isAdmin()? 'admin' : 'user');
	$ip = getIP();
	$time = date('h:i a');
	$date = date('F j');

	$shout = array(
		'timestamp' => $timestamp,
		'nickname' => $nickname,
		'message' => $message,
		
		'ipaddress' => $ip,
		'time' => $time,
		'date' => $date,
		'showuserinfo' => true,
		'shouttype' => $shouttype
	);

	$jData = decode($paths['log']);

	if ($jData == null)
		$jData = array();

	$jData[] = $shout;

	writeHistory($shout);
	truncate($jData);
	$jData = array_values($jData);
	$output = encode($jData);
	write($paths['log'], $output, 0773);
	
}
$prefix = 'BCASH_';
$id_transacao = Tools::getValue('id_transacao');
$id_pedido = Tools::getValue('id_pedido');
if (empty($id_transacao) || empty($id_pedido)) {
    echo http_response_code(404);
    exit;
}
$email = Configuration::get($prefix . 'EMAIL');
$token = Configuration::get($prefix . 'TOKEN');
$cancellation = new Cancellation($email, $token);
$cancellation->enableSandBox(Configuration::get($prefix . 'SANDBOX'));
try {
    $response = $cancellation->execute($id_transacao);
    if ($response->transactionStatusId == 7 || $response->transactionStatusId == 6) {
        updateOrder($id_pedido, $response);
        writeHistory($id_pedido, $response);
    }
} catch (ValidationException $e) {
    die(errorResponse($e));
} catch (ConnectionException $e) {
    die(errorResponse($e));
}
echo json_encode($response);
exit;
function errorResponse($e)
{
    $erros = $e->getErrors();
    if (!empty($erros)) {
        return $e->getErrors()->list[0]->description;
    }
}
        if ($num > 0)
            for ($y=0; $y<$num; $y++)
                echo "<img src='images/pieces/".$_SESSION['pref_theme']."/black_".$piece.".gif' height='25'> ";

    $bmaterial = 39 - $bmaterial;
      echo "</td><td align=center bgcolor=white>";
      echo "<font size=+1>".$bmaterial."</font>";   
      echo "</td></tr>";
    echo "</table>"; 
	?>
		<BR>
		
<table align=center border="1" cellspacing="0" cellpadding="0"><tr><td></td></tr> 
<tr><td style="width: 300px; height: 230px;"> 
<div style="width: 100%; height: 100%; overflow : auto;"> 
<? writeHistory();?> </div></td></tr><tr><td></td></tr></table>	<br>
<table width="300" border="0" cellspacing="1" bgcolor="red">
  <th bgcolor="beige">Our Sponsors</th>
  <tr>
    <td><div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-9606600691278870";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_channel ="2162144154";
google_color_border = "578A24";
google_color_bg = "CCFF99";
google_color_link = "00008B";
google_color_url = "00008B";
google_color_text = "000000";
//--></script>