-
Notifications
You must be signed in to change notification settings - Fork 1
/
xoops_version.php
119 lines (110 loc) · 4.14 KB
/
xoops_version.php
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
// $Id: xoops_version.php,v 1.20 2010/01/31 06:04:36 nobu Exp $
$modversion =
array('name' => _MI_REFPAGE_NAME,
'version' => "1.96",
'description' => _MI_REFPAGE_DESC,
'author' => "Nobuhiro Yasutomi ( http://myht.org/ )",
'credits' => "Nobuhiro Yasutomi",
'help' => "help.html",
'license' => "GPL see LICENSE",
'official' => 0,
'image' => "refpage_slogo2.png",
'dirname' => basename(dirname(__FILE__)));
// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin)
// All tables should not have any prefix!
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
//$modversion['sqlfile']['postgresql'] = "sql/pgsql.sql";
// Tables created by sql file (without prefix!)
$modversion['tables'][] = "refpage";
$modversion['tables'][] = "refpage_ref";
$modversion['tables'][] = "refpage_log";
// OnUpdate - upgrade DATABASE
$modversion['onInstall'] = "oninstall.php";
#$modversion['onUpdate'] = "onupdate.php";
// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/help.php";
$modversion['adminmenu'] = "admin/menu.php";
// Templates
$modversion['templates'][] =
array('file' => 'refpage_index.html', 'description' => _MI_RP_INDEX_TPL);
$modversion['templates'][] =
array('file' => 'refpage_referer.html', 'description' => _MI_RP_REFERER_TPL);
//Blocks
$modversion['blocks'][1] =
array('file' => "refpage.php",
'name' => _MI_REFPAGE_BNAME,
'description' => "Logging refpage and show it",
'show_func' => "b_refpage_log_show",
'edit_func' => "b_refpage_log_edit",
'template' => "refpage_block_menu.html",
// Show Referer|Lists|Strict Check
'options' => "10|18");
// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][] = array('name' => _MI_REFPAGE_SMENU1,
'url' => "index.php?id=0");
// Config
$modversion['hasconfig'] = 1;
$modversion['config'][]=array('name' => 'exclude',
'title' => '_MI_RPCF_EXCLUDE',
'description' => '_MI_RPCF_EXCLUDE_DESC',
'formtype' => 'textarea',
'valuetype' => 'string',
'default' => _MI_RPCF_EXCLUDE_DEF);
$modversion['config'][]=array('name' => 'include',
'title' => '_MI_RPCF_INCLUDE',
'description' => '_MI_RPCF_INCLUDE_DESC',
'formtype' => 'textarea',
'valuetype' => 'string',
'default' => _MI_RPCF_INCLUDE_DEF);
$modversion['config'][]=array('name' => 'auto_check',
'title' => '_MI_RPCF_AUTOCHECK',
'description' => '_MI_RPCF_AUTOCHECK_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1);
$modversion['config'][]=array('name' => 'block_show',
'title' => '_MI_RPCF_BLOCKSHOW',
'description' => '_MI_RPCF_BLOCKSHOW_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1);
$modversion['config'][]=array('name' => 'list_max',
'title' => '_MI_RPCF_LISTMAX',
'description' => '_MI_RPCF_LISTMAX_DESC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => 25);
$modversion['config'][]=array('name' => 'title_len',
'title' => '_MI_RPCF_TITLELEN',
'description' => '_MI_RPCF_TITLELEN_DESC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => 60);
$modversion['config'][]=array('name' => 'ctext_len',
'title' => '_MI_RPCF_CTEXTLEN',
'description' => '_MI_RPCF_CTEXTLEN_DESC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => 200);
$modversion['config'][]=array('name' => 'ctext_len',
'title' => '_MI_RPCF_CTEXTLEN',
'description' => '_MI_RPCF_CTEXTLEN_DESC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => 200);
$modversion['config'][]=array('name' => 'expire',
'title' => '_MI_RPCF_EXPIREDAY',
'description' => '_MI_RPCF_EXPIREDAY_DESC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => 30);
$modversion['config'][]=array('name' => 'threshold',
'title' => '_MI_RPCF_THRESHOLD',
'description' => '_MI_RPCF_THRESHOLD_DESC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => 2);
?>