<?php /* Smarty version Smarty-3.1.8, created on 2012-04-23 14:16:53
         compiled from "./templates/chat.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8244753044f8c81ba4fc069-35978648%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd8f6bc80a63a2779462677926f1c73108d15ea71' => 
    array (
      0 => './templates/chat.tpl',
      1 => 1334615441,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8244753044f8c81ba4fc069-35978648',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f8c81ba53cec9_10510484',
  'variables' => 
  array (
    'messages' => 0,
    'message' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f8c81ba53cec9_10510484')) {function content_4f8c81ba53cec9_10510484($_smarty_tpl) {?><!doctype html>
<html>
    <head>
        <title>Forever Alone Chat</title>
        <link type="text/css" rel="stylesheet" href="alone.css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js"></script>
        <script type="text/javascript" src="alone.js"></script>
        <script type="text/x-underscore-template" id="msg_tmpl">
            <div class="message">
                <span class="date"><<?php ?>%- time %<?php ?>></span>
                <span class="user"><<?php ?>%- username %<?php ?>></span>
                <span class="text"><<?php ?>%- message %<?php ?>></span>
            </div>
        </script>
    </head>

    <body>

        <div id="header">Not-So-Alone-Anymore Chat</div>

        <div id="container">
            <div id="history">
            <?php  $_smarty_tpl->tpl_vars['message'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['message']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['messages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['message']->key => $_smarty_tpl->tpl_vars['message']->value){
$_smarty_tpl->tpl_vars['message']->_loop = true;
?>
            <div class="message">
                <span class="date"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['time'], ENT_QUOTES, 'UTF-8', true);?>
</span>
                <span class="user"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['username'], ENT_QUOTES, 'UTF-8', true);?>
</span>
                <span class="text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['message'], ENT_QUOTES, 'UTF-8', true);?>
</span>
            </div>
            <?php } ?>
            </div>

            <div id="textbox">
                <form method="post" action="savemessage.php">
                    <input type="text" id="message" name="message"
                        autocomplete="off" required autofocus />
                    <input type="submit" value="send" />
                    <span id="loading">
                        <img src="loading.gif" style="height: 20px;" />
                    </span>
                </form>
            </div>
        </div>

    </body>

</html>
<?php }} ?>