Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 18, 2024
1 parent 2138f89 commit fdb1457
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions class/actions_sellyoursaas.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,13 @@ public function addMoreMassActions($parameters, &$action, $hookmanager)
global $langs;
$langs->load("sellyoursaas@sellyoursaas");

$label = img_picto('', 'fa-book-dead', 'class="pictofixedwidth"').$langs->trans("MarkAsSpamAndClose");
$this->resprints = '<option value="markasspamandclose" data-html="' . dol_escape_htmltag($label) . '">' . $label . '</option>';
if ($parameters['currentcontext'] == 'contractlist') {
$label = img_picto('', 'fa-book-dead', 'class="pictofixedwidth"').$langs->trans("MarkAsSpamAndClose");
$this->resprints = '<option value="markasspamandclose" data-html="' . dol_escape_htmltag($label) . '">' . $label . '</option>';

$label = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Undeploy");
$this->resprints .= '<option value="undeploy" data-html="' . dol_escape_htmltag($label) . '">' . $label . '</option>';
$label = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Undeploy");
$this->resprints .= '<option value="undeploy" data-html="' . dol_escape_htmltag($label) . '">' . $label . '</option>';
}
}

/**
Expand Down
6 changes: 3 additions & 3 deletions myaccount/register_instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@
if ($fromsocid > 0) {
if ($thirdpartyidinsession != $fromsocid) {
// Output the key "Instance creation blocked for"
dol_syslog("Instance creation blocked for ".$remoteip." - You tried to create instance for reseller id = ".$fromsocid." when id in session is ".$thirdpartyidinsession);
dol_syslog("ErrorInvalidReuseIDSurelyAHackAttempt Instance creation blocked for ".$remoteip." - You tried to create instance for reseller id = ".$fromsocid." when id in session is ".$thirdpartyidinsession);

if (substr($sapi_type, 0, 3) != 'cli') {
setEventMessages($langs->trans("ErrorInvalidReuseIDSurelyAHackAttempt"), null, 'errors');
Expand All @@ -925,7 +925,7 @@
}
if ($tmpthirdparty->parent != $thirdpartyidinsession) {
// Output the key "Instance creation blocked for"
dol_syslog("Instance creation blocked for ".$remoteip." - You tried to create instance for reseller id = ".$fromsocid." when existing customer has reseller id ".$tmpthirdparty->parent);
dol_syslog("ErrorInvalidReuseIDSurelyAHackAttempt Instance creation blocked for ".$remoteip." - You tried to create instance for reseller id = ".$fromsocid." when existing customer has reseller id ".$tmpthirdparty->parent);

if (substr($sapi_type, 0, 3) != 'cli') {
setEventMessages($langs->trans("ErrorInvalidReuseIDSurelyAHackAttempt"), null, 'errors');
Expand All @@ -938,7 +938,7 @@
} else {
if ($thirdpartyidinsession != $reusesocid) {
// Output the key "Instance creation blocked for"
dol_syslog("Instance creation blocked for ".$remoteip." - You tried to create instance for thirdparty id = ".$reusesocid." when id in session is ".$thirdpartyidinsession);
dol_syslog("ErrorInvalidReuseIDSurelyAHackAttempt Instance creation blocked for ".$remoteip." - You tried to create instance for thirdparty id = ".$reusesocid." when id in session is ".$thirdpartyidinsession);

if (substr($sapi_type, 0, 3) != 'cli') {
setEventMessages($langs->trans("ErrorInvalidReuseIDSurelyAHackAttempt"), null, 'errors');
Expand Down

0 comments on commit fdb1457

Please sign in to comment.