Amélioration du support UTF-8 pour la génération des pages Web.
La variable du charset d'affichage qui est mis dna sle fichier config est stocké dans l'objet $conf et non en session.
This commit is contained in:
parent
404a637952
commit
fcb7e9d700
@ -129,7 +129,7 @@ if ($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'yes
|
|||||||
$result=$propal->delete_product($_GET['ligne']);
|
$result=$propal->delete_product($_GET['ligne']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
@ -147,7 +147,7 @@ if ($_POST['action'] == 'confirm_validate' && $_POST['confirm'] == 'yes')
|
|||||||
$result=$propal->update_price($_GET['propalid']);
|
$result=$propal->update_price($_GET['propalid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
@ -286,7 +286,7 @@ if ($_POST['action'] == 'add' && $user->rights->propale->creer)
|
|||||||
// Generation document PDF
|
// Generation document PDF
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $id, $_REQUEST['model'], $outputlangs);
|
propale_pdf_create($db, $id, $_REQUEST['model'], $outputlangs);
|
||||||
@ -581,7 +581,7 @@ if ($_POST['action'] == "addligne" && $user->rights->propale->creer)
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
@ -605,7 +605,7 @@ if ($_POST['action'] == 'updateligne' && $user->rights->propale->creer && $_POST
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
@ -625,7 +625,7 @@ if ($_REQUEST['action'] == 'builddoc' && $user->rights->propale->creer)
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
$result=propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
@ -652,7 +652,7 @@ if ($_GET['action'] == 'del_ligne' && $user->rights->propale->creer && !$conf->g
|
|||||||
$propal->delete_product($_GET['ligne']);
|
$propal->delete_product($_GET['ligne']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
@ -710,7 +710,7 @@ if ($_GET['action'] == 'up' && $user->rights->propale->creer)
|
|||||||
$propal->line_up($_GET['rowid']);
|
$propal->line_up($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
@ -724,7 +724,7 @@ if ($_GET['action'] == 'down' && $user->rights->propale->creer)
|
|||||||
$propal->line_down($_GET['rowid']);
|
$propal->line_down($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
propale_pdf_create($db, $propal->id, $propal->modelpdf, $outputlangs);
|
||||||
|
|||||||
@ -319,7 +319,7 @@ if ($_POST['action'] == 'addligne' && $user->rights->commande->creer)
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -346,7 +346,7 @@ if ($_POST['action'] == 'updateligne' && $user->rights->commande->creer && $_POS
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -373,7 +373,7 @@ if ($_GET['action'] == 'deleteline' && $user->rights->commande->creer && !$conf-
|
|||||||
$result = $commande->delete_line($_GET['lineid']);
|
$result = $commande->delete_line($_GET['lineid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
commande_pdf_create($db, $_GET['id'], $commande->modelpdf, $outputlangs);
|
commande_pdf_create($db, $_GET['id'], $commande->modelpdf, $outputlangs);
|
||||||
@ -425,7 +425,7 @@ if ($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'yes
|
|||||||
$commande->delete_line($_GET['lineid']);
|
$commande->delete_line($_GET['lineid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
commande_pdf_create($db, $_GET['id'], $commande->modelpdf, $outputlangs);
|
commande_pdf_create($db, $_GET['id'], $commande->modelpdf, $outputlangs);
|
||||||
@ -455,7 +455,7 @@ if ($_GET['action'] == 'up' && $user->rights->commande->creer)
|
|||||||
$commande->line_up($_GET['rowid']);
|
$commande->line_up($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -470,7 +470,7 @@ if ($_GET['action'] == 'down' && $user->rights->commande->creer)
|
|||||||
$commande->line_down($_GET['rowid']);
|
$commande->line_down($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
commande_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -495,7 +495,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=commande_pdf_create($db, $commande->id,$commande->modelpdf,$outputlangs);
|
$result=commande_pdf_create($db, $commande->id,$commande->modelpdf,$outputlangs);
|
||||||
@ -1759,7 +1759,7 @@ else
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=commande_pdf_create($db, $_REQUEST['id'], '', $_REQUEST['model'], $outputlangs);
|
$result=commande_pdf_create($db, $_REQUEST['id'], '', $_REQUEST['model'], $outputlangs);
|
||||||
|
|||||||
@ -187,7 +187,7 @@ if ($_POST['action'] == 'confirm_valid' && $_POST['confirm'] == 'yes' && $user->
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
||||||
@ -245,7 +245,7 @@ if ($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'yes
|
|||||||
$fac->deleteline($_GET['rowid'], $user);
|
$fac->deleteline($_GET['rowid'], $user);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
||||||
@ -837,7 +837,7 @@ if ($_POST['action'] == 'updateligne' && $user->rights->facture->creer && $_POST
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
||||||
@ -860,7 +860,7 @@ if ($_GET['action'] == 'deleteline' && $user->rights->facture->creer && ! $conf-
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
// facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
// facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
||||||
@ -884,7 +884,7 @@ if ($_GET['action'] == 'up' && $user->rights->facture->creer)
|
|||||||
$fac->line_up($_GET['rowid']);
|
$fac->line_up($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
||||||
@ -898,7 +898,7 @@ if ($_GET['action'] == 'down' && $user->rights->facture->creer)
|
|||||||
$fac->line_down($_GET['rowid']);
|
$fac->line_down($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
||||||
@ -1088,7 +1088,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2864,7 +2864,7 @@ else
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=facture_pdf_create($db, $fac->id, '', $_REQUEST['model'], $outputlangs);
|
$result=facture_pdf_create($db, $fac->id, '', $_REQUEST['model'], $outputlangs);
|
||||||
@ -2920,7 +2920,7 @@ else
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=facture_pdf_create($db, $fac->id, '', $_REQUEST['model'], $outputlangs);
|
$result=facture_pdf_create($db, $fac->id, '', $_REQUEST['model'], $outputlangs);
|
||||||
|
|||||||
@ -86,7 +86,7 @@ if ($_POST['action'] == 'confirm_valide' && $_POST['confirm'] == 'yes' && $user-
|
|||||||
$fac->fetch($id);
|
$fac->fetch($id);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
|
||||||
|
|||||||
@ -93,6 +93,18 @@ $dolibarr_main_db_pass="";
|
|||||||
$dolibarr_main_db_type="";
|
$dolibarr_main_db_type="";
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
$dolibarr_main_db_character_set="";
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
$character_set_client="ISO-8859-1";
|
||||||
|
|
||||||
|
|
||||||
# dolibarr_main_authentication
|
# dolibarr_main_authentication
|
||||||
# This parameter contains the way authentication is done.
|
# This parameter contains the way authentication is done.
|
||||||
# If value "ldap" is used, you must also set parameters dolibarr_main_auth_ldap_*
|
# If value "ldap" is used, you must also set parameters dolibarr_main_auth_ldap_*
|
||||||
|
|||||||
@ -152,7 +152,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=expedition_pdf_create($db,$expedition->id,$expedition->modelpdf,$outputlangs);
|
$result=expedition_pdf_create($db,$expedition->id,$expedition->modelpdf,$outputlangs);
|
||||||
|
|||||||
@ -131,7 +131,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=fichinter_pdf_create($db, $_REQUEST['id'], $_REQUEST['model'], $outputlangs);
|
$result=fichinter_pdf_create($db, $_REQUEST['id'], $_REQUEST['model'], $outputlangs);
|
||||||
|
|||||||
@ -144,7 +144,7 @@ if ($_POST['action'] == 'addligne' && $user->rights->fournisseur->commande->cree
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -176,7 +176,7 @@ if ($_POST['action'] == 'updateligne' && $user->rights->fournisseur->commande->c
|
|||||||
{
|
{
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -203,7 +203,7 @@ if ($_GET['action'] == 'deleteline' && $user->rights->fournisseur->commande->cre
|
|||||||
$result = $commande->delete_line($_GET['lineid']);
|
$result = $commande->delete_line($_GET['lineid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
supplier_order_pdf_create($db, $_GET['id'], $commande->modelpdf, $outputlangs);
|
supplier_order_pdf_create($db, $_GET['id'], $commande->modelpdf, $outputlangs);
|
||||||
@ -302,7 +302,7 @@ if ($_GET['action'] == 'up' && $user->rights->fournisseur->commande->creer)
|
|||||||
$commande->line_up($_GET['rowid']);
|
$commande->line_up($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -317,7 +317,7 @@ if ($_GET['action'] == 'down' && $user->rights->fournisseur->commande->creer)
|
|||||||
$commande->line_down($_GET['rowid']);
|
$commande->line_down($_GET['rowid']);
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
supplier_order_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs);
|
||||||
@ -343,7 +343,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=supplier_order_pdf_create($db, $commande->id,$commande->modelpdf,$outputlangs);
|
$result=supplier_order_pdf_create($db, $commande->id,$commande->modelpdf,$outputlangs);
|
||||||
|
|||||||
@ -35,13 +35,21 @@ $langs->setDefaultLang($setuplang);
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("install");
|
$langs->load("install");
|
||||||
|
|
||||||
pHeader($langs->trans("ConfigurationFile"),"etape1");
|
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Affichage page
|
||||||
|
*/
|
||||||
|
|
||||||
|
pHeader($langs->trans("ConfigurationFile"),"etape1");
|
||||||
|
|
||||||
|
// On reporte champ formulaire précédent pour propagation
|
||||||
if ($_POST["action"] == "set")
|
if ($_POST["action"] == "set")
|
||||||
{
|
{
|
||||||
umask(0);
|
umask(0);
|
||||||
@ -50,6 +58,7 @@ if ($_POST["action"] == "set")
|
|||||||
echo '<input type="hidden" name="'.$cle.'" value="'.$valeur.'">';
|
echo '<input type="hidden" name="'.$cle.'" value="'.$valeur.'">';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Récuparation des information de connexion
|
* Récuparation des information de connexion
|
||||||
*/
|
*/
|
||||||
@ -57,13 +66,13 @@ $userroot=isset($_POST["db_user_root"])?$_POST["db_user_root"]:"";
|
|||||||
$passroot=isset($_POST["db_pass_root"])?$_POST["db_pass_root"]:"";
|
$passroot=isset($_POST["db_pass_root"])?$_POST["db_pass_root"]:"";
|
||||||
// Répertoire des pages dolibarr
|
// Répertoire des pages dolibarr
|
||||||
$main_dir=isset($_POST["main_dir"])?trim($_POST["main_dir"]):'';
|
$main_dir=isset($_POST["main_dir"])?trim($_POST["main_dir"]):'';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Si l'utilisateur n'est pas créé déjà créé, on se connecte à l'aide du login root'
|
* Si l'utilisateur n'est pas créé déjà créé, on se connecte à l'aide du login root'
|
||||||
*/
|
*/
|
||||||
require_once($main_dir."/lib/databases/".$_POST["db_type"].".lib.php");
|
require_once($main_dir."/lib/databases/".$_POST["db_type"].".lib.php");
|
||||||
if (isset($_POST["db_create_user"]) && $_POST["db_create_user"] == "on")
|
if (isset($_POST["db_create_user"]) && $_POST["db_create_user"] == "on")
|
||||||
{
|
{
|
||||||
|
|
||||||
$databasefortest=$conf->db->name;
|
$databasefortest=$conf->db->name;
|
||||||
if ($_POST["db_type"] == 'mysql' ||$_POST["db_type"] == 'mysqli')
|
if ($_POST["db_type"] == 'mysql' ||$_POST["db_type"] == 'mysqli')
|
||||||
{
|
{
|
||||||
@ -77,10 +86,11 @@ if (isset($_POST["db_create_user"]) && $_POST["db_create_user"] == "on")
|
|||||||
}
|
}
|
||||||
if ($db->error)
|
if ($db->error)
|
||||||
{
|
{
|
||||||
print $langs->trans("ThisPHPDoesNotSupportTypeBase",$conf->db->type);
|
print '<div class="error">'.$db->error.'</div>';
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Si creation database demandée, il est possible de faire un choix
|
* Si creation database demandée, il est possible de faire un choix
|
||||||
*/
|
*/
|
||||||
@ -97,11 +107,10 @@ if ($db->connected){
|
|||||||
<tr><td valign="top" class="label" colspan="3"><?php echo $langs->trans("CharsetChoice");?></td></tr>
|
<tr><td valign="top" class="label" colspan="3"><?php echo $langs->trans("CharsetChoice");?></td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" class="label"><?php echo $langs->trans("CharacterSetClient"); ?></td>
|
<td valign="top" class="label"><?php echo $langs->trans("CharacterSetClient"); ?></td>
|
||||||
<td valign="top" class="label"><select name="character_set_client"/><option>ISO-8859-1</option><option>ISO-8859-15</option><option>UTF-8</option><option>cp866</option><option>cp1251</option><option>cp1252</option><option>KOI8-R</option><option>BIG5</option><option>GB2312</option><option>BIG5-HKSCS</option><option>Shift_JIS</option><option>EUC-JP</option></select></td>
|
<td valign="top" class="label"><select name="character_set_client"><option>ISO-8859-1</option><option>ISO-8859-15</option><option>UTF-8</option><option>cp866</option><option>cp1251</option><option>cp1252</option><option>KOI8-R</option><option>BIG5</option><option>GB2312</option><option>BIG5-HKSCS</option><option>Shift_JIS</option><option>EUC-JP</option></select></td>
|
||||||
<td class="label"><div class="comment"><?php echo $langs->trans("CharacterSetClientComment"); ?></div></td>
|
<td class="label"><div class="comment"><?php echo $langs->trans("CharacterSetClientComment"); ?></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php include($_POST["db_type"].'.php');?>
|
||||||
include($_POST["db_type"].'.php');?>
|
|
||||||
<?php
|
<?php
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
@ -116,5 +125,10 @@ if ($db->connected){
|
|||||||
print $langs->trans("ErrorGoBackAndCorrectParameters").'<br><br>';
|
print $langs->trans("ErrorGoBackAndCorrectParameters").'<br><br>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pFooter($err,$setuplang);
|
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
pFooter($error,$setuplang);
|
||||||
?>
|
?>
|
||||||
@ -135,11 +135,11 @@ if ($_POST["action"] == "set")
|
|||||||
fputs($fp, '$dolibarr_main_db_type="'.$_POST["db_type"].'";');
|
fputs($fp, '$dolibarr_main_db_type="'.$_POST["db_type"].'";');
|
||||||
fputs($fp,"\n");
|
fputs($fp,"\n");
|
||||||
|
|
||||||
/* Choix des charsets*/
|
fputs($fp, '$dolibarr_main_db_character_set="'.$_POST["character_set_database"].'";');
|
||||||
fputs($fp, '$character_set_client="'.$_POST["character_set_client"].'";');
|
|
||||||
fputs($fp,"\n");
|
fputs($fp,"\n");
|
||||||
|
|
||||||
fputs($fp, '$character_set_database="'.$_POST["character_set_database"].'";');
|
/* Choix des charsets*/
|
||||||
|
fputs($fp, '$character_set_client="'.$_POST["character_set_client"].'";');
|
||||||
fputs($fp,"\n");
|
fputs($fp,"\n");
|
||||||
|
|
||||||
fputs($fp, '$collation_connection="'.$_POST["collation_connection"].'";');
|
fputs($fp, '$collation_connection="'.$_POST["collation_connection"].'";');
|
||||||
@ -279,7 +279,7 @@ if ($_POST["action"] == "set")
|
|||||||
$db = new DoliDb($conf->db->type,$conf->db->host,$userroot,$passroot,$databasefortest);
|
$db = new DoliDb($conf->db->type,$conf->db->host,$userroot,$passroot,$databasefortest);
|
||||||
if ($db->error)
|
if ($db->error)
|
||||||
{
|
{
|
||||||
print $langs->trans("ThisPHPDoesNotSupportTypeBase",$conf->db->type);
|
print '<div class="error">'.$db->error.'</div>';
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,9 +333,9 @@ if ($_POST["action"] == "set")
|
|||||||
|
|
||||||
// Affiche aide diagnostique
|
// Affiche aide diagnostique
|
||||||
print '<tr><td colspan="2"><br>';
|
print '<tr><td colspan="2"><br>';
|
||||||
print 'Vous avez demandé la création du login Dolibarr "<b>'.$dolibarr_main_db_user.'</b>", mais pour cela, ';
|
print $langs->trans("YouAskDatabaseCreationSoDolibarrNeedToConnect",$dolibarr_main_db_user,$dolibarr_main_db_host,$userroot);
|
||||||
print 'Dolibarr doit se connecter sur le serveur "<b>'.$dolibarr_main_db_host.'</b>" via le super utilisateur "<b>'.$userroot.'</b>".<br>';
|
print '<br>';
|
||||||
print 'La connexion ayant échoué, les paramètres du serveur ou du super utilisateur sont peut-etre incorrects.<br>';
|
print $langs->trans("BecauseConnectionFailedParametersMayBeWrong").'<br><br>';
|
||||||
print $langs->trans("ErrorGoBackAndCorrectParameters").'<br><br>';
|
print $langs->trans("ErrorGoBackAndCorrectParameters").'<br><br>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
@ -392,9 +392,10 @@ if ($_POST["action"] == "set")
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Affiche aide diagnostique
|
// Affiche aide diagnostique
|
||||||
print '<tr><td colspan="2"><br>Vous avez demandé la création de la base Dolibarr "<b>'.$dolibarr_main_db_name.'</b>", mais pour cela, ';
|
print '<tr><td colspan="2"><br>';
|
||||||
print 'Dolibarr doit se connecter sur le serveur "<b>'.$dolibarr_main_db_host.'</b>" via le super utilisateur "<b>'.$userroot.'</b>".<br>';
|
print $langs->trans("YouAskDatabaseCreationSoDolibarrNeedToConnect",$dolibarr_main_db_user,$dolibarr_main_db_host,$userroot);
|
||||||
print 'La connexion ayant échoué, les paramètres du serveur ou du super utilisateur sont peut-etre incorrects.<br>';
|
print '<br>';
|
||||||
|
print $langs->trans("BecauseConnectionFailedParametersMayBeWrong").'<br><br>';
|
||||||
print $langs->trans("ErrorGoBackAndCorrectParameters").'<br><br>';
|
print $langs->trans("ErrorGoBackAndCorrectParameters").'<br><br>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ if (get_magic_quotes_gpc())
|
|||||||
|
|
||||||
|
|
||||||
// Defini objet langs
|
// Defini objet langs
|
||||||
$langs = new Translate('../langs');
|
$langs = new Translate('../langs',$conf);
|
||||||
$langs->setDefaultLang('auto');
|
$langs->setDefaultLang('auto');
|
||||||
$langs->setPhpLang();
|
$langs->setPhpLang();
|
||||||
|
|
||||||
|
|||||||
@ -177,7 +177,9 @@ if (isset($_POST['action']) && $_POST['action'] == 'upgrade')
|
|||||||
migrate_delete_old_files($db,$langs,$conf);
|
migrate_delete_old_files($db,$langs,$conf);
|
||||||
|
|
||||||
// Script pour V2.1 -> V2.2
|
// Script pour V2.1 -> V2.2
|
||||||
migrate_paiements_orphelins($db,$langs,$conf);
|
migrate_paiements_orphelins_1($db,$langs,$conf);
|
||||||
|
|
||||||
|
migrate_paiements_orphelins_2($db,$langs,$conf);
|
||||||
|
|
||||||
// On commit dans tous les cas.
|
// On commit dans tous les cas.
|
||||||
// La procédure etant conçue pour pouvoir passer plusieurs fois quelquesoit la situation.
|
// La procédure etant conçue pour pouvoir passer plusieurs fois quelquesoit la situation.
|
||||||
@ -281,7 +283,7 @@ function migrate_paiements($db,$langs,$conf)
|
|||||||
* Pour verifier s'il reste des orphelins:
|
* Pour verifier s'il reste des orphelins:
|
||||||
* select * from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL)
|
* select * from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL)
|
||||||
*/
|
*/
|
||||||
function migrate_paiements_orphelins($db,$langs,$conf)
|
function migrate_paiements_orphelins_1($db,$langs,$conf)
|
||||||
{
|
{
|
||||||
print '<tr><td colspan="4">';
|
print '<tr><td colspan="4">';
|
||||||
|
|
||||||
@ -299,16 +301,16 @@ function migrate_paiements_orphelins($db,$langs,$conf)
|
|||||||
$sql.= " AND (p.fk_facture = 0 OR p.fk_facture IS NULL)";
|
$sql.= " AND (p.fk_facture = 0 OR p.fk_facture IS NULL)";
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|
||||||
|
$row = array();
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$i = $j = 0;
|
$i = $j = 0;
|
||||||
$row = array();
|
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
|
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
if ($obj->pamount == $obj->bamount) // Pour etre sur d'avoir bon cas
|
if ($obj->pamount == $obj->bamount && $obj->socid) // Pour etre sur d'avoir bon cas
|
||||||
{
|
{
|
||||||
$row[$j]['paymentid'] = $obj->rowid ; // paymentid
|
$row[$j]['paymentid'] = $obj->rowid ; // paymentid
|
||||||
$row[$j]['pamount'] = $obj->pamount;
|
$row[$j]['pamount'] = $obj->pamount;
|
||||||
@ -325,25 +327,23 @@ function migrate_paiements_orphelins($db,$langs,$conf)
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num)
|
if (sizeof($row))
|
||||||
{
|
|
||||||
print $langs->trans('MigrationPaymentsNumberToUpdate', $num)."<br>\n";
|
|
||||||
if ($db->begin())
|
|
||||||
{
|
{
|
||||||
|
print $langs->trans('MigrationPaymentsNumberToUpdate', sizeof($row))."<br>\n";
|
||||||
|
$db->begin();
|
||||||
|
|
||||||
$res = 0;
|
$res = 0;
|
||||||
for ($i = 0 ; $i < sizeof($row) ; $i++)
|
for ($i = 0 ; $i < sizeof($row) ; $i++)
|
||||||
{
|
{
|
||||||
//print '* '.$row[$i]['datec'].' paymentid='.$row[$i]['paymentid'].' '.$row[$i]['pamount'].' fk_bank='.$row[$i]['fk_bank'].' '.$row[$i]['bamount'].' socid='.$row[$i]['socid'].'<br>';
|
print '* '.$row[$i]['datec'].' paymentid='.$row[$i]['paymentid'].' '.$row[$i]['pamount'].' fk_bank='.$row[$i]['fk_bank'].' '.$row[$i]['bamount'].' socid='.$row[$i]['socid'].'<br>';
|
||||||
// On cherche facture du meme montant pour meme societe.
|
|
||||||
// Si y en a plusieurs, on prend la premiere sans lien vers un paiement
|
// On cherche facture sans lien paiement et du meme montant et pour meme societe.
|
||||||
if ($row[$i]['socid'] > 0)
|
|
||||||
{
|
|
||||||
$sql=" SELECT distinct f.rowid from ".MAIN_DB_PREFIX."facture as f";
|
$sql=" SELECT distinct f.rowid from ".MAIN_DB_PREFIX."facture as f";
|
||||||
$sql.=" LEFT JOIN ".MAIN_DB_PREFIX."paiement_facture as pf ON f.rowid = pf.fk_facture";
|
$sql.=" LEFT JOIN ".MAIN_DB_PREFIX."paiement_facture as pf ON f.rowid = pf.fk_facture";
|
||||||
$sql.=" WHERE f.fk_statut in (2,3) AND fk_soc = ".$row[$i]['socid']." AND total_ttc = ".$row[$i]['pamount'];
|
$sql.=" WHERE f.fk_statut in (2,3) AND fk_soc = ".$row[$i]['socid']." AND total_ttc = ".$row[$i]['pamount'];
|
||||||
$sql.=" AND pf.fk_facture IS NULL";
|
$sql.=" AND pf.fk_facture IS NULL";
|
||||||
$sql.=" ORDER BY f.fk_statut";
|
$sql.=" ORDER BY f.fk_statut";
|
||||||
print $sql.'<br>';
|
//print $sql.'<br>';
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
@ -366,6 +366,112 @@ function migrate_paiements_orphelins($db,$langs,$conf)
|
|||||||
print 'ERROR';
|
print 'ERROR';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($res > 0)
|
||||||
|
{
|
||||||
|
print $langs->trans('MigrationSuccessfullUpdate')."<br>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $langs->trans('MigrationPaymentsNothingToUpdate')."<br>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
$db->commit();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $langs->trans('MigrationPaymentsNothingToUpdate')."<br>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Corrige paiement orphelins (liens paumes suite a bugs)
|
||||||
|
* Pour verifier s'il reste des orphelins:
|
||||||
|
* select * from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL)
|
||||||
|
*/
|
||||||
|
function migrate_paiements_orphelins_2($db,$langs,$conf)
|
||||||
|
{
|
||||||
|
print '<tr><td colspan="4">';
|
||||||
|
|
||||||
|
print '<br>';
|
||||||
|
print '<b>'.$langs->trans('MigrationPaymentsUpdate')."</b><br>\n";
|
||||||
|
|
||||||
|
// Tous les enregistrements qui sortent de cette requete devrait avoir un pere dans llx_paiement_facture
|
||||||
|
$sql = "SELECT distinct p.rowid, p.datec, p.amount as pamount, bu.fk_bank, b.amount as bamount,";
|
||||||
|
$sql.= " bu2.url_id as socid";
|
||||||
|
$sql.= " FROM (".MAIN_DB_PREFIX."paiement as p, ".MAIN_DB_PREFIX."bank_url as bu, ".MAIN_DB_PREFIX."bank as b)";
|
||||||
|
$sql.= " left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid";
|
||||||
|
$sql.= " left join llx_bank_url as bu2 on (bu.fk_bank=bu2.fk_bank AND bu2.type='company')";
|
||||||
|
$sql.= " WHERE pf.rowid IS NULL AND (p.fk_bank=bu.fk_bank AND bu.type='payment') AND bu.fk_bank = b.rowid";
|
||||||
|
$sql.= " AND (p.fk_facture = 0 OR p.fk_facture IS NULL)";
|
||||||
|
$resql = $db->query($sql);
|
||||||
|
|
||||||
|
$row = array();
|
||||||
|
if ($resql)
|
||||||
|
{
|
||||||
|
$i = $j = 0;
|
||||||
|
$num = $db->num_rows($resql);
|
||||||
|
|
||||||
|
while ($i < $num)
|
||||||
|
{
|
||||||
|
$obj = $db->fetch_object($resql);
|
||||||
|
if ($obj->pamount == $obj->bamount && $obj->socid) // Pour etre sur d'avoir bon cas
|
||||||
|
{
|
||||||
|
$row[$j]['paymentid'] = $obj->rowid ; // paymentid
|
||||||
|
$row[$j]['pamount'] = $obj->pamount;
|
||||||
|
$row[$j]['fk_bank'] = $obj->fk_bank;
|
||||||
|
$row[$j]['bamount'] = $obj->bamount;
|
||||||
|
$row[$j]['socid'] = $obj->socid;
|
||||||
|
$row[$j]['datec'] = $obj->datec;
|
||||||
|
$j++;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dolibarr_print_error($db);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sizeof($row))
|
||||||
|
{
|
||||||
|
print $langs->trans('MigrationPaymentsNumberToUpdate', sizeof($row))."<br>\n";
|
||||||
|
$db->begin();
|
||||||
|
|
||||||
|
$res = 0;
|
||||||
|
for ($i = 0 ; $i < sizeof($row) ; $i++)
|
||||||
|
{
|
||||||
|
print '* '.$row[$i]['datec'].' paymentid='.$row[$i]['paymentid'].' '.$row[$i]['pamount'].' fk_bank='.$row[$i]['fk_bank'].' '.$row[$i]['bamount'].' socid='.$row[$i]['socid'].'<br>';
|
||||||
|
|
||||||
|
// On cherche facture sans lien paiement et du meme montant et pour meme societe.
|
||||||
|
$sql=" SELECT distinct f.rowid from ".MAIN_DB_PREFIX."facture as f";
|
||||||
|
$sql.=" LEFT JOIN ".MAIN_DB_PREFIX."paiement_facture as pf ON f.rowid = pf.fk_facture";
|
||||||
|
$sql.=" WHERE f.fk_statut in (2,3) AND fk_soc = ".$row[$i]['socid']." AND total_ttc = ".$row[$i]['pamount'];
|
||||||
|
$sql.=" AND pf.fk_facture IS NULL";
|
||||||
|
$sql.=" ORDER BY f.fk_statut";
|
||||||
|
//print $sql.'<br>';
|
||||||
|
$resql=$db->query($sql);
|
||||||
|
if ($resql)
|
||||||
|
{
|
||||||
|
$num = $db->num_rows($resql);
|
||||||
|
//print 'Nb of invoice found for this amount and company :'.$num.'<br>';
|
||||||
|
if ($num >= 1)
|
||||||
|
{
|
||||||
|
$obj=$db->fetch_object($resql);
|
||||||
|
$facid=$obj->rowid;
|
||||||
|
|
||||||
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."paiement_facture (fk_facture, fk_paiement, amount)";
|
||||||
|
$sql .= " VALUES (".$facid.",".$row[$i]['paymentid'].",".$row[$i]['pamount'].")";
|
||||||
|
$res += $db->query($sql);
|
||||||
|
|
||||||
|
print $langs->trans('MigrationProcessPaymentUpdate', 'facid='.$facid.'-paymentid='.$row[$i]['paymentid'].'-amount='.$row[$i]['pamount'])."<br>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print 'ERROR';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -377,6 +483,8 @@ function migrate_paiements_orphelins($db,$langs,$conf)
|
|||||||
{
|
{
|
||||||
print $langs->trans('MigrationPaymentsNothingToUpdate')."<br>\n";
|
print $langs->trans('MigrationPaymentsNothingToUpdate')."<br>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$db->commit();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -387,6 +495,20 @@ function migrate_paiements_orphelins($db,$langs,$conf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function migrate_paiements_orphelins_3($db,$langs,$conf)
|
||||||
|
{
|
||||||
|
|
||||||
|
/*
|
||||||
|
select p.rowid from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL)
|
||||||
|
Poru chaque rep, test si
|
||||||
|
select count(*) from llx_bank where rowid = obj->fk_bank
|
||||||
|
select count(*) from llx_bank_url where url_id = 128 and type='payment'
|
||||||
|
Si partout 0, on efface ligne de llx_paiement
|
||||||
|
*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mise a jour des contrats (gestion du contrat + detail de contrat)
|
* Mise a jour des contrats (gestion du contrat + detail de contrat)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
# Dolibarr language file - fr_FR - install
|
# Dolibarr language file - fr_FR - install
|
||||||
|
CHARSET=ISO-8859-1
|
||||||
InstallEasy=Nous avons fait en sorte que l'installation soit le plus simple possible, vous n'avez qu'à suivre les étapes une à une.
|
InstallEasy=Nous avons fait en sorte que l'installation soit le plus simple possible, vous n'avez qu'à suivre les étapes une à une.
|
||||||
MiscellanousChecks=Vérification de prérequis
|
MiscellanousChecks=Vérification de prérequis
|
||||||
DolibarrWelcome=Bienvenue sur Dolibarr
|
DolibarrWelcome=Bienvenue sur Dolibarr
|
||||||
@ -107,6 +108,9 @@ CollationConnection=Collation utilis
|
|||||||
CollationConnectionComment=Veuillez choisir la collation que vous désirez choisir pour la création de la base de données.<br/> Ce paramètre n'est pas sélectionnable si votre base est déjà créée.
|
CollationConnectionComment=Veuillez choisir la collation que vous désirez choisir pour la création de la base de données.<br/> Ce paramètre n'est pas sélectionnable si votre base est déjà créée.
|
||||||
CharacterSetDatabase=Codage utilisé pour la base de données
|
CharacterSetDatabase=Codage utilisé pour la base de données
|
||||||
CharacterSetDatabaseComment=Veuillez choisir le codage que vous désirez choisir pour la création de la base de données.<br/> Ce paramètre n'est pas sélectionnable si votre base est déjà créée.
|
CharacterSetDatabaseComment=Veuillez choisir le codage que vous désirez choisir pour la création de la base de données.<br/> Ce paramètre n'est pas sélectionnable si votre base est déjà créée.
|
||||||
|
YouAskDatabaseCreationSoDolibarrNeedToConnect=Vous avez demandé la création du login Dolibarr <b>%s</b>, mais pour cela, Dolibarr doit se connecter sur le serveur <b>%s</b> via le super utilisateur <b>%s</b>.
|
||||||
|
BecauseConnectionFailedParametersMayBeWrong=La connexion ayant échoué, les paramètres du serveur ou du super utilisateur sont peut-etre incorrects.
|
||||||
|
|
||||||
|
|
||||||
#########
|
#########
|
||||||
# upgrade
|
# upgrade
|
||||||
|
|||||||
@ -244,6 +244,7 @@ class CMailFile
|
|||||||
*/
|
*/
|
||||||
function write_smtpheaders()
|
function write_smtpheaders()
|
||||||
{
|
{
|
||||||
|
global $conf;
|
||||||
$out = "";
|
$out = "";
|
||||||
|
|
||||||
// Sender
|
// Sender
|
||||||
@ -266,7 +267,7 @@ class CMailFile
|
|||||||
|
|
||||||
if ($this->msgishtml)
|
if ($this->msgishtml)
|
||||||
{
|
{
|
||||||
$out.= "Content-Type: text/html; charset=".$_SESSION['charset'].$this->eol;
|
$out.= "Content-Type: text/html; charset=".$conf->charset_output.$this->eol;
|
||||||
$out.= "Content-Transfer-Encoding: 8bit".$this->eol;
|
$out.= "Content-Transfer-Encoding: 8bit".$this->eol;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -164,6 +164,7 @@ class DoliDb
|
|||||||
// host, login ou password incorrect
|
// host, login ou password incorrect
|
||||||
$this->connected = 0;
|
$this->connected = 0;
|
||||||
$this->ok = 0;
|
$this->ok = 0;
|
||||||
|
$this->error=mysql_error();
|
||||||
dolibarr_syslog("DoliDB::DoliDB : Erreur Connect mysql_error=".mysql_error());
|
dolibarr_syslog("DoliDB::DoliDB : Erreur Connect mysql_error=".mysql_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -166,7 +166,8 @@ class DoliDb
|
|||||||
// host, login ou password incorrect
|
// host, login ou password incorrect
|
||||||
$this->connected = 0;
|
$this->connected = 0;
|
||||||
$this->ok = 0;
|
$this->ok = 0;
|
||||||
dolibarr_syslog("DoliDB::DoliDB : Erreur Connect");
|
$this->error=mysql_error();
|
||||||
|
dolibarr_syslog("DoliDB::DoliDB : Erreur Connect mysql_error=".mysql_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Si connexion serveur ok et si connexion base demandée, on essaie connexion base
|
// Si connexion serveur ok et si connexion base demandée, on essaie connexion base
|
||||||
|
|||||||
@ -1299,7 +1299,7 @@ function dolibarr_print_error($db='',$error='')
|
|||||||
if (! $langs)
|
if (! $langs)
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/translate.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/translate.class.php");
|
||||||
$langs = new Translate(DOL_DOCUMENT_ROOT ."/langs", "en_US");
|
$langs = new Translate(DOL_DOCUMENT_ROOT ."/langs", $conf);
|
||||||
}
|
}
|
||||||
$langs->load("main");
|
$langs->load("main");
|
||||||
|
|
||||||
|
|||||||
@ -146,7 +146,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=delivery_order_pdf_create($db, $_REQUEST['id'],$_REQUEST['model'],$outputlangs);
|
$result=delivery_order_pdf_create($db, $_REQUEST['id'],$_REQUEST['model'],$outputlangs);
|
||||||
|
|||||||
@ -105,16 +105,22 @@ if ($dolibarr_main_db_encrypted_pass) $dolibarr_main_db_pass = dolibarr_decode($
|
|||||||
require_once(DOL_DOCUMENT_ROOT."/conf/conf.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/conf/conf.class.php");
|
||||||
|
|
||||||
$conf = new Conf();
|
$conf = new Conf();
|
||||||
|
// On defini tous les parametres de conf
|
||||||
$conf->db->host = $dolibarr_main_db_host;
|
$conf->db->host = $dolibarr_main_db_host;
|
||||||
$conf->db->name = $dolibarr_main_db_name;
|
$conf->db->name = $dolibarr_main_db_name;
|
||||||
$conf->db->user = $dolibarr_main_db_user;
|
$conf->db->user = $dolibarr_main_db_user;
|
||||||
$conf->db->pass = $dolibarr_main_db_pass;
|
$conf->db->pass = $dolibarr_main_db_pass;
|
||||||
|
if (! isset($dolibarr_main_db_type) && ! $dolibarr_main_db_type) $dolibarr_main_db_type='mysql'; // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
||||||
$conf->db->type = $dolibarr_main_db_type;
|
$conf->db->type = $dolibarr_main_db_type;
|
||||||
if (! $conf->db->type) { $conf->db->type = 'mysql'; } // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
if (! isset($dolibarr_main_db_charset) && ! $dolibarr_main_db_charset) $dolibarr_main_db_charset='ISO-8859-1'; // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
||||||
// Defini prefix
|
$conf->db->character_set=$dolibarr_main_db_charset;
|
||||||
if (isset($_SERVER["LLX_DBNAME"])) $dolibarr_main_db_prefix=$_SERVER["LLX_DBNAME"];
|
if (! isset($character_set_client) || ! $character_set_client) $character_set_client='ISO-8859-1';
|
||||||
|
$conf->character_set_client=$character_set_client;
|
||||||
if (! isset($dolibarr_main_db_prefix) || ! $dolibarr_main_db_prefix) $dolibarr_main_db_prefix='llx_';
|
if (! isset($dolibarr_main_db_prefix) || ! $dolibarr_main_db_prefix) $dolibarr_main_db_prefix='llx_';
|
||||||
$conf->db->prefix = $dolibarr_main_db_prefix;
|
$conf->db->prefix = $dolibarr_main_db_prefix;
|
||||||
|
|
||||||
|
// Defini prefix
|
||||||
|
if (isset($_SERVER["LLX_DBNAME"])) $dolibarr_main_db_prefix=$_SERVER["LLX_DBNAME"];
|
||||||
define('MAIN_DB_PREFIX',$dolibarr_main_db_prefix);
|
define('MAIN_DB_PREFIX',$dolibarr_main_db_prefix);
|
||||||
|
|
||||||
// Detection browser
|
// Detection browser
|
||||||
@ -134,17 +140,7 @@ require_once(DOL_DOCUMENT_ROOT ."/lib/databases/".$conf->db->type.".lib.php");
|
|||||||
* Creation objet $langs
|
* Creation objet $langs
|
||||||
*/
|
*/
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/translate.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/translate.class.php");
|
||||||
$langs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$langs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf); // A mettre apres lecture de la conf
|
||||||
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/conf/conf.class.php");
|
|
||||||
if ($character_set_client ){
|
|
||||||
$_SESSION['charset'] = $character_set_client;
|
|
||||||
}else{
|
|
||||||
$_SESSION['charset'] =$langs->trans("charset");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation objet $db
|
* Creation objet $db
|
||||||
|
|||||||
@ -40,16 +40,22 @@ class Translate {
|
|||||||
var $tab_loaded=array(); // Tableau pour signaler les fichiers deja chargés
|
var $tab_loaded=array(); // Tableau pour signaler les fichiers deja chargés
|
||||||
var $tab_translate=array(); // Tableau des traductions
|
var $tab_translate=array(); // Tableau des traductions
|
||||||
|
|
||||||
var $charset='ISO-8859-1'; // Codage du contenu du fichier langue
|
var $charset_inputfile='ISO-8859-1'; // Codage du contenu du fichier langue
|
||||||
|
var $charset_output='ISO-8859-1'; // Codage par defaut de la sortie de la méthode trans
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructeur de la classe
|
* \brief Constructeur de la classe
|
||||||
* \param dir Repertoire racine des fichiers de traduction
|
* \param dir Repertoire racine des fichiers de traduction
|
||||||
|
* \param conf Objet qui contient la config Dolibarr
|
||||||
*/
|
*/
|
||||||
function Translate($dir = "")
|
function Translate($dir = "",$conf)
|
||||||
{
|
{
|
||||||
$this->charset=$_SESSION['charset'];
|
// Si charset output defini
|
||||||
|
if (isset($conf->character_set_client) && $conf->character_set_client)
|
||||||
|
{
|
||||||
|
$this->charset_output=$conf->character_set_client;
|
||||||
|
}
|
||||||
$this->dir=$dir;
|
$this->dir=$dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,10 +189,24 @@ class Translate {
|
|||||||
if (! $this->getTransFromTab($key))
|
if (! $this->getTransFromTab($key))
|
||||||
{
|
{
|
||||||
if (isset($tab[1])) $value=trim(ereg_replace('\\\n',"\n",$tab[1]));
|
if (isset($tab[1])) $value=trim(ereg_replace('\\\n',"\n",$tab[1]));
|
||||||
|
|
||||||
|
if (eregi('^CHARSET$',$key))
|
||||||
|
{
|
||||||
|
// On est tombe sur une balise qui declare le format du fichier lu
|
||||||
|
$this->charset_inputfile=strtoupper($value);
|
||||||
|
//print 'File '.$file_lang.' has format '.$this->charset_inputfile.'<br>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// On stocke toujours dans le tableau Tab en ISO
|
||||||
|
if ($this->charset_inputfile == 'ISO-8859-1') $value=$value;
|
||||||
|
if ($this->charset_inputfile == 'UTF-8') $value=utf8_decode($value);
|
||||||
|
|
||||||
$this->setTransFromTab($key,$value);
|
$this->setTransFromTab($key,$value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
||||||
// Pour les langues aux fichiers parfois incomplets, on charge la langue alternative
|
// Pour les langues aux fichiers parfois incomplets, on charge la langue alternative
|
||||||
@ -237,9 +257,7 @@ class Translate {
|
|||||||
$newstr=ereg_replace('"','__quot__',$newstr);
|
$newstr=ereg_replace('"','__quot__',$newstr);
|
||||||
|
|
||||||
// Cryptage en html de la chaine
|
// Cryptage en html de la chaine
|
||||||
$this->load("main");
|
$newstr=htmlentities($newstr,ENT_QUOTES,$this->charset_output);
|
||||||
$charset=sprintf($this->tab_translate["charset"]);
|
|
||||||
$newstr=htmlentities($newstr,ENT_QUOTES,$charset);
|
|
||||||
|
|
||||||
// On restaure les tags HTML
|
// On restaure les tags HTML
|
||||||
$newstr=ereg_replace('__lt__','<',$newstr);
|
$newstr=ereg_replace('__lt__','<',$newstr);
|
||||||
@ -315,7 +333,7 @@ class Translate {
|
|||||||
function lang_header()
|
function lang_header()
|
||||||
{
|
{
|
||||||
//header("Content-Type: text/html; charset=$charset");
|
//header("Content-Type: text/html; charset=$charset");
|
||||||
$texte = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$this->charset\">\n";
|
$texte = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$this->charset_output."\">\n";
|
||||||
|
|
||||||
return $texte;
|
return $texte;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user