Location: PHPKode > scripts > WH Social > wh_social/talk.php
<?php require('framework/session.php'); ?>
<?php require('framework/ready.php'); ?>
<?php require('style/layout/header.php'); ?>

<div id="content_wrapper">
    <div class="content">

    <?php

        echo '<div class="content_left">
        <div id="breadcrumb">
            <ul class="crumbs">
                <li class="first"><a href="index.php" style="z-index:9;"><span></span>' . $lang['index'] . '</a></li>
                <li><a href="communication.php" style="z-index:8;">' . $lang['to_chat'] . '</a></li>
                <li><a href="talk.php" style="z-index:7;">' . $lang['to_talk'] . '</a></li>
            </ul>
        </div>
        </div>

        <div class="content_right">';

            include('modules/search.inc.php');
        echo '</div>

        <div class="clear_long"></div>';

        $ret = 1;

        echo '<div class="main_menu">';

            $ret = include 'framework/templates/'.$main_content['menu'];
        echo '<div id="line"></div>';

            $ret = include 'framework/templates/'.$main_content['infos'];
        echo '</div>';

        echo '<div class="main_content">';

        if(isset($_GET['logout']) === TRUE) {

            $protocol = fopen("protocol.php", 'a');

            fwrite($protocol, '<div class="msgln">' . htmlentities($_SESSION['name'], ENT_QUOTES) . ' ' . $lang['has_left_the_chat'] . '</div>');
            fclose($protocol);
            }

        echo '<div id="chat_wrapper">
        <div id="chat_menu">
        <p class="welcome">' . $lang['hello'] . ' ' . htmlentities($_SESSION['name'], ENT_QUOTES) . '</p>
        <p class="logout"><a id="exit" href="#"><img src="style/icons/delete.png" border="0" width="16" height="16" alt="' . $lang['exit_chat'] . '"></a></p>';

        echo '<div class="clear"></div>';

        echo '</div>';

        echo '<div id="chatbox">';

        if(file_exists("protocol.php") && filesize("protocol.php") > 0) {

            $handle = fopen("protocol.php", "r");
            $contents = fread($handle, filesize("protocol.php"));

            fclose($handle);

            echo $contents;
            }

        echo '</div>';

        echo '<div class="clear"></div>';

        echo '<form name="message" action="">
        <input type="text" name="usermsg" id="usermsg" size="63">
        <input type="submit" name="submitmsg" id="submitmsg" value="' . $lang['send'] . '" class="buttons">
        </form>
        </div>';

	?>

<?php require('style/layout/footer.php'); ?>
Return current item: WH Social