PHP Classes

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: reformat index.php
Date: 3 years ago
Size: 1,812 bytes


Class file image Download




?><!DOCTYPE html>

<html lang="en">

        <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 src="js/cchat.js"></script>
        <script src="js/bf.js"></script>


        <div id="chatboxcontainer">

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

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

echo Chatbox::outputMessages();


            <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>
                    <input type="button" id="chatsubmit" value="chat" class="curved">
                    <input type="button" id="decrypt" value="decrypt" class="curved">
                <div id="error"></div>

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