/**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'Awards', 'code' => 'awards', 'path' => 'awards', 'contact' => '*****@*****.**', 'template_path' => 'plugins/awards/templates/', 'icon' => 'fa fa-list-alt', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('awards_short_desc'), 'long_description' => $this->user->lang('awards_long_desc'), 'homepage' => 'https://eqdkp-plus.eu/', 'manuallink' => 'https://eqdkp-plus.eu/wiki/Plugin:_Awards', 'plus_version' => '2.0', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.0'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('u', 'view', 'Y', $this->user->lang('view'), array(2, 3, 4));
     $this->add_permission('a', 'add', 'N', $this->user->lang('add'), array(2, 3));
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('awards_achievements');
     $this->add_pdh_read_module('awards_assignments');
     $this->add_pdh_read_module('awards_library');
     $this->add_pdh_write_module('awards_achievements');
     $this->add_pdh_write_module('awards_assignments');
     // -- Classes -----------------------------------------
     registry::add_class('awards_plugin', 'plugins/awards/classes/', 'awards');
     // -- Routing -----------------------------------------
     $this->routing->addRoute('Awards', 'awards', 'plugins/awards/pageobjects');
     // -- Hooks -------------------------------------------
     $this->add_hook('portal', 'awards_portal_hook', 'portal');
     $this->add_hook('userprofile_customtabs', 'awards_userprofile_customtabs_hook', 'userprofile_customtabs');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_menu('main', $this->gen_main_menu());
     $this->add_menu('settings', $this->usersettings());
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'Chat', 'code' => 'chat', 'path' => 'chat', 'template_path' => 'plugins/chat/templates/', 'icon' => 'fa-comments', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('chat_short_desc'), 'long_description' => $this->user->lang('chat_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.0', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.0'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('u', 'view', 'Y', $this->user->lang('chat_view'), array(2, 3, 4));
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
     $this->add_permission('a', 'settings', 'N', $this->user->lang('menu_settings'), array(2, 3));
     $this->add_pdh_read_module('chat_online');
     $this->add_pdh_read_module('chat_open_conversations');
     $this->add_pdh_read_module('chat_conversations');
     $this->add_pdh_read_module('chat_messages');
     $this->add_pdh_read_module('chat_conversation_lastvisit');
     $this->add_pdh_write_module('chat_open_conversations');
     $this->add_pdh_write_module('chat_conversations');
     $this->add_pdh_write_module('chat_messages');
     $this->add_pdh_write_module('chat_conversation_lastvisit');
     $this->add_hook('portal', 'chat_portal_hook', 'portal');
     //Routing
     $this->routing->addRoute('Chat', 'chat', 'plugins/chat/page_objects');
     $this->routing->addRoute('ChatHistory', 'chathistory', 'plugins/chat/page_objects');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_menu('main', $this->gen_main_menu());
     //$this->add_menu('settings', $this->usersettings());
 }
 public function __construct()
 {
     parent::__construct();
     //Load Game-Specific Language
     $lang_file = $this->root_path . 'plugins/raidlogimport/language/' . $this->user->lang_name . '/' . $this->config->get('default_game') . '_lang.php';
     if (file_exists($lang_file)) {
         include $lang_file;
         $this->user->objLanguage->add_lang($this->user->lang_name, $lang);
     }
     $this->add_dependency(array('plus_version' => '0.7'));
     $this->add_data(array('name' => 'Raid-Log-Import', 'code' => 'raidlogimport', 'path' => 'raidlogimport', 'contact' => '*****@*****.**', 'template_path' => 'plugins/raidlogimport/templates/', 'version' => $this->version, 'author' => 'Hoofy', 'description' => $this->user->lang('raidlogimport_short_desc'), 'long_description' => $this->user->lang('raidlogimport_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => $this->user->lang_name != 'german' ? false : $this->root_path . 'plugins/raidlogimport/language/' . $this->user->lang_name . '/Manual.pdf', 'icon' => 'fa-book'));
     //permissions
     $this->add_permission('a', 'config', 'N', $this->user->lang('configuration'), array(2, 3));
     $this->add_permission('a', 'dkp', 'N', $this->user->lang('raidlogimport_dkp'), array(2, 3));
     $this->add_permission('a', 'bz', 'N', $this->user->lang('raidlogimport_bz'), array(2, 3));
     //pdh-modules
     $this->add_pdh_read_module('rli_zone');
     $this->add_pdh_read_module('rli_boss');
     $this->add_pdh_read_module('rli_item');
     $this->add_pdh_write_module('rli_zone');
     $this->add_pdh_write_module('rli_boss');
     $this->add_pdh_write_module('rli_item');
     //menu
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_hook('calendarevent_raid_menu', 'rli_calendarevent_raid_menu_hook', 'calendarevent_raid_menu');
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'GuildRequest', 'code' => 'guildrequest', 'path' => 'guildrequest', 'template_path' => 'plugins/guildrequest/templates/', 'icon' => $this->root_path . 'plugins/guildrequest/images/adminmenu/guildrequest.png', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('guildrequest_short_desc'), 'long_description' => $this->user->lang('guildrequest_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '1.0', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '1.0'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('u', 'view', 'Y', $this->user->lang('gr_view'), array(2, 3, 4));
     $this->add_permission('u', 'vote', 'Y', $this->user->lang('gr_vote'), array(2, 3, 4));
     $this->add_permission('u', 'comment_int', 'Y', $this->user->lang('gr_internal_comment'), array(2, 3, 4));
     $this->add_permission('u', 'comment', 'Y', $this->user->lang('gr_comment'), array(1, 2, 3, 4));
     $this->add_permission('u', 'add', 'Y', $this->user->lang('gr_add'), array(1));
     //Guests
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
     $this->add_permission('a', 'form', 'N', $this->user->lang('gr_manage_form'), array(2, 3));
     $this->add_permission('a', 'settings', 'N', $this->user->lang('menu_settings'), array(2, 3));
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('guildrequest_fields');
     $this->add_pdh_read_module('guildrequest_requests');
     $this->add_pdh_read_module('guildrequest_visits');
     $this->add_pdh_write_module('guildrequest_fields');
     $this->add_pdh_write_module('guildrequest_requests');
     $this->add_pdh_write_module('guildrequest_visits');
     // -- Hooks -------------------------------------------
     $this->add_hook('search', 'guildrequest_search_hook', 'search');
     $this->add_hook('portal', 'guildrequest_portal_hook', 'portal');
     // -- Menu --------------------------------------------
     $this->add_menu('admin_menu', $this->gen_admin_menu());
     $this->add_menu('main_menu1', $this->gen_main_menu());
     $this->add_menu('settings', $this->usersettings());
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'Shoutbox', 'code' => 'shoutbox', 'path' => 'shoutbox', 'contact' => '*****@*****.**', 'template_path' => 'plugins/shoutbox/templates/', 'icon' => $this->root_path . 'plugins/shoutbox/images/adminmenu/shoutbox.png', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('sb_short_desc'), 'long_description' => $this->user->lang('sb_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '1.0', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '0.7'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('a', 'delete', 'N', $this->user->lang('delete'), array(2, 3));
     $this->add_permission('u', 'view', 'Y', $this->user->lang('view'), array(1, 2, 3, 4));
     $this->add_permission('u', 'add', 'Y', $this->user->lang('add'), array(2, 3, 4));
     // -- Menu --------------------------------------------
     $this->add_menu('admin_menu', $this->gen_admin_menu());
     // -- Portal Module -----------------------------------
     $this->add_portal_module('shoutbox');
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('shoutbox');
     $this->add_pdh_write_module('shoutbox');
     // -- Exchange Modules --------------------------------
     $this->add_exchange_module('shoutbox_add');
     $this->add_exchange_module('shoutbox_list');
     //$this->add_exchange_module('shoutbox', true, 'shoutbox.xml');
     // -- Hooks -------------------------------------------
     $this->add_hook('search', 'shoutbox_search_hook', 'search');
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'Abbreviations', 'code' => 'abbreviations', 'path' => 'abbreviations', 'template_path' => 'plugins/abbreviations/templates/', 'icon' => 'fa fa-graduation-cap', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('abbreviations_short_desc'), 'long_description' => $this->user->lang('abbreviations_long_desc'), 'homepage' => 'https://eqdkp-plus.eu/', 'plus_version' => '2.2', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.2'));
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_pdh_read_module('abbreviations_mappings');
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'SK Startorder', 'code' => 'sk_startorder', 'path' => 'sk_startorder', 'template_path' => 'plugins/sk_startorder/templates/', 'icon' => 'fa fa-list', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('sk_startorder_short_desc'), 'long_description' => $this->user->lang('sk_startorder_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.1', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.1'));
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
 }
 public function __construct()
 {
     parent::__construct();
     $this->add_dependency(array('plus_version' => '1.0', 'games' => array('wow')));
     $this->add_data(array('name' => 'EPGP-Import', 'code' => 'epgpimport', 'path' => 'epgpimport', 'contact' => 'http://eqdkp-plus.eu', 'template_path' => 'plugins/epgpimport/templates/', 'version' => $this->version, 'author' => 'GodMod', 'description' => $this->user->lang('epgpimport_short_desc'), 'long_description' => $this->user->lang('epgpimport_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => 'http://eqdkp-plus.eu/wiki/', 'icon' => 'fa-fire'));
     //permissions
     $this->add_permission('a', 'import', 'N', $this->user->lang('epgpimport_import'), array(2, 3));
     //menu
     $this->add_menu('admin', $this->gen_admin_menu());
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'ClanWars', 'code' => 'clanwars', 'path' => 'clanwars', 'template_path' => 'plugins/clanwars/templates/', 'icon' => 'fa fa-crosshairs', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('clanwars_short_desc'), 'long_description' => $this->user->lang('clanwars_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.0', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.0'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('u', 'add_fightus', 'Y', $this->user->lang('cw_add_fightus'), array(1, 2, 3, 4));
     //Guests
     $this->add_permission('a', 'manage_games', 'N', $this->user->lang('cw_manage_games'), array(2, 3));
     $this->add_permission('a', 'manage_teams', 'N', $this->user->lang('cw_manage_teams'), array(2, 3));
     $this->add_permission('a', 'manage_clans', 'N', $this->user->lang('cw_manage_clans'), array(2, 3));
     $this->add_permission('a', 'manage_awards', 'N', $this->user->lang('cw_manage_awards'), array(2, 3));
     $this->add_permission('a', 'manage_categories', 'N', $this->user->lang('cw_manage_categories'), array(2, 3));
     $this->add_permission('a', 'manage_wars', 'N', $this->user->lang('cw_manage_wars'), array(2, 3));
     $this->add_permission('a', 'manage_fightus', 'N', $this->user->lang('cw_manage_fightus'), array(2, 3));
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('clanwars_awards');
     $this->add_pdh_read_module('clanwars_categories');
     $this->add_pdh_read_module('clanwars_clans');
     $this->add_pdh_read_module('clanwars_fightus');
     $this->add_pdh_read_module('clanwars_games');
     $this->add_pdh_read_module('clanwars_teams');
     $this->add_pdh_read_module('clanwars_wars');
     $this->add_pdh_write_module('clanwars_awards');
     $this->add_pdh_write_module('clanwars_categories');
     $this->add_pdh_write_module('clanwars_clans');
     $this->add_pdh_write_module('clanwars_fightus');
     $this->add_pdh_write_module('clanwars_games');
     $this->add_pdh_write_module('clanwars_teams');
     $this->add_pdh_write_module('clanwars_wars');
     // -- Hooks -------------------------------------------
     #$this->add_hook('search', 'clanwars_search_hook', 'search');
     $this->add_hook('calendarevent_prefill', 'clanwars_calendarevent_prefill_hook', 'calendarevent_prefill');
     //Routing
     $this->routing->addRoute('Clanwars', 'clanwars', 'plugins/clanwars/pageobjects');
     #$this->routing->addRoute('WriteApplication', 'addrequest', 'plugins/clanwars/page_objects');
     #$this->routing->addRoute('ListApplications', 'listrequests', 'plugins/clanwars/page_objects');
     #$this->routing->addRoute('ViewApplication', 'viewrequest', 'plugins/clanwars/page_objects');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     #$this->add_menu('main', $this->gen_main_menu());
     #$this->add_menu('settings', $this->usersettings());
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'EQdkp SSO', 'code' => 'eqdkp_sso', 'path' => 'eqdkp_sso', 'template_path' => 'plugins/eqdkp_sso/templates/', 'icon' => 'fa-chain', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('eqdkp_sso_short_desc'), 'long_description' => $this->user->lang('eqdkp_sso_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.0', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.0'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2));
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('eqdkp_sso');
     $this->add_pdh_write_module('eqdkp_sso');
     $this->add_hook('user_login_successful', 'sso_user_login_successful_hook', 'user_login_successful');
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'MediaCenter', 'code' => 'mediacenter', 'path' => 'mediacenter', 'template_path' => 'plugins/mediacenter/templates/', 'icon' => 'fa fa-picture-o', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('mediacenter_short_desc'), 'long_description' => $this->user->lang('mediacenter_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.1', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.1'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('u', 'view', 'Y', $this->user->lang('view'), array(2, 3, 4));
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
     $this->add_permission('a', 'settings', 'N', $this->user->lang('menu_settings'), array(2, 3));
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('mediacenter_media');
     $this->add_pdh_read_module('mediacenter_categories');
     $this->add_pdh_read_module('mediacenter_albums');
     $this->add_pdh_write_module('mediacenter_albums');
     $this->add_pdh_write_module('mediacenter_media');
     $this->add_pdh_write_module('mediacenter_categories');
     // -- Hooks -------------------------------------------
     $this->add_hook('portal', 'mediacenter_portal_hook', 'portal');
     $this->add_hook('tinymce_normal_setup', 'mediacenter_tinymce_normal_setup_hook', 'tinymce_normal_setup');
     $this->add_hook('main_menu_items', 'mediacenter_main_menu_items_hook', 'main_menu_items');
     $this->add_hook('article_parse', 'mediacenter_article_parse_hook', 'article_parse');
     $this->add_hook('search', 'mediacenter_search_hook', 'search');
     $this->add_hook('plugin_statistics', 'mediacenter_plugin_statistics_hook', 'plugin_statistics');
     //Routing
     $this->routing->addRoute('AddAlbum', 'editalbum', 'plugins/mediacenter/pageobjects');
     $this->routing->addRoute('EditAlbum', 'editalbum', 'plugins/mediacenter/pageobjects');
     $this->routing->addRoute('AddMedia', 'editmedia', 'plugins/mediacenter/pageobjects');
     $this->routing->addRoute('EditMedia', 'editmedia', 'plugins/mediacenter/pageobjects');
     $this->routing->addRoute('MediaCenter', 'views', 'plugins/mediacenter/pageobjects');
     $this->routing->addRoute('InsertMediaEditor', 'inserteditor', 'plugins/mediacenter/pageobjects');
     $this->routing->addRoute('MyMedia', 'mymedia', 'plugins/mediacenter/pageobjects');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_menu('main', $this->gen_main_menu());
     //Portal modules
     $this->add_portal_module('mc_latest_media');
     $this->add_portal_module('mc_random_media');
     $this->add_portal_module('mc_featured_media');
     $this->add_portal_module('mc_most_viewed_media');
     //Add Mediacenter Stylesheets
     $this->tpl->css_file($this->root_path . 'plugins/mediacenter/templates/base_template/mediacenter.css');
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'Dynamic Template', 'code' => 'dynamictemplate', 'path' => 'dynamictemplate', 'contact' => '*****@*****.**', 'template_path' => 'plugins/dynamictemplate/templates/', 'icon' => 'fa fa-list-alt', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('dynamictemplate_short_desc'), 'long_description' => $this->user->lang('dynamictemplate_long_desc'), 'homepage' => 'https://eqdkp-plus.eu/forum/index.php/User/476-assasinen/', 'manuallink' => 'https://eqdkp-plus.eu/wiki/Plugin:_Dynamic_Template', 'plus_version' => '2.1', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.1'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('a', 'main', 'N', $this->user->lang('dynamictemplate_main_settings'), array(2, 3));
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('dynamictemplate');
     $this->add_pdh_write_module('dynamictemplate');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     // -- Hooks -------------------------------------------
     $this->add_hook('portal', 'dynamictemplate_portal_hook', 'portal');
 }
 public function __construct()
 {
     parent::__construct();
     $this->add_dependency(array('plus_version' => '1.0', 'games' => array('wow')));
     $this->add_data(array('name' => 'EPGP-Import', 'code' => 'epgpimport', 'path' => 'epgpimport', 'contact' => 'http://eqdkp-plus.eu', 'template_path' => 'plugins/epgpimport/templates/', 'version' => $this->version, 'author' => 'GodMod', 'description' => $this->user->lang('epgpimport_short_desc'), 'long_description' => $this->user->lang('epgpimport_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => 'http://eqdkp-plus.eu/wiki/', 'icon' => $this->root_path . 'plugins/epgpimport/images/epgp.png'));
     //permissions
     //$this->add_permission('a', 'config', 'N', $this->user->lang('configuration'), array(2,3));
     $this->add_permission('a', 'import', 'N', $this->user->lang('epgpimport_import'), array(2, 3));
     //pdh-modules
     /*
     $this->add_pdh_read_module('rli_zone');
     $this->add_pdh_read_module('rli_boss');
     $this->add_pdh_read_module('rli_item');
     $this->add_pdh_write_module('rli_zone');
     $this->add_pdh_write_module('rli_boss');
     $this->add_pdh_write_module('rli_item');
     */
     //menu
     $this->add_menu('admin_menu', $this->gen_admin_menu());
 }
    /**
     * Constructor
     * Initialize all informations for installing/uninstalling plugin
     */
    public function __construct()
    {
        parent::__construct();
        $this->add_data(array('name' => 'FeedPoster', 'code' => 'feedposter', 'path' => 'feedposter', 'template_path' => 'plugins/feedposter/templates/', 'icon' => 'fa fa-rss-square', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('feedposter_short_desc'), 'long_description' => $this->user->lang('feedposter_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.1'));
        $this->add_dependency(array('plus_version' => '2.1'));
        // -- Register our permissions ------------------------
        // permissions: 'a'=admins, 'u'=user
        // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
        // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
        $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
        // -- PDH Modules -------------------------------------
        $this->add_pdh_read_module('feedposter_feeds');
        $this->add_pdh_write_module('feedposter_feeds');
        $this->add_pdh_read_module('feedposter_log');
        $this->add_pdh_write_module('feedposter_log');
        // -- Menu --------------------------------------------
        $this->add_menu('admin', $this->gen_admin_menu());
        $this->tpl->add_css('
			.feedposter.feedtype_rss blockquote:before {
				content: "\\f09e";
				color: #000;
			}
			
			.feedposter.feedtype_rss blockquote{
				border-color: #ffa133;
				background-color: #ffc989;
				color: #000;
			}
				
			.feedposter.feedtype_twitter blockquote:before {
				content: "\\f099";
				color: #55acee;
			}
				
			.feedposter.feedtype_twitter blockquote{
				border-color: #55acee;
				background-color: #D9EDF7;
				color: #000;
			}
		');
    }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'SignatureGenerator', 'code' => 'siggenerator', 'path' => 'siggenerator', 'template_path' => 'plugins/siggenerator/templates/', 'icon' => 'fa-pencil', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('siggenerator_short_desc'), 'long_description' => $this->user->lang('siggenerator_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.0', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.0'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
     $this->add_permission('u', 'view', 'Y', $this->user->lang('view'), array(1, 2, 3, 4));
     // Routes
     $this->routing->addRoute('CharSignature', 'charsignatures', 'plugins/siggenerator/pageobjects');
     $this->routing->addRoute('Signatures', 'signatures', 'plugins/siggenerator/pageobjects');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_menu('main', $this->gen_main_menu());
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('siggenerator');
     $this->add_pdh_write_module('siggenerator');
 }
 /**
  * Constructor
  * Initialize all informations for installing/uninstalling plugin
  */
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'Local Itembase', 'code' => 'localitembase', 'path' => 'localitembase', 'template_path' => 'plugins/localitembase/templates/', 'icon' => 'fa fa-database', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('localitembase_short_desc'), 'long_description' => $this->user->lang('localitembase_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.1', 'build' => $this->build));
     $this->add_dependency(array('plus_version' => '2.1'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('u', 'view', 'Y', $this->user->lang('view'), array(2, 3, 4));
     $this->add_permission('a', 'settings', 'N', $this->user->lang('menu_settings'), array(2, 3));
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('localitembase');
     $this->add_pdh_write_module('localitembase');
     //Routing
     $this->routing->addRoute('ItemBase', 'itembase', 'plugins/localitembase/pageobjects');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_menu('main', $this->gen_main_menu());
     if ($this->config->get('base_css', 'localitembase') && strlen($this->config->get('base_css', 'localitembase'))) {
         $this->tpl->add_css($this->config->get('base_css', 'localitembase'));
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->add_data(array('name' => 'GuildBank', 'code' => 'guildbank', 'path' => 'guildbank', 'template_path' => 'plugins/guildbank/templates/', 'icon' => 'fa-university', 'version' => $this->version, 'author' => $this->copyright, 'description' => $this->user->lang('guildbank_short_desc'), 'long_description' => $this->user->lang('guildbank_long_desc'), 'homepage' => EQDKP_PROJECT_URL, 'manuallink' => false, 'plus_version' => '2.1'));
     // -- Register our permissions ------------------------
     // permissions: 'a'=admins, 'u'=user
     // ('a'/'u', Permission-Name, Enable? 'Y'/'N', Language string, array of user-group-ids that should have this permission)
     // Groups: 1 = Guests, 2 = Super-Admin, 3 = Admin, 4 = Member
     $this->add_permission('u', 'view', 'Y', $this->user->lang('view'), array(2, 3, 4));
     $this->add_permission('u', 'shop', 'Y', $this->user->lang('gb_perm_shop'), array(2, 3, 4));
     $this->add_permission('u', 'auction', 'Y', $this->user->lang('gb_u_perm_auction'), array(2, 3, 4));
     $this->add_permission('a', 'manage', 'N', $this->user->lang('manage'), array(2, 3));
     $this->add_permission('a', 'auctions', 'N', $this->user->lang('gb_a_perm_auctions'), array(2, 3));
     $this->add_permission('a', 'settings', 'N', $this->user->lang('menu_settings'), array(2, 3));
     // -- PDH Modules -------------------------------------
     $this->add_pdh_read_module('guildbank_banker');
     $this->add_pdh_read_module('guildbank_items');
     $this->add_pdh_read_module('guildbank_transactions');
     $this->add_pdh_read_module('guildbank_auctions');
     $this->add_pdh_read_module('guildbank_auction_bids');
     $this->add_pdh_read_module('guildbank_shop_ta');
     $this->add_pdh_write_module('guildbank_banker');
     $this->add_pdh_write_module('guildbank_items');
     $this->add_pdh_write_module('guildbank_transactions');
     $this->add_pdh_write_module('guildbank_auctions');
     $this->add_pdh_write_module('guildbank_auction_bids');
     // -- Hooks -------------------------------------------
     #$this->add_hook('search',		'guildbank_search_hook',	'search');
     $this->add_hook('admin_tasks', 'guildbank_admintask_hook', 'admin_tasks');
     // -- Routing -------------------------------------------
     $this->routing->addRoute('Guildbank', 'guildbank', 'plugins/guildbank/page_objects');
     $this->routing->addRoute('Bankshop', 'bankshop', 'plugins/guildbank/page_objects');
     $this->routing->addRoute('Guildauction', 'guildauction', 'plugins/guildbank/page_objects');
     // -- Menu --------------------------------------------
     $this->add_menu('admin', $this->gen_admin_menu());
     $this->add_menu('main', $this->gen_main_menu());
 }