First things first, please specify the exact nature of your problem in the subject, rather than 'me needs help'
now, onto your code:
I'm assuming '$harsss' is defined/populated in the included 'head.php'
Here's a problem on lines 11 and 12
You have the opning bracket show twice for an if statement:
if ($type==1) {
{
You do it again on lines 53 and 54:
if (($type==2) && ($userexfile)) {
{
You also have your 'echo' statements set up incorrect:
wrong: echo ("werds");
right: echo "werds";
Throughout your code, the spacing is all over the place.
You seen o switch randomly between spaces and tabs.
Try and be more consistant with the layout of your code.
This is a decent size script and I don't see any comments.
If you come back to this script in 6 months, you'll have no idea whats going on - leave notes for yourself so you can come back and work with this file easily.
I have taken the liberty of cleaning up your code a little bit, but it's not done yet.
Take the time to keep your code clean, and it will pay off tenfold in the long run.
-=Lazzerous=-