<?php include('head.php');
if($_POST["admin"]=="") { echo 'Stuff left blank go back and fill out everything!'; exit(); }
if($_POST["greetings"]=="") { echo 'Stuff left blank go back and fill out everything!'; exit(); }
if($_POST["title"]=="") { echo 'Stuff left blank go back and fill out everything!'; exit(); }
@mkdir('pics', 0777);
@mkdir('prof', 0777);
@mkdir('rooms', 0777);
@mkdir('user_settings', 0777);
@mkdir('user_money', 0777);
@chmod('1.txt',0777);
@chmod('goinstall.php',0777);
@chmod('2.txt',0777);
@chmod('3.txt',0777);
@chmod('4.txt',0777);
@chmod('5.txt',0777);
@chmod('rooms/room1.data',0777);
@chmod('rooms/room2.data',0777);
@chmod('rooms/room3.data',0777);
@chmod('rooms/room4.data',0777);
@chmod('rooms/room5.data',0777);
@chmod('rooms/room1.online',0777);
@chmod('rooms/room2.online',0777);
@chmod('rooms/room3.online',0777);
@chmod('rooms/room4.online',0777);
@chmod('rooms/room5.online',0777);
@chmod('gallery.data',0777);
@chmod('ip.txt',0777);
@chmod('online_list.txt',0777);
@chmod('popup.php',0777);
@chmod('private_text.php',0777);
@chmod('shout.dat',0777);
@chmod('shouthistory.dat',0777);
@chmod('user_data.php',0777);
@chmod('configure.php',0777);
$s = @fopen('configure.php','w+');
fwrite($s,'<?php $greetings = "'.$_POST["greetings"].'"; $title = "'.$_POST["title"].'"; $admin = "'.$_POST["admin"].'"; ?>');
fclose($s); $xxx = @fopen('goinstall.php','w+');
fwrite($xxx,'');
fclose($xxx);
echo '<center>Site is now ready for use. Dont forget to register with the admin name you provided</center>'; include 'foot.php'; ?>