All pastes #620730 Raw Edit

Jemand

public text v1 · immutable
·published 2007-07-15 18:28 UTC
rendered paste body
<?
foreach($server as $this)
{
	if ($this['state'] == 0) $this['extra'] = 'connect läuft';
	if ($this['state'] == 1) $this['extra'] = 'timeout';
	if ($this['state'] == 3) $this['extra'] = 'connected';
	echo '<li>'.$this['name'].' -> '.$this['extra'].'<ul>'."\n";
	
	if (count($channel) > 0)
	{
		foreach($channel as $chan)
		{
			if ($chan['server'] == $this['id']) echo '<li><a href="javascript: set(\''.$this['name'].'\', \''.$this['id'].'\', \''.$chan['name'].'\');">'.$chan['name'].'</a></li>'."\n";
		}
	}
	echo '</ul></li>'."\n";
}
?>
</ul>
<h2>Schreiben:</h2><br />
<b>Text:</b> <input type="text" name="say" disabled /> <input type="submit" value="Say" name="action" /><br />
<b>Server:</b> <input type="hidden" name="server" /> <span id="server">wähle oben</span><br />
<b>Channel:</b> <input type="hidden" name="channel" /> <span id="channel">wähle oben</span><br /><br />
<h2>Anderes</h2><br />
Server: <input name="server2" type="text" /> Port: <input name="port2" type="text" /> <input type="submit" value="connect" name="action" /><br />
Channel: <input name="channel2" type="text" /> Server: <select name="server3"><? foreach($server as $this) if ($this['state'] == 3) echo '<option value="'.$this['id'].'">'.$this['name'].'</option>'; ?></select> <input type="submit" value="join" name="action" />
<?