Qual : PHP Code_Sniffer
This commit is contained in:
parent
2c51b51a88
commit
98ddd02a32
@ -2783,7 +2783,6 @@ class Commande extends CommonOrder
|
|||||||
* Update value of extrafields on the proposal
|
* Update value of extrafields on the proposal
|
||||||
*
|
*
|
||||||
* @param User $user Object user that modify
|
* @param User $user Object user that modify
|
||||||
* @param double $remise Amount discount
|
|
||||||
* @return int <0 if ko, >0 if ok
|
* @return int <0 if ko, >0 if ok
|
||||||
*/
|
*/
|
||||||
function update_extrafields($user)
|
function update_extrafields($user)
|
||||||
|
|||||||
@ -175,6 +175,7 @@ class mailing_thirdparties_services_expired extends MailingTargets
|
|||||||
* For example if this selector is used to extract 500 different
|
* For example if this selector is used to extract 500 different
|
||||||
* emails from a text file, this function must return 500.
|
* emails from a text file, this function must return 500.
|
||||||
*
|
*
|
||||||
|
* @param string $sql SQL request to get recipitien
|
||||||
* @param int $filter Filter
|
* @param int $filter Filter
|
||||||
* @param string $option Option
|
* @param string $option Option
|
||||||
* @return int Number of recipients
|
* @return int Number of recipients
|
||||||
|
|||||||
@ -209,7 +209,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
function get_substitutionarray_project_reference($refdetail,$outputlangs)
|
function get_substitutionarray_project_reference($refdetail,$outputlangs)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'projref_type'=>$refdetail['type'],
|
'projref_type'=>$refdetail['type'],
|
||||||
'projref_ref'=>$refdetail['ref'],
|
'projref_ref'=>$refdetail['ref'],
|
||||||
@ -220,7 +220,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
'projref_status'=>$refdetail['status']
|
'projref_status'=>$refdetail['status']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define array with couple substitution key => substitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
@ -242,7 +242,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
'taskressource_email'=>$taskressource['email']
|
'taskressource_email'=>$taskressource['email']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define array with couple substitution key => substitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
@ -254,7 +254,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'tasktime_rowid'=>$tasktime['rowid'],
|
'tasktime_rowid'=>$tasktime['rowid'],
|
||||||
'tasktime_task_date'=>dol_print_date($tasktime['task_date'],'day'),
|
'tasktime_task_date'=>dol_print_date($tasktime['task_date'],'day'),
|
||||||
'tasktime_task_duration'=>convertSecondToTime($tasktime['task_duration'],'all'),
|
'tasktime_task_duration'=>convertSecondToTime($tasktime['task_duration'],'all'),
|
||||||
@ -265,7 +265,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
'tasktime_fullcivname'=>$tasktime['fullcivname']
|
'tasktime_fullcivname'=>$tasktime['fullcivname']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define array with couple substitution key => substitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
@ -276,7 +276,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
function get_substitutionarray_task_file($file,$outputlangs)
|
function get_substitutionarray_task_file($file,$outputlangs)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'tasksfile_name'=>$file['name'],
|
'tasksfile_name'=>$file['name'],
|
||||||
'tasksfile_date'=>dol_print_date($file['date'],'day'),
|
'tasksfile_date'=>dol_print_date($file['date'],'day'),
|
||||||
@ -384,6 +384,14 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add odtgeneration hook
|
||||||
|
if (! is_object($hookmanager))
|
||||||
|
{
|
||||||
|
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
|
||||||
|
$hookmanager=new HookManager($this->db);
|
||||||
|
}
|
||||||
|
$hookmanager->initHooks(array('odtgeneration'));
|
||||||
|
global $action;
|
||||||
if (! is_object($outputlangs)) $outputlangs=$langs;
|
if (! is_object($outputlangs)) $outputlangs=$langs;
|
||||||
$sav_charset_output=$outputlangs->charset_output;
|
$sav_charset_output=$outputlangs->charset_output;
|
||||||
$outputlangs->charset_output='UTF-8';
|
$outputlangs->charset_output='UTF-8';
|
||||||
@ -534,6 +542,9 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
// Replace tags of object + external modules
|
// Replace tags of object + external modules
|
||||||
$tmparray=$this->get_substitutionarray_object($object,$outputlangs);
|
$tmparray=$this->get_substitutionarray_object($object,$outputlangs);
|
||||||
complete_substitutions_array($tmparray, $outputlangs, $object);
|
complete_substitutions_array($tmparray, $outputlangs, $object);
|
||||||
|
// Call the ODTSubstitution hook
|
||||||
|
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs,'substitutionarray'=>&$tmparray);
|
||||||
|
$reshook=$hookmanager->executeHooks('ODTSubstitution',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
foreach($tmparray as $key=>$value)
|
foreach($tmparray as $key=>$value)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
@ -564,7 +575,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
if (!empty($object->fk_soc)) $socid = $object->fk_soc;
|
if (!empty($object->fk_soc)) $socid = $object->fk_soc;
|
||||||
|
|
||||||
$tasksarray=$taskstatic->getTasksArray(0, 0, $object->id, $socid, 0);
|
$tasksarray=$taskstatic->getTasksArray(0, 0, $object->id, $socid, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
foreach ($tasksarray as $task)
|
foreach ($tasksarray as $task)
|
||||||
@ -584,10 +595,10 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$taskobj=new Task($this->db);
|
$taskobj=new Task($this->db);
|
||||||
$taskobj->fetch($task->id);
|
$taskobj->fetch($task->id);
|
||||||
|
|
||||||
// Replace tags of lines for contacts task
|
// Replace tags of lines for contacts task
|
||||||
$sourcearray=array('internal','external');
|
$sourcearray=array('internal','external');
|
||||||
$contact_arrray=array();
|
$contact_arrray=array();
|
||||||
@ -601,7 +612,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
if ((is_array($contact_arrray) && count($contact_arrray) > 0))
|
if ((is_array($contact_arrray) && count($contact_arrray) > 0))
|
||||||
{
|
{
|
||||||
$listlinestaskres = $listlines->__get('tasksressources');
|
$listlinestaskres = $listlines->__get('tasksressources');
|
||||||
|
|
||||||
foreach ($contact_arrray as $contact)
|
foreach ($contact_arrray as $contact)
|
||||||
{
|
{
|
||||||
if ($contact['source']=='internal') {
|
if ($contact['source']=='internal') {
|
||||||
@ -611,15 +622,15 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
} elseif ($contact['source']=='external') {
|
} elseif ($contact['source']=='external') {
|
||||||
$objectdetail=new Contact($this->db);
|
$objectdetail=new Contact($this->db);
|
||||||
$objectdetail->fetch($contact['id']);
|
$objectdetail->fetch($contact['id']);
|
||||||
|
|
||||||
$soc=new Societe($this->db);
|
$soc=new Societe($this->db);
|
||||||
$soc->fetch($contact['socid']);
|
$soc->fetch($contact['socid']);
|
||||||
$contact['socname']=$soc->name;
|
$contact['socname']=$soc->name;
|
||||||
}
|
}
|
||||||
$contact['fullname']=$objectdetail->getFullName($outputlangs,1);
|
$contact['fullname']=$objectdetail->getFullName($outputlangs,1);
|
||||||
|
|
||||||
$tmparray=$this->get_substitutionarray_tasksressource($contact,$outputlangs);
|
$tmparray=$this->get_substitutionarray_tasksressource($contact,$outputlangs);
|
||||||
|
|
||||||
foreach($tmparray as $key => $val)
|
foreach($tmparray as $key => $val)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -645,7 +656,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
$sql .= " WHERE t.fk_task =".$task->id;
|
$sql .= " WHERE t.fk_task =".$task->id;
|
||||||
$sql .= " AND t.fk_user = u.rowid";
|
$sql .= " AND t.fk_user = u.rowid";
|
||||||
$sql .= " ORDER BY t.task_date DESC";
|
$sql .= " ORDER BY t.task_date DESC";
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
@ -663,9 +674,9 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
} else {
|
} else {
|
||||||
$row['fullcivname']='';
|
$row['fullcivname']='';
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmparray=$this->get_substitutionarray_taskstime($row,$outputlangs);
|
$tmparray=$this->get_substitutionarray_taskstime($row,$outputlangs);
|
||||||
|
|
||||||
foreach($tmparray as $key => $val)
|
foreach($tmparray as $key => $val)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -684,15 +695,15 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Replace tags of project files
|
// Replace tags of project files
|
||||||
$listtasksfiles = $listlines->__get('tasksfiles');
|
$listtasksfiles = $listlines->__get('tasksfiles');
|
||||||
|
|
||||||
$upload_dir = $conf->projet->dir_output.'/'.dol_sanitizeFileName($object->ref).'/'.dol_sanitizeFileName($task->ref);
|
$upload_dir = $conf->projet->dir_output.'/'.dol_sanitizeFileName($object->ref).'/'.dol_sanitizeFileName($task->ref);
|
||||||
$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$','name',SORT_ASC,1);
|
$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$','name',SORT_ASC,1);
|
||||||
|
|
||||||
|
|
||||||
foreach ($filearray as $filedetail)
|
foreach ($filearray as $filedetail)
|
||||||
{
|
{
|
||||||
$tmparray=$this->get_substitutionarray_task_file($filedetail,$outputlangs);
|
$tmparray=$this->get_substitutionarray_task_file($filedetail,$outputlangs);
|
||||||
@ -731,7 +742,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
$upload_dir = $conf->projet->dir_output.'/'.dol_sanitizeFileName($object->ref);
|
$upload_dir = $conf->projet->dir_output.'/'.dol_sanitizeFileName($object->ref);
|
||||||
$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$','name',SORT_ASC,1);
|
$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$','name',SORT_ASC,1);
|
||||||
|
|
||||||
|
|
||||||
foreach ($filearray as $filedetail)
|
foreach ($filearray as $filedetail)
|
||||||
{
|
{
|
||||||
//dol_syslog(get_class($this).'::main $filedetail'.var_export($filedetail,true));
|
//dol_syslog(get_class($this).'::main $filedetail'.var_export($filedetail,true));
|
||||||
@ -891,27 +902,27 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
{
|
{
|
||||||
$ref_array=array();
|
$ref_array=array();
|
||||||
$ref_array['type']=$langs->trans($classname);
|
$ref_array['type']=$langs->trans($classname);
|
||||||
|
|
||||||
$element = new $classname($this->db);
|
$element = new $classname($this->db);
|
||||||
$element->fetch($elementarray[$i]);
|
$element->fetch($elementarray[$i]);
|
||||||
$element->fetch_thirdparty();
|
$element->fetch_thirdparty();
|
||||||
|
|
||||||
//Ref object
|
//Ref object
|
||||||
$ref_array['ref']=$element->ref;
|
$ref_array['ref']=$element->ref;
|
||||||
|
|
||||||
//Date object
|
//Date object
|
||||||
$dateref=$element->date;
|
$dateref=$element->date;
|
||||||
if (empty($dateref)) $dateref=$element->datep;
|
if (empty($dateref)) $dateref=$element->datep;
|
||||||
if (empty($dateref)) $dateref=$element->date_contrat;
|
if (empty($dateref)) $dateref=$element->date_contrat;
|
||||||
$ref_array['date']=$dateref;
|
$ref_array['date']=$dateref;
|
||||||
|
|
||||||
//Soc object
|
//Soc object
|
||||||
if (is_object($element->thirdparty)) {
|
if (is_object($element->thirdparty)) {
|
||||||
$ref_array['socname']=$element->thirdparty->name;
|
$ref_array['socname']=$element->thirdparty->name;
|
||||||
} else {
|
} else {
|
||||||
$ref_array['socname']='';
|
$ref_array['socname']='';
|
||||||
}
|
}
|
||||||
|
|
||||||
//Amount object
|
//Amount object
|
||||||
if (empty($valueref['disableamount'])) {
|
if (empty($valueref['disableamount'])) {
|
||||||
if (!empty($element->total_ht)) {
|
if (!empty($element->total_ht)) {
|
||||||
@ -925,9 +936,9 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
$ref_array['amountht']='';
|
$ref_array['amountht']='';
|
||||||
$ref_array['amountttc']='';
|
$ref_array['amountttc']='';
|
||||||
}
|
}
|
||||||
|
|
||||||
$ref_array['status']=html_entity_decode($element->getLibStatut(0));
|
$ref_array['status']=html_entity_decode($element->getLibStatut(0));
|
||||||
|
|
||||||
$tmparray=$this->get_substitutionarray_project_reference($ref_array,$outputlangs);
|
$tmparray=$this->get_substitutionarray_project_reference($ref_array,$outputlangs);
|
||||||
|
|
||||||
foreach($tmparray as $key => $val)
|
foreach($tmparray as $key => $val)
|
||||||
@ -945,7 +956,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$odfHandler->mergeSegment($listlines);
|
$odfHandler->mergeSegment($listlines);
|
||||||
@ -958,6 +969,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Call the beforeODTSave hook
|
||||||
|
$parameters=array('odfHandler'=>&$odfHandler,'file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs);
|
||||||
|
$reshook=$hookmanager->executeHooks('beforeODTSave',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
|
||||||
|
|
||||||
// Write new file
|
// Write new file
|
||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
|
|
||||||
|
|||||||
@ -146,6 +146,7 @@ class ProductFournisseur extends Product
|
|||||||
* @param string $charges costs affering to product
|
* @param string $charges costs affering to product
|
||||||
* @param float $remise_percent Discount regarding qty (percent)
|
* @param float $remise_percent Discount regarding qty (percent)
|
||||||
* @param float $remise Discount regarding qty (amount)
|
* @param float $remise Discount regarding qty (amount)
|
||||||
|
* @param float $newnpr new infobit tva npr
|
||||||
* @return int <0 if KO, >=0 if OK
|
* @return int <0 if KO, >=0 if OK
|
||||||
*/
|
*/
|
||||||
function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges=0, $remise_percent=0, $remise=0, $newnpr=0)
|
function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges=0, $remise_percent=0, $remise=0, $newnpr=0)
|
||||||
|
|||||||
@ -202,7 +202,7 @@ if (isset($_POST["ajoutercolonne"]) && ($object->format == "D" || $object->forma
|
|||||||
|
|
||||||
//on rajoute la valeur dans les valeurs
|
//on rajoute la valeur dans les valeurs
|
||||||
$datesbase = explode(",",$object->sujet);
|
$datesbase = explode(",",$object->sujet);
|
||||||
$taillebase = sizeof($datesbase);
|
$taillebase = count($datesbase);
|
||||||
|
|
||||||
//recherche de l'endroit de l'insertion de la nouvelle date dans les dates deja entrées dans le tableau
|
//recherche de l'endroit de l'insertion de la nouvelle date dans les dates deja entrées dans le tableau
|
||||||
if ($nouvelledate < $datesbase[0]) {
|
if ($nouvelledate < $datesbase[0]) {
|
||||||
|
|||||||
@ -120,7 +120,7 @@ function get_server_name()
|
|||||||
/**
|
/**
|
||||||
* is_error
|
* is_error
|
||||||
*
|
*
|
||||||
* @param unknown_type $cerr
|
* @param unknown_type $cerr error number
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function is_error($cerr)
|
function is_error($cerr)
|
||||||
|
|||||||
@ -257,9 +257,9 @@ if (issetAndNoEmpty('choixjourajout')) {
|
|||||||
|
|
||||||
// Si le test est passé, alors on insere la valeur dans la variable de session qui contient les dates
|
// Si le test est passé, alors on insere la valeur dans la variable de session qui contient les dates
|
||||||
if ($journeuf && issetAndNoEmpty('choixjourajout') === true) {
|
if ($journeuf && issetAndNoEmpty('choixjourajout') === true) {
|
||||||
array_push ($_SESSION["totalchoixjour"],mktime (0,0,0, $_SESSION["mois"], $_POST["choixjourajout"][0], $_SESSION["annee"]));
|
array_push($_SESSION["totalchoixjour"],mktime (0,0,0, $_SESSION["mois"], $_POST["choixjourajout"][0], $_SESSION["annee"]));
|
||||||
sort ($_SESSION["totalchoixjour"]);
|
sort($_SESSION["totalchoixjour"]);
|
||||||
$cle=array_search (mktime (0,0,0, $_SESSION["mois"], $_POST["choixjourajout"][0], $_SESSION["annee"]), $_SESSION["totalchoixjour"]);
|
$cle=array_search(mktime (0,0,0, $_SESSION["mois"], $_POST["choixjourajout"][0], $_SESSION["annee"]), $_SESSION["totalchoixjour"]);
|
||||||
|
|
||||||
//On sauvegarde les heures deja entrées
|
//On sauvegarde les heures deja entrées
|
||||||
for ($i = 0; $i < $cle; $i++) {
|
for ($i = 0; $i < $cle; $i++) {
|
||||||
|
|||||||
@ -162,7 +162,7 @@ print '</script>'."\n";
|
|||||||
|
|
||||||
print '<br>'."\n";
|
print '<br>'."\n";
|
||||||
|
|
||||||
#affichage du cochage par défaut
|
//affichage du cochage par défaut
|
||||||
$cocheplus='';
|
$cocheplus='';
|
||||||
if ($_SESSION["canedit"]) $cocheplus="checked";
|
if ($_SESSION["canedit"]) $cocheplus="checked";
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,7 @@ $now=dol_now();
|
|||||||
|
|
||||||
$nbcolonnes=substr_count($object->sujet,',')+1;
|
$nbcolonnes=substr_count($object->sujet,',')+1;
|
||||||
$toutsujet=explode(",",$object->sujet);
|
$toutsujet=explode(",",$object->sujet);
|
||||||
#$toutsujet=str_replace("°","'",$toutsujet);
|
//$toutsujet=str_replace("°","'",$toutsujet);
|
||||||
|
|
||||||
// affichage des sujets du sondage
|
// affichage des sujets du sondage
|
||||||
$input.=$langs->trans("Name").";";
|
$input.=$langs->trans("Name").";";
|
||||||
@ -139,15 +139,15 @@ if ($resql)
|
|||||||
else dol_print_error($db);
|
else dol_print_error($db);
|
||||||
|
|
||||||
|
|
||||||
$filesize = strlen( $input );
|
$filesize = strlen($input);
|
||||||
$filename=$numsondage."_".dol_print_date($now,'%Y%m%d%H%M').".csv";
|
$filename=$numsondage."_".dol_print_date($now,'%Y%m%d%H%M').".csv";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
header( 'Content-Type: text/csv; charset=utf-8' );
|
header('Content-Type: text/csv; charset=utf-8');
|
||||||
header( 'Content-Length: '.$filesize );
|
header('Content-Length: '.$filesize);
|
||||||
header( 'Content-Disposition: attachment; filename="'.$filename.'"' );
|
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||||
header( 'Cache-Control: max-age=10' );
|
header('Cache-Control: max-age=10');
|
||||||
echo $input;
|
echo $input;
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@ -73,8 +73,7 @@ if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fu
|
|||||||
'New subscription payed',
|
'New subscription payed',
|
||||||
$sendto,
|
$sendto,
|
||||||
$from,
|
$from,
|
||||||
'New subscription payed '.$fulltag
|
'New subscription payed '.$fulltag);
|
||||||
);
|
|
||||||
|
|
||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
@ -103,8 +103,7 @@ if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fu
|
|||||||
'New subscription payed',
|
'New subscription payed',
|
||||||
$sendto,
|
$sendto,
|
||||||
$from,
|
$from,
|
||||||
'New subscription payed '.$fulltag
|
'New subscription payed '.$fulltag);
|
||||||
);
|
|
||||||
|
|
||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
@ -81,8 +81,7 @@ if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fu
|
|||||||
'New subscription payed',
|
'New subscription payed',
|
||||||
$sendto,
|
$sendto,
|
||||||
$from,
|
$from,
|
||||||
'New subscription payed '.$fulltag
|
'New subscription payed '.$fulltag);
|
||||||
);
|
|
||||||
|
|
||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
@ -140,8 +140,7 @@ if ($PAYPALTOKEN)
|
|||||||
'New subscription payed',
|
'New subscription payed',
|
||||||
$sendto,
|
$sendto,
|
||||||
$from,
|
$from,
|
||||||
'New subscription payed '.$fulltag
|
'New subscription payed '.$fulltag);
|
||||||
);
|
|
||||||
|
|
||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user