forked from taskfreak/tfwp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
51 lines (39 loc) · 1.61 KB
/
index.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
<?php
/*
Plugin Name: TaskFreak Free
Plugin URI: http://www.taskfreak.com
Description: Task Management made easy
Version: 1.0.18
Author: Tirzen
Author URI: http://www.tirzen.com
License: GPL2
Copyright 2013 Tirzen SARL (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
define('TFK_ROOT_FILE', __FILE__);
define('TFK_ROOT_PATH', plugin_dir_path(__FILE__));
define('TZN_PROJECT_PREFIX', 'tfk');
load_plugin_textdomain('taskfreak', false, basename(dirname( __FILE__ )).'/languages');
include TFK_ROOT_PATH.'inc/install.php';
include TFK_ROOT_PATH.'inc/classes/models.php';
include TFK_ROOT_PATH.'inc/classes/tools.php';
include TFK_ROOT_PATH.'inc/classes/controller.php';
include TFK_ROOT_PATH.'inc/models/log.php';
include TFK_ROOT_PATH.'inc/models/user.php';
include TFK_ROOT_PATH.'inc/models/project.php';
include TFK_ROOT_PATH.'inc/models/item.php';
// add_action('plugins_loaded', 'tfk_loaded_init');
if (is_admin()) {
include TFK_ROOT_PATH.'inc/controllers/admin.php';
} else {
include TFK_ROOT_PATH.'inc/controllers/front.php';
}