mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Fix: No alpha here, this breaks ability to submit html content with
images or links.
This commit is contained in:
@@ -86,7 +86,9 @@ foreach($modules as $const => $desc)
|
|||||||
|
|
||||||
if (GETPOST('save','alpha'))
|
if (GETPOST('save','alpha'))
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "FCKEDITOR_TEST", GETPOST('formtestfield','alpha'),'chaine',0,'',$conf->entity);
|
$res=dolibarr_set_const($db, "FCKEDITOR_TEST", GETPOST('formtestfield'),'chaine',0,'',$conf->entity);
|
||||||
|
|
||||||
|
if ($res > 0) $mesg=$langs->trans("RecordModifiedSuccessfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -103,15 +105,21 @@ print '<br>';
|
|||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
if (empty($conf->use_javascript_ajax))
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td colspan="2">'.$langs->trans("ActivateFCKeditor").'</td>';
|
|
||||||
print '<td align="center" width="100">'.$langs->trans("Action").'</td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
|
|
||||||
// Modules
|
|
||||||
foreach($modules as $const => $desc)
|
|
||||||
{
|
{
|
||||||
|
dol_htmloutput_errors('',array($langs->trans("NotAvailable"),$langs->trans("JavascriptDisabled")),1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<table class="noborder" width="100%">';
|
||||||
|
print '<tr class="liste_titre">';
|
||||||
|
print '<td colspan="2">'.$langs->trans("ActivateFCKeditor").'</td>';
|
||||||
|
print '<td align="center" width="100">'.$langs->trans("Action").'</td>';
|
||||||
|
print "</tr>\n";
|
||||||
|
|
||||||
|
// Modules
|
||||||
|
foreach($modules as $const => $desc)
|
||||||
|
{
|
||||||
// Si condition non remplie, on ne propose pas l'option
|
// Si condition non remplie, on ne propose pas l'option
|
||||||
if (! $conditions[$const]) continue;
|
if (! $conditions[$const]) continue;
|
||||||
|
|
||||||
@@ -133,26 +141,28 @@ foreach($modules as $const => $desc)
|
|||||||
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table>'."\n";
|
print '</table>'."\n";
|
||||||
|
|
||||||
|
dol_htmloutput_mesg($mesg);
|
||||||
|
|
||||||
print '<br>'."\n";
|
print '<br>'."\n";
|
||||||
print_fiche_titre($langs->trans("TestSubmitForm"),'','');
|
print_fiche_titre($langs->trans("TestSubmitForm"),'','');
|
||||||
print '<form name="formtest" method="POST" action="'.$_SERVER["PHP_SELF"].'">'."\n";
|
print '<form name="formtest" method="POST" action="'.$_SERVER["PHP_SELF"].'">'."\n";
|
||||||
$uselocalbrowser=true;
|
$uselocalbrowser=true;
|
||||||
$editor=new DolEditor('formtestfield',isset($conf->global->FCKEDITOR_TEST)?$conf->global->FCKEDITOR_TEST:'Test','',200,'dolibarr_notes','In', true, $uselocalbrowser);
|
$editor=new DolEditor('formtestfield',isset($conf->global->FCKEDITOR_TEST)?$conf->global->FCKEDITOR_TEST:'Test','',200,'dolibarr_notes','In', true, $uselocalbrowser);
|
||||||
$editor->Create();
|
$editor->Create();
|
||||||
print '<center><br><input class="button" type="submit" name="save" value="'.$langs->trans("Save").'"></center>'."\n";
|
print '<center><br><input class="button" type="submit" name="save" value="'.$langs->trans("Save").'"></center>'."\n";
|
||||||
print '</form>'."\n";
|
print '</form>'."\n";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
print '<!-- Result -->';
|
print '<!-- Result -->';
|
||||||
print $_POST["formtestfield"];
|
print $_POST["formtestfield"];
|
||||||
print '<!-- Result -->';
|
print '<!-- Result -->';
|
||||||
print $conf->global->FCKEDITOR_TEST;
|
print $conf->global->FCKEDITOR_TEST;
|
||||||
*/
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user