Location: PHPKode > scripts > XID Registration/Authorizing System > xid-registrationauthorizing-system/deleuser.php
<?php
require("config.php");
if($adminpw != $cfgAdminPW){echo"$top UnAuthorized $bottom";exit;}
if(!isset($delete))
	{
	echo"
	$top
	<center>
	Are You Sure You Want To Delete The User $un ??
	<form action=deleuser.php method=post>
	<input type=hidden name=delete value=yes>
	<input type=hidden name=user value=$un>
	<input type=hidden name=adminpw value=$adminpw>
	<input type=submit value=\"Yes Delete Now!\">
	</form>
	<form action=deleuser.php method=post>
	<input type=hidden name=delete value=no>
	<input type=hidden name=adminpw value=$adminpw>
	<input type=submit value=\"No Do Not Delete!\">
	</form>
	$bottom";
	exit;
	}
if($delete == 'yes')
	{
	unlink("accounts/XID_$user.php");
	$fn="profiles.lst";
	$f=fopen($fn, "r");
	$data=fread($f,filesize($fn));
	fclose($f);
	$data = str_replace("<tr><td>$user</td><td width=50>&nbsp;</td><td><a href=profile.php?$user>Profile</a></td></tr>", "",$data);

	$f1=fopen($fn,"w");
	fwrite($f1,"$data");
	fclose($f1);
	echo"<meta http-equiv=refresh content=\"0 url=Admin.php?adminpw=$adminpw\">";
	}
if($delete == 'no')
	{
	echo"<meta http-equiv=refresh content=\"0 url=Admin.php?adminpw=$adminpw\">";
	}
?>
Return current item: XID Registration/Authorizing System