0
|
1 |
<?php
|
|
2 |
/**!info**
|
|
3 |
{
|
|
4 |
"Plugin Name" : "AjIM 2.0",
|
|
5 |
"Plugin URI" : "http://enanocms.org/plugin/ajim2",
|
|
6 |
"Description" : "An AJAX shoutbox and more - re-implemented for Enano 1.2",
|
|
7 |
"Author" : "Dan Fuhry",
|
|
8 |
"Version" : "1.9.1",
|
|
9 |
"Author URI" : "http://enanocms.org/"
|
|
10 |
}
|
|
11 |
**!*/
|
|
12 |
|
|
13 |
/**!install dbms="mysql"; **
|
|
14 |
CREATE TABLE {{TABLE_PREFIX}}ajim2 (
|
|
15 |
message_id int unsigned NOT NULL auto_increment,
|
|
16 |
user_id mediumint NOT NULL DEFAULT 1,
|
|
17 |
username varchar(20) NOT NULL DEFAULT 'Guest',
|
|
18 |
website varchar(128) NOT NULL DEFAULT '',
|
|
19 |
message text NOT NULL DEFAULT '',
|
|
20 |
message_time int unsigned NOT NULL DEFAULT 0,
|
|
21 |
message_update_time int unsigned NOT NULL DEFAULT 0,
|
|
22 |
PRIMARY KEY ( message_id )
|
|
23 |
);
|
|
24 |
**!*/
|
|
25 |
|
|
26 |
/**!install dbms="postgresql"; **
|
|
27 |
CREATE TABLE {{TABLE_PREFIX}}ajim2 (
|
|
28 |
message_id SERIAL,
|
|
29 |
user_id int NOT NULL DEFAULT 1,
|
|
30 |
username varchar(20) NOT NULL DEFAULT 'Guest',
|
|
31 |
website varchar(128) NOT NULL DEFAULT '',
|
|
32 |
message text NOT NULL DEFAULT '',
|
|
33 |
message_time int NOT NULL DEFAULT 0,
|
|
34 |
message_update_time int NOT NULL DEFAULT 0,
|
|
35 |
PRIMARY KEY ( message_id )
|
|
36 |
);
|
|
37 |
**!*/
|
|
38 |
|
|
39 |
/**!uninstall dbms="mysql"; **
|
|
40 |
DROP TABLE IF EXISTS {{TABLE_PREFIX}}ajim2;
|
|
41 |
**!*/
|
|
42 |
|
|
43 |
/**!uninstall dbms="postgresql"; **
|
|
44 |
DROP TABLE {{TABLE_PREFIX}}ajim2;
|
|
45 |
**!*/
|
|
46 |
|
|
47 |
/**!language**
|
|
48 |
!include "plugins/ajim/language.json"
|
|
49 |
**!*/
|
|
50 |
|
|
51 |
require(ENANO_ROOT . '/plugins/ajim/enanosetup.php');
|
|
52 |
require(ENANO_ROOT . '/plugins/ajim/server.php');
|
|
53 |
require(ENANO_ROOT . '/plugins/ajim/client.php');
|
|
54 |
|