-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtinymce5_setup.php
71 lines (50 loc) · 1.03 KB
/
tinymce5_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
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
<?php
/*
* e107 website system
*
* Copyright (c) 2008-2009 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Custom tinymce5 install/uninstall/update routines
**
*/
if (!defined('e107_INIT')) { exit; }
class tinymce5_setup
{
function upgrade_required()
{
$list = e107::getConfig()->get('e_meta_list');
if(!empty($list) && in_array('tinymce5',$list))
{
return true;
}
if(file_exists(e_PLUGIN."tinymce5/e_meta.php")) // Outdated file.
{
e107::getMessage()->addInfo("Please delete the outdated file <b>".e_PLUGIN."tinymce5/e_meta.php</b> and then run the updating process.");
// print_a(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,8));
return true;
}
return false;
}
/*
function install_pre($var)
{
}
function install_post($var)
{
}
function uninstall_options()
{
}
function uninstall_post($var)
{
}
function upgrade_pre($var)
{
}
function upgrade_post($var)
{
}
*/
}