-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.php
More file actions
82 lines (61 loc) · 2.12 KB
/
install.php
File metadata and controls
82 lines (61 loc) · 2.12 KB
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
<?php
/**
* Copyright (c) 2012, Sergey Kambalin
* All rights reserved.
* ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/
* and is licensed under Oxwall Store Commercial License.
* Full text of this license can be found at http://www.oxwall.org/store/oscl
*/
try
{
OW::getPluginManager()->addPluginSettingsRouteName('hint', 'hint-configuration');
}
catch ( Exception $e )
{
// Log
}
OW::getConfig()->addConfig("hint", "admin_notified", 0);
// Users
OW::getConfig()->addConfig("hint", "info_user_line0", json_encode(array(
"key" => "base-activity",
"question" => null
)));
OW::getConfig()->addConfig("hint", "info_user_line1", json_encode(array(
"key" => "base-gender-age",
"question" => null
)));
OW::getConfig()->addConfig("hint", "info_user_line2", json_encode(array(
"key" => "friends-list",
"question" => null
)));
// Groups
OW::getConfig()->addConfig("hint", "info_group_line0", json_encode(array(
"key" => "group-access",
"question" => null
)));
OW::getConfig()->addConfig("hint", "info_group_line1", json_encode(array(
"key" => "group-created-admin",
"question" => null
)));
OW::getConfig()->addConfig("hint", "info_group_line2", json_encode(array(
"key" => "group-users",
"question" => null
)));
// Events
OW::getConfig()->addConfig("hint", "ehintType", "date");
OW::getConfig()->addConfig("hint", "info_event_line0", json_encode(array(
"key" => "event-location",
"question" => null
)));
OW::getConfig()->addConfig("hint", "info_event_line1", json_encode(array(
"key" => "event-access-creator",
"question" => null
)));
OW::getConfig()->addConfig("hint", "info_event_line2", json_encode(array(
"key" => "event-desc",
"question" => null
)));
OW::getConfig()->addConfig("hint", "option-user-view-newWindow", true);
OW::getConfig()->addConfig("hint", "option-group-group-view-newWindow", true);
OW::getConfig()->addConfig("hint", "option-event-event-view-newWindow", true);
OW::getLanguage()->importPluginLangs(OW::getPluginManager()->getPlugin('hint')->getRootDir() . 'langs.zip', 'hint');