CMS13 Setup

\n"; $setupdetails .= "\n"; $setupdetails .= "on\n".$_POST['subfolder']."\n"; $setupdetails .= ""; $fp = fopen ($setupfile ,'a'); fwrite ($fp, $setupdetails); fclose ($fp); echo "

Setup file created.

Click here to go to your site.

"; } else { echo "

This site is already set up. If you would like to redo the setup procedure, you'll have to wait until I've programmed that bit.

"; } } elseif ( $_POST['stage']=="1" && $_POST['name']!="" && $_POST['email']!="" && $_POST['username']!="" && $_POST['pass']!="" && $_POST['confpass']!="" && $_POST['pass'] == $_POST['confpass'] ) { $pass_size = strlen($_POST['pass']); while ($n < $pass_size){ $passdots .= "•"; $n++; } echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Subfolder".$_POST['subfolder']."
Document root".$_POST['document_root']."
Your name".$_POST['name']."
Your email".$_POST['email']."
Username".$_POST['username']."
Password".$passdots."
"; echo ""; echo "
"; echo ""; } else{ # do the showing and choosing... if ($_POST['stage']=="1") { echo "

There was a problem with your details. Please check them and try again.

"; } echo '

Please enter the following details:

'; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
This field should be filled in automatically. If it isn't, you may need to have a cup of tea and a bit of a rest.
If the site is located in a subfolder (ie. www.yoursite.org/subfolder), you should enter the name here.

The folder name should be preceded by a slash (ie. /subfolder). If there is no subfolder, simply leave this field empty.

It is vitally important that you get this subfolder field correct, or the site will not work.

Please enter the name of the site's main editor.
Your email address will be used to send confirmations of password changes, and so on.
Short username, for login purposes.
Please choose a memorable password.
To be certain, enter it again.
"; } ?>