Commit ec5b34c0 authored by rossta's avatar rossta

Fixed trita reported error

parent 54d77f4f
......@@ -38,13 +38,13 @@ global $userlib, $smarty;
// Process user array
$added = 0;
foreach ($userrecs as $u) {
if (@!$u['login']) {
if (empty($u['login'])) {
$discarded[] = discardUser($u,tra("User login is required"));
}
elseif (@!$u['password']) {
elseif (empty($u['password'])) {
$discarded[] = discardUser($u,tra("Password is required"));
}
elseif (@!$u['email']) {
elseif (empty($u['email'])) {
$discarded[] = discardUser($u,tra("Email is required"));
}
elseif ($userlib->user_exists($u['login']) and (!$_REQUEST['overwrite'])) {
......
......@@ -26,7 +26,7 @@ if(!isset($_SESSION["lastMessage"])) {
$lastMessage = $_SESSION["lastMessage"];
}
if(!$lastMessage) $lastMessage=0;
print('<head>');
print('<html><head>');
//prune_users();
//update_channel_ratio($channelId);
if(isset($_REQUEST["channelId"])) {
......@@ -72,14 +72,13 @@ if(count($messages)>0) {
print("</script>");
}
print('</head>');
?>
</head>
<?php
print('<body onLoad="window.setInterval(\'location.reload()\','.$refresh.');">');
if(isset($com)) {
//print_r($messages);
//print(htmlentities($com));
}
print('</body></html>');
?>
</body>
<?php # $Header: /cvsroot/tikiwiki/tiki/tiki-chat_users.php,v 1.3 2003-03-21 18:55:20 lrargerich Exp $
<?php # $Header: /cvsroot/tikiwiki/tiki/tiki-chat_users.php,v 1.4 2003-08-06 15:25:19 rossta Exp $
require_once("tiki-setup.php");
include_once('lib/chat/chatlib.php');
......@@ -15,12 +15,16 @@ print('<link rel="StyleSheet" href="styles/'.$style.'" type="text/css" />');
if(isset($_REQUEST["channelId"])) {
$chatusers = $chatlib->get_chat_users($_REQUEST["channelId"]);
foreach($chatusers as $achatuser) {
print("<tr><td valign='top' class='chatchannels'>");
print($achatuser["nickname"]);
print("</td></tr>");
?>
<tr>
<td valign='top' class='chatchannels'>
<?php echo $achatuser["nickname"] ?>
</td>
/tr>
<?
}
}
?>
</td></tr>
</table>
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment