include("config.php"); ?>
$avatarName = $_POST[avatarName];
//$ssd = file_get_contents("$database/habbos/$avatarName/pass.txt");
//echo "$ssd";
$style = $_POST[figure];
//echo "$style";
?>
$gender = $_POST[gender];
//echo "$gender";
?>
$lang = $_POST[lang];
//echo "$lang";
?>
$day = $_POST[day];
//echo "$day";
?>
$month = $_POST[month];
//echo "$month";
?>
$year = $_POST[year];
//echo "$year";
?>
$email = $_POST[email];
//echo "$email";
?>
$password = $_POST[password];
//echo "$password";
?>
$avatarName = $_POST[avatarName];
//echo "$avatarName";
?>
$adv=$_GET[adv];
?>
; url=
$avatarName = $_POST[avatarName];
$habbo = $_POST[avatarName];
$fileas = "$database/habbos/$avatarName/pass.txt";
if (file_exists($fileas)) {
print "register.php?failed_msg=(Username in use)";
} else {
//print "client.php?username=$avatarName&password=$password";
print "login.php";
}
?>">
//Create User
$avatarName = $_POST[avatarName];
$habbo = $_POST[avatarName];
$fileas = "$database/habbos/$avatarName/pass.txt";
if (file_exists($fileas)) {
} else {
$Path = "$database/habbos/".$avatarName;
@mkdir ($Path, 0777);
$Path = "$database/habbos/".$avatarName."/directmail";
@mkdir ($Path, 0777);
}
if (file_exists($fileas)) {
} else {
//Create Files (/directmail/count.txt)
{
$filename = "$database/habbos/".$avatarName."/directmail/count.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/directmail/count.txt)
//Create Files (/sex.txt)
{
$filename = "$database/habbos/".$avatarName."/sex.txt";
}
// hard code the variable from flash
$somecontent = "$gender";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/sex.txt)
//Create Files (/app.txt)
{
$filename = "$database/habbos/".$avatarName."/app.txt";
}
// hard code the variable from flash
$somecontent = "$style";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (directmail/app.txt)
//Create Files (/pass.txt)
{
$filename = "$database/habbos/".$avatarName."/pass.txt";
}
// hard code the variable from flash
$somecontent = "$password";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/pass.txt)
//Create Files (/badgeonoff.txt)
{
$filename = "$database/habbos/".$avatarName."/badgeonoff.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/badgeonoff.txt)
//Create Files (/badges.txt)
{
$filename = "$database/habbos/".$avatarName."/badges.txt";
}
// hard code the variable from flash
$somecontent = ";";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/badges.txt)
//Create Files (/habbobirth.txt)
// hard code the variable from flash
$somecontent = "$datum $uhrzeit";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/habbobirth.txt)
//Create Files (/birth.txt)
// hard code the variable from flash
$somecontent = "$day $month $year";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/birth.txt)
//Create Files (/consolemission.txt)
{
$filename = "$database/habbos/".$avatarName."/consolemission.txt";
}
// hard code the variable from flash
$somecontent = " ";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/consolemission.txt)
//Create Files (/mission.txt)
{
$filename = "$database/habbos/".$avatarName."/mission.txt";
}
// hard code the variable from flash
$somecontent = " ";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/mission.txt)
//Create Files (/credits.txt)
{
$filename = "$database/habbos/".$avatarName."/credits.txt";
}
// hard code the variable from flash
$somecontent = "5555";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/credits.txt)
//Create Files (/curbadge.txt)
{
$filename = "$database/habbos/".$avatarName."/curbadge.txt";
}
// hard code the variable from flash
$somecontent = " ";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/curbadge.txt)
//Create Files (/email.txt)
{
$filename = "$database/habbos/".$avatarName."/email.txt";
}
// hard code the variable from flash
$somecontent = "$email";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/email.txt)
//Create Files (/favourites.txt)
{
$filename = "$database/habbos/".$avatarName."/favourites.txt";
}
// hard code the variable from flash
$somecontent = ";";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/favourites.txt)
//Create Files (/figure.txt)
{
$filename = "$database/habbos/".$avatarName."/figure.txt";
}
// hard code the variable from flash
$somecontent = "ch=s02/53,51,44";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/figure.txt)
//Create Files (/film.txt)
{
$filename = "$database/habbos/".$avatarName."/film.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/film.txt)
//Create Files (/friendlist.txt)
{
$filename = "$database/habbos/".$avatarName."/friendlist.txt";
}
// hard code the variable from flash
$somecontent = "<>";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/friendlist.txt)
//Create Files (/hand.txt)
{
$filename = "$database/habbos/".$avatarName."/hand.txt";
}
// hard code the variable from flash
$somecontent = ";";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/hand.txt)
//Create Files (/hcdays.txt)
{
$filename = "$database/habbos/".$avatarName."/hcdays.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/hcdays.txt)
//Create Files (/inquiries.txt)
{
$filename = "$database/habbos/".$avatarName."/inquiries.txt";
}
// hard code the variable from flash
$somecontent = "";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/inquiries.txt)
//Create Files (/lastonline.txt)
{
$filename = "$database/habbos/".$avatarName."/lastonline.txt";
}
// hard code the variable from flash
$somecontent = "Never";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/lastonline.txt)
//Create Files (/name.txt)
{
$filename = "$database/habbos/".$avatarName."/name.txt";
}
// hard code the variable from flash
$somecontent = "$avatarName";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/name.txt)
//Create Files (/num.txt)
{
$filename = "$database/habbos/".$avatarName."/num.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/num.txt)
//Create Files (/hablog.txt)
{
$filename = "$database/habbos/".$avatarName."/hcupdate.txt";
}
// hard code the variable from flash
$somecontent = "we are using hablog project!";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/hablog.txt)
//Create Files (/periods.txt)
{
$filename = "$database/habbos/".$avatarName."/periods.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/periods.txt)
//Create Files (/poolfigure.txt)
{
$filename = "$database/habbos/".$avatarName."/poolfigure.txt";
}
// hard code the variable from flash
$somecontent = "ch=s02/53,51,44";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/poolfigure.txt)
//Create Files (/rank.txt)
{
$filename = "$database/habbos/".$avatarName."/rank.txt";
}
// hard code the variable from flash
$somecontent = "habbo";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/rank.txt)
//Create Files (/roomlist.txt)
{
$filename = "$database/habbos/".$avatarName."/roomlist.txt";
}
// hard code the variable from flash
$somecontent = "";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/roomlist.txt)
//Create Files (/rooms.txt)
{
$filename = "$database/habbos/".$avatarName."/rooms.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/rooms.txt)
//Create Files (/showexpire.txt)
{
$filename = "$database/habbos/".$avatarName."/showexpire.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/showexpire.txt)
//Create Files (/tickets.txt)
{
$filename = "$database/habbos/".$avatarName."/tickets.txt";
}
// hard code the variable from flash
$somecontent = "0";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tickets.txt)
//Create Files (/tutorial.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial.txt";
}
// hard code the variable from flash
$somecontent = "NO";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial.txt)
//Create Files (/tutorial_1.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_1.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_1.txt)
//Create Files (/tutorial_2.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_2.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_2.txt)
//Create Files (/tutorial_3.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_3.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_3.txt)
//Create Files (/tutorial_4.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_4.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_4.txt)
//Create Files (/tutorial_5.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_5.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_5.txt)
//Create Files (/tutorial_6.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_6.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_6.txt)
//Create Files (/tutorial_7.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_7.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_7.txt)
//Create Files (/tutorial_8.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_8.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_8.txt)
//Create Files (/tutorial_9.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_9.txt";
}
// hard code the variable from flash
$somecontent = "H";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_9.txt)
//Create Files (/tutorial_credits.txt)
{
$filename = "$database/habbos/".$avatarName."/tutorial_credits.txt";
}
// hard code the variable from flash
$somecontent = "1000";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tutorial_credits.txt)
//Create Files (/transactions.txt)
{
$filename = "$database/habbos/".$avatarName."/transactions.txt";
}
// hard code the variable from flash
$somecontent = "";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/transactions.txt)
//Create Files (/tags.txt)
{
$filename = "$database/habbos/".$avatarName."/tags.txt";
}
// hard code the variable from flash
$somecontent = "";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/tags.txt)
//Create Files (/hcupdate.txt)
{
$filename = "$database/habbos/".$avatarName."/hcupdate.txt";
}
// hard code the variable from flash
$somecontent = "";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/hcupdate.txt)
//Create Files (/active.txt)
{
$filename = "$database/habbos/".$avatarName."/hcupdate.txt";
}
// hard code the variable from flash
$somecontent = "";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/active.txt)
//Create Files (/userserver.txt)
{
$filename = "$database/habbos/".$avatarName."/userserver.txt";
}
// hard code the variable from flash
$somecontent = "$lang";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/userserver.txt)
//Create Files (/adv.txt)
{
$filename = "$database/habbos/".$avatarName."/adv.txt";
}
// hard code the variable from flash
$somecontent = "$adv";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/adv.txt)
//Fill out Registry ;]
{
$mysession = getenv( REMOTE_ADDR );
$filename = "$database/logged/$mysession.txt";
}
// hard code the variable from flash
$somecontent = "$avatarName";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Fill out Registry ;]
//Create User
}
?>