mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
47 lines
1.9 KiB
PHP
47 lines
1.9 KiB
PHP
|
|
#!/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';
|
||
|
|
|
||
|
|
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";
|