Location: PHPKode > projects > Oocommon php engine > ooim/pub/ooim_delbud.php
<?php
include ("oocommon.php");
$s = new session;
$p = new html4page;
$t = new sched;
$r = new requestvariables;
$p->stylesheet="style.css";
$p->writeln("<h1>ooIm 0.1B</h1><hr />");
if ($s->sess[sid] =="") { die ("Session Error"); }
if ($r->username =="" )
{
	$p->writeln("<form method = \"post\" action = \"ooim_delbud.php\">Username : <input type=\"text\" name = \"username\"> <input type=\"submit\" value=\"Add\"></form>");
} else  {

	if ($s->delbuddy($r->username))
	{
	$p->writeln("User ".$r->username. " deleted from  buddy list");
	} else {
	$p->writeln("User ".$r->username. " doesnt exist");
	}
	$p->addlink("ooim_main.php","[Return to Main Page]");

}
$p->output();
Return current item: Oocommon php engine