forked from Wavyzz/dolibarr
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
0
dev/initdata/generate-commande.php
Normal file → Executable file
0
dev/initdata/generate-commande.php
Normal file → Executable file
0
dev/initdata/generate-facture.php
Normal file → Executable file
0
dev/initdata/generate-facture.php
Normal file → Executable file
0
dev/initdata/generate-produit.php
Normal file → Executable file
0
dev/initdata/generate-produit.php
Normal file → Executable file
0
dev/initdata/generate-propale.php
Normal file → Executable file
0
dev/initdata/generate-propale.php
Normal file → Executable file
0
dev/initdata/generate-societe.php
Normal file → Executable file
0
dev/initdata/generate-societe.php
Normal file → Executable file
0
htdocs/admin/pdf.php
Executable file → Normal file
0
htdocs/admin/pdf.php
Executable file → Normal file
0
htdocs/admin/proxy.php
Executable file → Normal file
0
htdocs/admin/proxy.php
Executable file → Normal file
0
htdocs/admin/sms.php
Executable file → Normal file
0
htdocs/admin/sms.php
Executable file → Normal file
0
htdocs/admin/translation.php
Executable file → Normal file
0
htdocs/admin/translation.php
Executable file → Normal file
0
htdocs/admin/workflow.php
Executable file → Normal file
0
htdocs/admin/workflow.php
Executable file → Normal file
@@ -414,7 +414,6 @@ if ($resql)
|
|||||||
print '<td align="right"><b>'.price($total_paid).'</b></td>';
|
print '<td align="right"><b>'.price($total_paid).'</b></td>';
|
||||||
print '<td align="center"> </td>';
|
print '<td align="center"> </td>';
|
||||||
print '<td align="center"> </td>';
|
print '<td align="center"> </td>';
|
||||||
print '<td align="center"> </td>';
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
0
htdocs/core/class/CSMSFile.class.php
Executable file → Normal file
0
htdocs/core/class/CSMSFile.class.php
Executable file → Normal file
0
htdocs/core/class/commondocgenerator.class.php
Executable file → Normal file
0
htdocs/core/class/commondocgenerator.class.php
Executable file → Normal file
0
htdocs/core/class/extrafields.class.php
Executable file → Normal file
0
htdocs/core/class/extrafields.class.php
Executable file → Normal file
0
htdocs/core/class/genericobject.class.php
Executable file → Normal file
0
htdocs/core/class/genericobject.class.php
Executable file → Normal file
0
htdocs/core/class/hookmanager.class.php
Executable file → Normal file
0
htdocs/core/class/hookmanager.class.php
Executable file → Normal file
@@ -184,8 +184,8 @@ class FormFile
|
|||||||
* Return a string to show the box with list of available documents for object.
|
* Return a string to show the box with list of available documents for object.
|
||||||
* This also set the property $this->numoffiles
|
* This also set the property $this->numoffiles
|
||||||
*
|
*
|
||||||
* @param string $modulepart propal, facture, facture_fourn, ...
|
* @param string $modulepart Module the files are related to ('propal', 'facture', 'facture_fourn', 'mymodule', 'mymodule_temp', ...)
|
||||||
* @param string $filename Sub-directory to scan (Example: '0/1/10', 'FA/DD/MM/YY/9999'). Use '' if $filedir is already complete)
|
* @param string $filename Existing (so sanitized) sub-directory to scan (Example: '0/1/10', 'FA/DD/MM/YY/9999'). Use '' if $filedir is already complete)
|
||||||
* @param string $filedir Directory to scan
|
* @param string $filedir Directory to scan
|
||||||
* @param string $urlsource Url of origin page (for return)
|
* @param string $urlsource Url of origin page (for return)
|
||||||
* @param int $genallowed Generation is allowed (1/0 or array list of templates)
|
* @param int $genallowed Generation is allowed (1/0 or array list of templates)
|
||||||
@@ -200,9 +200,10 @@ class FormFile
|
|||||||
* @param string $title Title to show on top of form
|
* @param string $title Title to show on top of form
|
||||||
* @param string $buttonlabel Label on submit button
|
* @param string $buttonlabel Label on submit button
|
||||||
* @param string $codelang Default language code to use on lang combo box if multilang is enabled
|
* @param string $codelang Default language code to use on lang combo box if multilang is enabled
|
||||||
|
* @param string $morepicto Add more HTML content into cell with picto
|
||||||
* @return string Output string with HTML array of documents (might be empty string)
|
* @return string Output string with HTML array of documents (might be empty string)
|
||||||
*/
|
*/
|
||||||
function showdocuments($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='',$allowgenifempty=1,$forcenomultilang=0,$iconPDF=0,$maxfilenamelength=28,$noform=0,$param='',$title='',$buttonlabel='',$codelang='')
|
function showdocuments($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='',$allowgenifempty=1,$forcenomultilang=0,$iconPDF=0,$maxfilenamelength=28,$noform=0,$param='',$title='',$buttonlabel='',$codelang='',$morepicto='')
|
||||||
{
|
{
|
||||||
global $langs,$conf,$hookmanager;
|
global $langs,$conf,$hookmanager;
|
||||||
global $bc;
|
global $bc;
|
||||||
@@ -220,7 +221,6 @@ class FormFile
|
|||||||
$out='';
|
$out='';
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
//$filename = dol_sanitizeFileName($filename); //Must be sanitized before calling show_documents
|
|
||||||
$headershown=0;
|
$headershown=0;
|
||||||
$showempty=0;
|
$showempty=0;
|
||||||
$i=0;
|
$i=0;
|
||||||
@@ -231,7 +231,7 @@ class FormFile
|
|||||||
$out.= "\n".'<!-- Start show_document -->'."\n";
|
$out.= "\n".'<!-- Start show_document -->'."\n";
|
||||||
//print 'filedir='.$filedir;
|
//print 'filedir='.$filedir;
|
||||||
|
|
||||||
// Affiche en-tete tableau
|
// Show table
|
||||||
if ($genallowed)
|
if ($genallowed)
|
||||||
{
|
{
|
||||||
$modellist=array();
|
$modellist=array();
|
||||||
@@ -390,19 +390,6 @@ class FormFile
|
|||||||
$buttonlabeltoshow=$buttonlabel;
|
$buttonlabeltoshow=$buttonlabel;
|
||||||
if (empty($buttonlabel)) $buttonlabel=$langs->trans('Generate');
|
if (empty($buttonlabel)) $buttonlabel=$langs->trans('Generate');
|
||||||
|
|
||||||
|
|
||||||
// Keep this. Used for test with jmobile
|
|
||||||
/*print '
|
|
||||||
<form id="form1" name="form1">
|
|
||||||
<select id="custom-select2a" name="custom-select2a">
|
|
||||||
<option value="" data-placeholder="true">Choose One...</option>
|
|
||||||
<option value="option1">Option #1</option>
|
|
||||||
<option value="option2">Option #2</option>
|
|
||||||
<option value="option3">Option #3 - This is a really f fsd f gdfgdgd gd gd gd fgd gd gd fgd fgfdreally really really really long label.</option>
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
';*/
|
|
||||||
|
|
||||||
if (empty($noform)) $out.= '<form action="'.$urlsource.(empty($conf->global->MAIN_JUMP_TAG)?'':'#builddoc').'" name="'.$forname.'" id="'.$forname.'_form" method="post">';
|
if (empty($noform)) $out.= '<form action="'.$urlsource.(empty($conf->global->MAIN_JUMP_TAG)?'':'#builddoc').'" name="'.$forname.'" id="'.$forname.'_form" method="post">';
|
||||||
$out.= '<input type="hidden" name="action" value="builddoc">';
|
$out.= '<input type="hidden" name="action" value="builddoc">';
|
||||||
$out.= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
$out.= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
@@ -448,7 +435,8 @@ class FormFile
|
|||||||
$out.= '</th>';
|
$out.= '</th>';
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
$out.= '<th align="center" colspan="'.($delallowed?'2':'1').'" class="formdocbutton liste_titre">';
|
$addcolumforpicto=($delallowed || $printer || $morepicto);
|
||||||
|
$out.= '<th align="center" colspan="'.($addcolumforpicto?'2':'1').'" class="formdocbutton liste_titre">';
|
||||||
$genbutton = '<input class="button" id="'.$forname.'_generatebutton"';
|
$genbutton = '<input class="button" id="'.$forname.'_generatebutton"';
|
||||||
$genbutton.= ' type="submit" value="'.$buttonlabel.'"';
|
$genbutton.= ' type="submit" value="'.$buttonlabel.'"';
|
||||||
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) $genbutton.= ' disabled="disabled"';
|
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) $genbutton.= ' disabled="disabled"';
|
||||||
@@ -462,7 +450,6 @@ class FormFile
|
|||||||
$out.= $genbutton;
|
$out.= $genbutton;
|
||||||
$out.= '</th>';
|
$out.= '</th>';
|
||||||
|
|
||||||
if ($printer) $out.= '<th></th>';
|
|
||||||
if($hookmanager->hooks['formfile'])
|
if($hookmanager->hooks['formfile'])
|
||||||
{
|
{
|
||||||
foreach($hookmanager->hooks['formfile'] as $module)
|
foreach($hookmanager->hooks['formfile'] as $module)
|
||||||
@@ -524,22 +511,30 @@ class FormFile
|
|||||||
$date=(! empty($file['date'])?$file['date']:dol_filemtime($filedir."/".$file["name"]));
|
$date=(! empty($file['date'])?$file['date']:dol_filemtime($filedir."/".$file["name"]));
|
||||||
$out.= '<td align="right" class="nowrap">'.dol_print_date($date, 'dayhour').'</td>';
|
$out.= '<td align="right" class="nowrap">'.dol_print_date($date, 'dayhour').'</td>';
|
||||||
|
|
||||||
if ($delallowed)
|
if ($delallowed || $printer || $morepicto)
|
||||||
{
|
{
|
||||||
$out.= '<td align="right">';
|
$out.= '<td align="right">';
|
||||||
|
if ($delallowed)
|
||||||
|
{
|
||||||
$out.= '<a href="'.$urlsource.(strpos($urlsource,'?')?'&':'?').'action=remove_file&file='.urlencode($relativepath);
|
$out.= '<a href="'.$urlsource.(strpos($urlsource,'?')?'&':'?').'action=remove_file&file='.urlencode($relativepath);
|
||||||
$out.= ($param?'&'.$param:'');
|
$out.= ($param?'&'.$param:'');
|
||||||
//$out.= '&modulepart='.$modulepart; // TODO obsolete ?
|
//$out.= '&modulepart='.$modulepart; // TODO obsolete ?
|
||||||
//$out.= '&urlsource='.urlencode($urlsource); // TODO obsolete ?
|
//$out.= '&urlsource='.urlencode($urlsource); // TODO obsolete ?
|
||||||
$out.= '">'.img_delete().'</a></td>';
|
$out.= '">'.img_picto($langs->trans("Delete"), 'delete.png').'</a>';
|
||||||
|
//$out.='</td>';
|
||||||
}
|
}
|
||||||
// Printer Icon
|
|
||||||
if ($printer)
|
if ($printer)
|
||||||
{
|
{
|
||||||
$out.= '<td align="right">';
|
//$out.= '<td align="right">';
|
||||||
$out.= ' <a href="'.$urlsource.'&action=print_file&printer='.$modulepart.'&file='.urlencode($relativepath);
|
$out.= ' <a href="'.$urlsource.(strpos($urlsource,'?')?'&':'?').'action=print_file&printer='.$modulepart.'&file='.urlencode($relativepath);
|
||||||
$out.= ($param?'&'.$param:'');
|
$out.= ($param?'&'.$param:'');
|
||||||
$out.= '">'.img_printer().'</a></td>';
|
$out.= '">'.img_picto($langs->trans("Print"),'printer.png').'</a>';
|
||||||
|
}
|
||||||
|
if ($morepicto)
|
||||||
|
{
|
||||||
|
$out.=$morepicto;
|
||||||
|
}
|
||||||
|
$out.='</td>';
|
||||||
}
|
}
|
||||||
if (is_object($hookmanager))
|
if (is_object($hookmanager))
|
||||||
{
|
{
|
||||||
|
|||||||
0
htdocs/core/class/html.formsms.class.php
Executable file → Normal file
0
htdocs/core/class/html.formsms.class.php
Executable file → Normal file
0
htdocs/core/class/rssparser.class.php
Executable file → Normal file
0
htdocs/core/class/rssparser.class.php
Executable file → Normal file
0
htdocs/core/class/smtps.class.php
Executable file → Normal file
0
htdocs/core/class/smtps.class.php
Executable file → Normal file
0
htdocs/core/class/vcard.class.php
Executable file → Normal file
0
htdocs/core/class/vcard.class.php
Executable file → Normal file
@@ -1233,7 +1233,7 @@ function dol_most_recent_file($dir,$regexfilter='',$excludefilter=array('\.meta$
|
|||||||
/**
|
/**
|
||||||
* Security check when accessing to a document (used by document.php, viewimage.php and webservices)
|
* Security check when accessing to a document (used by document.php, viewimage.php and webservices)
|
||||||
*
|
*
|
||||||
* @param string $modulepart Module of document
|
* @param string $modulepart Module of document (module, module_user_temp, module_user or module_temp)
|
||||||
* @param string $original_file Relative path with filename
|
* @param string $original_file Relative path with filename
|
||||||
* @param string $entity Restrict onto entity
|
* @param string $entity Restrict onto entity
|
||||||
* @param User $fuser User object (forced)
|
* @param User $fuser User object (forced)
|
||||||
|
|||||||
0
htdocs/core/triggers/interface_20_all_Logevents.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_20_all_Logevents.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_50_modNotification_Notification.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_50_modNotification_Notification.class.php
Executable file → Normal file
0
htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN
Executable file → Normal file
0
htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN
Executable file → Normal file
0
htdocs/filefunc.inc.php
Executable file → Normal file
0
htdocs/filefunc.inc.php
Executable file → Normal file
0
htdocs/fourn/commande/index.php
Executable file → Normal file
0
htdocs/fourn/commande/index.php
Executable file → Normal file
@@ -83,6 +83,7 @@ if (! empty($dolibarr_main_document_root_alt))
|
|||||||
print "Should found something like following examples:<br>\n";
|
print "Should found something like following examples:<br>\n";
|
||||||
print "\"/extensions\"<br>\n";
|
print "\"/extensions\"<br>\n";
|
||||||
print "\"/extensions1,/extensions2,...\"<br>\n";
|
print "\"/extensions1,/extensions2,...\"<br>\n";
|
||||||
|
print "\"/../extensions\"<br>\n";
|
||||||
print "\"/custom\"<br>\n";
|
print "\"/custom\"<br>\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user