PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
  Classes of Martin Latter  >  PHP Secure Chat  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Secure Chat
Chat box between users using encrypted messages
Author: By
Last change: revise install.php comments
fix typos in index.php
Date: 4 months ago
Size: 1,535 bytes
 

 

Contents

Class file image Download
<?php

require('classes/cchat.class.php');

date_default_timezone_set('Europe/London');

?><!DOCTYPE html>

<html lang="en">

    <head>
        <title>CChat</title>
        <meta charset="iso-8859-1">
        <meta name="description" content="CChat ~ Cryptochat">
        <meta name="author" content="Martin Latter">
        <meta name="copyright" content="&copy; 2010-<?php echo date('Y'); ?> Martin Latter">

        <link type="text/css" href="css/cchat.css" rel="stylesheet" media="all">

        <script type="text/javascript" src="js/cchat.js"></script>
        <script type="text/javascript" src="js/bf.js"></script>
    </head>

    <body>

        <div id="chatboxcontainer">

            <noscript>
                <p>Browser JavaScript must be enabled for CChat to operate.</p>
            </noscript>

            <div id="title">CryptoChat</div>
            <div id="chatbox" class="curved">

            <?php
               
echo Chatbox::outputMessages();
           
?>

            </div>

            <div id="chatboxinput">
                <input type="text" id="name" name="name" maxlength="15" placeholder="name" class="curved">
                <input type="password" id="pw" maxlength="30" placeholder="password" class="curved">
                <textarea id="message" name="message" maxlength="255" cols="26" rows="7" placeholder="message" class="curved"></textarea>
                <div id="remcharcontainer"><span id="remchar">255</span> chars remaining</div>
                <div>
                    <input type="button" id="chatsubmit" value="chat" class="curved">
                    <input type="button" id="decrypt" value="decrypt" class="curved">
                </div>
                <div id="error"></div>
            </div>

            <div id="debug"></div>

        </div>

    </body>

</html>