41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
/* $Id: poll.php 59 2009-02-13 03:25:54Z john $ */
|
|
|
|
$page = "general";
|
|
include "header.php";
|
|
if($user->user_info["user_id"]==0){header("Location: login.php");exit;}
|
|
|
|
function general()
|
|
{global $database;
|
|
?>
|
|
<form method="post" action="createchatroom.php">
|
|
Name:<br /><input type="text" name="name" /><br />
|
|
Description:<br /><input type="text" name="desc" /><br />
|
|
Password (leave blank for none):<br /><input type="text" name="password" /><br />
|
|
User Limit:<br /><select name="limit">
|
|
<option>5</option>
|
|
<option>10</option>
|
|
<option>25</option>
|
|
<option>50</option>
|
|
<option>100</option>
|
|
<option selected="selected">200</option>
|
|
</select><br />
|
|
<br />
|
|
<input type="submit" name="submit" value="Create Chatroom" />
|
|
</form>
|
|
<?
|
|
}
|
|
|
|
|
|
|
|
|
|
$smarty->assign('favorites', 1);
|
|
// SMARTY
|
|
$smarty->assign('total_comments', $total_comments);
|
|
$smarty->assign('allowed_to_view', $allowed_to_view);
|
|
$smarty->assign('allowed_to_comment', $allowed_to_comment);
|
|
$smarty->assign('poll_object', $poll_object);
|
|
$smarty->assign('poll_id', $poll_id);
|
|
include "footer.php";
|
|
?>
|