<?php
// Load headers
REQUIRE(TEMPLATEPATH."/all_header.tpl.php");
?>
<HTML>
<HEAD>
<SCRIPT type="text/javascript">
function disablePass(){
if(document.newroom.protect[0].checked){
document.newroom.roompassword.disabled=true;
}else{
document.newroom.roompassword.disabled=false;
}
}
<?
REQUIRE(SCRIPTPATH.'/badwords.js.php');
?>
function checkRoomName(){
if(replaceBadWords(document.newroom.roomname.value)!=document.newroom.roomname.value){
return false;
}else{
return true;
}
}
</SCRIPT>
<?=$css?>
</HEAD>
<BODY onload="disablePass(); document.newroom.roomname.focus(); document.newroom.roomname.select();">
<DIV align="center">
<IMG src="<?=IMAGEPATH?>/clearpixel.gif" width="1" height="50" border="0" alt="0">
<TABLE class="dforeground" border="0" cellspacing="1" cellpadding="6">
<FORM name="newroom" action="main.php" method="post" enctype="multipart/form-data">
<INPUT type="hidden" name="session_id" value="<?=$session_id?>">
<INPUT type="hidden" name="include" value="<?=$include?>">
<INPUT type="hidden" name="createroom" value="1">
<INPUT type="hidden" name="admin_manage_rooms" value="<?=$admin_manage_rooms?>">
<INPUT type="hidden" name="old_room_id" value="<?=$old_room_id?>">
<INPUT type="hidden" name="frame" value="main">
<TR valign="center">
<TD class="hforeground" align="center" colspan="2">
<B><?=$lng["createroom"]?></B>
</TD>
</TR>
<?
IF($errortext){
?>
<TR>
<TD class="error" align="left" colspan="2">
<B><I><?=$errortext?></I></B>
</TD>
</TR>
<?
}
?>
<?
IF($session->config->max_roomimage_size){
}
?>
<TR>
<TD class="hforeground" align="center">
<B><?=$lng["protectwithpass"]?>:</B>
</TD>
<TD class="hforeground" align="left">
<INPUT type="radio" name="protect" value="0" <?=$protect_0_checked?> onclick="disablePass();"> <?=$lng["no"]?>
<BR>
<INPUT type="radio" name="protect" value="1" <?=$protect_1_checked?> onclick="disablePass();"> <?=$lng["yes"]?>
</TD>
</TR>
<form action="" method="post">
<TR>
<TD class="hforeground" align="left">
<B><?=$lng["roomname"]?>:</B>
</TD>
<TD class="hforeground" align="left">
<INPUT type="text" class="textinputs" name="roomname" value="<?=$roomname?>" size="20" maxlength="64">
</TD>
</TR>
<TR>
<TD class="hforeground" align="left">
<B>Kamer wachtwoord</B>
</TD>
<TD class="hforeground" align="left">
<INPUT type="password" class="textinputs" name="roompassword" size="12" maxlength="32">
</TD>
</TR>
<TD colspan="2" class="hforeground" align="center">
<INPUT type="submit" class="buttons" value="<?=$lng["createroom"]?>" onclick="return checkRoomName();">
<?
IF(!$admin_manage_rooms){
?>
<INPUT type="button" class="buttons" value="<?=$lng["cancel"]?>" onclick="parent.window.location.href='main.php?include=4&session_id=<?=$session_id?>&room_id=<?=$old_room_id?>'">
<?
}
?>
</TD>
</TR>
</FORM>
</TABLE>
</DIV>
</BODY></HTML>