diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php
index 73c23e4d63b..081d074eab7 100644
--- a/htdocs/accountancy/bookkeeping/list.php
+++ b/htdocs/accountancy/bookkeeping/list.php
@@ -1250,7 +1250,7 @@ while ($i < min($num, $limit)) {
}
if (empty($line->date_validation)) {
if ($user->rights->accounting->mouvements->supprimer) {
- print ''.img_delete().'';
+ print ''.img_delete().'';
}
}
print '';
@@ -1274,7 +1274,7 @@ print '';
// TODO Replace this with mass delete action
if ($user->rights->accounting->mouvements->supprimer_tous) {
print '
';
}
diff --git a/htdocs/accountancy/bookkeeping/listbyaccount.php b/htdocs/accountancy/bookkeeping/listbyaccount.php
index 27f23d36a74..22ba2d3f0b1 100644
--- a/htdocs/accountancy/bookkeeping/listbyaccount.php
+++ b/htdocs/accountancy/bookkeeping/listbyaccount.php
@@ -904,7 +904,7 @@ while ($i < min($num, $limit)) {
}
if (empty($line->date_validation)) {
if ($user->rights->accounting->mouvements->supprimer) {
- print ''.img_delete().'';
+ print ''.img_delete().'';
}
}
print '';
@@ -957,7 +957,7 @@ print '';
// TODO Replace this with mass delete action
if ($user->rights->accounting->mouvements->supprimer_tous) {
print '';
}
diff --git a/htdocs/accountancy/bookkeeping/listbysubaccount.php b/htdocs/accountancy/bookkeeping/listbysubaccount.php
index 5e83c729fb1..101a8897bb5 100644
--- a/htdocs/accountancy/bookkeeping/listbysubaccount.php
+++ b/htdocs/accountancy/bookkeeping/listbysubaccount.php
@@ -915,7 +915,7 @@ while ($i < min($num, $limit)) {
}
if (empty($line->date_validation)) {
if ($user->rights->accounting->mouvements->supprimer) {
- print ''.img_delete().'';
+ print ''.img_delete().'';
}
}
print '';
@@ -968,7 +968,7 @@ print '';
// TODO Replace this with mass delete action
if ($user->rights->accounting->mouvements->supprimer_tous) {
print '';
}
diff --git a/htdocs/adherents/admin/member.php b/htdocs/adherents/admin/member.php
index 018498c2457..0ff0919652d 100644
--- a/htdocs/adherents/admin/member.php
+++ b/htdocs/adherents/admin/member.php
@@ -404,13 +404,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
@@ -419,7 +419,7 @@ foreach ($dirmodels as $reldir) {
if ($conf->global->MEMBER_ADDON_PDF == $name) {
print img_picto($langs->trans("Default"), 'on');
} else {
- print 'scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
+ print 'scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
}
print '';
diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index 4b81e065d3f..ca1ad342d8a 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -1979,10 +1979,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$isinspip = $mailmanspip->is_in_spip($object);
if ($isinspip == 1) {
- print ''.$langs->trans("DeleteIntoSpip").''."\n";
+ print ''.$langs->trans("DeleteIntoSpip").''."\n";
}
if ($isinspip == 0) {
- print ''.$langs->trans("AddIntoSpip").''."\n";
+ print ''.$langs->trans("AddIntoSpip").''."\n";
}
}
diff --git a/htdocs/adherents/tpl/linkedobjectblock.tpl.php b/htdocs/adherents/tpl/linkedobjectblock.tpl.php
index 0414bf20a14..7aa2f39a3ff 100644
--- a/htdocs/adherents/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/adherents/tpl/linkedobjectblock.tpl.php
@@ -45,7 +45,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
}
echo '';
echo ' | ';
- echo 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
+ echo 'id.'&action=dellink&token='.newToken().'&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
echo '';
}
diff --git a/htdocs/admin/agenda_extsites.php b/htdocs/admin/agenda_extsites.php
index d689b2df8af..5567e741272 100644
--- a/htdocs/admin/agenda_extsites.php
+++ b/htdocs/admin/agenda_extsites.php
@@ -282,9 +282,9 @@ while ($i <= $MAXAGENDA) {
print ajax_constantonoff('AGENDA_EXT_ACTIVEBYDEFAULT' . $key);
} else {
if (empty($conf->global->{$default})) {
- print '' . img_picto($langs->trans("Enabled"), 'on') . '';
+ print '' . img_picto($langs->trans("Enabled"), 'on') . '';
} else {
- print '' . img_picto($langs->trans("Disabled"), 'off') . '';
+ print '' . img_picto($langs->trans("Disabled"), 'off') . '';
}
}
print '';
diff --git a/htdocs/admin/agenda_other.php b/htdocs/admin/agenda_other.php
index 463df5475f9..252008fb877 100644
--- a/htdocs/admin/agenda_other.php
+++ b/htdocs/admin/agenda_other.php
@@ -260,7 +260,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
if (in_array($name, $def)) {
print ''."\n";
if ($conf->global->ACTION_EVENT_ADDON_PDF != "$name") {
- print 'scandir.'&label='.urlencode($module->name).'&type=action">';
+ print 'scandir.'&label='.urlencode($module->name).'&type=action">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
} else {
@@ -269,7 +269,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
print " | ";
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'&type=action">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir.'&label='.urlencode($module->name).'&type=action">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
@@ -324,9 +324,9 @@ print ' | '."\n";
print ''."\n";
//print ajax_constantonoff('AGENDA_USE_EVENT_TYPE'); Do not use ajax here, we need to reload page to change other combo list
if (empty($conf->global->AGENDA_USE_EVENT_TYPE)) {
- print ''.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'switch_off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'switch_on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'switch_on').'';
}
print ' | '."\n";
diff --git a/htdocs/admin/agenda_reminder.php b/htdocs/admin/agenda_reminder.php
index 2b2da673202..ac968778ffc 100644
--- a/htdocs/admin/agenda_reminder.php
+++ b/htdocs/admin/agenda_reminder.php
@@ -181,7 +181,7 @@ if (empty($conf->global->AGENDA_REMINDER_BROWSER)) {
$langs->load("errors");
print img_warning($langs->trans("WarningAvailableOnlyForHTTPSServers"), '', 'valignmiddle size15x').' ';
}
- print ''.img_picto($langs->trans('Enabled'), 'switch_on').'';
+ print ''.img_picto($langs->trans('Enabled'), 'switch_on').'';
print ''."\n";
print ''."\n";
@@ -190,9 +190,9 @@ if (empty($conf->global->AGENDA_REMINDER_BROWSER)) {
print '| '."\n";
if (empty($conf->global->AGENDA_REMINDER_BROWSER_SOUND)) {
- print ''.img_picto($langs->trans('Disabled'), 'switch_off').'';
+ print ''.img_picto($langs->trans('Disabled'), 'switch_off').'';
} else {
- print ''.img_picto($langs->trans('Enabled'), 'switch_on').'';
+ print ''.img_picto($langs->trans('Enabled'), 'switch_on').'';
}
print ' |
'."\n";
@@ -229,7 +229,7 @@ if (empty($conf->cron->enabled)) {
$langs->load("cron");
print ''.$langs->trans("JobXMustBeEnabled", $langs->transnoentitiesnoconv("sendEmailsReminder")).'';
} else {
- print ''.img_picto($langs->trans('Enabled'), 'switch_on').'';
+ print ''.img_picto($langs->trans('Enabled'), 'switch_on').'';
}
}
}
diff --git a/htdocs/admin/bank.php b/htdocs/admin/bank.php
index a9463be9937..4e79d3ee276 100644
--- a/htdocs/admin/bank.php
+++ b/htdocs/admin/bank.php
@@ -354,13 +354,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/bom.php b/htdocs/admin/bom.php
index 0aae15eef3e..35cf6b3e8a4 100644
--- a/htdocs/admin/bom.php
+++ b/htdocs/admin/bom.php
@@ -362,13 +362,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php
index c4e697bfe00..2e4226e89d5 100644
--- a/htdocs/admin/boxes.php
+++ b/htdocs/admin/boxes.php
@@ -423,8 +423,8 @@ foreach ($boxactivated as $key => $box) {
$hasprevious = ($key != 0);
print ''.($key + 1).' | ';
print '';
- print ($hasnext ? ''.img_down().' ' : '');
- print ($hasprevious ? ''.img_up().'' : '');
+ print ($hasnext ? ''.img_down().' ' : '');
+ print ($hasprevious ? ''.img_up().'' : '');
print ' | ';
print '';
print ''.img_delete().'';
diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php
index d57292e3562..23d7020e370 100644
--- a/htdocs/admin/commande.php
+++ b/htdocs/admin/commande.php
@@ -424,13 +424,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ' | '."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
@@ -439,7 +439,7 @@ foreach ($dirmodels as $reldir) {
if ($conf->global->COMMANDE_ADDON_PDF == $name) {
print img_picto($langs->trans("Default"), 'on');
} else {
- print 'scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
+ print 'scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
}
print '';
diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php
index b5e0c3ae28b..7854924c090 100644
--- a/htdocs/admin/contract.php
+++ b/htdocs/admin/contract.php
@@ -353,13 +353,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
@@ -368,7 +368,7 @@ foreach ($dirmodels as $reldir) {
if ($conf->global->CONTRACT_ADDON_PDF == $name) {
print img_picto($langs->trans("Default"), 'on');
} else {
- print 'scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
+ print 'scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
}
print '';
diff --git a/htdocs/admin/delivery.php b/htdocs/admin/delivery.php
index 4fa7b2b79c7..68a18aa0f6a 100644
--- a/htdocs/admin/delivery.php
+++ b/htdocs/admin/delivery.php
@@ -357,13 +357,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">';
+ print 'scandir).'&label='.urlencode($module->name).'">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print " | ";
} else {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/ecm.php b/htdocs/admin/ecm.php
index 52badf366ca..44df7f74189 100644
--- a/htdocs/admin/ecm.php
+++ b/htdocs/admin/ecm.php
@@ -93,9 +93,9 @@ if ($conf->use_javascript_ajax) {
print ajax_constantonoff('ECM_AUTO_TREE_ENABLED');
} else {
if (empty($conf->global->ECM_AUTO_TREE_ENABLED)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} elseif (!empty($conf->global->USER_MAIL_REQUIRED)) {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
print '';
diff --git a/htdocs/admin/eventorganization.php b/htdocs/admin/eventorganization.php
index 9c088aec61c..36ba50818c6 100644
--- a/htdocs/admin/eventorganization.php
+++ b/htdocs/admin/eventorganization.php
@@ -580,13 +580,13 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php
index 32f82f5dad5..777767a823e 100644
--- a/htdocs/admin/expedition.php
+++ b/htdocs/admin/expedition.php
@@ -353,13 +353,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
@@ -368,7 +368,7 @@ foreach ($dirmodels as $reldir) {
if ($conf->global->EXPEDITION_ADDON_PDF == $name) {
print img_picto($langs->trans("Default"), 'on');
} else {
- print 'scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
+ print 'scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
}
print '';
diff --git a/htdocs/admin/expensereport.php b/htdocs/admin/expensereport.php
index 1553f6887f8..70bbc6f2b07 100644
--- a/htdocs/admin/expensereport.php
+++ b/htdocs/admin/expensereport.php
@@ -358,13 +358,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">';
+ print 'scandir).'&label='.urlencode($module->name).'">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print " | ";
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php
index bf4e2ea9eb6..a9f1e97ffab 100644
--- a/htdocs/admin/facture.php
+++ b/htdocs/admin/facture.php
@@ -501,13 +501,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("SetAsDefault"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("SetAsDefault"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/fichinter.php b/htdocs/admin/fichinter.php
index 4d9304472d5..cdc3d139515 100644
--- a/htdocs/admin/fichinter.php
+++ b/htdocs/admin/fichinter.php
@@ -419,13 +419,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">';
+ print 'scandir).'&label='.urlencode($module->name).'">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print " | ";
} else {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/holiday.php b/htdocs/admin/holiday.php
index 81db1cbe58d..00d82f68035 100644
--- a/htdocs/admin/holiday.php
+++ b/htdocs/admin/holiday.php
@@ -359,13 +359,13 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/knowledgemanagement.php b/htdocs/admin/knowledgemanagement.php
index 477f38fa663..b886e6faf39 100644
--- a/htdocs/admin/knowledgemanagement.php
+++ b/htdocs/admin/knowledgemanagement.php
@@ -533,13 +533,13 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/mrp.php b/htdocs/admin/mrp.php
index 7cd3c095955..333fcb2bd6b 100644
--- a/htdocs/admin/mrp.php
+++ b/htdocs/admin/mrp.php
@@ -359,13 +359,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
@@ -374,7 +374,7 @@ foreach ($dirmodels as $reldir) {
if ($conf->global->MRP_MO_ADDON_PDF == $name) {
print img_picto($langs->trans("Default"), 'on');
} else {
- print 'scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
+ print 'scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'';
}
print '';
diff --git a/htdocs/admin/paymentbybanktransfer.php b/htdocs/admin/paymentbybanktransfer.php
index 4d170aa5fbd..04e1488fedc 100644
--- a/htdocs/admin/paymentbybanktransfer.php
+++ b/htdocs/admin/paymentbybanktransfer.php
@@ -298,7 +298,7 @@ foreach ($dirmodels as $reldir)
if (in_array($name, $def))
{
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"),'switch_on');
print '';
print ' | ';
@@ -306,7 +306,7 @@ foreach ($dirmodels as $reldir)
else
{
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"),'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"),'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/prelevement.php b/htdocs/admin/prelevement.php
index f9c183b5c7d..2e266f833ea 100644
--- a/htdocs/admin/prelevement.php
+++ b/htdocs/admin/prelevement.php
@@ -312,7 +312,7 @@ foreach ($dirmodels as $reldir)
if (in_array($name, $def))
{
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"),'switch_on');
print '';
print ' | ';
@@ -320,7 +320,7 @@ foreach ($dirmodels as $reldir)
else
{
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"),'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"),'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/propal.php b/htdocs/admin/propal.php
index dcd91df0dbc..88df6b0da05 100644
--- a/htdocs/admin/propal.php
+++ b/htdocs/admin/propal.php
@@ -402,13 +402,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/reception_setup.php b/htdocs/admin/reception_setup.php
index 6367b80c150..c364911ab51 100644
--- a/htdocs/admin/reception_setup.php
+++ b/htdocs/admin/reception_setup.php
@@ -363,13 +363,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php
index 5f8cc66eb1e..477691cf6ef 100644
--- a/htdocs/admin/security_other.php
+++ b/htdocs/admin/security_other.php
@@ -111,9 +111,9 @@ if (function_exists("imagecreatefrompng")) {
print ajax_constantonoff('MAIN_SECURITY_ENABLECAPTCHA');
} else {
if (empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
} else {
@@ -130,9 +130,9 @@ if (!empty($conf->use_javascript_ajax)) {
print ajax_constantonoff('MAIN_USE_ADVANCED_PERMS');
} else {
if (empty($conf->global->MAIN_USE_ADVANCED_PERMS)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
print "";
diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php
index e45a01d9ed1..d8d6a883d88 100644
--- a/htdocs/admin/stock.php
+++ b/htdocs/admin/stock.php
@@ -565,13 +565,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/supplier_invoice.php b/htdocs/admin/supplier_invoice.php
index a888a248d11..ec5a3e087cf 100644
--- a/htdocs/admin/supplier_invoice.php
+++ b/htdocs/admin/supplier_invoice.php
@@ -375,7 +375,7 @@ foreach ($dirmodels as $reldir) {
//if ($conf->global->INVOICE_SUPPLIER_ADDON_PDF != "$name")
//{
// Even if choice is the default value, we allow to disable it: For supplier invoice, we accept to have no doc generation at all
- print 'scandir.'&label='.urlencode($module->name).'&type=invoice_supplier">';
+ print 'scandir).'&label='.urlencode($module->name).'&type=invoice_supplier">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
/*}
@@ -386,7 +386,7 @@ foreach ($dirmodels as $reldir) {
print "";
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'&type=invoice_supplier">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'&type=invoice_supplier">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/supplier_order.php b/htdocs/admin/supplier_order.php
index cfa6c878a74..0efa365a33f 100644
--- a/htdocs/admin/supplier_order.php
+++ b/htdocs/admin/supplier_order.php
@@ -381,7 +381,7 @@ foreach ($dirmodels as $reldir) {
if (in_array($name, $def)) {
print ''."\n";
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF != "$name") {
- print 'scandir.'&label='.urlencode($module->name).'&type=order_supplier">';
+ print 'scandir).'&label='.urlencode($module->name).'&type=order_supplier">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
} else {
@@ -390,7 +390,7 @@ foreach ($dirmodels as $reldir) {
print " | ";
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'&type=order_supplier">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'&type=order_supplier">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/supplier_proposal.php b/htdocs/admin/supplier_proposal.php
index 980ebe10fff..1585b66b1e1 100644
--- a/htdocs/admin/supplier_proposal.php
+++ b/htdocs/admin/supplier_proposal.php
@@ -380,18 +380,18 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
- print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print ' | '."\n";
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
// Defaut
- print "";
+ print ' | ';
if ($conf->global->SUPPLIER_PROPOSAL_ADDON_PDF == "$name") {
print img_picto($langs->trans("Default"), 'on');
} else {
diff --git a/htdocs/admin/ticket.php b/htdocs/admin/ticket.php
index c3778861ddf..03fd647dd29 100644
--- a/htdocs/admin/ticket.php
+++ b/htdocs/admin/ticket.php
@@ -400,13 +400,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ' | '."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/user.php b/htdocs/admin/user.php
index da3a1913d64..391a456439c 100644
--- a/htdocs/admin/user.php
+++ b/htdocs/admin/user.php
@@ -147,9 +147,9 @@ if ($conf->use_javascript_ajax) {
print ajax_constantonoff('USER_MAIL_REQUIRED');
} else {
if (empty($conf->global->USER_MAIL_REQUIRED)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
print '';
@@ -256,13 +256,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/usergroup.php b/htdocs/admin/usergroup.php
index b73d3ce4f22..9846389f87a 100644
--- a/htdocs/admin/usergroup.php
+++ b/htdocs/admin/usergroup.php
@@ -188,13 +188,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/admin/workflow.php b/htdocs/admin/workflow.php
index 1b6fa5bebe7..ada5a6e0b3b 100644
--- a/htdocs/admin/workflow.php
+++ b/htdocs/admin/workflow.php
@@ -250,11 +250,11 @@ foreach ($workflowcodes as $key => $params) {
print ajax_constantonoff($key);
} else {
if (!empty($conf->global->$key)) {
- print '';
+ print '';
print img_picto($langs->trans("Activated"), 'switch_on');
print '';
} else {
- print '';
+ print '';
print img_picto($langs->trans("Disabled"), 'switch_off');
print '';
}
diff --git a/htdocs/admin/workstation.php b/htdocs/admin/workstation.php
index f14393e2588..76556fb4d68 100755
--- a/htdocs/admin/workstation.php
+++ b/htdocs/admin/workstation.php
@@ -423,13 +423,13 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/bom/tpl/linkedobjectblock.tpl.php b/htdocs/bom/tpl/linkedobjectblock.tpl.php
index fcba37105d3..946563f7b81 100644
--- a/htdocs/bom/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/bom/tpl/linkedobjectblock.tpl.php
@@ -73,7 +73,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
echo '';
// For now, shipments must stay linked to order, so link is not deletable
if ($object->element != 'shipping') {
- echo 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').'';
+ echo 'id.'&action=dellink&token='.newToken().'&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').'';
}
echo ' | ';
echo "\n";
diff --git a/htdocs/categories/admin/categorie.php b/htdocs/categories/admin/categorie.php
index bddeb9a771a..02e6892b571 100644
--- a/htdocs/categories/admin/categorie.php
+++ b/htdocs/categories/admin/categorie.php
@@ -101,9 +101,9 @@ if ($conf->use_javascript_ajax) {
print ajax_constantonoff('CATEGORIE_RECURSIV_ADD');
} else {
if (empty($conf->global->CATEGORIE_RECURSIV_ADD)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
print '';
diff --git a/htdocs/comm/propal/tpl/linkedobjectblock.tpl.php b/htdocs/comm/propal/tpl/linkedobjectblock.tpl.php
index 23c1a459c74..829effed6a2 100644
--- a/htdocs/comm/propal/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/comm/propal/tpl/linkedobjectblock.tpl.php
@@ -68,7 +68,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
}
print '';
print ''.$objectlink->getLibStatut(3).' | ';
- print 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
+ print 'id.'&action=dellink&token='.newToken().'&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
print "\n";
}
if (count($linkedObjectBlock) > 1) {
diff --git a/htdocs/commande/tpl/linkedobjectblock.tpl.php b/htdocs/commande/tpl/linkedobjectblock.tpl.php
index a0641c4c493..211702059cb 100644
--- a/htdocs/commande/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/commande/tpl/linkedobjectblock.tpl.php
@@ -64,7 +64,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
echo '';
// For now, shipments must stay linked to order, so link is not deletable
if ($object->element != 'shipping') {
- echo 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').'';
+ echo 'id.'&action=dellink&token='.newToken().'&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').'';
}
echo ' | ';
echo "\n";
diff --git a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
index 47523447205..bcfece64157 100644
--- a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
@@ -93,7 +93,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
print $objectlink->getLibStatut(3);
}
print '';
- print 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
+ print 'id.'&action=dellink&token='.newToken().'&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
print "\n";
}
if (count($linkedObjectBlock) > 1) {
diff --git a/htdocs/compta/facture/tpl/linkedobjectblockForRec.tpl.php b/htdocs/compta/facture/tpl/linkedobjectblockForRec.tpl.php
index 935f6b03948..7c9683c8b8c 100644
--- a/htdocs/compta/facture/tpl/linkedobjectblockForRec.tpl.php
+++ b/htdocs/compta/facture/tpl/linkedobjectblockForRec.tpl.php
@@ -57,7 +57,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
}
?>
getLibStatut(3); ?> |
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
global->BILL_ADD_PAYMENT_VALIDATION))
if ($action == '') {
if ($user->rights->tax->charges->supprimer) {
if (!$disable_delete) {
- print ''.$langs->trans('Delete').'';
+ print ''.$langs->trans('Delete').'';
} else {
print ''.$langs->trans('Delete').'';
}
diff --git a/htdocs/compta/tva/card.php b/htdocs/compta/tva/card.php
index 9764f679959..363af314113 100755
--- a/htdocs/compta/tva/card.php
+++ b/htdocs/compta/tva/card.php
@@ -767,7 +767,7 @@ if ($id) {
}
if (!empty($user->rights->tax->charges->supprimer) && empty($totalpaye)) {
- print '';
+ print '';
} else {
print '';
}
diff --git a/htdocs/contrat/tpl/linkedobjectblock.tpl.php b/htdocs/contrat/tpl/linkedobjectblock.tpl.php
index 310e2bd00b9..8715a8ce4cc 100644
--- a/htdocs/contrat/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/contrat/tpl/linkedobjectblock.tpl.php
@@ -62,7 +62,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
echo price($totalcontrat);
} ?>
getLibStatut(7); ?> |
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
$objectlink) {
}
print '';
echo ''.$objectlink->getLibStatut(3).' | ';
- echo 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
+ echo 'id.'&action=dellink&token='.newToken().'&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
echo '';
}
diff --git a/htdocs/expensereport/tpl/linkedobjectblock.tpl.php b/htdocs/expensereport/tpl/linkedobjectblock.tpl.php
index 31c5526903b..e3fc511a024 100644
--- a/htdocs/expensereport/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/expensereport/tpl/linkedobjectblock.tpl.php
@@ -47,7 +47,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
echo price($objectlink->total_ht);
} ?>
getLibStatut(3); ?> |
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
$objectlink) {
datev, 'day'); ?> |
|
getLibStatut(3); ?> |
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
$objectlink) {
echo price($objectlink->total_ht);
} ?>
getLibStatut(3); ?> |
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
$objectlink) {
echo $objectlink->getLibStatut(3);
}
?>
- id).'&action=dellink&dellinkid='.urlencode($key); ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id).'&action=dellink&token='.newToken().'&dellinkid='.urlencode($key); ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
gl
'activate', 'add', 'addrights', 'addtimespent',
'doprev', 'donext', 'dvprev', 'dvnext',
'install',
- 'reopen',
- 'setpricelevel', 'set_paid',
- 'update'
+ 'reopen'
);
$sensitiveget = false;
if (in_array(GETPOST('action', 'aZ09'), $arrayofactiontoforcetokencheck)) {
$sensitiveget = true;
}
- if (preg_match('/^(classify|close|confirm_|delete|disable|enable|remove_|setremise)/', GETPOST('action', 'aZ09'))) {
+ if (preg_match('/^(classify|close|confirm|del|disable|enable|remove|set|update)/', GETPOST('action', 'aZ09'))) {
$sensitiveget = true;
}
diff --git a/htdocs/margin/admin/margin.php b/htdocs/margin/admin/margin.php
index 939b084fe41..588773ef50c 100644
--- a/htdocs/margin/admin/margin.php
+++ b/htdocs/margin/admin/margin.php
@@ -155,9 +155,9 @@ if (!empty($conf->use_javascript_ajax)) {
print ajax_constantonoff('DISPLAY_MARGIN_RATES');
} else {
if (empty($conf->global->DISPLAY_MARGIN_RATES)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
print '';
@@ -172,9 +172,9 @@ if (!empty($conf->use_javascript_ajax)) {
print ajax_constantonoff('DISPLAY_MARK_RATES');
} else {
if (empty($conf->global->DISPLAY_MARK_RATES)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
print '';
diff --git a/htdocs/modulebuilder/admin/setup.php b/htdocs/modulebuilder/admin/setup.php
index 5aaae9f93eb..e5ccb0c3966 100644
--- a/htdocs/modulebuilder/admin/setup.php
+++ b/htdocs/modulebuilder/admin/setup.php
@@ -125,9 +125,9 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
print ajax_constantonoff('MODULEBUILDER_USE_ABOUT');
} else {
if (empty($conf->global->MODULEBUILDER_USE_ABOUT)) {
- print ''.img_picto($langs->trans("Disabled"), 'off').'';
+ print ''.img_picto($langs->trans("Disabled"), 'off').'';
} else {
- print ''.img_picto($langs->trans("Enabled"), 'on').'';
+ print ''.img_picto($langs->trans("Enabled"), 'on').'';
}
}
print '';
diff --git a/htdocs/modulebuilder/template/admin/setup.php b/htdocs/modulebuilder/template/admin/setup.php
index 9007eab60cc..6d7497b7780 100644
--- a/htdocs/modulebuilder/template/admin/setup.php
+++ b/htdocs/modulebuilder/template/admin/setup.php
@@ -598,13 +598,13 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/modulebuilder/template/core/tpl/linkedobjectblock_myobject.tpl.php b/htdocs/modulebuilder/template/core/tpl/linkedobjectblock_myobject.tpl.php
index 67aac8c0e98..3c6442bd454 100644
--- a/htdocs/modulebuilder/template/core/tpl/linkedobjectblock_myobject.tpl.php
+++ b/htdocs/modulebuilder/template/core/tpl/linkedobjectblock_myobject.tpl.php
@@ -50,7 +50,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
date, 'day'); ?> |
|
getLibStatut(7); ?> |
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
$objectlink) {
echo '';
// For now, shipments must stay linked to order, so link is not deletable
if ($object->element != 'shipping') {
- echo 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').'';
+ echo 'id.'&action=dellink&token='.newToken().'&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').'';
}
echo ' | ';
echo "\n";
diff --git a/htdocs/multicurrency/multicurrency_rate.php b/htdocs/multicurrency/multicurrency_rate.php
index 35b7544ccbc..d0be7666a95 100644
--- a/htdocs/multicurrency/multicurrency_rate.php
+++ b/htdocs/multicurrency/multicurrency_rate.php
@@ -526,8 +526,8 @@ if ($resql) {
if (in_array($obj->rowid, $arrayofselected)) {
$selected = 1;
}
- print 'rowid.'">'.img_picto('edit', 'edit').'';
- print 'rowid.'">'.img_picto('delete', 'delete').'';
+ print 'rowid.'">'.img_picto('edit', 'edit').'';
+ print 'rowid.'">'.img_picto('delete', 'delete').'';
print '';
}
print '';
diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php
index fa75a20277f..199f2a04f03 100644
--- a/htdocs/product/admin/product.php
+++ b/htdocs/product/admin/product.php
@@ -448,13 +448,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php
index da8ef2e5b37..af6d6c08740 100644
--- a/htdocs/product/stock/massstockmove.php
+++ b/htdocs/product/stock/massstockmove.php
@@ -632,7 +632,7 @@ foreach ($listofdata as $key => $val) {
print '';
}
print ''.$val['qty'].' | ';
- print ''.img_delete($langs->trans("Remove")).' | ';
+ print ''.img_delete($langs->trans("Remove")).' | ';
print '';
}
}
diff --git a/htdocs/projet/admin/project.php b/htdocs/projet/admin/project.php
index eaea44dd22b..0ce2a38a471 100644
--- a/htdocs/projet/admin/project.php
+++ b/htdocs/projet/admin/project.php
@@ -564,13 +564,13 @@ foreach ($dirmodels as $reldir) {
// Active
if (in_array($name, $def)) {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">';
+ print 'scandir).'&label='.urlencode($module->name).'">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print " | ";
} else {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
@@ -704,13 +704,13 @@ if (empty($conf->global->PROJECT_HIDE_TASKS)) {
// Active
if (in_array($name, $def)) {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">';
+ print 'scandir).'&label='.urlencode($module->name).'">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print " | ";
} else {
print "\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/reception/tpl/linkedobjectblock.tpl.php b/htdocs/reception/tpl/linkedobjectblock.tpl.php
index 39a5a24347d..41ebc02747f 100644
--- a/htdocs/reception/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/reception/tpl/linkedobjectblock.tpl.php
@@ -69,7 +69,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
// For now, receptions must stay linked to order, so link is not deletable
if ($object->element != 'order_supplier') {
?>
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
diff --git a/htdocs/recruitment/admin/setup.php b/htdocs/recruitment/admin/setup.php
index 6da39445f7f..6b6dd050820 100644
--- a/htdocs/recruitment/admin/setup.php
+++ b/htdocs/recruitment/admin/setup.php
@@ -459,13 +459,13 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/recruitment/admin/setup_candidatures.php b/htdocs/recruitment/admin/setup_candidatures.php
index 2bcddf58964..b2189954bf4 100644
--- a/htdocs/recruitment/admin/setup_candidatures.php
+++ b/htdocs/recruitment/admin/setup_candidatures.php
@@ -457,13 +457,13 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Active
if (in_array($name, $def)) {
print ''."\n";
- print '';
+ print '';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
print ' | ';
} else {
print ''."\n";
- print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
print " | ";
}
diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php
index b9b2046fd90..8b4975a5592 100644
--- a/htdocs/societe/admin/societe.php
+++ b/htdocs/societe/admin/societe.php
@@ -560,7 +560,7 @@ foreach ($dirsociete as $dirroot) {
print "\n";
//if ($conf->global->COMPANY_ADDON_PDF != "$name")
//{
- print 'scandir.'&label='.urlencode($module->name).'">';
+ print 'scandir.'&label='.urlencode($module->name).'">';
print img_picto($langs->trans("Enabled"), 'switch_on');
print '';
//}
diff --git a/htdocs/supplier_proposal/tpl/linkedobjectblock.tpl.php b/htdocs/supplier_proposal/tpl/linkedobjectblock.tpl.php
index c33c3b2ebac..d0fce33ed22 100644
--- a/htdocs/supplier_proposal/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/supplier_proposal/tpl/linkedobjectblock.tpl.php
@@ -53,7 +53,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
echo price($objectlink->total_ht);
} ?> |
getLibStatut(3); ?> |
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
$objectlink) {
// For now, shipments must stay linked to order, so link is not deletable
if ($object->element != 'shipping') {
?>
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
+ id.'&action=dellink&token='.newToken().'&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
diff --git a/htdocs/user/group/card.php b/htdocs/user/group/card.php
index 36b9ce7566c..4fb9c51644f 100644
--- a/htdocs/user/group/card.php
+++ b/htdocs/user/group/card.php
@@ -384,7 +384,7 @@ if ($action == 'create') {
}
if ($candisableperms) {
- print ''.$langs->trans("DeleteGroup").'';
+ print ''.$langs->trans("DeleteGroup").'';
}
print "\n";
diff --git a/htdocs/user/group/perms.php b/htdocs/user/group/perms.php
index e2c419b0543..46506163c1f 100644
--- a/htdocs/user/group/perms.php
+++ b/htdocs/user/group/perms.php
@@ -332,7 +332,7 @@ if ($object->id > 0) {
if (in_array($obj->id, $permsgroupbyentity[$entity])) {
// Own permission by group
if ($caneditperms) {
- print 'id.'&action=delrights&entity='.$entity.'&rights='.$obj->id.'&confirm=yes&token='.newToken().'">';
+ print ' | id.'&action=delrights&token='.newToken().'&entity='.$entity.'&rights='.$obj->id.'&confirm=yes">';
//print img_edit_remove($langs->trans("Remove"));
print img_picto($langs->trans("Remove"), 'switch_on');
print ' | ';
@@ -343,7 +343,7 @@ if ($object->id > 0) {
} else {
// Do not own permission
if ($caneditperms) {
- print 'id.'&action=addrights&entity='.$entity.'&rights='.$obj->id.'&confirm=yes&token='.newToken().'">';
+ print ' | id.'&action=addrights&token='.newToken().'&entity='.$entity.'&rights='.$obj->id.'&confirm=yes">';
//print img_edit_add($langs->trans("Add"));
print img_picto($langs->trans("Add"), 'switch_off');
print ' | ';
diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php
index 391682b2d6d..7c7fe868b2f 100644
--- a/htdocs/user/perms.php
+++ b/htdocs/user/perms.php
@@ -279,9 +279,9 @@ print ''.$langs->trans("Module").' | ';
if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) {
if ($caneditperms) {
print '';
- print 'id.'&action=addrights&entity='.$entity.'&module=allmodules&confirm=yes&token='.newToken().'">'.$langs->trans("All")."";
+ print 'id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("All")."";
print ' / ';
- print 'id.'&action=delrights&entity='.$entity.'&module=allmodules&confirm=yes&token='.newToken().'">'.$langs->trans("None")."";
+ print 'id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("None")."";
print ' | ';
}
print ' | ';
@@ -359,9 +359,9 @@ if ($result) {
if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) {
if ($caneditperms) {
print '';
- print 'id.'&action=addrights&entity='.$entity.'&module='.$obj->module.'&confirm=yes&token='.newToken().'">'.$langs->trans("All")."";
+ print 'id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module='.$obj->module.'&confirm=yes">'.$langs->trans("All")."";
print ' / ';
- print 'id.'&action=delrights&entity='.$entity.'&module='.$obj->module.'&confirm=yes&token='.newToken().'">'.$langs->trans("None")."";
+ print 'id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module='.$obj->module.'&confirm=yes">'.$langs->trans("None")."";
print ' | ';
}
print ' | ';
@@ -399,7 +399,7 @@ if ($result) {
print '';
} elseif (in_array($obj->id, $permsuser)) { // Permission granted by user
if ($caneditperms) {
- print 'id.'&action=delrights&entity='.$entity.'&rights='.$obj->id.'&confirm=yes&token='.newToken().'">';
+ print ' | id.'&action=delrights&token='.newToken().'&entity='.$entity.'&rights='.$obj->id.'&confirm=yes">';
//print img_edit_remove($langs->trans("Remove"));
print img_picto($langs->trans("Remove"), 'switch_on');
print ' | ';
diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php
index c29fc519258..a3ad036ca9a 100644
--- a/htdocs/variants/combinations.php
+++ b/htdocs/variants/combinations.php
@@ -888,7 +888,7 @@ if (!empty($id) || !empty($ref)) {
print ''.$prodstatic->getLibStatut(2, 0).' | ';
print ''.$prodstatic->getLibStatut(2, 1).' | ';
print '';
- print 'id.'">'.img_edit().'';
+ print 'id.'">'.img_edit().'';
print 'id.'">'.img_delete().'';
print ' | ';
print '';
|