PDA

View Full Version : What Have YOU Accomplished With PHP?



boxxertrumps
12-24-2006, 12:37 AM
i Was bored, So i decided to Fix My IRC applet On My Site.

<?php $serv = $_GET[serverurl];
$channel = $_GET[channeltojoin];

$stream[0] = array($serv,$channel);
$stream[1] = array("irc.****irc.net","QCF");
$stream[2] = array("irc.****irc.net","****IRC");
$stream[3] = array("irc.rizon.net","ASRadio");
$stream[4] = array("irc.eggheads.org","QCF");
$stream[5] = array("irc.torrentleech.org","torrentleech");
$stream[6] = array("irc.netstable.com","VGAmp");
$stream[7] = array("irc.gamesurge.net","rlr");
$stream[8] = array("irc.fukt.us","7chan");
$stream[9] = array("irc.quakenet.org","incinerators");

$pag = $_GET[chan];
if ($pag != ""){ ?>
<div style="margin:0px 210px 0px 0px;">
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<param name="nick" value="Anonymous">
<param name="alternatenick" value="Anonymous_??">
<param name="name" value="Boxxer.mooo.com">
<param name="host" value="<?php echo $stream[$pag][0]; ?>">
<param name="gui" value="pixx">
<param name="command1" value="/join #<?php echo $stream[$pag][1]; ?>">

<param name="quitmessage" value=" ">

Then After the Pix Junk...
<param name="pixx:styleselector" value="true">

<param name="pixx:setfontonstyle" value="true">

</applet></div>
<?php } ?>
<div style="float:right;width=1100px">
Connect to An Unlisted Server.
<form action="<?php echo $_SERVER[PHP_SELF]; ?>" method="get">
<input type="hidden" name="chan" value="0" />
<input type="hidden" name="page" value="irc">
Server: <input type="text" name="serverurl" />
<br />Channel: <input type="text" name="channeltojoin">
<br /><input type="submit" value="connect"></form>
Server-Channel
<br /><a href="index.php?page=irc&amp;chan=1">****IRC-QCF</a>
<br /><a href="index.php?page=irc&amp;chan=2">****IRC-****IRC</a>
<br /><a href="index.php?page=irc&amp;chan=3">Rizon-ArmaSystema</a>
<br /><a href="index.php?page=irc&amp;chan=4">Eggheads-QCF</a>
<br /><a href="index.php?page=irc&amp;chan=5">Torrentleech-Torrentleech</a>
<br /><a href="index.php?page=irc&amp;chan=6">Netstable-VGAmp</a>
<br /><a href="index.php?page=irc&amp;chan=7">Gamesurge-RLR</a>
<br /><a href="index.php?page=irc&amp;chan=8">Fuct-7Chan</a>
<br /><a href="index.php?page=irc&amp;chan=9">Quakenet-Incinerators</a></div>
I Did have A Question, but It Turns out That "Command2" doesnt run unless theres a "command1" before it.
Does Anyone Have interesting Scripts they Might Like to Share?

Twey
12-26-2006, 08:40 PM
Nothing that hasn't already been posted on the forum. Not a lot at all, actually. PHP is such an inelegant language in general that I rarely find it worthy of display.

djr33
12-30-2006, 07:07 AM
Not that it's worth posting the code, but check here:
http://thebrb.com/stockpile
http://thebrb.com/theater
http://thebrb.com/contests

It's great, I think. The best part (for me) is the admin side of things... I added pages to my admin control panel (for the forum, so there's already built in security ;)) to control things so it does most of the work dynamically. So nice.

blm126
12-31-2006, 11:36 PM
I've been having fun recently making an SQLite ORM(a new concept to me). Maybe when I finish it it will actually be good for something.