View file main.php

File size: 3.48Kb
<?php if($style=="") { $style = "style/style.css"; } include('head.php'); if(isset($_SESSION["userName"])){


if(file_exists("user_settings/".$_SESSION["userName"].".php")){echo '';}else{
$file=file_get_contents("style/style.css"); $f=@fopen("user_settings/".$_SESSION["userName"].".php","w+"); @fwrite($f,'<?php $style="'.$file.'"; ?>'); @fclose($f); @chmod("user_settings/".$_SESSION["userName"].".php",0777); }
if(file_exists("prof/".$_SESSION["userName"].".php")){echo '';}else{$f=fopen("prof/".$_SESSION["userName"].".php","a+"); fwrite($f,""); fclose($f); chmod("prof/".$_SESSION["userName"].".php",0777); }
include "user_settings/".$_SESSION["userName"].".php";
echo '<center><img src="img/mail.gif"/><img src="img/chat.gif"/><img src="img/mail.gif"/><img src="img/chat.gif"/><img src="img/mail.gif"/><br/><b>Welcome '.$_SESSION["userName"].'!</b><br/><a href="smileys.php">Smiley tags</a>';
echo "<br/><center><b>Shout Box</b>"; include "shout.dat"; echo "<br/><a href=\"shout.php\">Shout!</a>/<a href=\"shouthistory.php\">History..</a></center><br/>
<hr width=\"70%\"></hr><br /><a href=\"pm.php\">Send Popup Pm</a><br /><a href=\"eprof.php\">My Profile</a><br /><hr width=\"72%\"><br /><img src=\"img/fun.png\"/><br/><a href=\"fun.php\">Fun</a><br/>
<br/><hr width=\"100%\"></hr></center>";
echo '<center><br/><img src="img/users.gif"/><br/><b>Chat Rooms</b><br />
</center><center><img src="img/chat.gif"/><a href="chat.php?room=1&page=1">Meet New Friends</a>['; include '1.txt'; echo ']<br/>
<img src="img/chat.gif"/><a href="chat.php?room=2&page=1">Singles</a>['; include '2.txt'; echo ']<br/></center><hr width="70%"></hr><center><br/>
<img src="img/chat.gif"/><a href="chat.php?room=3&page=1">Spam Room</a>['; include '3.txt'; echo ']<br/>
<img src="img/chat.gif"/><a href="chat.php?room=4&page=1">Flirt Room</a>['; include '4.txt'; echo ']<br/></center><hr width="74%"></hr><center><br/>
<img src="img/chat.gif"/><a href="chat.php?room=5&page=1">Rap Off Room</a>['; include '5.txt'; echo ']<br/></center><hr width="76%"></hr><center></center>';

echo '<center><br/><img src="img/profile.gif"/><a href="settings.php">My Settings</a><br/>Change profile looks, enable/disable popups etc...<br/>
<img src="img/mail.gif"/><a href="private.php">Private Box</a><br/>View my inbox<br/>
<img src="img/gallery.png"/><a href="gallery.php">Photo Gallery</a><br/>Upload your photo(s) here
<br/><hr width="20%"></hr><br/><img src="img/online.png"/><br/>'; include 'online.php'; echo '<br/><a href="logout.php">Log Out</a><br/>['.$_SESSION["userName"].']</center>';
echo '<center>'; if($_SESSION["userName"]==$admin) { echo 'Hello admin, thank you for using kevchat script :)<br/>'; } else { echo 'Hello, please report any errors you get to '.$admin.'<br/>'; }
echo '<a href="foot.php?change">Change Style</a><br/><hr width="100%"></hr><br /></center>'; exit(); }
else if($_SESSION["userName"]=="") { echo '<center><img src="img/chat.gif"/><img src="img/mail.gif"/><img src="img/chat.gif"/><img src="img/mail.gif"/><img src="img/chat.gif"/><br/>
'.$greetings.'<br/>
<br/>
<img src="img/log.gif"/><a href="login.php">Login!</a><br/><img src="img/clubs.png"/><a href="register.php">Register!</a><br/><br/><b><font color=\"black\">Chat Features</font></b><br/><br/><li>Adictive Chat Rooms!</li>
<br/><li>Awesome Smileys!</li><br/>
<li>Make profiles with designs!</li><br/><li>Send popups to everyone!</li><br/><li>View everyone~s profiles!</li><br/><li>Browse with different styles!</li><br/>'; include 'online.php'; echo '</center>';
} include('foot.php'); ?>