1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
global $gBitInstaller;
$tables = array(
'rss_modules' => "
rss_id I4 AUTO PRIMARY,
name C(30) NOTNULL,
description X,
url C(255) NOTNULL,
refresh I4,
last_updated I8,
show_title C(1) DEFAULT 'n',
show_pub_date C(1) DEFAULT 'n',
content X
",
'rss_feeds' => "
name C(30) NOTNULL,
rss_ver C(1) NOTNULL DEFAULT '1',
refresh I4 DEFAULT '300',
last_updated I8,
rss_cache B
"
);
foreach( array_keys( $tables ) AS $tableName ) {
$gBitInstaller->registerSchemaTable( RSS_PKG_NAME, $tableName, $tables[$tableName] );
}
$gBitInstaller->registerPackageInfo( RSS_PKG_NAME, array(
'description' => "Resource Description Framework (RDF) Site Summary (RSS) is a lightweight multipurpose extensible metadata description and syndication format. It allows users to read healines from your site with a dedicated RSS reader.",
'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>',
) );
// ### Default Preferences
$gBitInstaller->registerPreferences( RSS_PKG_NAME, array(
array( RSS_PKG_NAME, 'rssfeed_cache_time', 3600 ),
));
?>
|