-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathteamspeak3_setup.php
46 lines (39 loc) · 1.19 KB
/
teamspeak3_setup.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
<?php
/*
* TeamSpeak 3 - an e107 plugin by Tijn Kuyper
*
* Copyright (C) 2015-2017 Tijn Kuyper (http://www.tijnkuyper.nl)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
class teamspeak3_setup
{
function install_pre($var)
{
// print_a($var);
$mes = eMessage::getInstance();
// $mes->add("custom install 'pre' function.", E_MESSAGE_SUCCESS);
}
function install_post($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
// $mes->add("custom install 'post' function.", E_MESSAGE_SUCCESS);
}
function uninstall_pre($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
// $mes->add("custom uninstall 'pre' function.", E_MESSAGE_SUCCESS);
}
// IMPORTANT : This function below is for modifying the CONTENT of the tables only, NOT the table-structure.
// To Modify the table-structure, simply modify your {plugin}_sql.php file and an update will be detected automatically.
/*
* @var $needed - true when only a check for a required update is being performed.
* Return: Reason the upgrade is required, otherwise set it to return FALSE.
*/
function upgrade_post($needed)
{
}
}