This repository was archived by the owner on Feb 28, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmailbox_setup.php
More file actions
59 lines (43 loc) · 1.29 KB
/
mailbox_setup.php
File metadata and controls
59 lines (43 loc) · 1.29 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
<?php
/*
* Mailbox
*
* Copyright (C) 2021 - Tijn Kuyper (Moc)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
class mailbox_setup
{
function install_pre($var)
{
}
/**
* Installs example data after tables have been created
*/
function install_post($var)
{
$sql = e107::getDb();
$mes = e107::getMessage();
// Currencies
$example_messages = "
INSERT INTO
`e107_mailbox_messages` (`message_id`, `message_from`, `message_to`, `message_draft`, `message_sent`, `message_read`, `message_subject`, `message_text`, `message_from_starred`, `message_to_starred`, `message_from_deleted`, `message_to_deleted`, `message_attachments`)
VALUES
(1, 1, '1', 1550838115, 0, 0, 'Test draft ', '[html]<p>test draft </p>[/html]', 0, 0, 0, 0, ''),
(2, 2, '1', 0, 1488722400, 1551363961, 'It\'s just a test! :)', '[html]<p>Hi there!</p><p>Just checking in :)</p>[/html]', 0, 1, 0, 0, '1'),
(3, 1, '2,3,4', 1551201943, 0, 0, 'test multiple', '', 0, 0, 0, 0, '');
";
$status = ($sql->gen($example_messages)) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR;
$mes->add("Adding example messages", $status);
}
function uninstall_options()
{
}
function uninstall_post($var)
{
}
function upgrade_post($var)
{
}
}