-
Notifications
You must be signed in to change notification settings - Fork 1
/
tiki-admin_include_community.php
executable file
·49 lines (39 loc) · 1.74 KB
/
tiki-admin_include_community.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
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-admin_include_community.php,v 1.5 2007-03-06 19:29:45 sylvieg Exp $
// Copyright (c) 2002-2007, 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.
//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;
}
if (isset($_REQUEST["mouseoverfeatures"])) {
check_ticket('admin-inc-community');
simple_set_toggle("feature_community_mouseover");
simple_set_toggle("feature_community_mouseover_name");
simple_set_toggle("feature_community_mouseover_picture");
simple_set_toggle("feature_community_mouseover_friends");
simple_set_toggle("feature_community_mouseover_score");
simple_set_toggle("feature_community_mouseover_country");
simple_set_toggle("feature_community_mouseover_email");
simple_set_toggle("feature_community_mouseover_lastlogin");
simple_set_toggle("feature_community_mouseover_distance");
}
if (isset($_REQUEST["listfeatures"])) {
check_ticket('admin-inc-community');
simple_set_toggle("feature_community_list_name");
simple_set_toggle("feature_community_list_score");
simple_set_toggle("feature_community_list_country");
simple_set_toggle("feature_community_list_distance");
simple_set_value("user_list_order");
}
/* This is desired future feature
if (isset($_REQUEST["friendshipfeatures"])) {
check_ticket('admin-inc-community');
simple_set_toggle("feature_community_friends_permission");
simple_set_int("feature_community_friends_permission_dep");
}
*/
ask_ticket('admin-inc-community');
?>