PHPInfo in Bootstrap Style

Einfach in den Body der Bootstrap Seite reinkopieren.
<?php
ob_start();
phpinfo();
$phpinfo = ob_get_clean();

# Body-Content rausholen
$phpinfo = preg_replace('#^.*<body>(.*)</body>.*$#s', '$1', $phpinfo);
# XHTML-Fehler korrigieren
$phpinfo = str_replace('module_Zend Optimizer', 'module_Zend_Optimizer', $phpinfo);
# <font> durch <span> ersetzen
$phpinfo = str_replace('<font', '<span', $phpinfo);
$phpinfo = str_replace('</font>', '</span>', $phpinfo);
#Table
$phpinfo = str_replace( 'border="0" cellpadding="3"', 'class="table table-bordered table-striped" style="table-layout: fixed;word-wrap: break-word;"', $phpinfo );
$phpinfo = str_replace('<tr class="h"><th>', '<thead><tr><th>', $phpinfo);
$phpinfo = str_replace('</th></tr>', '</th></tr></thead><tbody>', $phpinfo);
$phpinfo = str_replace('</table>', '</tbody></table>', $phpinfo);
# Schlüsselwörter grün oder rot einfärben
$phpinfo = preg_replace('#>(on|enabled|active)#i', '><span class="text-success">$1</span>', $phpinfo);
$phpinfo = preg_replace('#>(off|disabled)#i', '><span class="text-error">$1</span>', $phpinfo);

echo '<div id="phpinfo">';
echo $phpinfo;
echo '</div>';
?>

Own Google Wave Protocol Server

Test unter Ubuntu Server 10.10

Abhängigkeiten installieren

sudo aptitude install openjdk-6-jre openjdk-6-jdk ant mercurial

Google Wave Protocol Server Sourcen holen und compilen

cd $WhereverYouWant
hg clone https://wave-protocol.googlecode.com/hg/ wave-protocol
cd wave-protocol
ant
cp run-nofed-config.sh run-config.sh
$Editor run-config.sh
./run-server.sh

Server testen
Einfach im Browser http://$Server:9898 aufrufen