Estás usando register_globals on en tu servidor? estás accediendo a todas las variables directamente, y en general no se puede hace eso... Corrijo el código
Código PHP:
<?
$user=$_POST['user'];
$file=$_SERVER['REMOTE_ADDR'].".txt";
$data2="&user=");
$data="&estado=true");
$jh = fopen($file,"w");
fwrite($jh,$data2);
fwrite($jh,$user);
fwrite($jh,$data);
fclose($jh);
echo "&ver=Logueado como ". $_POST['user'] . "&";
?>
Para el logout:
<?php
$file=$_SERVER['REMOTE_ADDR']."txt";
unlink($file);
?>
Para crear el user:
<?php
$archivo= $_POST['archivo'];
$country=$_POST['pais'];
$local=$_POST['localidad'];
$name = $_POST['nombre'];
$user=$_POST['usuario'];
$pass=$_POST['clave'];
$em=$_POST['mail'];
$wb=$_POST['web'];
$data="<br>";
$file= fopen($archivo,"w");
fwrite($file,("&user="));
fwrite($file,($user));
fwrite($file,("&country="));
fwrite($file,($country));
fwrite($file,("&local="));
fwrite($file,($local));
fwrite($file,("&pass="));
fwrite($file,($pass));
fwrite($file,("&em="));
fwrite($file,($em));
fwrite($file,("&wb="));
fwrite($file,($wb));
fwrite($file,("&name="));
fwrite($file,($name));
fclose($file);
echo"&ver=El Usuario Se Creo Correctamente.&";
?>
Para Borrarlos:
<?php
$archivo=$_POST['arcihvo']; //typo acá?
unlink($archivo);
echo "&El usuario fue eliminado correctamente.&";
?>
Para las Modificaciones:
<?php
$country=$_POST['pais'];
$local=$_POST['localidad'];
$pass=$_POST['clave'];
$em=$_POST['mail'];
$wb=$_POST['web'];
$name=$_POST['nombre'];
$file = fopen($archivo,"w");
fwrite($file,("&user="));
fwrite($file,($user));
fwrite($file,("&country="));
fwrite($file,($country));
fwrite($file,("&local="));
fwrite($file,($local));
fwrite($file,("&pass="));
fwrite($file,($pass));
fwrite($file,("&em="));
fwrite($file,($em));
fwrite($file,("&wb="));
fwrite($file,($wb));
fwrite($file,("&name="));
fwrite($file,($name));
fclose($file);
echo "&ver=El Usuario Se Modifico Correctamente.&";
?>