Here is the code
<?php
include("globals.php");
include("includes/inc.private.php");
doDB();
doLicence();
include("config.php");
// get values for 'u' and 's'
$_GET['u'] = makeSafe($_GET['u']);
$_GET['s'] = makeSafe($_GET['s']);
$get_u = makeSafe($_GET['u']);
$get_s = makeSafe($_GET['s']);
// check if 'u' is empty
if($get_u && $get_u[0]<'1'){
echo "Access Denied";
die;
}
// check if 's' is empty
if($get_s && $get_s[0]<'1'){
echo "Access Denied";
die;
}
// if both empty
if(empty($get_u[0]) && empty($get_s[0])){
echo "Access Denied";
die;
}
// if eCredits enabled
if(in_array(strtolower($_SESSION['pro_chatrooms']),$chatroom_admins)){$doAuth = '0';}
elseif(in_array(strtolower($_SESSION['pro_chatrooms']),$chatroom_moderators)){$doAuth = '0';}
elseif(in_array(strtolower($_SESSION['pro_chatrooms']),$chatroom_speakers)){$doAuth = '0';}
else{$doAuth = '1';}
if($eCredits && $doAuth){
if($_SESSION['pro_total_credits']<'1'){
header("Refresh:1;URL=$eCredits_page?noCredits=1");
die;
}
}
// if one2one plugin is installed
if($enable_one2one && file_exists("one2one/secure.php")){
include("one2one/secure.php");
}
if($enable_one2one && file_exists("one2one/streams.php")){
include("one2one/streams.php");
}
doSessionCheck($_SESSION['pro_chatrooms']);
// check if user is blocked
$got_blocked = checkUserBlocked($_GET['u']);
if($got_blocked){
?>
<link rel="stylesheet" type="text/css" href="style.css" />
<body class="body" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<div style="position:absolute;top:25%;left:35%;z-index:99;font-family: Verdana, Arial;font-style: bold;font-size: 12px;color:red;">
<center>
<img src="images/chat.gif">
<br><br><br><br>
<img src="images/block.gif">
<br><br>
<?php echo C_PRIV2;?>
</center>
</div>
<?php
die;
}
// user is not permitted to private message
if($restrict_PM && !isset($_GET['s']) && !in_array(strtolower($_SESSION['pro_chatrooms']),$pm_users)){
?>
<link rel="stylesheet" type="text/css" href="style.css" />
<body class="body" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<div style="position:absolute;top:25%;left:30%;z-index:99;font-family: Verdana, Arial;font-style: bold;font-size: 12px;color:red;">
<center>
<img src="images/chat.gif">
<br><br><br><br>
<img src="images/block.gif">
<br><br>
<?php echo C_PRIV3;?>
</center>
</div>
<?php
die;
}
// request private chat
if($_GET['u']){
$room = requestPrivateChat($_GET['u']);
}
// clear private chat request
if($_GET['s']){
$sender = clearChatRequest($_GET['s'], $_GET['room']);
$room = $_GET['room'];
}
// load private chat window
if($menu_position){
// show bottom
$umenu_width = "20";
}else{
// show left
$umenu_width = "70";
}
?>
<html>
<title>Private Chat</title>
<META content="noindex, nofollow" name=ROBOTS>
<FRAMESET border=0 rows="45,100%">
<FRAME SRC="private_top.php?p_chat=1" NAME="privatetop" scrolling=no />
<FRAMESET border="0" name=index cols="<?php echo $umenu_width;?>,100%">
<FRAME SRC="menu.php" NAME="umenu" scrolling=no >
<FRAME SRC="main.php?room=<?php echo $room;?>&u=<?php echo $_GET['u'];?>&sender=<?php echo $sender?>&s=<?php echo $_GET['s'];?>" NAME="main" scrolling=no >
</FRAMESET>
</FRAMESET>
<NOFRAMES><?php echo C_PRIV1;?></NOFRAMES>
<script language="javascript">
<!--
if (window.focus) {window.focus();}
//-->
</script>
<body>
</body>
</html>
It calls for main.php that is the chat windows and the banners. But the banners are messed up in the private cause the window is smaller I need them off the private chat window and be able to add more to the private that are smaller. Thanks and please help with this it would be greatly appreciated.....