mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-25 02:41:26 +01:00
57 lines
2.1 KiB
PHP
Executable File
57 lines
2.1 KiB
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
/**
|
|
* \file scripts/company/sync_contacts_dolibarr2ldap.php
|
|
* \ingroup ldap company
|
|
* \brief Script to update all contacts from Dolibarr into a LDAP database
|
|
*/
|
|
|
|
include "../../htdocs/master.inc.php";
|
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
|
|
|
$langs->setDefaultLang('fr');
|
|
$langs->loadLangs(array('main', 'companies'));
|
|
|
|
var_dump($langs->tab_translate["Preview"]);
|
|
|
|
print $langs->tr("Preview");
|
|
print "\n";
|
|
print $langs->trans("Preview");
|
|
print "\n";
|
|
|
|
print ">>> dol_escape_htmltag(eée < > bb<b>bold ç) - should not happen</b>\n";
|
|
print dol_escape_htmltag("eée < > bb<b>bold</b> ç", 1);
|
|
print "\n";
|
|
print ">>> dol_escape_htmltag(eée < > bb<b>bold ç)</b>\n";
|
|
print dol_escape_htmltag("eée < > bb<b>bold</b> ç", 1);
|
|
print "\n";
|
|
print '>>> dol_escape_htmltag(<script>alert("azerty")</script>)'."\n";
|
|
print dol_escape_htmltag('<script>alert("azerty")</script>', 1);
|
|
print "\n";
|
|
|
|
print "\n";
|
|
|
|
// dol_escape_htmltag(dol_htmlwithnojs(dol_string_onlythesehtmltags(dol_htmlentitiesbr($s), 1, 1, 1, array())), 1, 1, 'common', 0, 1);
|
|
print ">>> dolPrintHtml(eée < > bb<b>bold</b> ç) - should not happen\n";
|
|
print dolPrintHtml("eée < > bb<b>bold</b> ç");
|
|
print "\n";
|
|
print ">>> dolPrintHtml(eée < > bb<b>bold</b> ç)\n";
|
|
print dolPrintHtml("eée < > bb<b>bold</b> ç");
|
|
print "\n";
|
|
print '>>> dolPrintHtml(<script>alert("azerty")</script>)'."\n";
|
|
print dolPrintHtml('<script>alert("azerty")</script>');
|
|
print "\n";
|
|
|
|
print "\n";
|
|
|
|
// dol_escape_htmltag(dol_string_onlythesehtmltags(dol_htmlentitiesbr($s), 1, 0, 0, 0, array('br', 'b', 'font', 'hr', 'span')), 1, -1, '', 0, 1);
|
|
print ">>> dolPrintHtmlForattribute(eée < > bb<b>bold</b> ç)\n";
|
|
print dolPrintHTMLForAttribute("eée < > bb<b>bold</b> ç");
|
|
print "\n";
|
|
print ">>> dolPrintHTMLForAttribute(eée < > bb<b>bold</b> ç)\n";
|
|
print dolPrintHTMLForAttribute("eée < > bb<b>bold</b> ç");
|
|
print "\n";
|
|
print '>>> dolPrintHtmlForattribute(<script>alert("azerty")</script>)'."\n";
|
|
print dolPrintHTMLForAttribute('<script>alert("azerty")</script>');
|
|
print "\n";
|