From 2d5868dba7d25c420c6215cf4eef23484227e4c0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 23 Sep 2024 15:55:15 +0200 Subject: [PATCH] Add menu entry evil thirdparties --- core/modules/modSellYourSaas.class.php | 19 ++++++++++++++++++- langs/en_US/sellyoursaas.lang | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/core/modules/modSellYourSaas.class.php b/core/modules/modSellYourSaas.class.php index 0c3075e2..1d1f0621 100644 --- a/core/modules/modSellYourSaas.class.php +++ b/core/modules/modSellYourSaas.class.php @@ -588,6 +588,23 @@ public function __construct($db) ); $r++; + $this->menu[$r]=array( + 'fk_menu'=>'fk_mainmenu=sellyoursaas,fk_leftmenu=sellyoursaas_blacklist', + 'type'=>'left', + 'titre'=>'EvilThirdParties', + 'prefix' => '', + 'mainmenu'=>'sellyoursaas', + 'leftmenu'=>'sellyoursaas_evilthidparties', + 'url'=>'/societe/list.php?contextpage=sellyoursaasevilthirdparties&search_options_spammer=1', + 'langs'=>'sellyoursaas@sellyoursaas', + 'position'=>651, + 'enabled'=>'isModEnabled("sellyoursaas")', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. + 'perms'=>'$user->hasRight("sellyoursaas", "read")', + 'target'=>'', + 'user'=>0 + ); + $r++; + $this->menu[$r]=array( 'fk_menu'=>'fk_mainmenu=sellyoursaas,fk_leftmenu=sellyoursaas_blacklist', 'type'=>'left', @@ -595,7 +612,7 @@ public function __construct($db) 'prefix' => '', 'mainmenu'=>'sellyoursaas', 'leftmenu'=>'sellyoursaas_evilinstances', - 'url'=>'/contrat/list.php?leftmenu=contracts&contextpage=sellyoursaasevilinstances&search_options_spammer=1&search_product_category=__[SELLYOURSAAS_DEFAULT_PRODUCT_CATEG]__', + 'url'=>'/contrat/list.php?contextpage=sellyoursaasevilinstances&search_options_spammer=1&search_product_category=__[SELLYOURSAAS_DEFAULT_PRODUCT_CATEG]__', 'langs'=>'sellyoursaas@sellyoursaas', 'position'=>651, 'enabled'=>'isModEnabled("sellyoursaas")', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. diff --git a/langs/en_US/sellyoursaas.lang b/langs/en_US/sellyoursaas.lang index 37dfd3a9..5b3d460b 100644 --- a/langs/en_US/sellyoursaas.lang +++ b/langs/en_US/sellyoursaas.lang @@ -777,6 +777,7 @@ BlacklistcontentDesc=List of keywords that are used as the global source to gene Searchkeys=Search keys NoBlackListIf=No blacklist for path SecurityTools=Security tools +EvilThirdParties=Third parties (flagged as evil) EvilInstances=Instances (flagged as evil) SELLYOURSAAS_MAX_MONTHLY_AMOUNT_OF_INVOICE=Maximum amount of invoice (monthly). Payment tries will be canceled if amount is higher. PleaseOpenATicketToRequestYourCredential=Such access is not enabled by default. Please open a ticket to request your credentials.