Skip to content

Commit

Permalink
Add menu entry evil thirdparties
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 23, 2024
1 parent 97e4158 commit 2d5868d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 18 additions & 1 deletion core/modules/modSellYourSaas.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,31 @@ 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',
'titre'=>'EvilInstances',
'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.
Expand Down
1 change: 1 addition & 0 deletions langs/en_US/sellyoursaas.lang
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2d5868d

Please sign in to comment.