-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
105 lines (89 loc) · 3.32 KB
/
plugin.php
File metadata and controls
105 lines (89 loc) · 3.32 KB
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
<?php
/*
+---------------------------------------------------------------+
| Inbox Email - v 2 by Mohamed Anouar Achoukhy
| only for e107 website system
| http://e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
+---------------------------------------------------------------+
*/
include_lan(e_PLUGIN.'contact/languages/'.e_LANGUAGE.'.php');
// Plugin info -------------------------------------------------------------------------------------------------------
$eplug_name = LAN_CONTACT_4;
$eplug_version = "2";
$eplug_author = "Mohamed Anouar Achoukhy";
//$eplug_logo = "button.png";
$eplug_url = "";
$eplug_email = "support@naja7host.com";
$eplug_description = LAN_CONTACT_0;
$eplug_compatible = "v1.0+";
$eplug_readme = "";
$eplug_compliant = TRUE;
//$eplug_status = TRUE;
// Name of the plugin's folder -------------------------------------------------------------------------------------
$eplug_folder = "contact";
// Mane of menu item for plugin ----------------------------------------------------------------------------------
$eplug_menu_name = "contact_menu";
// Name of the admin configuration file --------------------------------------------------------------------------
$eplug_conffile = "admin_config.php"; // use admin_ for all admin files.
// Icon image and caption text ------------------------------------
$eplug_icon = $eplug_folder."/images/contact_32.png";
$eplug_icon_small = $eplug_folder."/images/contact_16.png";
$eplug_caption = LAN_CONTACT_1;
// List of preferences ---------------------------------------
$eplug_prefs = array(
"contact_plugin_enable" => true,
); // this stores a default value in the preferences.
// List of table names -----------------------------------------------------------------------------------------------
$eplug_table_names = array("contact");
// List of sql requests to create tables -----------------------------------------------------------------------------
$eplug_tables = array("
CREATE TABLE ".MPREFIX."contact (
contact_id int(10) unsigned NOT NULL auto_increment,
contact_body text NOT NULL,
contact_author_name varchar(100) NOT NULL default '',
contact_email_send varchar(100) NOT NULL default '',
contact_time varchar(16) NOT NULL default '',
contact_subject varchar(100) NOT NULL default '',
contact_mod tinyint(1) NOT NULL default '0',
PRIMARY KEY (contact_id)
) ENGINE=MyISAM;",
);
// Text to display after plugin successfully installed ------------------------------------------------------------------
$eplug_done = LAN_CONTACT_2;
// upgrading ... //
if(!function_exists("contact_upgrade"))
{
function contact_upgrade()
{
$upgrade_add_prefs = array(
'contact_plugin_enable' => true,
'contact_version' => $eplug_version
);
}
}
if (($pref['plug_installed']['contact']) == "2") {
$upgrade_add_prefs = array(
'contact_plugin_enable' => true,
'contact_version' => $eplug_version
);
$eplug_upgrade_done = LAN_CONTACT_3 . $eplug_version;
}
// $eplug_upgrade_done = LAN_CONTACT_3 . $eplug_version;
if(!function_exists("contact_uninstall"))
{
//Remove prefs entries during uninstall
function contact_uninstall()
{
$upgrade_remove_prefs = array(
'contact_plugin_enable' ,
'contact_caption' ,
'contact_delay',
'contact_mod',
'contact_plugin_enable',
);
}
}
?>