-
Notifications
You must be signed in to change notification settings - Fork 0
/
tiki-admin_include_features.php
125 lines (119 loc) · 2.96 KB
/
tiki-admin_include_features.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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
// $Header: /cvsroot-fuse/tikiwiki/tiki/tiki-admin_include_features.php,v 1.28.2.24 2006/07/05 15:50:48 toggg Exp $
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
header("location: index.php");
exit;
}
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
$features_toggles = array(
"feature_articles",
"feature_autolinks",
"feature_babelfish",
"feature_babelfish_logo",
"feature_banners",
"feature_banning",
"feature_blogs",
"feature_bot_bar",
"feature_bot_bar_icons",
"feature_bot_bar_debug",
"feature_calendar",
"feature_categories",
"feature_categoryobjects",
"feature_categorypath",
"feature_charts",
"feature_chat",
"feature_comm",
"feature_contact",
"feature_custom_home",
"feature_debug_console",
"feature_directory",
"feature_drawings",
"feature_dynamic_content",
"feature_edit_templates",
"feature_editcss",
"feature_eph",
"feature_events",
"feature_faqs",
"feature_featuredLinks",
"feature_file_galleries",
"feature_forums",
"feature_friends",
"feature_galleries",
"feature_games",
"feature_hotwords",
"feature_hotwords_nw",
"feature_help",
"feature_html_pages",
"feature_integrator",
"feature_intertiki",
"feature_jscalendar",
"feature_live_support",
"feature_mailin",
"feature_maps",
"feature_gmap",
"feature_messages",
"feature_minical",
"feature_mobile",
"feature_modulecontrols",
"feature_newsletters",
"feature_newsreader",
"feature_notepad",
"feature_phplayers",
"feature_phpopentracker",
"feature_polls",
"feature_quizzes",
"feature_referer_stats",
"feature_redirect_on_error",
"feature_score",
"feature_search",
"feature_sheet",
"feature_shoutbox",
"feature_siteidentity",
"feature_smileys",
"feature_stats",
"feature_surveys",
"feature_tabs",
"feature_tasks",
"feature_theme_control",
"feature_top_bar",
"feature_trackers",
"feature_trackbackpings",
"feature_use_quoteplugin",
"feature_userPreferences",
"feature_user_bookmarks",
"feature_user_watches",
"feature_user_watches_translations",
"feature_userfiles",
"feature_usermenu",
"feature_view_tpl",
"feature_webmail",
"feature_wiki",
"feature_workflow",
"feature_xmlrpc",
"layout_section",
"user_assigned_modules",
"feature_multilingual",
"feature_best_language",
"contact_anon"
);
$pref_byref_values = array(
"feature_left_column",
"feature_right_column",
"user_flip_modules"
);
// Process Features form(s)
if (isset($_REQUEST["features"])) {
check_ticket('admin-inc-features');
foreach ($features_toggles as $toggle) {
simple_set_toggle ($toggle);
}
foreach ($pref_byref_values as $britem) {
byref_set_value ($britem);
}
$smarty->clear_compiled_tpl();
}
ask_ticket('admin-inc-features');
?>