Skip to content

Commit

Permalink
Initial Revision
Browse files Browse the repository at this point in the history
  • Loading branch information
mcurry committed Oct 18, 2008
1 parent 35eae71 commit 93f8485
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
17 changes: 17 additions & 0 deletions chat_app_controller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/*
* CakePHP Ajax Chat
* Copyright (c) 2007 Matt Curry
* www.siteamonth.com
*
* @author mattc <matt@siteamonth.com>
* @version 1.0
* @license MIT
*
*/

class ChatAppController extends AppController {

}

?>
7 changes: 7 additions & 0 deletions chat_app_model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

class ChatAppModel extends AppModel {

}

?>
10 changes: 10 additions & 0 deletions chats.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE TABLE `chats` (
`id` int(10) unsigned NOT NULL auto_increment,
`key` varchar(45) NOT NULL default '',
`handle` varchar(20) NOT NULL default '',
`text` text NOT NULL,
`ip_address` varchar(12) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `KEY_IDX` (`key`)
);
36 changes: 36 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// -----------------------------------------------------------------------------------
//
// CakePHP Ajax Chat v1.2
// by Matt Curry - http://www.siteamonth.com
// 2007-03-20
//
// For more information on this plugin, visit:
// http://www.siteamonth.com/archives/2007/01/30/cakephp-ajax-chat/
//
// Licensed under the MIT License - http://www.opensource.org/licenses/mit-license.php
//
// Copyright (c) 2007 SiteAMonth.com
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in all copies
// or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
//
// -----------------------------------------------------------------------------------

Version 1.2
- Fixed compatibility with CakePHP 1.2.

Version 1.1
- Add the message to the chat window immediately using javascript.

0 comments on commit 93f8485

Please sign in to comment.