-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.php
More file actions
47 lines (38 loc) · 2.06 KB
/
init.php
File metadata and controls
47 lines (38 loc) · 2.06 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
<?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
*/
OW::getRouter()->addRoute(new OW_Route('hint-configuration', 'admin/plugins/hint', 'HINT_CTRL_Admin', 'index'));
OW::getRouter()->addRoute(new OW_Route('hint-configuration-user', 'admin/plugins/hint/user', 'HINT_CTRL_Admin', 'user'));
OW::getRouter()->addRoute(new OW_Route('hint-configuration-group', 'admin/plugins/hint/group', 'HINT_CTRL_Admin', 'group'));
OW::getRouter()->addRoute(new OW_Route('hint-configuration-event', 'admin/plugins/hint/event', 'HINT_CTRL_Admin', 'event'));
HINT_CLASS_ParseManager::getInstance()->init();
HINT_CLASS_GroupsBridge::getInstance()->init();
HINT_CLASS_EventsBridge::getInstance()->init();
HINT_CLASS_FriendsBridge::getInstance()->init();
HINT_CLASS_NewsfeedBridge::getInstance()->init();
HINT_CLASS_BaseBridge::getInstance()->init();
HINT_CLASS_GiftBridge::getInstance()->init();
HINT_CLASS_McomposeBridge::getInstance()->init();
HINT_CLASS_UheaderBridge::getInstance()->init();
HINT_CLASS_UserCreditsBridge::getInstance()->init();
HINT_CLASS_PhotoBridge::getInstance()->init();
HINT_CLASS_VideoBridge::getInstance()->init();
HINT_CLASS_GheaderBridge::getInstance()->init();
function hint_add_admin_notification( BASE_CLASS_EventCollector $e )
{
if ( HINT_BOL_Service::getInstance()->getConfig("admin_notified") )
{
return;
}
$pluginTitle = OW::getPluginManager()->getPlugin("hint")->getDto()->title;
$pluginUrl = OW::getRouter()->urlForRoute('hint-configuration');
$pluginEmbed = '<a href="' . $pluginUrl . '">' . $pluginTitle . '</a>';
$language = OW::getLanguage();
$e->add($language->text('hint', 'admin_notification', array('plugin' => $pluginEmbed, "settingsUrl" => $pluginUrl)));
}
OW::getEventManager()->bind('admin.add_admin_notification', 'hint_add_admin_notification');