diff --git a/build/aps/configure.php b/build/aps/configure.php
index 996d617bd07e1097c98dae5a108d12df587b52e4..f4bd03b5d9e362c50b79ce999fd29293c1300ec3 100755
--- a/build/aps/configure.php
+++ b/build/aps/configure.php
@@ -149,4 +149,3 @@ function php_quote($val)
     return $res_val;
 }
 
-?>
\ No newline at end of file
diff --git a/dev/examples/create_order.php b/dev/examples/create_order.php
index f399b5e8cb39088895ef82f17faee314a1dd96e7..d490d230b77603c7dc228ee9145a43e807100c7f 100755
--- a/dev/examples/create_order.php
+++ b/dev/examples/create_order.php
@@ -113,4 +113,3 @@ else
 $db->close();
 
 return $error;
-?>
diff --git a/dev/examples/create_product.php b/dev/examples/create_product.php
index 53215275fc2e27f92586ccc21ff1c4c6e92cb077..8fe36260c98cb0b41e44f5244a50db065f7bc2bf 100755
--- a/dev/examples/create_product.php
+++ b/dev/examples/create_product.php
@@ -105,4 +105,3 @@ else
 $db->close();
 
 return $error;
-?>
diff --git a/dev/examples/create_user.php b/dev/examples/create_user.php
index a2161ad1cc0a0a86fbe56ca24e915b0f397ca8dc..d6126af2cba241d705d82377c994e2e7c3b2cec4 100755
--- a/dev/examples/create_user.php
+++ b/dev/examples/create_user.php
@@ -107,4 +107,3 @@ else
 $db->close();
 
 return $error;
-?>
diff --git a/dev/examples/get_contracts.php b/dev/examples/get_contracts.php
index 0706516e762120895a494c2db020e09b69790f81..ddfeccb56774aefd528de9a292bc37d8d3d7ffa7 100755
--- a/dev/examples/get_contracts.php
+++ b/dev/examples/get_contracts.php
@@ -81,4 +81,3 @@ print_r($listofcontractsforcompany);
 $db->close();
 
 return $error;
-?>
diff --git a/dev/initdata/generate-commande.php b/dev/initdata/generate-commande.php
index 7057550e3d73d0dab6e3cdb919b50178287305b4..967143ab4a551b8bcc001928882551bd16a887dc 100755
--- a/dev/initdata/generate-commande.php
+++ b/dev/initdata/generate-commande.php
@@ -212,4 +212,3 @@ for ($s = 0 ; $s < GEN_NUMBER_COMMANDE ; $s++)
 	}
 }
 
-?>
diff --git a/dev/initdata/generate-facture.php b/dev/initdata/generate-facture.php
index 5de15dce3a166ac08253bde41acc8d31cadeba57..0316671d62b26393bf1da94dac6077bd77957948 100755
--- a/dev/initdata/generate-facture.php
+++ b/dev/initdata/generate-facture.php
@@ -135,4 +135,3 @@ while ($i < GEN_NUMBER_FACTURE && $result >= 0)
 }
 
 
-?>
diff --git a/dev/initdata/generate-produit.php b/dev/initdata/generate-produit.php
index 9ec7ebdc54bc42bff39d2a5dca8675724f1a98fd..d712c36e1e9e4f10ae59aba5daee696224eb31c8 100755
--- a/dev/initdata/generate-produit.php
+++ b/dev/initdata/generate-produit.php
@@ -98,4 +98,3 @@ for ($s = 0 ; $s < GEN_NUMBER_PRODUIT ; $s++)
 }
 
 
-?>
diff --git a/dev/initdata/generate-propale.php b/dev/initdata/generate-propale.php
index 6d9db265b37e9affce70e5a63de2d1a98fac8da8..a62df5164812c0973a9a90e5aec4f99c5f7efb24 100755
--- a/dev/initdata/generate-propale.php
+++ b/dev/initdata/generate-propale.php
@@ -161,4 +161,3 @@ while ($i < GEN_NUMBER_PROPAL && $result >= 0)
 
 }
 
-?>
diff --git a/dev/initdata/generate-societe.php b/dev/initdata/generate-societe.php
index 2642750eb8a7c684dccf676ae576dffd1d700adb..c0c512db636d12bba18e29bf13fdf4013e003073 100755
--- a/dev/initdata/generate-societe.php
+++ b/dev/initdata/generate-societe.php
@@ -129,4 +129,3 @@ for ($s = 0 ; $s < GEN_NUMBER_SOCIETE ; $s++)
 }
 
 
-?>
diff --git a/dev/skeletons/build_class_from_table.php b/dev/skeletons/build_class_from_table.php
index cae093ef89f43149fd3e6c740161701bc224d17c..6acbc1feb358ef4a7e7804cd6bdb90825c7da426 100755
--- a/dev/skeletons/build_class_from_table.php
+++ b/dev/skeletons/build_class_from_table.php
@@ -470,4 +470,3 @@ else $error++;
 
 print "You can now rename generated files by removing the 'out.' prefix in their name and store them into directory /yourmodule/class.\n";
 return $error;
-?>
diff --git a/dev/skeletons/build_webservice_from_class.php b/dev/skeletons/build_webservice_from_class.php
index 8d91912b6def8d046a4f265ed3fe081b7134843f..ee8772a8a44190335ba3aee3691d9a9c30f7ca7f 100644
--- a/dev/skeletons/build_webservice_from_class.php
+++ b/dev/skeletons/build_webservice_from_class.php
@@ -177,4 +177,3 @@ else $error++;
 
 print "You must rename files by removing the 'out.' prefix in their name.\n";
 return $error;
-?>
diff --git a/dev/skeletons/modMyModule.class.php b/dev/skeletons/modMyModule.class.php
index eb7ab10f36570f4540ebb3e2f11e138216270f8c..b5001f9a4ac8d77a6b0ef438c68903237024b85a 100644
--- a/dev/skeletons/modMyModule.class.php
+++ b/dev/skeletons/modMyModule.class.php
@@ -269,4 +269,3 @@ class modMyModule extends DolibarrModules
 
 }
 
-?>
\ No newline at end of file
diff --git a/dev/skeletons/skeleton_page.php b/dev/skeletons/skeleton_page.php
index 32c610aff9667db54aab9d7ffa62e993b42f54fc..bf63a769af762e14aba56f6fee1a13eeb1bbdd5e 100644
--- a/dev/skeletons/skeleton_page.php
+++ b/dev/skeletons/skeleton_page.php
@@ -176,4 +176,3 @@ if ($action == 'list')
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/dev/skeletons/skeleton_script.php b/dev/skeletons/skeleton_script.php
index 4f8eb20cb6bb4ecbb3fd02971b3985a40e2aa56e..b10b57a730af0fc9c2618f9ad108e7f0e6c98a43 100644
--- a/dev/skeletons/skeleton_script.php
+++ b/dev/skeletons/skeleton_script.php
@@ -164,4 +164,3 @@ else
 $db->close();	// Close $db database opened handler
 
 exit($error);
-?>
\ No newline at end of file
diff --git a/dev/test/testutf.php b/dev/test/testutf.php
index 327cc98bd8ef7a9934588b4c8cccfb5e9082c0e9..5812b0c8639b4cd3950ffd72ee29f3477f4a3afd 100644
--- a/dev/test/testutf.php
+++ b/dev/test/testutf.php
@@ -105,4 +105,3 @@ $pdf->Output('example.pdf', 'F');
 //============================================================+
 // END OF FILE
 //============================================================+
-?>
\ No newline at end of file
diff --git a/dev/translation/autotranslator.php b/dev/translation/autotranslator.php
index 85606d5399fe9429290eaac3b2e4a309d81d077f..7fe21adfd73c382bcd62b415adf726754ce72656 100755
--- a/dev/translation/autotranslator.php
+++ b/dev/translation/autotranslator.php
@@ -99,4 +99,3 @@ print "***** Finished *****\n";
 $db->close();
 
 return $error;
-?>
\ No newline at end of file
diff --git a/htdocs/accountancy/class/accountancysystem.class.php b/htdocs/accountancy/class/accountancysystem.class.php
index 0ff01eb9aafb6824962be588e176c165dd4b1a28..4d81a94985bb34b57a1e7cfb6c2f3d63eec3a504 100644
--- a/htdocs/accountancy/class/accountancysystem.class.php
+++ b/htdocs/accountancy/class/accountancysystem.class.php
@@ -92,4 +92,3 @@ class AccountancySystem
 	}
 
 }
-?>
diff --git a/htdocs/adherents/admin/adherent.php b/htdocs/adherents/admin/adherent.php
index f285d9a8a3a01ff4d46d3cecdb97419de9623135..0a251536ff6f75adc9c2cffbe50ee300d005498b 100644
--- a/htdocs/adherents/admin/adherent.php
+++ b/htdocs/adherents/admin/adherent.php
@@ -295,4 +295,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/admin/adherent_extrafields.php b/htdocs/adherents/admin/adherent_extrafields.php
index d3ed3fb084c4f188418cd7921f24e73f4bcaaee3..059e42d50f5bbb5a7ff981da4bf4df6d2eda8cab 100644
--- a/htdocs/adherents/admin/adherent_extrafields.php
+++ b/htdocs/adherents/admin/adherent_extrafields.php
@@ -149,4 +149,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/admin/adherent_type_extrafields.php b/htdocs/adherents/admin/adherent_type_extrafields.php
index 49ffe022edd7bba59e619dcec334b3ffb0a33bdd..dca8796b681c4b0b5a3ba969690dd1681626397c 100644
--- a/htdocs/adherents/admin/adherent_type_extrafields.php
+++ b/htdocs/adherents/admin/adherent_type_extrafields.php
@@ -152,4 +152,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/admin/public.php b/htdocs/adherents/admin/public.php
index 9a1fceb9b4e302fab084d19e800deb10430a3a38..8a520a55c4ef68935083d3749be49aa503ed1723 100644
--- a/htdocs/adherents/admin/public.php
+++ b/htdocs/adherents/admin/public.php
@@ -231,4 +231,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/agenda.php b/htdocs/adherents/agenda.php
index f6646f33349bd8d984e2bd80977422a7b84f6c7f..f1a18c5e4bf1d6edea5ebd341843c7ed0afe667e 100644
--- a/htdocs/adherents/agenda.php
+++ b/htdocs/adherents/agenda.php
@@ -160,4 +160,3 @@ if ($object->id > 0)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/canvas/actions_adherentcard_common.class.php b/htdocs/adherents/canvas/actions_adherentcard_common.class.php
index 3d90fd3b79a573d44d0bf6a8ebaef3e82708e2fe..269e5389eeeb00bbc7247e7e2805a8577aaae78e 100644
--- a/htdocs/adherents/canvas/actions_adherentcard_common.class.php
+++ b/htdocs/adherents/canvas/actions_adherentcard_common.class.php
@@ -429,4 +429,3 @@ abstract class ActionsAdherentCardCommon
 
 }
 
-?>
diff --git a/htdocs/adherents/canvas/default/actions_adherentcard_default.class.php b/htdocs/adherents/canvas/default/actions_adherentcard_default.class.php
index 8e3238a7a96d619d505a04c5e9a21efcd471e82e..dad66600d0e3bd387c90a362cd8f4c9678722b14 100644
--- a/htdocs/adherents/canvas/default/actions_adherentcard_default.class.php
+++ b/htdocs/adherents/canvas/default/actions_adherentcard_default.class.php
@@ -145,4 +145,3 @@ class ActionsAdherentCardDefault extends ActionsAdherentCardCommon
 	}
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index c7943ff26b2a79b7acd45e59807b07055479e4e6..db144b482b6a1b90fd28d73a4e00193b6e986e2b 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -1944,4 +1944,3 @@ class Adherent extends CommonObject
     }
 
 }
-?>
diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php
index 695156710805f3221de40cfbaf4c54a165564f7c..66f7508fa20f775cf5ee857d4a086122afbccc8e 100644
--- a/htdocs/adherents/class/adherent_type.class.php
+++ b/htdocs/adherents/class/adherent_type.class.php
@@ -336,4 +336,3 @@ class AdherentType extends CommonObject
         }
     }
 }
-?>
diff --git a/htdocs/adherents/class/adherentstats.class.php b/htdocs/adherents/class/adherentstats.class.php
index 2c6afcfa7fc886096e544d86a001326634403f00..24a56d5e7c7808eedcf09ed7beaed4a03144cc33 100644
--- a/htdocs/adherents/class/adherentstats.class.php
+++ b/htdocs/adherents/class/adherentstats.class.php
@@ -179,4 +179,3 @@ class AdherentStats extends Stats
 	}
 
 }
-?>
diff --git a/htdocs/adherents/class/cotisation.class.php b/htdocs/adherents/class/cotisation.class.php
index 549ca27e079cc4cfa1a6f3c9aa87c5d1e2fdf8b2..544b198e49499d7dfc9d2e0d17bb5146b3c05dd4 100644
--- a/htdocs/adherents/class/cotisation.class.php
+++ b/htdocs/adherents/class/cotisation.class.php
@@ -314,4 +314,3 @@ class Cotisation extends CommonObject
 		}
 	}
 }
-?>
diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php
index 330bedf486267256398deb74a246eeff47df5309..2784a150e1df67fdd7f3873ba2d4b61fed9669cf 100644
--- a/htdocs/adherents/cotisations.php
+++ b/htdocs/adherents/cotisations.php
@@ -231,4 +231,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php
index 547ccc0466c695dd1233ced3e478bd3d4baa0de2..a3d7fe1cb4064fab9a18cf50ba2578f1f5d9b5ac 100644
--- a/htdocs/adherents/document.php
+++ b/htdocs/adherents/document.php
@@ -185,4 +185,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php
index 59791b5cad987a7003a4183a8aa7a8fd0a25be98..1e3342d69f0accbdc911eaf3cd17d062964849fe 100644
--- a/htdocs/adherents/fiche.php
+++ b/htdocs/adherents/fiche.php
@@ -1670,4 +1670,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/fiche_subscription.php b/htdocs/adherents/fiche_subscription.php
index 8f8bfbfb4137268feea26aaa2620c2cc7dd3e2d5..950ff888612817f2f49a13767e029b25dbede258 100644
--- a/htdocs/adherents/fiche_subscription.php
+++ b/htdocs/adherents/fiche_subscription.php
@@ -393,4 +393,3 @@ if ($rowid && $action != 'edit')
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/adherents/htpasswd.php b/htdocs/adherents/htpasswd.php
index aa2be711d2b5323223418fe58882565323389f69..ffa1a92124bb9822c33332867df6495816b020c2 100644
--- a/htdocs/adherents/htpasswd.php
+++ b/htdocs/adherents/htpasswd.php
@@ -90,4 +90,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php
index 8f7ad2bd947f9d43b976eaa0f2d4f076a99f71bd..e8ee6bc07c2105b75e04be5345415c09d98d76a6 100644
--- a/htdocs/adherents/index.php
+++ b/htdocs/adherents/index.php
@@ -428,4 +428,3 @@ print '</div></div></div>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/adherents/info.php b/htdocs/adherents/info.php
index 08ae0e2da9a084e693f6a68786eeec2abf6d4664..27f36e9a8430d822fffa9e22a5579214f28406e2 100644
--- a/htdocs/adherents/info.php
+++ b/htdocs/adherents/info.php
@@ -62,4 +62,3 @@ print '</div>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/adherents/info_subscription.php b/htdocs/adherents/info_subscription.php
index ea97ecc09763b8351673580dacbd34fa207d6aa4..cc7902af3585e17eb6488feac54c8a2291d797f8 100644
--- a/htdocs/adherents/info_subscription.php
+++ b/htdocs/adherents/info_subscription.php
@@ -80,4 +80,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/adherents/ldap.php b/htdocs/adherents/ldap.php
index 5d33432c0675fb7816b688b8bbaa7606ca08da51..ca651854a24e5ac1b2b5ce5e739e9e2f15644833 100644
--- a/htdocs/adherents/ldap.php
+++ b/htdocs/adherents/ldap.php
@@ -241,4 +241,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php
index 357fbc1aa43296f9b7b135ce569b501f2ea1cfd4..a5fbe1dc5c95982b3416bdc51e13bb61251fe4c0 100644
--- a/htdocs/adherents/liste.php
+++ b/htdocs/adherents/liste.php
@@ -380,4 +380,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/note.php b/htdocs/adherents/note.php
index d92447434d4f994845d2477c9a481451e8a07d9c..c46b9a7640e62f8b17e9e75f5f8bfbdc3ff1881c 100644
--- a/htdocs/adherents/note.php
+++ b/htdocs/adherents/note.php
@@ -178,4 +178,3 @@ if ($id)
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/adherents/stats/byproperties.php b/htdocs/adherents/stats/byproperties.php
index b84350528d45f307aec5965180ea13801cea0f47..e8355cbb941fde6806f66592a65dbdd8d24009f4 100644
--- a/htdocs/adherents/stats/byproperties.php
+++ b/htdocs/adherents/stats/byproperties.php
@@ -149,4 +149,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/stats/geo.php b/htdocs/adherents/stats/geo.php
index 65bf4f3f22b08be69232344d7fa1d5ab9af33225..1cb98f353b62c4a17400b4ac0608c841575d9e75 100644
--- a/htdocs/adherents/stats/geo.php
+++ b/htdocs/adherents/stats/geo.php
@@ -315,4 +315,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/stats/index.php b/htdocs/adherents/stats/index.php
index 33cc80b4b936ed5a4592730247d133fb118ede0b..41305d3949da2c31889f1eda05ae56f94b0e029c 100644
--- a/htdocs/adherents/stats/index.php
+++ b/htdocs/adherents/stats/index.php
@@ -234,4 +234,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index afebddf0bb613b014d11307881f35100268548bb..fafc7941aedcf7aaf954d48c99f8c1dd050b3903 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -690,4 +690,3 @@ if ($rowid > 0)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/accounting.php b/htdocs/admin/accounting.php
index d960b60516c524a23b35515cb843bcd7b6bc5366..80f9a64712587c084829ba3ab7a9299cf79788e2 100644
--- a/htdocs/admin/accounting.php
+++ b/htdocs/admin/accounting.php
@@ -258,4 +258,3 @@ if ($num)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/agenda.php b/htdocs/admin/agenda.php
index 178d37c333eb3c44c462f3ea660ffeab3df21c51..f3fb1d9b6c9b0b69b0a954f0749a6be5bffb7cb0 100644
--- a/htdocs/admin/agenda.php
+++ b/htdocs/admin/agenda.php
@@ -192,4 +192,3 @@ print "<br>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/agenda_extrafields.php b/htdocs/admin/agenda_extrafields.php
index d66ebb76b9cf0fe064851333daf791e3feb27d3f..2ba8f3d839c3199f3a6e3771e28e3d383b5de11b 100644
--- a/htdocs/admin/agenda_extrafields.php
+++ b/htdocs/admin/agenda_extrafields.php
@@ -154,4 +154,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/agenda_extsites.php b/htdocs/admin/agenda_extsites.php
index 6976fef48827bb7b7188437e816b41c9a0d407a2..7cbb0ce03704a6173fea28bca41c4641a7ee7d11 100644
--- a/htdocs/admin/agenda_extsites.php
+++ b/htdocs/admin/agenda_extsites.php
@@ -229,4 +229,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/agenda_other.php b/htdocs/admin/agenda_other.php
index c54d571086ad9d8f523b7887b3696139cb20f49d..4a9c359f5c1672c6af67746bbb92e35215e8c1fa 100644
--- a/htdocs/admin/agenda_other.php
+++ b/htdocs/admin/agenda_other.php
@@ -130,4 +130,3 @@ print "<br>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/agenda_xcal.php b/htdocs/admin/agenda_xcal.php
index 8805ca381ad2be91058d41f08ed7af83619d96b5..4cba7720ee04c552d45d3722584e91ebdf2ae138 100644
--- a/htdocs/admin/agenda_xcal.php
+++ b/htdocs/admin/agenda_xcal.php
@@ -197,4 +197,3 @@ if (! empty($conf->use_javascript_ajax))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/admin/bank.php b/htdocs/admin/bank.php
index 34b7ece1cf2834b8c1d9ea2bfa132d27e4387ba2..de1f766237365c4bd74a88f7259ec080ca31ff26 100644
--- a/htdocs/admin/bank.php
+++ b/htdocs/admin/bank.php
@@ -187,4 +187,3 @@ print '</table>'."\n";
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php
index 5824d298ee44046109ad5e32becee7784fd59916..1d8110c00d60ae2c47e4a2f847043e4a0f61d466 100644
--- a/htdocs/admin/barcode.php
+++ b/htdocs/admin/barcode.php
@@ -433,4 +433,3 @@ print "<br>";
 $db->close();
 
 llxFooter();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/clicktodial.php b/htdocs/admin/clicktodial.php
index 80428160e802a4d7fc0937b680972de986270b5a..3e85d377055a2996a018e5f961678c536ac2e8bb 100644
--- a/htdocs/admin/clicktodial.php
+++ b/htdocs/admin/clicktodial.php
@@ -131,4 +131,3 @@ if (! empty($conf->global->CLICKTODIAL_URL))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php
index 63ca02f6a5cb3b8fa4344eaaf62067ef125751f9..c339f306e4cbb62e7831f24437439a79d77f8eca 100644
--- a/htdocs/admin/company.php
+++ b/htdocs/admin/company.php
@@ -1016,4 +1016,3 @@ else
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/confexped.php b/htdocs/admin/confexped.php
index de10a5b8e4fbf5daaabc61af69ff8cba0a1ed296..ae8a7452244e0f1e622229043cc89b7d2b8e4c93 100644
--- a/htdocs/admin/confexped.php
+++ b/htdocs/admin/confexped.php
@@ -161,4 +161,3 @@ print info_admin($langs->trans("NoNeedForDeliveryReceipts"));
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php
index 4a80df017cb1ce1080b62db13c2f6eca663f6207..eb9cae4191742a55243690513c660f0a9c80898c 100644
--- a/htdocs/admin/const.php
+++ b/htdocs/admin/const.php
@@ -313,4 +313,3 @@ print "</form>\n";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php
index 00f6c7af825a5a15dde9cc40469a63655a606bec..4c3ee7207df783a9bb14f367f3cb60a25da34daa 100644
--- a/htdocs/admin/contract.php
+++ b/htdocs/admin/contract.php
@@ -518,4 +518,3 @@ print '<br>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/delais.php b/htdocs/admin/delais.php
index e16240bf2518b8984b0125ea39b7585c57e4bc19..274d1adc34ea8494b5a0c234cef8e08681bc81f0 100644
--- a/htdocs/admin/delais.php
+++ b/htdocs/admin/delais.php
@@ -278,4 +278,3 @@ print '</table>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index 35319dcdbdfe47a2ecf151dd1ff76941622afb1f..51d9ca2bcedd805936f3e9880a072de58073e2a2 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -1327,4 +1327,3 @@ function fieldList($fieldlist,$obj='',$tabname='')
 	}
 }
 
-?>
diff --git a/htdocs/admin/dons.php b/htdocs/admin/dons.php
index c6e42a0f12da1ce4a8e4510c88b7de491124b3ec..fbb89f4bfa20a0ee547aa6192b4c64d76b0bd830 100644
--- a/htdocs/admin/dons.php
+++ b/htdocs/admin/dons.php
@@ -259,4 +259,3 @@ print "<br>";
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/events.php b/htdocs/admin/events.php
index 9523bf38abcdc08ece7b89c34063961e648ed279..59205dcdbabe7a1d228c8156c24fd6d6c05df6b5 100644
--- a/htdocs/admin/events.php
+++ b/htdocs/admin/events.php
@@ -120,4 +120,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php
index 0e0008a54b79c432391ea8c7ad547894c4625e43..398f17c13c4f5a25a99f7e62b3d07b6dd7c1ab7f 100644
--- a/htdocs/admin/expedition.php
+++ b/htdocs/admin/expedition.php
@@ -536,4 +536,3 @@ print '</table>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/admin/external_rss.php b/htdocs/admin/external_rss.php
index 5f8b8c76fdf6dcfe41c741732277219f7265fb46..0b9534689d088060594af02f7f3c49fd83c08dd4 100644
--- a/htdocs/admin/external_rss.php
+++ b/htdocs/admin/external_rss.php
@@ -325,4 +325,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php
index e9d21ba29690c8027f058a155d7ef4ea911c3a17..4ffef4053d45c52cca09e3514369b66e164cb1bf 100644
--- a/htdocs/admin/facture.php
+++ b/htdocs/admin/facture.php
@@ -791,4 +791,3 @@ print "</table>\n";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php
index c1ace67bff936299a84ebd3cc80278a653098681..8c5dd6585f75970e98cd9836d991001420d02863 100644
--- a/htdocs/admin/fckeditor.php
+++ b/htdocs/admin/fckeditor.php
@@ -199,4 +199,3 @@ else
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/geoipmaxmind.php b/htdocs/admin/geoipmaxmind.php
index 3222c1ccd925b9162ecd50d148ff5c4c30095332..39267a0cefb150dc4bb0347b6cb16ba8c9826745 100644
--- a/htdocs/admin/geoipmaxmind.php
+++ b/htdocs/admin/geoipmaxmind.php
@@ -158,4 +158,3 @@ if ($geoip)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php
index 86e87ac56d4a04142d1770e280980cc02265744a..fe375d7668cd6b119a3e2f9198d0f878228eef6f 100644
--- a/htdocs/admin/ihm.php
+++ b/htdocs/admin/ihm.php
@@ -426,4 +426,3 @@ else	// Show
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php
index 7dc5650f761b0e9a4ccd2183ae80fffe50a97fad..ef893031db171601909a4c2425f5275be6b6fb56 100644
--- a/htdocs/admin/ldap.php
+++ b/htdocs/admin/ldap.php
@@ -326,4 +326,3 @@ if (function_exists("ldap_connect"))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/ldap_contacts.php b/htdocs/admin/ldap_contacts.php
index a25fe2c13c79c22ef55dc1bdb66be6500f6f4e38..81724449ecd8fbbfa46c6bdfdc39a6a3725a57b3 100644
--- a/htdocs/admin/ldap_contacts.php
+++ b/htdocs/admin/ldap_contacts.php
@@ -341,4 +341,3 @@ $db->close();
 
 llxFooter();
 
-?>
diff --git a/htdocs/admin/ldap_groups.php b/htdocs/admin/ldap_groups.php
index 49b1973eb07765a1b1e7fdd425aac60dbfde6e1c..e043bff88aaed6bfd862c1bb3def1fce5031886c 100644
--- a/htdocs/admin/ldap_groups.php
+++ b/htdocs/admin/ldap_groups.php
@@ -256,4 +256,3 @@ if (function_exists("ldap_connect"))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/ldap_members.php b/htdocs/admin/ldap_members.php
index f437163b22fc3e2077374cca8d36f3bf46ace332..bddf16f8670a88041d9ac850d3e566901d701f34 100644
--- a/htdocs/admin/ldap_members.php
+++ b/htdocs/admin/ldap_members.php
@@ -448,4 +448,3 @@ if (function_exists("ldap_connect"))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/ldap_users.php b/htdocs/admin/ldap_users.php
index 647cccf7ab82838aa81877302f89da909148486c..386bc19ff739cc3a998b8bbfe2a85daa8961ba57 100644
--- a/htdocs/admin/ldap_users.php
+++ b/htdocs/admin/ldap_users.php
@@ -453,4 +453,3 @@ if (function_exists("ldap_connect"))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/limits.php b/htdocs/admin/limits.php
index 4c36c3b127fc6d999eda8e3b7226948c3677d993..69237fe4f74e6d883a3deeac5821d84f4e786fe9 100644
--- a/htdocs/admin/limits.php
+++ b/htdocs/admin/limits.php
@@ -316,4 +316,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/livraison.php b/htdocs/admin/livraison.php
index 750bc5ebbb40d6ba9b7517a6c59898cb883f74d9..415bff261deb4fbe0da410ac2df105c94a2420f3 100644
--- a/htdocs/admin/livraison.php
+++ b/htdocs/admin/livraison.php
@@ -461,4 +461,3 @@ print '</table>';
 $db->close();
 
 llxFooter();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/mailman.php b/htdocs/admin/mailman.php
index 71274c4782ba3c9f83a88d9f55b2235fedea6148..f4d2010ca74a549b4ea7b4818cc02d0799015063 100644
--- a/htdocs/admin/mailman.php
+++ b/htdocs/admin/mailman.php
@@ -233,4 +233,3 @@ if (! empty($conf->global->ADHERENT_USE_MAILMAN))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/menus.php b/htdocs/admin/menus.php
index 5974de1deccea2abe3721befe1e6827749fb358e..b09b524b435a2dc86f72b0f8b78962f470e709b8 100644
--- a/htdocs/admin/menus.php
+++ b/htdocs/admin/menus.php
@@ -283,4 +283,3 @@ if ($action != 'edit')
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/menus/edit.php b/htdocs/admin/menus/edit.php
index bf382be58ed7e7022ef8a9b20d1906c74fe6093c..d99a02308b7abb4fee083e508d84ea381ee6ca8b 100644
--- a/htdocs/admin/menus/edit.php
+++ b/htdocs/admin/menus/edit.php
@@ -471,4 +471,3 @@ elseif ($action == 'edit')
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/menus/index.php b/htdocs/admin/menus/index.php
index 3b1e3a003843d19a9e0fa6907b803ea7a612865c..e598afe07a307599feced14ce6e7d925673394b3 100644
--- a/htdocs/admin/menus/index.php
+++ b/htdocs/admin/menus/index.php
@@ -369,4 +369,3 @@ print '<br>';
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/notification.php b/htdocs/admin/notification.php
index 659fcfb829fbd3166ca922a2569a8244aad3aebf..ca68c54c8050dda2f9d47e0a7704bf4d56e4ff21 100644
--- a/htdocs/admin/notification.php
+++ b/htdocs/admin/notification.php
@@ -130,4 +130,3 @@ print '</table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/order_extrafields.php b/htdocs/admin/order_extrafields.php
index 7317d078626bc48dd3c80e15e9fc2cb4c83edc1b..1169c699203540f5af0c29f932af832adfb63aba 100644
--- a/htdocs/admin/order_extrafields.php
+++ b/htdocs/admin/order_extrafields.php
@@ -156,4 +156,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/pdf.php b/htdocs/admin/pdf.php
index 7976702f17ce7e6ba7659439893db757fe7e17d3..f21687eecf72f3ccb8301745242bded4d614ba5b 100644
--- a/htdocs/admin/pdf.php
+++ b/htdocs/admin/pdf.php
@@ -522,4 +522,3 @@ else	// Show
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/perms.php b/htdocs/admin/perms.php
index 6871a1823dbe9a2d1617124d36c425fe78b6d39d..74a9b8c843495c5e01b9147473d75237fee72da8 100644
--- a/htdocs/admin/perms.php
+++ b/htdocs/admin/perms.php
@@ -222,4 +222,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/prelevement.php b/htdocs/admin/prelevement.php
index 8420953737d659d33f43cb00bf373a511c29b6e0..2247df9493ee67c284ca53cfae331a68c6ab5bea 100644
--- a/htdocs/admin/prelevement.php
+++ b/htdocs/admin/prelevement.php
@@ -287,4 +287,3 @@ if (! empty($conf->global->MAIN_MODULE_NOTIFICATION))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/propal.php b/htdocs/admin/propal.php
index de01582048d7b38df033983751beec94b7b48b4d..5503a906af2026089a7b15aafba89b92e9c8d270 100644
--- a/htdocs/admin/propal.php
+++ b/htdocs/admin/propal.php
@@ -604,4 +604,3 @@ print "</table>\n<br>";
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/proxy.php b/htdocs/admin/proxy.php
index a292ae75e11a3a8e2932d8c157ce9a04b6b6869a..050c92fd1881d85752157a20063d13b0e654dbd2 100644
--- a/htdocs/admin/proxy.php
+++ b/htdocs/admin/proxy.php
@@ -208,4 +208,3 @@ dol_fiche_end();
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php
index bacf1c0cebb75bb98600f61de8c540285cf74082..43ccef1e9544422cb2f2a2c5b21406e38ddffa17 100644
--- a/htdocs/admin/security.php
+++ b/htdocs/admin/security.php
@@ -386,4 +386,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php
index 6afc12949d6ba06154da440e02a4139a43c5bb00..54bc933374ccf8946b767e83666756fafefe5144 100644
--- a/htdocs/admin/security_other.php
+++ b/htdocs/admin/security_other.php
@@ -336,4 +336,3 @@ $formfile->list_of_documents($filearray, '', 'admin_temp', '');
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/admin/sms.php b/htdocs/admin/sms.php
index bdab2164888e36c9263c45dda2b15c41d80e50ef..0ba8427cca5f90eb8801cd4c8d099b62fc54de5a 100644
--- a/htdocs/admin/sms.php
+++ b/htdocs/admin/sms.php
@@ -347,4 +347,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/spip.php b/htdocs/admin/spip.php
index 30966f8bfbf0771d1b1be414fc0b8fee88237dee..af46c074bb9ff9e0d1c0695206278c25b98f5cd7 100644
--- a/htdocs/admin/spip.php
+++ b/htdocs/admin/spip.php
@@ -156,4 +156,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/supplier_invoice.php b/htdocs/admin/supplier_invoice.php
index e792c446d7ca12331abce35499d076e0af8250f5..8b69f8e1441da08e0e3f47e7984967894da9a687 100644
--- a/htdocs/admin/supplier_invoice.php
+++ b/htdocs/admin/supplier_invoice.php
@@ -469,4 +469,3 @@ print '</form>';
 
 $db->close();
 llxFooter();
-?>
diff --git a/htdocs/admin/supplier_order.php b/htdocs/admin/supplier_order.php
index a98e62499b067e73b3d837901756a5e717d1dd1d..88ab88780fcc1797ee6c50f2bf2b4c159059fb1e 100644
--- a/htdocs/admin/supplier_order.php
+++ b/htdocs/admin/supplier_order.php
@@ -464,4 +464,3 @@ print '</form>';
 
 $db->close();
 llxFooter();
-?>
diff --git a/htdocs/admin/supplierinvoice_extrafields.php b/htdocs/admin/supplierinvoice_extrafields.php
index e8cff7024679fa3329a01a0399da5a61abe8dfb3..8513144064628207461f1a9bd82ca7f07fa9a4ee 100644
--- a/htdocs/admin/supplierinvoice_extrafields.php
+++ b/htdocs/admin/supplierinvoice_extrafields.php
@@ -158,4 +158,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/system/constall.php b/htdocs/admin/system/constall.php
index 3386e3aa135989df083767bcfe1a37ca729f9a47..0183da7a258e263b47a0a26bcb44a69bad78294e 100644
--- a/htdocs/admin/system/constall.php
+++ b/htdocs/admin/system/constall.php
@@ -253,4 +253,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/system/database-tables.php b/htdocs/admin/system/database-tables.php
index eb638b687118d7160302ff12055edaf066d03c93..a29c8e66b32d533c8b4b593a411c1613a10146f8 100644
--- a/htdocs/admin/system/database-tables.php
+++ b/htdocs/admin/system/database-tables.php
@@ -173,4 +173,3 @@ else
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/system/modules.php b/htdocs/admin/system/modules.php
index a4cc4fefc117148ff92d9643feee37b5fd0d8f33..228608d32d3ce1a9480b285b5db75198a0fb13ed 100644
--- a/htdocs/admin/system/modules.php
+++ b/htdocs/admin/system/modules.php
@@ -159,4 +159,3 @@ foreach($rights_ids as $right_id)
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/system/perf.php b/htdocs/admin/system/perf.php
index e2990e3275bdbe754ba62d028e4e5f020b4c90a1..590502f617de8f9265bf58c0d1760d2bdfdc9be8 100644
--- a/htdocs/admin/system/perf.php
+++ b/htdocs/admin/system/perf.php
@@ -459,4 +459,3 @@ print '<br>';
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/system/xcache.php b/htdocs/admin/system/xcache.php
index 1f746f085bc195cf18247151d2b1dc708be18626..143e62b8b3cdf4a8226e2435483d0bb45449c89d 100644
--- a/htdocs/admin/system/xcache.php
+++ b/htdocs/admin/system/xcache.php
@@ -79,4 +79,3 @@ if ($action == 'clear')
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/system/xdebug.php b/htdocs/admin/system/xdebug.php
index 53a6aaa1f670e9fb4510ae3993e87f7a0b248441..7d32c76fb4dce4dac54f466825b72128019b567f 100644
--- a/htdocs/admin/system/xdebug.php
+++ b/htdocs/admin/system/xdebug.php
@@ -126,4 +126,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/taxes.php b/htdocs/admin/taxes.php
index 5e9ee49b5322b85321ab00bc011fb7dae6b22aa4..9184ede0920be805f14d06338d54918c23756f8d 100644
--- a/htdocs/admin/taxes.php
+++ b/htdocs/admin/taxes.php
@@ -199,4 +199,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/admin/tools/dolibarr_export.php b/htdocs/admin/tools/dolibarr_export.php
index 847b20783b27d52bd119dfbb7c3a3e8cad7b6ad7..8154cfffb0803127e57e61035a0b4c32b819fc0c 100644
--- a/htdocs/admin/tools/dolibarr_export.php
+++ b/htdocs/admin/tools/dolibarr_export.php
@@ -433,4 +433,3 @@ print '<br>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/tools/dolibarr_import.php b/htdocs/admin/tools/dolibarr_import.php
index 8fd8faa6608053b0cf8b41915d8511711ff44e2b..61e7e1e68a14f05f17f34de8e7ad0edd096e2d6a 100644
--- a/htdocs/admin/tools/dolibarr_import.php
+++ b/htdocs/admin/tools/dolibarr_import.php
@@ -194,4 +194,3 @@ else if ($label == 'PostgreSQL')
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/tools/export.php b/htdocs/admin/tools/export.php
index 4e85a4d30963b681c2a2932d91c4b87b027c31ee..8dccf89de096ea25bfd25b692f3d6142144436a7 100644
--- a/htdocs/admin/tools/export.php
+++ b/htdocs/admin/tools/export.php
@@ -528,4 +528,3 @@ function backup_tables($outputfile, $tables='*')
 
     return 1;
 }
-?>
diff --git a/htdocs/admin/tools/index.php b/htdocs/admin/tools/index.php
index 955d02b50f999c0ea1badd32ff24ef4f4ddcbee6..ec72b30864f9ea516b0b4544bfcd82fe2dd82ccb 100644
--- a/htdocs/admin/tools/index.php
+++ b/htdocs/admin/tools/index.php
@@ -57,4 +57,3 @@ print '<center><div class="logo_setup"></div></center>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/admin/tools/listevents.php b/htdocs/admin/tools/listevents.php
index d733182f054cd2cae67b550f86585c8ed11c5559..10bd42d9590a20e605f3d90a616f2cb5f7a4f4fe 100644
--- a/htdocs/admin/tools/listevents.php
+++ b/htdocs/admin/tools/listevents.php
@@ -270,4 +270,3 @@ else
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/triggers.php b/htdocs/admin/triggers.php
index 21a2b38e2a01679b71e8501766b494abb8ffe993..fc9d0489e9ab2c4311b3f9a9f3f51fbadbbf2de7 100644
--- a/htdocs/admin/triggers.php
+++ b/htdocs/admin/triggers.php
@@ -82,4 +82,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/user.php b/htdocs/admin/user.php
index 77dec6ce2a3d23c62d977320ec8fe2e5b92ea97a..b2a0d9f8363a4dd43e6432bbb81b091c39e5c3c9 100644
--- a/htdocs/admin/user.php
+++ b/htdocs/admin/user.php
@@ -141,4 +141,3 @@ dol_fiche_end();
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/asterisk/cidlookup.php b/htdocs/asterisk/cidlookup.php
index b90d393f01dc6d18f18f634934b15ffbb50946b6..d1dcb501f41d2e75df2e5046da05a77fe3bd4a66 100644
--- a/htdocs/asterisk/cidlookup.php
+++ b/htdocs/asterisk/cidlookup.php
@@ -67,4 +67,3 @@ else
 
 echo $found;
 
-?>
diff --git a/htdocs/barcode/codeinit.php b/htdocs/barcode/codeinit.php
index 24f9a6b779b9edeeadf8e9ccc30a11e00aaf1ab1..d6ca6a7d66f5a0bdeb04baf1b87d7319761f716e 100644
--- a/htdocs/barcode/codeinit.php
+++ b/htdocs/barcode/codeinit.php
@@ -322,4 +322,3 @@ print '<br>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/barcode/printsheet.php b/htdocs/barcode/printsheet.php
index f82551b57a50026e02edc06b43e408cb78603351..d862cb5da8f9906e2270e57c59d0f9a6f47acb43 100644
--- a/htdocs/barcode/printsheet.php
+++ b/htdocs/barcode/printsheet.php
@@ -419,4 +419,3 @@ print '<br>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/bookmarks/admin/bookmark.php b/htdocs/bookmarks/admin/bookmark.php
index 1f33f487f82707755843f248198e1e36fa1251b7..ad480f6cf7f31f57964de83ee26a967bfe151415 100644
--- a/htdocs/bookmarks/admin/bookmark.php
+++ b/htdocs/bookmarks/admin/bookmark.php
@@ -87,4 +87,3 @@ dol_htmloutput_mesg($mesg);
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/bookmarks/bookmarks.lib.php b/htdocs/bookmarks/bookmarks.lib.php
index 872691d4ee1544a5fb5a26813854a810a0bdf425..ebfe7e78db6391fad2f286a50d3501c9d833284c 100644
--- a/htdocs/bookmarks/bookmarks.lib.php
+++ b/htdocs/bookmarks/bookmarks.lib.php
@@ -91,4 +91,3 @@ function printBookmarksList($aDb, $aLangs)
 	return $ret;
 }
 
-?>
diff --git a/htdocs/bookmarks/class/bookmark.class.php b/htdocs/bookmarks/class/bookmark.class.php
index c4d0e0c312c6f2ea968202b95d3277da8e17a3bf..2aa86c5db2078c4e9482040a4d37f6e352c309d3 100644
--- a/htdocs/bookmarks/class/bookmark.class.php
+++ b/htdocs/bookmarks/class/bookmark.class.php
@@ -211,4 +211,3 @@ class Bookmark
     }
 
 }
-?>
diff --git a/htdocs/bookmarks/fiche.php b/htdocs/bookmarks/fiche.php
index fb5a78d21ed4507809abd5b1a33ec064237def7e..6167d6cd6695d4154227e3baf288ef4c1c06031e 100644
--- a/htdocs/bookmarks/fiche.php
+++ b/htdocs/bookmarks/fiche.php
@@ -292,4 +292,3 @@ if ($id > 0 && ! preg_match('/^add/i',$action))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/bookmarks/liste.php b/htdocs/bookmarks/liste.php
index 64bd28aabb40d7187c01f5f4fefb633386c12c71..c3524ae5d43676209df08bcef8a67924f183444c 100644
--- a/htdocs/bookmarks/liste.php
+++ b/htdocs/bookmarks/liste.php
@@ -217,4 +217,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/admin/boutique.php b/htdocs/boutique/admin/boutique.php
index 19a4057a6855aa6613246fa171f333c7051b87d6..65dab22f8137a746088555965bdbdc2637d3eaeb 100644
--- a/htdocs/boutique/admin/boutique.php
+++ b/htdocs/boutique/admin/boutique.php
@@ -204,4 +204,3 @@ dol_htmloutput_mesg($mesg);
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/client/class/boutiqueclient.class.php b/htdocs/boutique/client/class/boutiqueclient.class.php
index 7b48ab020a48c6f85cbe8b05de27d0a36fe1ab9e..fdf393043b07305f8b386254afe69e7577ce1aff 100644
--- a/htdocs/boutique/client/class/boutiqueclient.class.php
+++ b/htdocs/boutique/client/class/boutiqueclient.class.php
@@ -75,4 +75,3 @@ class BoutiqueClient
     }
 
 }
-?>
diff --git a/htdocs/boutique/client/fiche.php b/htdocs/boutique/client/fiche.php
index 31d7bf3e81e5193672790f1cac362757323fbf13..895eea66e790b265c6a000fa9d15c509621df10e 100644
--- a/htdocs/boutique/client/fiche.php
+++ b/htdocs/boutique/client/fiche.php
@@ -124,4 +124,3 @@ else
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/client/index.php b/htdocs/boutique/client/index.php
index 82eb9ef4bb007c33af828f51bd807421e1809ab9..358a74a750f9c87432a3f5c766319276ed4b26d9 100644
--- a/htdocs/boutique/client/index.php
+++ b/htdocs/boutique/client/index.php
@@ -89,4 +89,3 @@ else
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/commande/ca.php b/htdocs/boutique/commande/ca.php
index b5f4bab9e1c6abb59d55c3b667602325dec7fb81..5030e5ac55927f6a1522cf56145ccf4595e08f38 100644
--- a/htdocs/boutique/commande/ca.php
+++ b/htdocs/boutique/commande/ca.php
@@ -113,4 +113,3 @@ print "</table>";
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/commande/class/boutiquecommande.class.php b/htdocs/boutique/commande/class/boutiquecommande.class.php
index 62528c21b708f20bccd6d8e5958ae9fa0dd6f3a3..0a3383a33a3f3796b9a14ba35ae276ca44f22187 100644
--- a/htdocs/boutique/commande/class/boutiquecommande.class.php
+++ b/htdocs/boutique/commande/class/boutiquecommande.class.php
@@ -136,4 +136,3 @@ class BoutiqueCommande
     }
 
 }
-?>
diff --git a/htdocs/boutique/commande/fiche.php b/htdocs/boutique/commande/fiche.php
index e00f9007940ffe4e6669f03861c0b1192167eaab..1e2e90dd41ccc654beed29ae0e6b71bcb8e20b3c 100644
--- a/htdocs/boutique/commande/fiche.php
+++ b/htdocs/boutique/commande/fiche.php
@@ -153,4 +153,3 @@ print '</table><br>';
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/commande/index.php b/htdocs/boutique/commande/index.php
index c5d166cf4e44e10a573e51bfc8279f9576e9b5b0..cc683994565269cf174310a80dc58a0d4ac62080 100644
--- a/htdocs/boutique/commande/index.php
+++ b/htdocs/boutique/commande/index.php
@@ -90,4 +90,3 @@ else
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/critiques/bestproduct.php b/htdocs/boutique/critiques/bestproduct.php
index 556c1926979bc2b9f42922f735590375b91761d4..1b7b9ff06690220a90175dd4bcaaa113a9baeedc 100644
--- a/htdocs/boutique/critiques/bestproduct.php
+++ b/htdocs/boutique/critiques/bestproduct.php
@@ -95,4 +95,3 @@ print "</TABLE>";
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/critiques/class/critique.class.php b/htdocs/boutique/critiques/class/critique.class.php
index caa03061d53da59321158bcdf51b071e25d0dffa..cd3a72088ad596e80ad7bc38f5425ea973f1ba78 100644
--- a/htdocs/boutique/critiques/class/critique.class.php
+++ b/htdocs/boutique/critiques/class/critique.class.php
@@ -82,4 +82,3 @@ class Critique
 	}
 
 }
-?>
diff --git a/htdocs/boutique/critiques/fiche.php b/htdocs/boutique/critiques/fiche.php
index 6554983cf95c3c7adf0fb9ec5a37394c1782491a..a5ea716ed8c1f757284c474756347cf49c1e2348 100644
--- a/htdocs/boutique/critiques/fiche.php
+++ b/htdocs/boutique/critiques/fiche.php
@@ -80,4 +80,3 @@ $dbosc->close();
 
 llxFooter();
 
-?>
diff --git a/htdocs/boutique/critiques/index.php b/htdocs/boutique/critiques/index.php
index 186756f6e4251ec333f89ed2df368a4decf0be76..98294d5d09c14fb8f8d10ce71a9025e12455de92 100644
--- a/htdocs/boutique/critiques/index.php
+++ b/htdocs/boutique/critiques/index.php
@@ -90,4 +90,3 @@ print "</TABLE>";
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/index.php b/htdocs/boutique/index.php
index 91301c69dece03dd458d5070cc9e6b5966ee09d3..97d61a5353f340ae2b9e75d7c63938c0eee12eea 100644
--- a/htdocs/boutique/index.php
+++ b/htdocs/boutique/index.php
@@ -240,4 +240,3 @@ print '</tr></table>';
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/notification/index.php b/htdocs/boutique/notification/index.php
index 3a27326e1fb5118847922f2fc27daebeb9101aed..f8a24c5a52c45035fe891c9eb5d28a95a36d400e 100644
--- a/htdocs/boutique/notification/index.php
+++ b/htdocs/boutique/notification/index.php
@@ -87,4 +87,3 @@ else
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/notification/produits.php b/htdocs/boutique/notification/produits.php
index eb897497540eda13fe0892904ce295048298239b..6b4b82b60f56d723b5aac602b47a7036b07cd532 100644
--- a/htdocs/boutique/notification/produits.php
+++ b/htdocs/boutique/notification/produits.php
@@ -93,4 +93,3 @@ else
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/osc_master.inc.php b/htdocs/boutique/osc_master.inc.php
index 8897af9e83a3f99d1b1f59d589324ae4ff8a662e..ab4c0cf701a9256e97424e60578fd70f718e4f0a 100644
--- a/htdocs/boutique/osc_master.inc.php
+++ b/htdocs/boutique/osc_master.inc.php
@@ -36,4 +36,3 @@ if (! $dbosc->connected)
 	exit;
 }
 
-?>
diff --git a/htdocs/boutique/produits/index.php b/htdocs/boutique/produits/index.php
index f8bae9754459ef8ce51ba4b689781e2d8a67947a..02db7d5db2bfb6273d2f938edfb697721e952f29 100644
--- a/htdocs/boutique/produits/index.php
+++ b/htdocs/boutique/produits/index.php
@@ -86,4 +86,3 @@ else
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/produits/osc-liste.php b/htdocs/boutique/produits/osc-liste.php
index ef1369dd503ff3bdb8d62d28459c23eee69f2b14..d888850525474972ed93a05db61b13cb48cae0cc 100644
--- a/htdocs/boutique/produits/osc-liste.php
+++ b/htdocs/boutique/produits/osc-liste.php
@@ -104,4 +104,3 @@ print "</TABLE>";
 $dbosc->close();
 
 llxFooter();
-?>
diff --git a/htdocs/boutique/promotion/class/promotion.class.php b/htdocs/boutique/promotion/class/promotion.class.php
index d7a3ccb654582f5159604ae3e68b4866a1ea05fe..6e965ad76d182454f7d7f097268f4198b011cb37 100644
--- a/htdocs/boutique/promotion/class/promotion.class.php
+++ b/htdocs/boutique/promotion/class/promotion.class.php
@@ -211,4 +211,3 @@ class Promotion
 
 
 }
-?>
diff --git a/htdocs/boutique/promotion/index.php b/htdocs/boutique/promotion/index.php
index 7cbba5c5014989c75c43c7fceaa3f8766e0a5882..10dfa09a8c171a57ec7f9b0da6e921bbbe8bfdb0 100644
--- a/htdocs/boutique/promotion/index.php
+++ b/htdocs/boutique/promotion/index.php
@@ -117,4 +117,3 @@ $dbosc->close();
 
 llxFooter();
 
-?>
diff --git a/htdocs/cashdesk/admin/cashdesk.php b/htdocs/cashdesk/admin/cashdesk.php
index 901b43a0d486cabacf405dd4c63376a376a443c3..692b055659b0a3806bda1351ec16ba6d1af9087c 100644
--- a/htdocs/cashdesk/admin/cashdesk.php
+++ b/htdocs/cashdesk/admin/cashdesk.php
@@ -157,4 +157,3 @@ dol_htmloutput_mesg($mesg);
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/cashdesk/affContenu.php b/htdocs/cashdesk/affContenu.php
index 260e306ffeb211ce4719a470087bdefd9ab4392e..b88c78ffb4d26d0935957092afed23f4a81a1514 100644
--- a/htdocs/cashdesk/affContenu.php
+++ b/htdocs/cashdesk/affContenu.php
@@ -67,4 +67,3 @@ print '</div>';
 
 $_SESSION['serObjFacturation'] = serialize($obj_facturation);
 
-?>
\ No newline at end of file
diff --git a/htdocs/cashdesk/deconnexion.php b/htdocs/cashdesk/deconnexion.php
index 50417b1972794a9431ca7cc7f8e53a60633ba8c4..0602b577378a4c1650f987be9194a78964478cf1 100644
--- a/htdocs/cashdesk/deconnexion.php
+++ b/htdocs/cashdesk/deconnexion.php
@@ -35,4 +35,3 @@ unset($_SESSION['uid']);
 header('Location: '.DOL_URL_ROOT.'/cashdesk/index.php');
 exit;
 
-?>
\ No newline at end of file
diff --git a/htdocs/cashdesk/facturation_dhtml.php b/htdocs/cashdesk/facturation_dhtml.php
index e903e716afb083a1fe783642a3583a37c0e93858..88a22f7865a12b76a71fccd350698e166acd0c39 100644
--- a/htdocs/cashdesk/facturation_dhtml.php
+++ b/htdocs/cashdesk/facturation_dhtml.php
@@ -108,4 +108,3 @@ if (dol_strlen($_GET["code"]) >= 0)	// If search criteria is on char length at l
 	}
 
 }
-?>
\ No newline at end of file
diff --git a/htdocs/cashdesk/include/environnement.php b/htdocs/cashdesk/include/environnement.php
index 5d2505e1fc4223f3c1b053a1d006baa19689ae09..f0545181ff0e67f85876b07f4be031cbe8000323 100644
--- a/htdocs/cashdesk/include/environnement.php
+++ b/htdocs/cashdesk/include/environnement.php
@@ -49,4 +49,3 @@ $conf_nbr_car_listes = 60;	// Nombre max de caracteres par ligne dans les listes
 // Add hidden option to force decrease of stock whatever is user setup
 if (! empty($conf->global->CASHDESK_FORCE_STOCK_ON_BILL)) $conf->global->STOCK_CALCULATE_ON_BILL=1;
 
-?>
diff --git a/htdocs/cashdesk/index.php b/htdocs/cashdesk/index.php
index fe4171de72ee1d397a2c0c6d8545f5a917234959..9ab47249d2a5ce852d00fc9142282633f0153c08 100644
--- a/htdocs/cashdesk/index.php
+++ b/htdocs/cashdesk/index.php
@@ -181,4 +181,3 @@ else
 
 <?php
 print '</html>';
-?>
\ No newline at end of file
diff --git a/htdocs/cashdesk/validation_ok.php b/htdocs/cashdesk/validation_ok.php
index 1066af6b4ce2af6d873ecdeb0d7d24afa14afc23..70bf3d1b64fab2ce3c16626a233a3b7d25f3ea35 100644
--- a/htdocs/cashdesk/validation_ok.php
+++ b/htdocs/cashdesk/validation_ok.php
@@ -24,4 +24,3 @@
 // Affichage des templates
 require ('tpl/validation2.tpl.php');
 
-?>
diff --git a/htdocs/cashdesk/validation_ticket.php b/htdocs/cashdesk/validation_ticket.php
index fe50fa680090c5344f779660d3a9a04b46db5d54..e6be818e3bcacef94c4dd2ae86b2bf9d961c4736 100644
--- a/htdocs/cashdesk/validation_ticket.php
+++ b/htdocs/cashdesk/validation_ticket.php
@@ -34,7 +34,3 @@ require ('tpl/ticket.tpl.php');
 
 $_SESSION['serObjFacturation'] = serialize($obj_facturation);
 
-?>
-
-
-
diff --git a/htdocs/cashdesk/validation_verif.php b/htdocs/cashdesk/validation_verif.php
index 7cd29a54ec551604a1bb19a3682e3956f062252c..173c1894555f8c25a1a4209bc569b8d45e518a59 100644
--- a/htdocs/cashdesk/validation_verif.php
+++ b/htdocs/cashdesk/validation_verif.php
@@ -301,4 +301,3 @@ switch ($action)
 $_SESSION['serObjFacturation'] = serialize($obj_facturation);
 
 header('Location: '.$redirection);
-?>
diff --git a/htdocs/categories/admin/categorie_extrafields.php b/htdocs/categories/admin/categorie_extrafields.php
index 49c7a5c36bccb1625cb4c4bd4a39dbfee09166dc..6f8369afc89e184f0639369f8175d3a5dab3ac62 100644
--- a/htdocs/categories/admin/categorie_extrafields.php
+++ b/htdocs/categories/admin/categorie_extrafields.php
@@ -148,4 +148,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php
index e34ecf9c3364fcc4066adccb467e50c1e1689ec1..7f8ceac853ef74370870b96e385efcaa2089ffb7 100644
--- a/htdocs/categories/categorie.php
+++ b/htdocs/categories/categorie.php
@@ -731,4 +731,3 @@ function formCategory($db,$object,$typeid,$socid=0,$showclassifyform=1)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php
index 5a30f8bafb6f8a4856f12404ea6a466eb442388d..f9d1222cb35cbfe56be7c8c9b1447f4f852fd8b0 100644
--- a/htdocs/categories/class/categorie.class.php
+++ b/htdocs/categories/class/categorie.class.php
@@ -1547,4 +1547,3 @@ class Categorie extends CommonObject
         $this->type = 0;
     }
 }
-?>
diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php
index de85a6ca6e2c3ae9d9de5318803d47274a346aff..0c61ab8cca68467351dacda67ab8988505396ffc 100644
--- a/htdocs/categories/edit.php
+++ b/htdocs/categories/edit.php
@@ -177,4 +177,3 @@ print '</td></tr></table>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php
index 12eaa7e98f08a715573075bf87d680544c04c8a0..aca14acce2bc171fa0c7488527b72ef06b906e84 100644
--- a/htdocs/categories/fiche.php
+++ b/htdocs/categories/fiche.php
@@ -267,4 +267,3 @@ if ($user->rights->categorie->creer)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php
index 0e512cdfcf70a302f5d568bb74f817ae69d02e21..eceeb2890bc4378069bb9cb5c79e34c860d643a2 100644
--- a/htdocs/categories/index.php
+++ b/htdocs/categories/index.php
@@ -194,4 +194,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/categories/photos.php b/htdocs/categories/photos.php
index b0fd0cc92be0589cb3a712cdd39a76ac171e9370..69a8bb97eabfd558475fea4028e5de7648740e93 100644
--- a/htdocs/categories/photos.php
+++ b/htdocs/categories/photos.php
@@ -301,4 +301,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/categories/traduction.php b/htdocs/categories/traduction.php
index a6dadeb0e1c11b3ae5f0ee630e63d27defcd42f9..15e8f7f6a5fcc5fd0dc758447b2e4c5574cb1044 100644
--- a/htdocs/categories/traduction.php
+++ b/htdocs/categories/traduction.php
@@ -281,4 +281,3 @@ if ($action == 'add' && ($user->rights->produit->creer || $user->rights->service
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/comm/action/class/cactioncomm.class.php b/htdocs/comm/action/class/cactioncomm.class.php
index c05887ec47fea5ea4c6da4139b57463cc74a1c20..68960c5a6c03b216fdc9686c0ea0d9becaec5551 100644
--- a/htdocs/comm/action/class/cactioncomm.class.php
+++ b/htdocs/comm/action/class/cactioncomm.class.php
@@ -185,4 +185,3 @@ class CActionComm
     }
 
 }
-?>
diff --git a/htdocs/comm/action/class/ical.class.php b/htdocs/comm/action/class/ical.class.php
index 0e279adc03cbc9dc01ebea34e3024986361ee408..bca56b811b2e802f2ecd7f52b1350f33be5845c1 100644
--- a/htdocs/comm/action/class/ical.class.php
+++ b/htdocs/comm/action/class/ical.class.php
@@ -395,4 +395,3 @@ class ICal
         return $this->cal;
     }
 }
-?>
diff --git a/htdocs/comm/action/contact.php b/htdocs/comm/action/contact.php
index 2ec18b1bd0a407f32a0af9f19d73afe677c575e4..70ea24067b3fc95ba73fecd1808b155093a78ebb 100644
--- a/htdocs/comm/action/contact.php
+++ b/htdocs/comm/action/contact.php
@@ -258,4 +258,3 @@ llxFooter();
 
 $db->close();
 
-?>
diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php
index 26852e796c1d6eaa72f650384def799b47d55351..55993db2fc20f43209fe13e94704c84fda63a37a 100644
--- a/htdocs/comm/action/document.php
+++ b/htdocs/comm/action/document.php
@@ -267,4 +267,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php
index 2ed00894aa043ee39dc5238d8418d17f529d5b57..373a7b9d6a26914701380f3920ac5deff889f97e 100644
--- a/htdocs/comm/action/fiche.php
+++ b/htdocs/comm/action/fiche.php
@@ -1103,4 +1103,3 @@ if ($id > 0)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index fbb9400acff0ddb2335717392987151fc654bc95..0f21d190773b7c3174be28e3ecb257af849a4d68 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -1234,4 +1234,3 @@ function dol_color_minus($color, $minus)
 	return $newcolor;
 }
 
-?>
diff --git a/htdocs/comm/action/info.php b/htdocs/comm/action/info.php
index de41dc04483ff78b4d5e919590ec8a925696f561..4367e6cdb806a53252727c4da59b1f60eaeebb5a 100644
--- a/htdocs/comm/action/info.php
+++ b/htdocs/comm/action/info.php
@@ -67,4 +67,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/action/listactions.php b/htdocs/comm/action/listactions.php
index ebe68fa3328d8f0112cb6298d84644bd0e5ad1d9..e6944f4c8293f86b1c21c17a3a13d70ca51950a8 100644
--- a/htdocs/comm/action/listactions.php
+++ b/htdocs/comm/action/listactions.php
@@ -371,4 +371,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/action/rapport/index.php b/htdocs/comm/action/rapport/index.php
index fa100e532f352e60c3bcee566ec6d0a6ea49f1de..78f1ca24827aa65e994a29f4113cdf6bbe9b3ea2 100644
--- a/htdocs/comm/action/rapport/index.php
+++ b/htdocs/comm/action/rapport/index.php
@@ -158,4 +158,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/address.php b/htdocs/comm/address.php
index 22e992c0f8aac972c6ec0dfa6cca011ac0ef3dcc..8e892845c669c2ca2b0e34539fc52358cf293573 100644
--- a/htdocs/comm/address.php
+++ b/htdocs/comm/address.php
@@ -496,4 +496,3 @@ else
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/comm/admin/propal_extrafields.php b/htdocs/comm/admin/propal_extrafields.php
index 974c42c95bb24df2ce699b7d36547305a7b650fd..434d2fc197245cb5538640456de21cd70fa2511d 100644
--- a/htdocs/comm/admin/propal_extrafields.php
+++ b/htdocs/comm/admin/propal_extrafields.php
@@ -155,4 +155,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/admin/propaldet_extrafields.php b/htdocs/comm/admin/propaldet_extrafields.php
index 4b2d7dd7a807dec9f984c92f03a0b1a63bced1ad..c9c2810546656ba57dc3e8d3bd3fb9f4b06e0497 100644
--- a/htdocs/comm/admin/propaldet_extrafields.php
+++ b/htdocs/comm/admin/propaldet_extrafields.php
@@ -157,4 +157,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php
index a3cde90d102e2b7e8c1fe9ef980310116ab7fa07..9865399202557d63d822fe92203731478be71d14 100644
--- a/htdocs/comm/index.php
+++ b/htdocs/comm/index.php
@@ -529,4 +529,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/list.php b/htdocs/comm/list.php
index 1d2f792ab2f39ef1d10fb692b2c2b91513ca5c78..beff565811a03a98a8b7558e50bc9a1103f61c6a 100644
--- a/htdocs/comm/list.php
+++ b/htdocs/comm/list.php
@@ -291,4 +291,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php
index 916a61636687235e625734027e067ce8ab75b5c4..93e66c0c4971fe29688855283dc91ef277f4eb98 100644
--- a/htdocs/comm/mailing/cibles.php
+++ b/htdocs/comm/mailing/cibles.php
@@ -538,4 +538,3 @@ if ($object->fetch($id) >= 0)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/mailing/class/mailing.class.php b/htdocs/comm/mailing/class/mailing.class.php
index a6db4738bb59f1f44b23c8b1cfe0a0e7db979242..99b1a2f44197fe1c0b6421e33e68949c20566fd1 100644
--- a/htdocs/comm/mailing/class/mailing.class.php
+++ b/htdocs/comm/mailing/class/mailing.class.php
@@ -514,4 +514,3 @@ class Mailing extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php
index 9d6a31cdfacafe96210a23d5157dd0e1f89c3072..6a49dd0865b3318077a97bd969a7ccfc08044579 100644
--- a/htdocs/comm/mailing/fiche.php
+++ b/htdocs/comm/mailing/fiche.php
@@ -1146,4 +1146,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/comm/mailing/index.php b/htdocs/comm/mailing/index.php
index ac7cbdccb5d7558154a0f26b37619b040534a4b0..a0175bad448eede14dd7e9169f20f6435f04408d 100644
--- a/htdocs/comm/mailing/index.php
+++ b/htdocs/comm/mailing/index.php
@@ -217,4 +217,3 @@ if ($langs->file_exists("html/spam.html",0)) {
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/mailing/info.php b/htdocs/comm/mailing/info.php
index 59b1d26c4b24116d2e0fa7b283fb09be319e0b64..bbd10849f42ab4a002705ae34a36cdc24d0e45f2 100644
--- a/htdocs/comm/mailing/info.php
+++ b/htdocs/comm/mailing/info.php
@@ -66,4 +66,3 @@ if ($mil->fetch($_REQUEST["id"]) >= 0)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/mailing/liste.php b/htdocs/comm/mailing/liste.php
index 81af4f4f6e68091d8cf6811360acbbdeabdf708d..617096561a31a0ca139e546c2204590302c204fc 100644
--- a/htdocs/comm/mailing/liste.php
+++ b/htdocs/comm/mailing/liste.php
@@ -189,4 +189,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/multiprix.php b/htdocs/comm/multiprix.php
index 2dd17ff3f60cb6a1e9dbea67b5197617257c22b1..6f8c0b70b861a78a18767ce9b719190dd7195206 100644
--- a/htdocs/comm/multiprix.php
+++ b/htdocs/comm/multiprix.php
@@ -174,4 +174,3 @@ if ($_socid > 0)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 9302b53d5bd51b6337a9fde1002d147ebf0b6065..343a559b7a9f4b243b4083c71dc605aa1a186507 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -2097,4 +2097,3 @@ if ($action == 'create') {
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/comm/propal/apercu.php b/htdocs/comm/propal/apercu.php
index 77a5fcf2697653fe02257bc92bce3c0b7a8f9a91..ce80783c7316bc1f0ed5898bc131044758d205b6 100644
--- a/htdocs/comm/propal/apercu.php
+++ b/htdocs/comm/propal/apercu.php
@@ -209,4 +209,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php
index d38052b684cc7c440de4cec50aa09e4386d42854..8a4ff80f7134403991a70759b254bcabef8c7a54 100644
--- a/htdocs/comm/propal/class/propal.class.php
+++ b/htdocs/comm/propal/class/propal.class.php
@@ -3147,4 +3147,3 @@ class PropaleLigne  extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/comm/propal/class/propalestats.class.php b/htdocs/comm/propal/class/propalestats.class.php
index 343413f40126eeab09d83de33aedd9fcb935d94a..dc8501c37baa379f3b979d18ca5dfea559e852ff 100644
--- a/htdocs/comm/propal/class/propalestats.class.php
+++ b/htdocs/comm/propal/class/propalestats.class.php
@@ -208,4 +208,3 @@ class PropaleStats extends Stats
 		return $this->_getAllByProduct($sql);
 	}	
 }
-?>
diff --git a/htdocs/comm/propal/contact.php b/htdocs/comm/propal/contact.php
index 2d7d432a51d6a0c3a32e3e89af04ce5b70aaa751..6a0a1076e6289e3f4a3acfe6688622a80a0abe6e 100644
--- a/htdocs/comm/propal/contact.php
+++ b/htdocs/comm/propal/contact.php
@@ -221,4 +221,3 @@ if ($object->id > 0)
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/comm/propal/index.php b/htdocs/comm/propal/index.php
index 409d76f2505d2f81f9da7f7d2df1e795c28a6528..f89b6bfda86f60880b9a71233b0d6256e5cfad3a 100644
--- a/htdocs/comm/propal/index.php
+++ b/htdocs/comm/propal/index.php
@@ -526,4 +526,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/propal/info.php b/htdocs/comm/propal/info.php
index 433dbdbf12fca3bc138feec3f6fc39e5da3948fc..d3a3899537b4f8ffc314b2f4c1f17f3de7b497bd 100644
--- a/htdocs/comm/propal/info.php
+++ b/htdocs/comm/propal/info.php
@@ -63,4 +63,3 @@ print '</div>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index 5fbb69dbd34fa7cf60bf3b9a5d074fa5b6149f72..3cb2399416fffc8634053dd4fa02fb8151ce46a6 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -444,4 +444,3 @@ else
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php
index 2ed0f5e5dadd7396cc7de9677292fc75ad7b79e8..9292684d06f60f802593da2e0884f04b9e78aeae 100644
--- a/htdocs/comm/propal/note.php
+++ b/htdocs/comm/propal/note.php
@@ -149,4 +149,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/comm/propal/stats/index.php b/htdocs/comm/propal/stats/index.php
index 39cb54b05163cd747dd81af8f6383ebc1542f26e..61985c8560f5c90e3de1a0a2ae208edc89f09ce6 100644
--- a/htdocs/comm/propal/stats/index.php
+++ b/htdocs/comm/propal/stats/index.php
@@ -311,4 +311,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/comm/prospect/class/prospect.class.php b/htdocs/comm/prospect/class/prospect.class.php
index c322d6af6d6a36912fb1e81268de180771ce4a30..19e56fe2cffb54b6701fa9cf9fd7d086270c219b 100644
--- a/htdocs/comm/prospect/class/prospect.class.php
+++ b/htdocs/comm/prospect/class/prospect.class.php
@@ -173,4 +173,3 @@ class Prospect extends Societe
 		return $lib;
 	}
 }
-?>
diff --git a/htdocs/comm/prospect/index.php b/htdocs/comm/prospect/index.php
index 1f3e0fc4c0c00bee673a2bff5c75daf850befeae..b27560442101d2d77c37480943f24bfd2bf7aa8b 100644
--- a/htdocs/comm/prospect/index.php
+++ b/htdocs/comm/prospect/index.php
@@ -284,4 +284,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/comm/prospect/recap-prospect.php b/htdocs/comm/prospect/recap-prospect.php
index 528135978848f9dc8b05c0d5486a2a4e07d50888..1eb30f02b5512520a28e6450a063835501715723 100644
--- a/htdocs/comm/prospect/recap-prospect.php
+++ b/htdocs/comm/prospect/recap-prospect.php
@@ -93,4 +93,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/recap-client.php b/htdocs/comm/recap-client.php
index 56743e59d7a7b3f3601e558f31179ed900c34166..bb079a34169b7f6dee2ddd609d31f01555cacd56 100644
--- a/htdocs/comm/recap-client.php
+++ b/htdocs/comm/recap-client.php
@@ -92,4 +92,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/remise.php b/htdocs/comm/remise.php
index 81bc362695e57c679c83a3e6ceaaf69dc529db7c..56b3009298db403d9cc51c4764d319fc6deac25f 100644
--- a/htdocs/comm/remise.php
+++ b/htdocs/comm/remise.php
@@ -203,4 +203,3 @@ if ($socid > 0)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php
index 0de58ca2ed06aa97aac08bcf0c3bfcfd3357c7c1..db35db04b14cde33913057c0902e6d5d6feb5a6c 100644
--- a/htdocs/comm/remx.php
+++ b/htdocs/comm/remx.php
@@ -544,4 +544,3 @@ if ($socid > 0)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php
index 9eb04e940bcd00b9285f269be39a52d3f881e2c5..97671510bfd6fad752bab0d759e6ffd47fbd1257 100644
--- a/htdocs/commande/apercu.php
+++ b/htdocs/commande/apercu.php
@@ -229,4 +229,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index 7609d58afb23d9d3f0e611fff10d87c36543d6ec..5c4d1d0e131c011cd1c92803e34c4786e74e80aa 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -3444,4 +3444,3 @@ class OrderLine extends CommonOrderLine
     }
 }
 
-?>
diff --git a/htdocs/commande/class/commandestats.class.php b/htdocs/commande/class/commandestats.class.php
index 8691656128e7788586f744e79e3085083da70cc9..312e958a38e9dc424745edc3b68c350867ff0c95 100644
--- a/htdocs/commande/class/commandestats.class.php
+++ b/htdocs/commande/class/commandestats.class.php
@@ -219,4 +219,3 @@ class CommandeStats extends Stats
 		
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php
index 05538666ba35c0e14f3a54aab0bfda7cbf3a53e7..d939b106c7fa18db739a00b8b7c7ba65f0f7f1e6 100644
--- a/htdocs/commande/document.php
+++ b/htdocs/commande/document.php
@@ -138,4 +138,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index f4cf312b0455c48b32cf21f916d6da38b967b558..52e8053a1e6d2b43d85144d21f3c0c053e2bd11a 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -2389,4 +2389,3 @@ if ($action == 'create' && $user->rights->commande->creer) {
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php
index c8dc5e61d6dad0fe1c1f1c2fe3c49cd4b2f4e3d6..37e88f37d852481569eed3a50f735281f72a96f3 100644
--- a/htdocs/commande/index.php
+++ b/htdocs/commande/index.php
@@ -429,4 +429,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/commande/info.php b/htdocs/commande/info.php
index c874ec049b87c89acdb61f9afcb74dce2576d2c2..de559e2b53fe6c4c095b522398977dd94bf832ea 100644
--- a/htdocs/commande/info.php
+++ b/htdocs/commande/info.php
@@ -66,4 +66,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php
index f5d7c01ae5632038c0926a1ddcc70d4396c160d9..7abe6451141b4d6e8e441de199f0d45e752bca88 100644
--- a/htdocs/commande/liste.php
+++ b/htdocs/commande/liste.php
@@ -425,4 +425,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php
index 9d740dc10890e5ed70223129b6e7630dd0ee3a5f..ae5aab0491b4d3c77b2f9c01ce26f1102346e9e2 100644
--- a/htdocs/commande/note.php
+++ b/htdocs/commande/note.php
@@ -113,4 +113,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php
index fa92daa3117eb289f6754f8a7a37bb4b3d610195..bfdf2dbb5ca5f93a6efa92b53e713c5009171753 100644
--- a/htdocs/commande/orderstoinvoice.php
+++ b/htdocs/commande/orderstoinvoice.php
@@ -697,4 +697,3 @@ dol_htmloutput_mesg($mesg,$mesgs);
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/commande/stats/index.php b/htdocs/commande/stats/index.php
index 45d242bd4e5668eb9adc8a5e27960f932d65b386..fcc33a666d2983cf4fb16095c98f1db3079d58f1 100644
--- a/htdocs/commande/stats/index.php
+++ b/htdocs/commande/stats/index.php
@@ -335,4 +335,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/ajaxpayment.php b/htdocs/compta/ajaxpayment.php
index 08a6fcd26fff2fef53fcc1da4f8c4b21b7b51a06..66a1c997be36c0630a9479e84cbeb03c3f30a17d 100644
--- a/htdocs/compta/ajaxpayment.php
+++ b/htdocs/compta/ajaxpayment.php
@@ -116,4 +116,3 @@ $toJsonArray['resultnum'] = price2num($result);	// Return value to numeric forma
 
 // Encode to JSON to return
 echo dol_json_encode($toJsonArray);	// Printing the call's result
-?>
\ No newline at end of file
diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php
index ac857172470a1bd7f16d89a1d097a4d149a74203..e54c501fdab5b5c5e24a0df62424fa9900aa8175 100644
--- a/htdocs/compta/bank/annuel.php
+++ b/htdocs/compta/bank/annuel.php
@@ -509,4 +509,3 @@ print "\n</div>\n";
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/bank/bankid_fr.php b/htdocs/compta/bank/bankid_fr.php
index 5b69fe9753a38f4c99c668fce4ed475ca18fc1d6..3c298e1c0b04beef592ed3a8ce05f91530206644 100644
--- a/htdocs/compta/bank/bankid_fr.php
+++ b/htdocs/compta/bank/bankid_fr.php
@@ -460,4 +460,3 @@ if ($_GET["id"] && $action == 'edit' && $user->rights->banque->configurer)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/bank/bilan.php b/htdocs/compta/bank/bilan.php
index e3942381d1ef512599ce554b6ed36745375ec892..edfc84c23cc6f33aa0172f89b872f2f6c2c66a31 100644
--- a/htdocs/compta/bank/bilan.php
+++ b/htdocs/compta/bank/bilan.php
@@ -92,4 +92,3 @@ print "</table>";
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php
index 672e1363d3eb369195a8f9fe43e9327425860d59..04697909eac445e1293c0e7d61f4cdd0eeda39bf 100644
--- a/htdocs/compta/bank/budget.php
+++ b/htdocs/compta/bank/budget.php
@@ -99,4 +99,3 @@ print "</table>";
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/bank/categ.php b/htdocs/compta/bank/categ.php
index 94370d699e6be819f8631e1fdbcf407d3bab6839..41abab1ace06425c7f9e7c2cfa0b61b994eb93e6 100644
--- a/htdocs/compta/bank/categ.php
+++ b/htdocs/compta/bank/categ.php
@@ -181,4 +181,3 @@ print "</form>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php
index 97e7543a0307c23f5d48f06ebe1adaee65f070c0..8bcabf7f17b5b50d9e550be3f7a2d5632038417d 100644
--- a/htdocs/compta/bank/class/account.class.php
+++ b/htdocs/compta/bank/class/account.class.php
@@ -1457,4 +1457,3 @@ class AccountLine extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/compta/bank/class/bankcateg.class.php b/htdocs/compta/bank/class/bankcateg.class.php
index 996bf7450345ac2db56decb0b1d18a275f48c1c9..c4066bae6550cd645d55f27d983b01e244c66a6d 100644
--- a/htdocs/compta/bank/class/bankcateg.class.php
+++ b/htdocs/compta/bank/class/bankcateg.class.php
@@ -359,4 +359,3 @@ class BankCateg // extends CommonObject
     }
 
 }
-?>
diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php
index 8a97e75ddf13928a608f3e98db73a69993356816..bdb30e465282cf81070b6f3a2717cc10a902d702 100644
--- a/htdocs/compta/bank/fiche.php
+++ b/htdocs/compta/bank/fiche.php
@@ -622,4 +622,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/bank/graph.php b/htdocs/compta/bank/graph.php
index 734cdd8eb833d61baa61255426434a495fb214c3..7a7f03c7d98266bfdc7ead4750106490d4320562 100644
--- a/htdocs/compta/bank/graph.php
+++ b/htdocs/compta/bank/graph.php
@@ -885,4 +885,3 @@ print "\n</div>\n";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/bank/index.php b/htdocs/compta/bank/index.php
index 00cd0b163ee12382dc7c34287d5d6bcf6be1eca1..cf43fc578fb7704a28b71858e538455d642e30c9 100644
--- a/htdocs/compta/bank/index.php
+++ b/htdocs/compta/bank/index.php
@@ -251,4 +251,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/bank/info.php b/htdocs/compta/bank/info.php
index a5a0cdf16775732de27c2d664101e2fb18203202..cfc0c10d0a5f7bc6dc92ce75c21dfbec5a0e3f3a 100644
--- a/htdocs/compta/bank/info.php
+++ b/htdocs/compta/bank/info.php
@@ -66,4 +66,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php
index ef57d15d355d8dc9199ed10f04f6234065db0466..2c79a0bb3444aa3d3da5fd2b35e9ef6c207916a2 100644
--- a/htdocs/compta/bank/ligne.php
+++ b/htdocs/compta/bank/ligne.php
@@ -628,4 +628,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/bank/rappro.php b/htdocs/compta/bank/rappro.php
index 29a47a60e9baf78189b694b7998ee99c9eb32658..f8d3ccd0bc77bfaaea20e3aa1303e641c601faaa 100644
--- a/htdocs/compta/bank/rappro.php
+++ b/htdocs/compta/bank/rappro.php
@@ -459,4 +459,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php
index 4c04655ae65fa15d0c993ddc72fe7f0ff9fd7c83..6c95fd49bff66acf38f0998a33ab7255a2f58bfc 100644
--- a/htdocs/compta/bank/releve.php
+++ b/htdocs/compta/bank/releve.php
@@ -486,4 +486,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php
index 735a78319ab42daad127d80ec30f74dc90ebf3cc..e5a945ced78faab7654b6b0a6891f47a5d2878d7 100644
--- a/htdocs/compta/bank/search.php
+++ b/htdocs/compta/bank/search.php
@@ -338,4 +338,3 @@ if ($_POST["action"] == "search" && ! $num)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php
index 58876f81ab67c2a8e2e93c842280f50b0c3bd098..f6c595306053e1333d941aed3d084661429d7655 100644
--- a/htdocs/compta/bank/treso.php
+++ b/htdocs/compta/bank/treso.php
@@ -349,4 +349,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/bank/virement.php b/htdocs/compta/bank/virement.php
index bea66e6a47d4daa22d2f5d78ff63aa2ffcfaf039..d7b082fc65e103fc924df4f8520a48a96ec2caa4 100644
--- a/htdocs/compta/bank/virement.php
+++ b/htdocs/compta/bank/virement.php
@@ -193,4 +193,3 @@ print "</form>";
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/charges/index.php b/htdocs/compta/charges/index.php
index cb697e6cc70f85ed7b30940536b2fcc752d6da13..f7ce301b89c3d6f391ad4cdbcbbc904defbd5dc2 100644
--- a/htdocs/compta/charges/index.php
+++ b/htdocs/compta/charges/index.php
@@ -358,4 +358,3 @@ if ($conf->tax->enabled)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php
index 4f6719adb145e06cb857fa7c375c3366edef47e7..dbdc8c7236844a0335c3128cec78d0613e2bcc3d 100644
--- a/htdocs/compta/clients.php
+++ b/htdocs/compta/clients.php
@@ -213,4 +213,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/deplacement/class/deplacement.class.php b/htdocs/compta/deplacement/class/deplacement.class.php
index b5ff84546fd18e894671ab191fcd6888c7720b83..f47046e2bddf4aeb381d59d033604cf4c3021974 100644
--- a/htdocs/compta/deplacement/class/deplacement.class.php
+++ b/htdocs/compta/deplacement/class/deplacement.class.php
@@ -449,4 +449,3 @@ class Deplacement extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/compta/deplacement/class/deplacementstats.class.php b/htdocs/compta/deplacement/class/deplacementstats.class.php
index 82b3e093ecdc88d89e1af65703510131b1ba8cb8..196ae560cbedf0849ae4c3ae1618138ddc14e80e 100644
--- a/htdocs/compta/deplacement/class/deplacementstats.class.php
+++ b/htdocs/compta/deplacement/class/deplacementstats.class.php
@@ -162,4 +162,3 @@ class DeplacementStats extends Stats
 	}
 }
 
-?>
diff --git a/htdocs/compta/deplacement/document.php b/htdocs/compta/deplacement/document.php
index eed21f3e1ccb9b38d23813b3ce5bfd5a32314b2b..163242ed08ab815a61f3d5f5a91172a93ba0dcb0 100644
--- a/htdocs/compta/deplacement/document.php
+++ b/htdocs/compta/deplacement/document.php
@@ -134,4 +134,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php
index 1bbe32bc7cccb262c8e651f2e06ec688429a1c0f..e0183094d231b06c8abdea330467009a887262ea 100644
--- a/htdocs/compta/deplacement/fiche.php
+++ b/htdocs/compta/deplacement/fiche.php
@@ -543,4 +543,3 @@ else if ($id)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/deplacement/index.php b/htdocs/compta/deplacement/index.php
index b61ea9fd4d573ea7939e437e7bf743f5ef04e7a3..bded8c261e29b832b354a01d609937b3f1d5c40e 100644
--- a/htdocs/compta/deplacement/index.php
+++ b/htdocs/compta/deplacement/index.php
@@ -195,4 +195,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/deplacement/info.php b/htdocs/compta/deplacement/info.php
index c1db32525efec90c2e14d569c528d5de4f1c2396..dcdc8c9baf0886375489f1df868d4b3533ab8b33 100644
--- a/htdocs/compta/deplacement/info.php
+++ b/htdocs/compta/deplacement/info.php
@@ -61,4 +61,3 @@ if ($id)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/deplacement/list.php b/htdocs/compta/deplacement/list.php
index 94a3a26a0f312f226910af6ab5667fb1ef783508..195bf9023b4add5ced3210ad395ea87890e1b34d 100644
--- a/htdocs/compta/deplacement/list.php
+++ b/htdocs/compta/deplacement/list.php
@@ -158,4 +158,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/deplacement/stats/index.php b/htdocs/compta/deplacement/stats/index.php
index 61f50a08a0ea43e105250a0904d230fa89112edb..476b0b12790fd932bf46f0bf195a9217fe521f3c 100644
--- a/htdocs/compta/deplacement/stats/index.php
+++ b/htdocs/compta/deplacement/stats/index.php
@@ -293,4 +293,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/dons/class/don.class.php b/htdocs/compta/dons/class/don.class.php
index f5d477de48ffb313fa4b3102f09eaaf92bef810f..f7bd819d96952ecc7231ed34cb52bc93f2f3e063 100644
--- a/htdocs/compta/dons/class/don.class.php
+++ b/htdocs/compta/dons/class/don.class.php
@@ -707,4 +707,3 @@ class Don extends CommonObject
     }
 
 }
-?>
diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php
index b9cf534f8a564b10e0ad0777352ec3f6ae2a38d3..9f9f8793ad592ae44bae8b17afe285c8c4135076 100644
--- a/htdocs/compta/dons/fiche.php
+++ b/htdocs/compta/dons/fiche.php
@@ -588,4 +588,3 @@ if (! empty($id) && $action != 'edit')
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/dons/index.php b/htdocs/compta/dons/index.php
index bc21b31a37c58fdfebb541bb85bd671075fac4ee..30b34b6b85bfb575e1aea04c41c2373a39ddfeb0 100644
--- a/htdocs/compta/dons/index.php
+++ b/htdocs/compta/dons/index.php
@@ -209,4 +209,3 @@ print '</td></tr></table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/dons/liste.php b/htdocs/compta/dons/liste.php
index f045e82be71acab02993206a46f4ab01dede3f70..62700ae5cb0ea38be2f14a97b1fbc3572cf8108c 100644
--- a/htdocs/compta/dons/liste.php
+++ b/htdocs/compta/dons/liste.php
@@ -195,4 +195,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/dons/stats.php b/htdocs/compta/dons/stats.php
index b2f7185983144e1a58a9dc438f8c837695d4f638..1fbde7c0ce70a1fb7879ecc43aec58e02475217a 100644
--- a/htdocs/compta/dons/stats.php
+++ b/htdocs/compta/dons/stats.php
@@ -82,4 +82,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 24e010233977190ee6f07633ef083101d41df60c..ef276d6a96a5b202811b671975933d936558fad7 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -3722,4 +3722,3 @@ dol_htmloutput_mesg('', $mesgs);
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/facture/admin/facture_cust_extrafields.php b/htdocs/compta/facture/admin/facture_cust_extrafields.php
index 1056d3148c6ea89ac7ca659d7d206bed14ae4bb6..6da617b740cc47b2df70542e949fac09136e75f4 100644
--- a/htdocs/compta/facture/admin/facture_cust_extrafields.php
+++ b/htdocs/compta/facture/admin/facture_cust_extrafields.php
@@ -157,4 +157,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php
index ed9c04806a6745111e0025f2b993e0f975ea3d75..7147f51c613e92ffa6f31ea49cd3585e69a38857 100644
--- a/htdocs/compta/facture/class/facture-rec.class.php
+++ b/htdocs/compta/facture/class/facture-rec.class.php
@@ -600,4 +600,3 @@ class FactureRec extends Facture
 	}
 		
 }
-?>
diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php
index 8fd424367b8b66d460735f5be55cfdd8eaeda913..d1e495edd5494ca1fdae38ca8d9e0df9fd5d6915 100644
--- a/htdocs/compta/facture/class/facture.class.php
+++ b/htdocs/compta/facture/class/facture.class.php
@@ -3852,4 +3852,3 @@ class FactureLigne  extends CommonInvoiceLine
 	}
 }
 
-?>
diff --git a/htdocs/compta/facture/class/facturestats.class.php b/htdocs/compta/facture/class/facturestats.class.php
index 676160ca846f8c7cd08652b5f376ec2a3f0ae446..4028849b5fa90e5dc1f593e8ee0e1075291f2e11 100644
--- a/htdocs/compta/facture/class/facturestats.class.php
+++ b/htdocs/compta/facture/class/facturestats.class.php
@@ -220,4 +220,3 @@ class FactureStats extends Stats
 	
 }
 
-?>
diff --git a/htdocs/compta/facture/class/paymentterm.class.php b/htdocs/compta/facture/class/paymentterm.class.php
index d35fe463109859cbdc4e29bc8b915860cf3c136c..62ebcbacdbdd36c045c3222da3ea75f028ac732c 100644
--- a/htdocs/compta/facture/class/paymentterm.class.php
+++ b/htdocs/compta/facture/class/paymentterm.class.php
@@ -474,4 +474,3 @@ class PaymentTerm // extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/compta/facture/contact.php b/htdocs/compta/facture/contact.php
index f593d6a1742b45808607587419691fe54dcd6410..c3c629bc68dcde41f4a196131b1bb84d265fa88d 100644
--- a/htdocs/compta/facture/contact.php
+++ b/htdocs/compta/facture/contact.php
@@ -202,4 +202,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php
index dc38231a2da3d1f2cfa63fb983ce98ab56d1c08a..2b3fc89d33b8ecd44d0ff6838e33ffbdb901bb51 100644
--- a/htdocs/compta/facture/fiche-rec.php
+++ b/htdocs/compta/facture/fiche-rec.php
@@ -603,4 +603,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php
index eec9220afa43ac27888c785caa9d72edb08c6069..d8b40784c0a7a84705943cb9a6a4406f0add35b5 100644
--- a/htdocs/compta/facture/impayees.php
+++ b/htdocs/compta/facture/impayees.php
@@ -726,4 +726,3 @@ else dol_print_error($db,'');
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/facture/info.php b/htdocs/compta/facture/info.php
index 1650bbf5b3b7d7d81fbf82b6ef28647d76ca2df3..8611381d48620a673480ddc4f1e0359116122326 100644
--- a/htdocs/compta/facture/info.php
+++ b/htdocs/compta/facture/info.php
@@ -57,4 +57,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index 01c06fee19a034856a42256d03131c8cc27d422a..aadd75907cea658a8892cf931ad36022198ca6a3 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -441,4 +441,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php
index 001473b0568b8b67430ddfd65bc8c6ac3bc6fcd6..3562a235963eb108a862020bd5d14cca83aa4918 100644
--- a/htdocs/compta/facture/note.php
+++ b/htdocs/compta/facture/note.php
@@ -125,4 +125,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index 740bd8ea11a14bbcf2ec2638cf700750c7377d13..e98c16e520ebd3024fc2d9d3e3546d6fda5ef159 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -582,4 +582,3 @@ if ($object->id > 0)
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/facture/stats/index.php b/htdocs/compta/facture/stats/index.php
index 51747fe04d24cb013169859e147f36b13b84ff7b..18aeaa722dab079270be93952cee39e86db4844e 100644
--- a/htdocs/compta/facture/stats/index.php
+++ b/htdocs/compta/facture/stats/index.php
@@ -311,4 +311,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/hrm.php b/htdocs/compta/hrm.php
index b50eade0cf4e49a50990e76041b28b0cfbe00096..a8ce6a45714e27641c1dcd6afeeff1b6f599d968 100644
--- a/htdocs/compta/hrm.php
+++ b/htdocs/compta/hrm.php
@@ -178,4 +178,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index d6833f628b74f909bb00cd29a294dbd88591649e..205aba9a778f5aa3f7afbbe4938860f30d6c8dde 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -930,4 +930,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/journal/purchasesjournal.php b/htdocs/compta/journal/purchasesjournal.php
index 847a0bda6545c9c8011b092d9fa7689d90897bb5..52562ed0244e4da846ff61245ecc6ab2035686ac 100644
--- a/htdocs/compta/journal/purchasesjournal.php
+++ b/htdocs/compta/journal/purchasesjournal.php
@@ -262,4 +262,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/journal/sellsjournal.php b/htdocs/compta/journal/sellsjournal.php
index e6700684dba64aa0844fd521d354bbf7c0b34e7b..931b875747072cf7c73cab796ce762f6f2ed33f3 100644
--- a/htdocs/compta/journal/sellsjournal.php
+++ b/htdocs/compta/journal/sellsjournal.php
@@ -271,4 +271,3 @@ print "</table>";
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/localtax/class/localtax.class.php b/htdocs/compta/localtax/class/localtax.class.php
index acf01db977592e8842a08123a83768215b4eb621..b500a7012544a2c959405210b2d7e9b3df613ee7 100644
--- a/htdocs/compta/localtax/class/localtax.class.php
+++ b/htdocs/compta/localtax/class/localtax.class.php
@@ -602,4 +602,3 @@ class Localtax extends CommonObject
 	}
 
 }
-?>
\ No newline at end of file
diff --git a/htdocs/compta/localtax/fiche.php b/htdocs/compta/localtax/fiche.php
index c0fd0770aa6937961d3fdb279dc42f4111d618bb..c8849ba07f9cf5996aa3e853d67e083cc4342110 100644
--- a/htdocs/compta/localtax/fiche.php
+++ b/htdocs/compta/localtax/fiche.php
@@ -263,4 +263,3 @@ $db->close();
 
 llxFooter();
 
-?>
diff --git a/htdocs/compta/localtax/index.php b/htdocs/compta/localtax/index.php
index 25f0e95fd5c01e3bee330b18ff263d97219d2de1..5a832b7631b0f642a1b5bf4a0f1a0e0165f72dfe 100644
--- a/htdocs/compta/localtax/index.php
+++ b/htdocs/compta/localtax/index.php
@@ -226,4 +226,3 @@ print '</table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/localtax/reglement.php b/htdocs/compta/localtax/reglement.php
index 07d81d81df876e2cefcec55ebfcdfcc22114bd9d..00199dba36f9aa7719d34e7dc39914bd7ebba070 100644
--- a/htdocs/compta/localtax/reglement.php
+++ b/htdocs/compta/localtax/reglement.php
@@ -94,4 +94,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php
index fc1260ea6360ed1cae7b2e0b9b14bf461c0d06a6..008721ef0182e6daacfa2dd42a117fdc04f85413 100644
--- a/htdocs/compta/paiement.php
+++ b/htdocs/compta/paiement.php
@@ -743,4 +743,3 @@ if (! GETPOST('action'))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement/avalider.php b/htdocs/compta/paiement/avalider.php
index 82936395d2a68d4f7098452d988596575a915ded..70e7507b96ed16074a235eadac72f618393fed5a 100644
--- a/htdocs/compta/paiement/avalider.php
+++ b/htdocs/compta/paiement/avalider.php
@@ -121,4 +121,3 @@ if ($resql)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement/cheque/class/remisecheque.class.php b/htdocs/compta/paiement/cheque/class/remisecheque.class.php
index 3a4a27e1c37f7c11906f2243fa3f24c1b15bf775..917c88e0743494510801828f8b64373f4773febd 100644
--- a/htdocs/compta/paiement/cheque/class/remisecheque.class.php
+++ b/htdocs/compta/paiement/cheque/class/remisecheque.class.php
@@ -839,4 +839,3 @@ class RemiseCheque extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php
index acfca792fa0c4a47511c3ff69a30ee07c51c4d7d..fe396976f102d151b16e32d5b8b092cdb54441aa 100644
--- a/htdocs/compta/paiement/cheque/fiche.php
+++ b/htdocs/compta/paiement/cheque/fiche.php
@@ -723,4 +723,3 @@ if ($action != 'new')
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement/cheque/index.php b/htdocs/compta/paiement/cheque/index.php
index bcfa32582d4d0362c323fa01e287480575088567..4e1d6190a4f95aebe3ac7ddfd2ae130a7c8b06cb 100644
--- a/htdocs/compta/paiement/cheque/index.php
+++ b/htdocs/compta/paiement/cheque/index.php
@@ -152,4 +152,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/paiement/cheque/liste.php b/htdocs/compta/paiement/cheque/liste.php
index 7f656a75c7998a23f93ac16240ec25677229b894..474b4531295add605bb120a42bc8982f46995b34 100644
--- a/htdocs/compta/paiement/cheque/liste.php
+++ b/htdocs/compta/paiement/cheque/liste.php
@@ -153,4 +153,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php
index 7bec03f774bbea30c680313c8a5e3d1363789bf7..93f5f017c446e38f81ad67e864409c53b11d35c8 100644
--- a/htdocs/compta/paiement/class/paiement.class.php
+++ b/htdocs/compta/paiement/class/paiement.class.php
@@ -811,4 +811,3 @@ class Paiement extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/compta/paiement/fiche.php b/htdocs/compta/paiement/fiche.php
index c937c6dc3d1f50cfc41eec5608dfa66b1a4a0b81..97f3fb9d47c10361c98238c064a7db785922bc15 100644
--- a/htdocs/compta/paiement/fiche.php
+++ b/htdocs/compta/paiement/fiche.php
@@ -401,4 +401,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/paiement/index.php b/htdocs/compta/paiement/index.php
index 4b2fbea3abfcef0b7b5374a7f8634fe24bded7a9..89a57fdc79fd01d9eeeb099e1ba32e3f7d63bdb5 100644
--- a/htdocs/compta/paiement/index.php
+++ b/htdocs/compta/paiement/index.php
@@ -36,4 +36,3 @@ print_fiche_titre("Payments");
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement/info.php b/htdocs/compta/paiement/info.php
index eab917672b28d522a2d1c5f13953d6c0287f7124..8cc06397e6286c1e2da8f2610792bedcbd42c091 100644
--- a/htdocs/compta/paiement/info.php
+++ b/htdocs/compta/paiement/info.php
@@ -64,4 +64,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement/liste.php b/htdocs/compta/paiement/liste.php
index 70cba5d80d0845ca90e32538c49612aedaa87443..6e3e1bc54ff39078b8ec128ab3a0424d0b4fd80f 100644
--- a/htdocs/compta/paiement/liste.php
+++ b/htdocs/compta/paiement/liste.php
@@ -239,4 +239,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php
index eeeaa71571812b72d5cc64f8dbb708cf5b4a5a26..8cd9a31c78386eb0036006f5dc9e9cf483d95db3 100644
--- a/htdocs/compta/paiement/rapport.php
+++ b/htdocs/compta/paiement/rapport.php
@@ -168,4 +168,3 @@ if ($year)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php
index b6d30ae01b0ccccfdc288a2022d66929ee27e327..635f28e318be5beb3b55f3231474e99e838e0c3d 100644
--- a/htdocs/compta/paiement_charge.php
+++ b/htdocs/compta/paiement_charge.php
@@ -323,4 +323,3 @@ if ($_GET["action"] == 'create')
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/payment_sc/fiche.php b/htdocs/compta/payment_sc/fiche.php
index fd0df83fc1a758e6cee74f4b0e4eb5610fc31c96..3a010bcae37028b6028369df4cfce6167b063d1c 100644
--- a/htdocs/compta/payment_sc/fiche.php
+++ b/htdocs/compta/payment_sc/fiche.php
@@ -319,4 +319,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/prelevement/bon.php b/htdocs/compta/prelevement/bon.php
index 6853a946c139169a283e78632cf565a2702d7e25..20d60c3a55b48353e7dc4f409c5d7109faa0d3c8 100644
--- a/htdocs/compta/prelevement/bon.php
+++ b/htdocs/compta/prelevement/bon.php
@@ -101,4 +101,3 @@ if ($id > 0 || ! empty($ref))
 }
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/bons.php b/htdocs/compta/prelevement/bons.php
index cd460f1aac22c61f7a8fe4d56e1edc125e18eeae..d54ad262fb36eecd2bbc88b5117558ef6ffbb3cf 100644
--- a/htdocs/compta/prelevement/bons.php
+++ b/htdocs/compta/prelevement/bons.php
@@ -125,4 +125,3 @@ $db->close();
 
 llxFooter();
 
-?>
diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php
index 15a9586cd603a307259835b9a25d865ed13f7b0b..0a881a2f5ddb938250f9413873a97060764e4519 100644
--- a/htdocs/compta/prelevement/class/bonprelevement.class.php
+++ b/htdocs/compta/prelevement/class/bonprelevement.class.php
@@ -1871,4 +1871,3 @@ class BonPrelevement extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/compta/prelevement/class/ligneprelevement.class.php b/htdocs/compta/prelevement/class/ligneprelevement.class.php
index a8c5b5f019cd8d7610061ebdf8f8d4326e7888f8..9c4bf96e8b30c3c310c606a3a100bc2cb673a25b 100644
--- a/htdocs/compta/prelevement/class/ligneprelevement.class.php
+++ b/htdocs/compta/prelevement/class/ligneprelevement.class.php
@@ -158,4 +158,3 @@ class LignePrelevement
 	}
 }
 
-?>
diff --git a/htdocs/compta/prelevement/class/rejetprelevement.class.php b/htdocs/compta/prelevement/class/rejetprelevement.class.php
index c49cef23e44341395caad1b2d61d65f8e1193a6e..51f9a83ed3c7bce9be5d7209a1c0946d07e605ad 100644
--- a/htdocs/compta/prelevement/class/rejetprelevement.class.php
+++ b/htdocs/compta/prelevement/class/rejetprelevement.class.php
@@ -357,4 +357,3 @@ class RejetPrelevement
 
 }
 
-?>
diff --git a/htdocs/compta/prelevement/create.php b/htdocs/compta/prelevement/create.php
index 81bb679473699d5c64e39fc564cab9910c5a1ab7..a3f7ca2ace8afd9c21c5c06daa60ead89092315a 100644
--- a/htdocs/compta/prelevement/create.php
+++ b/htdocs/compta/prelevement/create.php
@@ -278,4 +278,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/demandes.php b/htdocs/compta/prelevement/demandes.php
index e48896458693fe081187c5e318ef1e1c3d7833e9..4cd3098bfc39b870c6e31fda67441f8c9bcfbc24 100644
--- a/htdocs/compta/prelevement/demandes.php
+++ b/htdocs/compta/prelevement/demandes.php
@@ -159,4 +159,3 @@ else
 
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/factures.php b/htdocs/compta/prelevement/factures.php
index 848998e0e76a793c871605d830934535f138d3f8..eab227145d7a18a36691f6f76e776e9ba9f66972 100644
--- a/htdocs/compta/prelevement/factures.php
+++ b/htdocs/compta/prelevement/factures.php
@@ -216,4 +216,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/fiche-rejet.php b/htdocs/compta/prelevement/fiche-rejet.php
index 10d69c3434df64b56ac6edc6432a73ed8b431a78..2a32f1a12542296d43d0e3d0b024fdae1f191419 100644
--- a/htdocs/compta/prelevement/fiche-rejet.php
+++ b/htdocs/compta/prelevement/fiche-rejet.php
@@ -181,4 +181,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/fiche-stat.php b/htdocs/compta/prelevement/fiche-stat.php
index 95d28eeadd8b34af7c58c028042eb66a8db82455..4117c7c1fcecd2418540eafd5ac293fe9a82d5b5 100644
--- a/htdocs/compta/prelevement/fiche-stat.php
+++ b/htdocs/compta/prelevement/fiche-stat.php
@@ -161,4 +161,3 @@ if ($prev_id)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/fiche.php b/htdocs/compta/prelevement/fiche.php
index a4ec2ce9d14ec1c9e170a513536495d9a4d86fe6..cf9440c3f1129666069130dab6a919cda93a7061 100644
--- a/htdocs/compta/prelevement/fiche.php
+++ b/htdocs/compta/prelevement/fiche.php
@@ -265,4 +265,3 @@ if ($id > 0)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/prelevement/index.php b/htdocs/compta/prelevement/index.php
index 50f80da1c8955b2ed5275c3c6a8fc0b5aa5f8069..911ffde6f999fd6af54a0a861f72686b38a5c4b7 100644
--- a/htdocs/compta/prelevement/index.php
+++ b/htdocs/compta/prelevement/index.php
@@ -229,4 +229,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/prelevement/ligne.php b/htdocs/compta/prelevement/ligne.php
index d9d993aff4063c72e5af2dd45fe9408f46ddbdfb..18405394c9b32f2d34120a452d3eb08d4379ecd6 100644
--- a/htdocs/compta/prelevement/ligne.php
+++ b/htdocs/compta/prelevement/ligne.php
@@ -330,4 +330,3 @@ if ($id)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/prelevement/lignes.php b/htdocs/compta/prelevement/lignes.php
index 0942554ddd32a2863f6d1680f4cc30cffee2eb61..451c875293e35a4d33fc7d1fa05e861aad5f015d 100644
--- a/htdocs/compta/prelevement/lignes.php
+++ b/htdocs/compta/prelevement/lignes.php
@@ -221,4 +221,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/liste.php b/htdocs/compta/prelevement/liste.php
index 2cd859969a91175fb79863916b9c3ddd5804a480..a1db4f7e9271efb180f64bdd0b5da66d57d3ff70 100644
--- a/htdocs/compta/prelevement/liste.php
+++ b/htdocs/compta/prelevement/liste.php
@@ -187,4 +187,3 @@ $db->close();
 
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/rejets.php b/htdocs/compta/prelevement/rejets.php
index b307717e4b3a1219810394f90e9830c17cbd5fea..e8e27d957ea3e7390052480a4e9449d6bb35f3af 100644
--- a/htdocs/compta/prelevement/rejets.php
+++ b/htdocs/compta/prelevement/rejets.php
@@ -126,4 +126,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/prelevement/stats.php b/htdocs/compta/prelevement/stats.php
index 3da79a89f0c5a34edf27263c728707c82c108751..2c8607a9a56692295e4f793c81ab3121bd46830a 100644
--- a/htdocs/compta/prelevement/stats.php
+++ b/htdocs/compta/prelevement/stats.php
@@ -239,4 +239,3 @@ llxFooter();
 
 $db->close();
 
-?>
diff --git a/htdocs/compta/recap-compta.php b/htdocs/compta/recap-compta.php
index 609a624adce1c6dd8ae29e7958520d742f8b74f8..62cb7a631cb81f63c062a67e442747dd02a59471 100644
--- a/htdocs/compta/recap-compta.php
+++ b/htdocs/compta/recap-compta.php
@@ -224,4 +224,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/resultat/bilan.php b/htdocs/compta/resultat/bilan.php
index 98878ee8e3b2d4b2f1cab1ea39604d8b2bf197ef..2f31b9e11b768309dea20986fa664076e035decf 100644
--- a/htdocs/compta/resultat/bilan.php
+++ b/htdocs/compta/resultat/bilan.php
@@ -55,4 +55,3 @@ print $langs->trans("FeatureNotYetAvailable");
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php
index 15722966004483e78dd0b34be7bc157d79279ed2..c5fd60ccfae8bcea4903e698c9830a26d442fc72 100644
--- a/htdocs/compta/resultat/clientfourn.php
+++ b/htdocs/compta/resultat/clientfourn.php
@@ -761,4 +761,3 @@ print '<br>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/resultat/compteres.php b/htdocs/compta/resultat/compteres.php
index 2aa23236e79595ec2432b62a2c09bbbe95bb9cb0..b3b6166589f339b383d07aa5afbd0cbc1f2e5f51 100644
--- a/htdocs/compta/resultat/compteres.php
+++ b/htdocs/compta/resultat/compteres.php
@@ -50,4 +50,3 @@ print $langs->trans("FeatureNotYetAvailable");
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php
index a56551f234b676cb158e29bc6048080061776d95..b3a42d85a6bca91b6722e111c25aaa3bb83f1d2e 100644
--- a/htdocs/compta/resultat/index.php
+++ b/htdocs/compta/resultat/index.php
@@ -574,4 +574,3 @@ print "</table>";
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/salaries/class/paymentsalary.class.php b/htdocs/compta/salaries/class/paymentsalary.class.php
index f94861c31a61f9270c9e11399252fe2d2ecf7944..0e4f12104199bb8395d5336cbab2c87ab954d28e 100644
--- a/htdocs/compta/salaries/class/paymentsalary.class.php
+++ b/htdocs/compta/salaries/class/paymentsalary.class.php
@@ -517,4 +517,3 @@ class PaymentSalary extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/compta/salaries/fiche.php b/htdocs/compta/salaries/fiche.php
index 1615c2972146fa1bc8f9cae24fe7210688bd4cd9..26bc30907e0b9eedcaa5f4826a8add063c04771b 100644
--- a/htdocs/compta/salaries/fiche.php
+++ b/htdocs/compta/salaries/fiche.php
@@ -377,4 +377,3 @@ if ($id)
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php
index 99268fe29f87e7e5bdf975ab25cfdcaf0bd77938..fcbf131cb888645b80cdca5f963091b11f54f27b 100644
--- a/htdocs/compta/sociales/charges.php
+++ b/htdocs/compta/sociales/charges.php
@@ -448,4 +448,3 @@ if ($id > 0)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/sociales/class/chargesociales.class.php b/htdocs/compta/sociales/class/chargesociales.class.php
index 795d4b99e84792e5dcb2cdcc2651db12e32e85fe..6404d9f26c8b4bd8e3fa72d890848e340e6f8a76 100644
--- a/htdocs/compta/sociales/class/chargesociales.class.php
+++ b/htdocs/compta/sociales/class/chargesociales.class.php
@@ -512,4 +512,3 @@ class ChargeSociales extends CommonObject
     }
 }
 
-?>
diff --git a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php
index bc7630ebd33e38cabf382ff7e98dd1387b992ef2..e89f2a273f87b04989e6ffb0a9bff21e590c08d3 100644
--- a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php
+++ b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php
@@ -604,4 +604,3 @@ class PaymentSocialContribution extends CommonObject
 }
 
 
-?>
diff --git a/htdocs/compta/sociales/document.php b/htdocs/compta/sociales/document.php
index 32eb8a50f77728fe8dddfead53160ae982f28db8..ad5af8f84c2eeab22b483211dc644eebf5bd0f22 100644
--- a/htdocs/compta/sociales/document.php
+++ b/htdocs/compta/sociales/document.php
@@ -176,4 +176,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php
index 48d23769cf6ea89cda4b913d4ec9d73946cce7ca..e7f0d3a2b1bb1aa84ff02e1f1c42576356c67fdf 100644
--- a/htdocs/compta/sociales/index.php
+++ b/htdocs/compta/sociales/index.php
@@ -232,4 +232,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/sociales/info.php b/htdocs/compta/sociales/info.php
index bb84d52729a4f09d82a8370d7fedf3a3ecb49727..c41787b7d08da35b5ded43fd2decb5f92bd57fcb 100644
--- a/htdocs/compta/sociales/info.php
+++ b/htdocs/compta/sociales/info.php
@@ -63,4 +63,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/stats/cabyprodserv.php b/htdocs/compta/stats/cabyprodserv.php
index ac82e2e342ac8716ea854408690a40ac86ba6292..2b2ad5be02f1c169639921ef9348468b0bfd9640 100644
--- a/htdocs/compta/stats/cabyprodserv.php
+++ b/htdocs/compta/stats/cabyprodserv.php
@@ -396,4 +396,3 @@ if ($modecompta == 'CREANCES-DETTES')
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/stats/cabyuser.php b/htdocs/compta/stats/cabyuser.php
index 7473f71eaf1f17f5adb627cac56bc9b2def0e258..708c77708cff64016eb6a6c0a08a5a2bfadc5f33 100644
--- a/htdocs/compta/stats/cabyuser.php
+++ b/htdocs/compta/stats/cabyuser.php
@@ -432,4 +432,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/stats/casoc.php b/htdocs/compta/stats/casoc.php
index 9745ef162908646fa2ae2092f5a4af0fce350d26..fd4afbfdf01ebbd585b14e2b32088cda4781c963 100644
--- a/htdocs/compta/stats/casoc.php
+++ b/htdocs/compta/stats/casoc.php
@@ -503,4 +503,3 @@ print '</form>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/stats/index.php b/htdocs/compta/stats/index.php
index 8cdbb8ddad4a8d5de87572fc9101aaabf1ff9aab..59a7e478f9bd770c8c793272d09a91cb46c07fe0 100644
--- a/htdocs/compta/stats/index.php
+++ b/htdocs/compta/stats/index.php
@@ -540,4 +540,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/tva/class/tva.class.php b/htdocs/compta/tva/class/tva.class.php
index 94c1f3d3cee8446bbe5c05f5408dd07edffdb3ca..c605c97fed90b0eacc8151c37ffe119ba08a7dca 100644
--- a/htdocs/compta/tva/class/tva.class.php
+++ b/htdocs/compta/tva/class/tva.class.php
@@ -660,4 +660,3 @@ class Tva extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/compta/tva/clients.php b/htdocs/compta/tva/clients.php
index 84857a351302f5bcb977ffae816b40ae71f75356..422354ee7c33a8be391c99ceb63fbec1e70a9472 100644
--- a/htdocs/compta/tva/clients.php
+++ b/htdocs/compta/tva/clients.php
@@ -354,4 +354,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/tva/fiche.php b/htdocs/compta/tva/fiche.php
index d4accc5134dedc6a355002661d3ec9e822e8b2e5..65c4285d7d1d3324f5c3053d05cf7b0f415c8b7d 100644
--- a/htdocs/compta/tva/fiche.php
+++ b/htdocs/compta/tva/fiche.php
@@ -315,4 +315,3 @@ if ($id)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/tva/index.php b/htdocs/compta/tva/index.php
index 91094e7b52d1994a82e3b1146e9610d86afe6279..d6bace79d73c6131791f3c99a8a2aa92d9ed0e7f 100644
--- a/htdocs/compta/tva/index.php
+++ b/htdocs/compta/tva/index.php
@@ -256,4 +256,3 @@ echo '</table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/tva/quadri.php b/htdocs/compta/tva/quadri.php
index b97eca7bacb3f13a66c79a290fd0e039a7c38108..0e22dc77f1ba4c57f5b676908bfd0213ba459a37 100644
--- a/htdocs/compta/tva/quadri.php
+++ b/htdocs/compta/tva/quadri.php
@@ -318,4 +318,3 @@ echo '</table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/tva/quadri_detail.php b/htdocs/compta/tva/quadri_detail.php
index 82585b191ac306828d081cf3daad291be2d9cd98..681448e901e0fcd0b72daaaade18da79d1acfd1b 100644
--- a/htdocs/compta/tva/quadri_detail.php
+++ b/htdocs/compta/tva/quadri_detail.php
@@ -640,4 +640,3 @@ echo '</table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/tva/reglement.php b/htdocs/compta/tva/reglement.php
index 6183207e11516e625c24a38ddc3df7561dbfc634..c10f7f4509caefd857e0abeea046510526668870 100644
--- a/htdocs/compta/tva/reglement.php
+++ b/htdocs/compta/tva/reglement.php
@@ -180,4 +180,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/ventilation/fiche.php b/htdocs/compta/ventilation/fiche.php
index ddd3df02da9f8913a5fa30bfd466d3a851c46924..b55f2b59475c12eb90d4826bd9ed6f70df62d82b 100644
--- a/htdocs/compta/ventilation/fiche.php
+++ b/htdocs/compta/ventilation/fiche.php
@@ -163,4 +163,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/ventilation/fournisseur/fiche.php b/htdocs/compta/ventilation/fournisseur/fiche.php
index c6d33e99c3a6c84356d7bde79aa8f534b87606e0..168b99eea35965d00cb18d8b2443dcb6c4d9bd80 100644
--- a/htdocs/compta/ventilation/fournisseur/fiche.php
+++ b/htdocs/compta/ventilation/fournisseur/fiche.php
@@ -147,4 +147,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/ventilation/fournisseur/index.php b/htdocs/compta/ventilation/fournisseur/index.php
index 636891e7c180d0b6c157f6d8e5890f4065369c1f..ebd4d2c4af5f6a29b550f913534b55b810cebedd 100644
--- a/htdocs/compta/ventilation/fournisseur/index.php
+++ b/htdocs/compta/ventilation/fournisseur/index.php
@@ -125,4 +125,3 @@ print '</td></tr></table>';
 
 llxFooter();
 
-?>
diff --git a/htdocs/compta/ventilation/fournisseur/lignes.php b/htdocs/compta/ventilation/fournisseur/lignes.php
index 0a27fb3ddaae0561b063157cb22872579ae24d56..cb2a0e1439af3724da64ab1b82c626e063a13b62 100644
--- a/htdocs/compta/ventilation/fournisseur/lignes.php
+++ b/htdocs/compta/ventilation/fournisseur/lignes.php
@@ -112,4 +112,3 @@ print "</table></form>";
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/ventilation/fournisseur/liste.php b/htdocs/compta/ventilation/fournisseur/liste.php
index 83256709771b5357fd021441a535f4f252ab0f14..e3eb4cf487de9802abf54b971f4475396e74f27b 100644
--- a/htdocs/compta/ventilation/fournisseur/liste.php
+++ b/htdocs/compta/ventilation/fournisseur/liste.php
@@ -103,4 +103,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/compta/ventilation/index.php b/htdocs/compta/ventilation/index.php
index f98b3ed7ac18516af7f6702e4037032d74986740..8b9710844a7b40be32a9c337361b507cc99c7eaf 100644
--- a/htdocs/compta/ventilation/index.php
+++ b/htdocs/compta/ventilation/index.php
@@ -100,4 +100,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/compta/ventilation/lignes.php b/htdocs/compta/ventilation/lignes.php
index fbc865571781126dd34c48b1aa32e8169fdb4eea..46276937afe169e3a846ea9598a0673a90455f48 100644
--- a/htdocs/compta/ventilation/lignes.php
+++ b/htdocs/compta/ventilation/lignes.php
@@ -139,4 +139,3 @@ print "</table></form>";
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/compta/ventilation/liste.php b/htdocs/compta/ventilation/liste.php
index 4cfe167d60c74f4d9f9f275cff9443d40572e5d9..effa768982198d076ad45a191b01369b192539ed 100644
--- a/htdocs/compta/ventilation/liste.php
+++ b/htdocs/compta/ventilation/liste.php
@@ -127,4 +127,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/contact/canvas/actions_contactcard_common.class.php b/htdocs/contact/canvas/actions_contactcard_common.class.php
index c0b5974463000509f94f44b67c8b07b1c39bb40a..135431316a6ec6dc66ce9285bc083c872a0a64d5 100644
--- a/htdocs/contact/canvas/actions_contactcard_common.class.php
+++ b/htdocs/contact/canvas/actions_contactcard_common.class.php
@@ -468,4 +468,3 @@ abstract class ActionsContactCardCommon
 
 }
 
-?>
diff --git a/htdocs/contact/canvas/default/actions_contactcard_default.class.php b/htdocs/contact/canvas/default/actions_contactcard_default.class.php
index 34967019af92b6484db0d26e69d20c23ba278d67..b39114cb3f5e786737a0bd8d15a29862dcf61881 100644
--- a/htdocs/contact/canvas/default/actions_contactcard_default.class.php
+++ b/htdocs/contact/canvas/default/actions_contactcard_default.class.php
@@ -144,4 +144,3 @@ class ActionsContactCardDefault extends ActionsContactCardCommon
 	}
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/contact/exportimport.php b/htdocs/contact/exportimport.php
index 5149eed9efb877140d734177eb7e18cd6fe4814a..bcb3b9c2be03385410275d1bf59f716172dc36bb 100644
--- a/htdocs/contact/exportimport.php
+++ b/htdocs/contact/exportimport.php
@@ -110,4 +110,3 @@ print '</a>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php
index 08f3bb2c062131ff379006eb76f26fe5544cdf58..7d682dfebd278c3e50956d7b781dd6cae818b68f 100644
--- a/htdocs/contact/fiche.php
+++ b/htdocs/contact/fiche.php
@@ -1082,4 +1082,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/contact/info.php b/htdocs/contact/info.php
index 939b0252623e448db0c6045a00cede49cbaff618..53777ce3e40513baa20dc3c709b93086f85c6f10 100644
--- a/htdocs/contact/info.php
+++ b/htdocs/contact/info.php
@@ -64,4 +64,3 @@ print "</div>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/contact/ldap.php b/htdocs/contact/ldap.php
index f284ee1834d6aa8af11d51dd31bdfb578dd1621d..1681324323ab47899ad54c377b0e05afdeebdccf 100644
--- a/htdocs/contact/ldap.php
+++ b/htdocs/contact/ldap.php
@@ -213,4 +213,3 @@ print '</table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index 1b8cba0d88e9b2d0fe6a1b4fb4fbe1a09a1ee7bb..8e1d54944c0dbb5efa1d6a954b929ba53fa342dc 100644
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -438,4 +438,3 @@ print '<br>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/contact/note.php b/htdocs/contact/note.php
index 4adb109b89f6db6c82975fe0af0cec58d209c419..73b0f513db97e75b81b931dab90b47e71dc05fec 100644
--- a/htdocs/contact/note.php
+++ b/htdocs/contact/note.php
@@ -155,4 +155,3 @@ if ($id > 0)
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/contact/vcard.php b/htdocs/contact/vcard.php
index 76d73133e0f8a69d31ba033c9794838ad0de9ebf..e78c298c541c446c12798b349025b0840a1b40e3 100644
--- a/htdocs/contact/vcard.php
+++ b/htdocs/contact/vcard.php
@@ -101,4 +101,3 @@ header("Content-Type: text/x-vcard; name=\"".$filename."\"");
 
 print $output;
 
-?>
diff --git a/htdocs/contrat/admin/contract_extrafields.php b/htdocs/contrat/admin/contract_extrafields.php
index e5e8e9ead03e13e2f4ab8a008ba3a2fb5c9f2fb4..227ef23f7419dacf536e5aa942d40d34640d7266 100644
--- a/htdocs/contrat/admin/contract_extrafields.php
+++ b/htdocs/contrat/admin/contract_extrafields.php
@@ -157,4 +157,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php
index 26819e1580a9a246421e9d9b4529930073c9a734..f5b158e2161ac62ef0f78f26ae6044bda2fb9d1c 100644
--- a/htdocs/contrat/class/contrat.class.php
+++ b/htdocs/contrat/class/contrat.class.php
@@ -2207,4 +2207,3 @@ class ContratLigne
 }
 
 
-?>
diff --git a/htdocs/contrat/contact.php b/htdocs/contrat/contact.php
index d01f01e16cc37e36f8b8cecefdb45eff8c2de006..dcec3598e7fc30da54f4b11caa61a90779496176 100644
--- a/htdocs/contrat/contact.php
+++ b/htdocs/contrat/contact.php
@@ -185,4 +185,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/contrat/document.php b/htdocs/contrat/document.php
index 0432f16b31b691b05b9bd3a8bf9e9ff7d818f72b..e17a0c6738946144ef279da327b3031bc57b70c7 100644
--- a/htdocs/contrat/document.php
+++ b/htdocs/contrat/document.php
@@ -136,4 +136,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index 4c0873d73aa977c667704034e68c675e76aa9c53..5b67add45f6123c635dba63877fd7183e8bfc521 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -1726,4 +1726,3 @@ $(document).ready(function() {
 
 <?php
 }
-?>
diff --git a/htdocs/contrat/index.php b/htdocs/contrat/index.php
index 05ee288b42c59198b213aabb6c4a09c5f146c6d9..772b0e1ecdc8a86843607bd41be2c9870b076c70 100644
--- a/htdocs/contrat/index.php
+++ b/htdocs/contrat/index.php
@@ -610,4 +610,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/contrat/liste.php b/htdocs/contrat/liste.php
index da0dc33a2719c8e7b33113a7dc0a72155d7782e0..e1e49a5d7fd549f6be29561f1578e91ad509f3b9 100644
--- a/htdocs/contrat/liste.php
+++ b/htdocs/contrat/liste.php
@@ -167,4 +167,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php
index 05c4608da8ade938d71b137b9c395917ecf4a584..3ac3ca47496dc97958a2eca616cacec0ebd3c953 100644
--- a/htdocs/contrat/note.php
+++ b/htdocs/contrat/note.php
@@ -110,4 +110,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php
index d3d20761bc3054e9e47039cffcb010b006dcd2ae..382dcad5e937849aefb886306894acfa5ffcbafb 100644
--- a/htdocs/contrat/services.php
+++ b/htdocs/contrat/services.php
@@ -274,4 +274,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/core/actions_extrafields.inc.php b/htdocs/core/actions_extrafields.inc.php
index 70b173ab014f4b43c5b3355169f6a415ee4e6601..55a538a219545a661400747e13e210bbc1036de2 100644
--- a/htdocs/core/actions_extrafields.inc.php
+++ b/htdocs/core/actions_extrafields.inc.php
@@ -328,4 +328,3 @@ if ($action == 'delete')
 	}
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php
index 640c64f40f7cc64bbf5af55cd9772023e8951bc6..b4ceaeaced1b8524d6c27807148e04dbc0107a56 100644
--- a/htdocs/core/ajax/ajaxdirtree.php
+++ b/htdocs/core/ajax/ajaxdirtree.php
@@ -228,4 +228,3 @@ if (file_exists($fullpathselecteddir))
 //print '</script>';
 
 if (is_object($db)) $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/core/ajax/box.php b/htdocs/core/ajax/box.php
index 50305655dcd1e06a3459b2af6c6ebddb0d619cd7..2d14a319a8028295516548abc8f636280879593b 100644
--- a/htdocs/core/ajax/box.php
+++ b/htdocs/core/ajax/box.php
@@ -71,4 +71,3 @@ if ($boxorder && $zone != '' &&  $userid > 0)
 	$result=InfoBox::saveboxorder($db,$zone,$boxorder,$userid);
 }
 
-?>
diff --git a/htdocs/core/ajax/constantonoff.php b/htdocs/core/ajax/constantonoff.php
index bfce55829542f5f5c6c68b9ab8b41d08a7e2d943..bbcd19b52342806841e3a9858d873b896bad8280 100644
--- a/htdocs/core/ajax/constantonoff.php
+++ b/htdocs/core/ajax/constantonoff.php
@@ -65,4 +65,3 @@ if (! empty($action) && ! empty($name))
 	}
 }
 
-?>
diff --git a/htdocs/core/ajax/contacts.php b/htdocs/core/ajax/contacts.php
index 5a9978e21106d71e527c40df67ee635c2dbd6303..c4f3d79da520f3a330363d538f44d86ae517decf 100644
--- a/htdocs/core/ajax/contacts.php
+++ b/htdocs/core/ajax/contacts.php
@@ -55,4 +55,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
 	echo json_encode($return);
 }
 
-?>
diff --git a/htdocs/core/ajax/extraparams.php b/htdocs/core/ajax/extraparams.php
index 20453d633030ec48e5d7e034d69cdbc0779047e2..510ef8a1cf86a079d366f38981d5123c1af1f7c3 100644
--- a/htdocs/core/ajax/extraparams.php
+++ b/htdocs/core/ajax/extraparams.php
@@ -76,4 +76,3 @@ if(! empty($id) && ! empty($element) && ! empty($htmlelement) && ! empty($type))
 	$result=$object->setExtraParameters();
 }
 
-?>
diff --git a/htdocs/core/ajax/fileupload.php b/htdocs/core/ajax/fileupload.php
index 3258e52a9d6bcea7da6fe8975b18b58144b5a8cb..6eb4d5836b8e06ae650f536e95a087e18a332714 100644
--- a/htdocs/core/ajax/fileupload.php
+++ b/htdocs/core/ajax/fileupload.php
@@ -80,4 +80,3 @@ switch ($_SERVER['REQUEST_METHOD']) {
 
 $db->close();
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/ajax/price.php b/htdocs/core/ajax/price.php
index 7691b723ea8bd8523616041444507318b18b06e9..5c891df14d5fc451bebb1a4681cbed0a026f07c5 100644
--- a/htdocs/core/ajax/price.php
+++ b/htdocs/core/ajax/price.php
@@ -67,4 +67,3 @@ if (! empty($output) && isset($amount) && isset($tva_tx))
 	echo json_encode($return);
 }
 
-?>
diff --git a/htdocs/core/ajax/row.php b/htdocs/core/ajax/row.php
index 9a5ecd3562c3b3dff1d58f91d2ce7dc522f8f285..27ed37348cc5b30f2f861695790deaaeb8a67b41 100644
--- a/htdocs/core/ajax/row.php
+++ b/htdocs/core/ajax/row.php
@@ -70,4 +70,3 @@ if ((isset($_POST['roworder']) && ! empty($_POST['roworder'])) && (isset($_POST[
 	}
 }
 
-?>
diff --git a/htdocs/core/ajax/saveinplace.php b/htdocs/core/ajax/saveinplace.php
index 3ba7a37813eef1f4881bb9cb964a86d6dcc6a86f..4d0ab65a941fd1f5d00fe7a308565f935211ffde 100644
--- a/htdocs/core/ajax/saveinplace.php
+++ b/htdocs/core/ajax/saveinplace.php
@@ -199,4 +199,3 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
 	}
 }
 
-?>
diff --git a/htdocs/core/ajax/security.php b/htdocs/core/ajax/security.php
index c7aeaa9c4be6bdcccaf5b8bc89c0856786c3517e..5bdd45c75d472f334d7b13079615cb336d2aaf35 100644
--- a/htdocs/core/ajax/security.php
+++ b/htdocs/core/ajax/security.php
@@ -53,4 +53,3 @@ if (isset($_GET['action']) && ! empty($_GET['action']))
 	}
 }
 
-?>
diff --git a/htdocs/core/ajax/vatrates.php b/htdocs/core/ajax/vatrates.php
index 861ff1d0442c2c0781d7d3024772af9314ecd348..fc30a13afec437e7d7847a9beb8fd07bb9fba85e 100644
--- a/htdocs/core/ajax/vatrates.php
+++ b/htdocs/core/ajax/vatrates.php
@@ -71,4 +71,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
 	echo json_encode($return);
 }
 
-?>
diff --git a/htdocs/core/ajax/ziptown.php b/htdocs/core/ajax/ziptown.php
index 47cb887c0cce6532ed40b509681d13a5982c7475..80f6cd9bd635cf297d16fde036ddd76690ab1a1c 100644
--- a/htdocs/core/ajax/ziptown.php
+++ b/htdocs/core/ajax/ziptown.php
@@ -134,4 +134,3 @@ else
 
 $db->close();
 
-?>
diff --git a/htdocs/core/antispamimage.php b/htdocs/core/antispamimage.php
index a8830a5a4ebba3fdf1432962dc593d89d30d5c80..c3bc217e1002ae7dbd3d4e3b0502700108abf0a6 100644
--- a/htdocs/core/antispamimage.php
+++ b/htdocs/core/antispamimage.php
@@ -65,4 +65,3 @@ $ecriture_color = imagecolorallocate($img, 0, 0, 0);
 imagestring($img, 4, 24, 8, $string, $ecriture_color);
 imagepng($img);
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/boxes/box_activity.php b/htdocs/core/boxes/box_activity.php
index bddeb4b957e4a3c8bc0454d294fb559a82837b55..986b6c2c2b90dc938862aed64ea45be0222fd3dd 100644
--- a/htdocs/core/boxes/box_activity.php
+++ b/htdocs/core/boxes/box_activity.php
@@ -301,4 +301,3 @@ class box_activity extends ModeleBoxes
 		parent::showBox($this->info_box_head, $this->info_box_contents);
 	}
 }
-?>
diff --git a/htdocs/core/boxes/box_bookmarks.php b/htdocs/core/boxes/box_bookmarks.php
index 4f3726d894693e94416010a9a1108acb6c9d8c11..5cb1e3ddad45d67b4d57e122e8eb5f2cf8ce6473 100644
--- a/htdocs/core/boxes/box_bookmarks.php
+++ b/htdocs/core/boxes/box_bookmarks.php
@@ -133,4 +133,3 @@ class box_bookmarks extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_clients.php b/htdocs/core/boxes/box_clients.php
index a2da1ae60e3f3073b2655dd01c3c22b8bd871e5d..b2ad0a6b7186b15e66c0130303245ccfc4928adc 100644
--- a/htdocs/core/boxes/box_clients.php
+++ b/htdocs/core/boxes/box_clients.php
@@ -136,4 +136,3 @@ class box_clients extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_commandes.php b/htdocs/core/boxes/box_commandes.php
index 9f3001f1c312b8db95bad3f8b260118c7c6a0c17..1b7de3cca7f9ca1108f8da786d80240ddb54ba1b 100644
--- a/htdocs/core/boxes/box_commandes.php
+++ b/htdocs/core/boxes/box_commandes.php
@@ -144,4 +144,3 @@ class box_commandes extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_comptes.php b/htdocs/core/boxes/box_comptes.php
index 2973480b991ca55d308476cdd8ea6a5d5295b736..8fdc4aff39e12db1a186e76352814110ba0cf8f9 100644
--- a/htdocs/core/boxes/box_comptes.php
+++ b/htdocs/core/boxes/box_comptes.php
@@ -177,4 +177,3 @@ class box_comptes extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_contacts.php b/htdocs/core/boxes/box_contacts.php
index 053d7d673297593fddc44490c6fb350595d1626b..56192aef51e118ef6dae440f6c13e592d0d7d907 100644
--- a/htdocs/core/boxes/box_contacts.php
+++ b/htdocs/core/boxes/box_contacts.php
@@ -147,4 +147,3 @@ class box_contacts extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_contracts.php b/htdocs/core/boxes/box_contracts.php
index 4f534f2b49d1a96f82e3414a7ff2eb24dc220e23..26c3f269f3d7c8cc3abb12bb731464b8c992f475 100644
--- a/htdocs/core/boxes/box_contracts.php
+++ b/htdocs/core/boxes/box_contracts.php
@@ -154,4 +154,3 @@ class box_contracts extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_external_rss.php b/htdocs/core/boxes/box_external_rss.php
index 09b56cff52edd9c4f1a5df4ce79a22e0b6cfa88e..354e79151f1359060c69ca902ebecf93f93ed1a3 100644
--- a/htdocs/core/boxes/box_external_rss.php
+++ b/htdocs/core/boxes/box_external_rss.php
@@ -169,4 +169,3 @@ class box_external_rss extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_factures.php b/htdocs/core/boxes/box_factures.php
index 13a1dd2c223cb4f3c58fa64d8898aa34a0ede1c3..18d276b013057944ac625271f5eeaa17e0b1cc02 100644
--- a/htdocs/core/boxes/box_factures.php
+++ b/htdocs/core/boxes/box_factures.php
@@ -160,4 +160,3 @@ class box_factures extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_factures_fourn.php b/htdocs/core/boxes/box_factures_fourn.php
index 26ecd1247e8fe061ce820c42a1495400c704d0d8..d9cfa9bf5cd9eb8ad098aa5db343ab7d862120a3 100644
--- a/htdocs/core/boxes/box_factures_fourn.php
+++ b/htdocs/core/boxes/box_factures_fourn.php
@@ -160,4 +160,3 @@ class box_factures_fourn extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_factures_fourn_imp.php b/htdocs/core/boxes/box_factures_fourn_imp.php
index 316ee7b086a15a284a11db15226c95a1dc1aee12..742bd04cf82fbea3e811ae06c224d037277c9422 100644
--- a/htdocs/core/boxes/box_factures_fourn_imp.php
+++ b/htdocs/core/boxes/box_factures_fourn_imp.php
@@ -157,4 +157,3 @@ class box_factures_fourn_imp extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_factures_imp.php b/htdocs/core/boxes/box_factures_imp.php
index 85a383b0ec9f0e43659f662a7daa26faa08a6254..72c34dee5593cd33bca50ddfb525cf4d442b7a60 100644
--- a/htdocs/core/boxes/box_factures_imp.php
+++ b/htdocs/core/boxes/box_factures_imp.php
@@ -155,4 +155,3 @@ class box_factures_imp extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_ficheinter.php b/htdocs/core/boxes/box_ficheinter.php
index cc7464ec3e99f328f689adb0e58e94b6450e4569..3413548c1fdeee1cc7ff6c4cc899634771aeee2d 100644
--- a/htdocs/core/boxes/box_ficheinter.php
+++ b/htdocs/core/boxes/box_ficheinter.php
@@ -155,4 +155,3 @@ class box_ficheinter extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_fournisseurs.php b/htdocs/core/boxes/box_fournisseurs.php
index df6505e0c941c1599f99677726a490aa906d6d30..0157e5acadaadbf5552041d66c76607c5dc97600 100644
--- a/htdocs/core/boxes/box_fournisseurs.php
+++ b/htdocs/core/boxes/box_fournisseurs.php
@@ -132,4 +132,3 @@ class box_fournisseurs extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_graph_invoices_permonth.php b/htdocs/core/boxes/box_graph_invoices_permonth.php
index f9647c4e4ca231e7639db1e3c3500c07aac5d969..bece2e55c6f65bb84173d5ff8818fbc81c39dcc0 100644
--- a/htdocs/core/boxes/box_graph_invoices_permonth.php
+++ b/htdocs/core/boxes/box_graph_invoices_permonth.php
@@ -266,4 +266,3 @@ class box_graph_invoices_permonth extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php b/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
index e985ca62912a96fe5e2e4779efd4ed6aaf69f415..4214a9a81b8073b10037070dabeb0324ceff298c 100644
--- a/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
+++ b/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
@@ -265,4 +265,3 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_graph_orders_permonth.php b/htdocs/core/boxes/box_graph_orders_permonth.php
index ce4008761b7da4659b223dfab06ce022415f51d2..7389c2c6b8b813e8f7a319c0ebf7c2d9675ec2c3 100644
--- a/htdocs/core/boxes/box_graph_orders_permonth.php
+++ b/htdocs/core/boxes/box_graph_orders_permonth.php
@@ -266,4 +266,3 @@ class box_graph_orders_permonth extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_graph_orders_supplier_permonth.php b/htdocs/core/boxes/box_graph_orders_supplier_permonth.php
index 7abdd742d238911f0835244e5e8fcf20ee27425c..788528b501f86732641c0302870a18a5f8d74090 100644
--- a/htdocs/core/boxes/box_graph_orders_supplier_permonth.php
+++ b/htdocs/core/boxes/box_graph_orders_supplier_permonth.php
@@ -265,4 +265,3 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_graph_product_distribution.php b/htdocs/core/boxes/box_graph_product_distribution.php
index dd8f7512eb11c066b3ca721bae710eb9ef310430..a05c4baf5ad22115dfb8f4c3727373cfe8610e73 100644
--- a/htdocs/core/boxes/box_graph_product_distribution.php
+++ b/htdocs/core/boxes/box_graph_product_distribution.php
@@ -387,4 +387,3 @@ class box_graph_product_distribution extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_graph_propales_permonth.php b/htdocs/core/boxes/box_graph_propales_permonth.php
index a934fb8e3779375c1458205e7585224795caf39b..d80d40c64f2fd4c0019f378ab853cb11ab462dfd 100644
--- a/htdocs/core/boxes/box_graph_propales_permonth.php
+++ b/htdocs/core/boxes/box_graph_propales_permonth.php
@@ -271,4 +271,3 @@ class box_graph_propales_permonth extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_members.php b/htdocs/core/boxes/box_members.php
index 2e0b41f9451ebb463598f1726d5a43933d61e54e..966a8ab7d109fdb34dac3a4aad379bd89e97c745 100644
--- a/htdocs/core/boxes/box_members.php
+++ b/htdocs/core/boxes/box_members.php
@@ -161,4 +161,3 @@ class box_members extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_osc_client.php b/htdocs/core/boxes/box_osc_client.php
index 1d487b577ad58f47546d542403cfa173864506b8..956811ea4e3747b85e38902e9a177dcd252c9814 100644
--- a/htdocs/core/boxes/box_osc_client.php
+++ b/htdocs/core/boxes/box_osc_client.php
@@ -110,4 +110,3 @@ class box_osc_clients extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_produits.php b/htdocs/core/boxes/box_produits.php
index 0db58e0d7973def2c43ff068b03678fd7a1b4ca2..30669c4f392d0cf3a2dc4edfb9ce1e544862e56f 100644
--- a/htdocs/core/boxes/box_produits.php
+++ b/htdocs/core/boxes/box_produits.php
@@ -165,4 +165,3 @@ class box_produits extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_produits_alerte_stock.php b/htdocs/core/boxes/box_produits_alerte_stock.php
index 826f11b97e97e1dd9d31adb5aee163e5e8216a0f..ec526a76492a1c758cb7e16ea9d47c204230b403 100644
--- a/htdocs/core/boxes/box_produits_alerte_stock.php
+++ b/htdocs/core/boxes/box_produits_alerte_stock.php
@@ -173,4 +173,3 @@ class box_produits_alerte_stock extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_propales.php b/htdocs/core/boxes/box_propales.php
index 3c52900019aa953e64a002662e8e1c2165d44343..73e554de2b66c67c7b6c790424ed650ce2c1e3a8 100644
--- a/htdocs/core/boxes/box_propales.php
+++ b/htdocs/core/boxes/box_propales.php
@@ -150,4 +150,3 @@ class box_propales extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_prospect.php b/htdocs/core/boxes/box_prospect.php
index ec839323174fb68b6bed0a98969ebc30f7a48557..9c7a666bc4a6f0993285f81092c57447bef47ef3 100644
--- a/htdocs/core/boxes/box_prospect.php
+++ b/htdocs/core/boxes/box_prospect.php
@@ -139,4 +139,3 @@ class box_prospect extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_services_contracts.php b/htdocs/core/boxes/box_services_contracts.php
index d26c8ed0b91a1f05ec0ea89ec6b53c7c71fa08e8..264178cc3ea03efdea2d8d9706395d630dcd332d 100644
--- a/htdocs/core/boxes/box_services_contracts.php
+++ b/htdocs/core/boxes/box_services_contracts.php
@@ -170,4 +170,3 @@ class box_services_contracts extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/box_services_expired.php b/htdocs/core/boxes/box_services_expired.php
index eb9b12a31bd7d21c6564863547de4a5c3f5ddf84..5e488b3c6dbd6f313ee73233a876913efc33387e 100644
--- a/htdocs/core/boxes/box_services_expired.php
+++ b/htdocs/core/boxes/box_services_expired.php
@@ -152,4 +152,3 @@ class box_services_expired extends ModeleBoxes
 
  }
 
-?>
diff --git a/htdocs/core/boxes/box_supplier_orders.php b/htdocs/core/boxes/box_supplier_orders.php
index 74beff90c7fac3c4b2b1f29f8b25ad3fe1994c11..a976112c1ad05e29f3bedf8eed6e4117ed6e372c 100644
--- a/htdocs/core/boxes/box_supplier_orders.php
+++ b/htdocs/core/boxes/box_supplier_orders.php
@@ -148,4 +148,3 @@ class box_supplier_orders extends ModeleBoxes
 
 }
 
-?>
diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php
index 7d77c5f98285b4717eb252fe9389efcde45e236e..7b54f0440a0ce184cd32333ebb98151202a2adbb 100644
--- a/htdocs/core/boxes/modules_boxes.php
+++ b/htdocs/core/boxes/modules_boxes.php
@@ -266,4 +266,3 @@ class ModeleBoxes    // Can't be abtract as it is instantiated to build "empty"
 }
 
 
-?>
diff --git a/htdocs/core/class/CMailFile.class.php b/htdocs/core/class/CMailFile.class.php
index 7cf25b9992a950ed30c39016704fa191a0fe3df1..d766fa4a8132f47bb431c44d9fb58dd04fc82501 100644
--- a/htdocs/core/class/CMailFile.class.php
+++ b/htdocs/core/class/CMailFile.class.php
@@ -1080,4 +1080,3 @@ class CMailFile
 	}
 }
 
-?>
diff --git a/htdocs/core/class/CSMSFile.class.php b/htdocs/core/class/CSMSFile.class.php
index 87291f70a6fc5e6fdff84745ced3d1969bfad7f4..7d0bf5fad0c5a29d308e41f492910fd8d1542855 100644
--- a/htdocs/core/class/CSMSFile.class.php
+++ b/htdocs/core/class/CSMSFile.class.php
@@ -241,4 +241,3 @@ class CSMSFile
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php
index ecc66e33049ef4eb911577a67eb52fabe07cbf76..7769f6e4bd0677bb4343db8b8b005961df6fb3c1 100644
--- a/htdocs/core/class/commondocgenerator.class.php
+++ b/htdocs/core/class/commondocgenerator.class.php
@@ -547,4 +547,3 @@ abstract class CommonDocGenerator
     }
 }
 
-?>
diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php
index 5c9d6257fb9a78d05c8c6a614a24f9de92413914..80d719decaea518c6e99cc7e158812597ef2d327 100644
--- a/htdocs/core/class/commoninvoice.class.php
+++ b/htdocs/core/class/commoninvoice.class.php
@@ -297,4 +297,3 @@ abstract class CommonInvoiceLine extends CommonObject
 {
 }
 
-?>
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index d40544217c65ba5ab0201bf21bdb4ef3a9b7f4f4..7fbcc9d8b74c0939f7352da3a8e0c69efd1b1f72 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -3349,4 +3349,3 @@ abstract class CommonObject
     }
 
 }
-?>
diff --git a/htdocs/core/class/commonobjectline.class.php b/htdocs/core/class/commonobjectline.class.php
index 662b0050eed99e48fdad7093c635079ba4c9121e..bb253d2eded9143fa7e6f7f3cffe38391876fffe 100644
--- a/htdocs/core/class/commonobjectline.class.php
+++ b/htdocs/core/class/commonobjectline.class.php
@@ -31,4 +31,3 @@ abstract class CommonObjectLine
 
 }
 
-?>
diff --git a/htdocs/core/class/commonorder.class.php b/htdocs/core/class/commonorder.class.php
index 302894009e577df5ede98df52652cbc06ef518eb..469e1676a5383e66cc8ac8d53d14a12ee6b0e01e 100644
--- a/htdocs/core/class/commonorder.class.php
+++ b/htdocs/core/class/commonorder.class.php
@@ -41,4 +41,3 @@ abstract class CommonOrderLine extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php
index ddd165d015ffd3aef20fdec0f35f4c3df30ae37b..77bb15a2cce3426bb0b4cd1289a92f53d5701e36 100644
--- a/htdocs/core/class/conf.class.php
+++ b/htdocs/core/class/conf.class.php
@@ -500,4 +500,3 @@ class Conf
 	}
 }
 
-?>
diff --git a/htdocs/core/class/cookie.class.php b/htdocs/core/class/cookie.class.php
index 5d3d5352626b8e2ba5b9e5fe4dcd1cf5e3703262..0797be330bf775a757d7b461ec849a1eb0170b05 100644
--- a/htdocs/core/class/cookie.class.php
+++ b/htdocs/core/class/cookie.class.php
@@ -144,4 +144,3 @@ class DolCookie
 
 }
 
-?>
diff --git a/htdocs/core/class/cpays.class.php b/htdocs/core/class/cpays.class.php
index 6c9bce8daa87d07e4f8f1cfc4b0f3136e39ccce2..e6db8e4b2e9bd4fee00e4bafc376951e28da77be 100644
--- a/htdocs/core/class/cpays.class.php
+++ b/htdocs/core/class/cpays.class.php
@@ -312,4 +312,3 @@ class Cpays // extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/core/class/ctypent.class.php b/htdocs/core/class/ctypent.class.php
index b791746c652e31ca6323bda58c02204126bf0a09..33070f834120b0ee6b0044cef917986db49e3c25 100644
--- a/htdocs/core/class/ctypent.class.php
+++ b/htdocs/core/class/ctypent.class.php
@@ -317,4 +317,3 @@ class Ctypent // extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/core/class/discount.class.php b/htdocs/core/class/discount.class.php
index 78c0add9aab92cfcb653de21224c3c640aee05c7..23ce9f97f6dc6b03cf3c266c0051187994e4313e 100644
--- a/htdocs/core/class/discount.class.php
+++ b/htdocs/core/class/discount.class.php
@@ -480,4 +480,3 @@ class DiscountAbsolute
 		$this->description    = 'Specimen discount';
 	}
 }
-?>
diff --git a/htdocs/core/class/doleditor.class.php b/htdocs/core/class/doleditor.class.php
index 04b4751bdb0f00138cc3a1b50f207c2cdfcc8671..c575467d32eb1718d7ac1739c10c6dc7428fdecd 100644
--- a/htdocs/core/class/doleditor.class.php
+++ b/htdocs/core/class/doleditor.class.php
@@ -244,4 +244,3 @@ class DolEditor
 
 }
 
-?>
diff --git a/htdocs/core/class/dolgeoip.class.php b/htdocs/core/class/dolgeoip.class.php
index 14364ea7902f9bfa9b640784b9c536c2750d6b47..9844e6b74c98bbbbfbabd98876809c1fd2ce8b0f 100644
--- a/htdocs/core/class/dolgeoip.class.php
+++ b/htdocs/core/class/dolgeoip.class.php
@@ -149,4 +149,3 @@ class DolGeoIP
 	    }
 	}
 }
-?>
diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php
index f1e666958318e60726307849b44a2b01842fed8c..33888b057b7369f4d676e4ed2751e794b5b9f87a 100644
--- a/htdocs/core/class/dolgraph.class.php
+++ b/htdocs/core/class/dolgraph.class.php
@@ -1048,4 +1048,3 @@ class DolGraph
 	
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/class/events.class.php b/htdocs/core/class/events.class.php
index 317f0d3832b39054ea62ed2c296be0c5aaaebf6e..b344a0c4059659d3893c614e9216d6013d288125 100644
--- a/htdocs/core/class/events.class.php
+++ b/htdocs/core/class/events.class.php
@@ -283,4 +283,3 @@ class Events // extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/core/class/genericobject.class.php b/htdocs/core/class/genericobject.class.php
index 6a998970fd7786083eb4f58561764ffdb1a240c3..c198525a07bb9648fb6e384e7149663e8c2e0d20 100644
--- a/htdocs/core/class/genericobject.class.php
+++ b/htdocs/core/class/genericobject.class.php
@@ -44,4 +44,3 @@ class GenericObject extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php
index 53a8f05239434a5fcabc07bc5739621e771fd473..3afcd941ee985935926c33d77d4b0059fe034445 100644
--- a/htdocs/core/class/hookmanager.class.php
+++ b/htdocs/core/class/hookmanager.class.php
@@ -223,4 +223,3 @@ class HookManager
 
 }
 
-?>
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index c26c4d3b8c0ec143bae3fce23b0ea9a536ca38f0..385e6802be39be307f7c595baa4d00af6cad95af 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4275,4 +4275,3 @@ class Form
 
 }
 
-?>
diff --git a/htdocs/core/class/html.formadmin.class.php b/htdocs/core/class/html.formadmin.class.php
index cf23a0871a516b6ad1753443f2eb3d80699d3eb4..f7a6154706f4cebd1d047d7b703217b5bb9a7a34 100644
--- a/htdocs/core/class/html.formadmin.class.php
+++ b/htdocs/core/class/html.formadmin.class.php
@@ -384,4 +384,3 @@ class FormAdmin
 		return $out;
 	}
 }
-?>
diff --git a/htdocs/core/class/html.formbank.class.php b/htdocs/core/class/html.formbank.class.php
index 85dd303fd642c3c1d499c9871b80a547bd42842c..647688bb64120409adb4680e87d993884b4ffa26 100644
--- a/htdocs/core/class/html.formbank.class.php
+++ b/htdocs/core/class/html.formbank.class.php
@@ -78,4 +78,3 @@ class FormBank
 
 }
 
-?>
diff --git a/htdocs/core/class/html.formbarcode.class.php b/htdocs/core/class/html.formbarcode.class.php
index a5614c9807128cc1300f55ed3d4414fb9156c8ca..11a59614be0993ff94ccaf7b8397f5ff782255c8 100644
--- a/htdocs/core/class/html.formbarcode.class.php
+++ b/htdocs/core/class/html.formbarcode.class.php
@@ -181,4 +181,3 @@ class FormBarCode
 
 }
 
-?>
diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php
index 3f7dd507afcf8798781f5a3165ba280243bc3626..a72eebc9fb8f3d45357530edd579b694842725bc 100644
--- a/htdocs/core/class/html.formcompany.class.php
+++ b/htdocs/core/class/html.formcompany.class.php
@@ -771,4 +771,3 @@ class FormCompany
 
 }
 
-?>
diff --git a/htdocs/core/class/html.formcontract.class.php b/htdocs/core/class/html.formcontract.class.php
index dc794f77ebe2e23f515340f3b76a5f0f009990d7..cfc5be29b92e2a592242dfa85e9463752bc19db2 100644
--- a/htdocs/core/class/html.formcontract.class.php
+++ b/htdocs/core/class/html.formcontract.class.php
@@ -138,4 +138,3 @@ class FormContract
 		}
 	}
 }
-?>
\ No newline at end of file
diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index d0f3010b0c56de6141e6cf65ffa6c5a1540745c8..b9f5e7e1bc1d6335a4fd99c7efafa787da2d6e1a 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -656,4 +656,3 @@ class FormMail
     }
 }
 
-?>
diff --git a/htdocs/core/class/html.formorder.class.php b/htdocs/core/class/html.formorder.class.php
index 8985428f1927aae46e57ff7669a7a16ddb3f8dc3..6bc626b13f3015bab419656315f91a7f90230e86 100644
--- a/htdocs/core/class/html.formorder.class.php
+++ b/htdocs/core/class/html.formorder.class.php
@@ -141,4 +141,3 @@ class FormOrder
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/class/html.formpropal.class.php b/htdocs/core/class/html.formpropal.class.php
index 101feda9e5d15484c8d919637d7c71bb27b678f6..fcbe46ab51bac4fdedb269a6ce31582716469293 100644
--- a/htdocs/core/class/html.formpropal.class.php
+++ b/htdocs/core/class/html.formpropal.class.php
@@ -102,4 +102,3 @@ class FormPropal
 
 }
 
-?>
diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php
index d34cc9b1bfb5452865b0d7bc05960db45ac78439..055472658ece7d7734de7b33f22db23da31d2ae1 100644
--- a/htdocs/core/class/html.formsms.class.php
+++ b/htdocs/core/class/html.formsms.class.php
@@ -336,4 +336,3 @@ function limitChars(textarea, limit, infodiv)
 
 }
 
-?>
diff --git a/htdocs/core/class/html.formsocialcontrib.class.php b/htdocs/core/class/html.formsocialcontrib.class.php
index 6ca8e3affb985a104fbf2676b499390713bd8062..f84f14c144695f6f8018fcd4e647a4df0a6e0bf0 100644
--- a/htdocs/core/class/html.formsocialcontrib.class.php
+++ b/htdocs/core/class/html.formsocialcontrib.class.php
@@ -114,4 +114,3 @@ class FormSocialContrib
 
 }
 
-?>
diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php
index 2e04fdfa7521e54b7f4f9826d270c8f235787dac..c01d2d1f0f56aa4693f8c3d6730f778f8620b624 100644
--- a/htdocs/core/class/infobox.class.php
+++ b/htdocs/core/class/infobox.class.php
@@ -276,4 +276,3 @@ class InfoBox
 
 }
 
-?>
diff --git a/htdocs/core/class/interfaces.class.php b/htdocs/core/class/interfaces.class.php
index 1b49760b5bdf50a4b4e2ab6a2bd4a206c84ab5aa..d15eb42fe51c4518ae4a81c0df7edfee714798c7 100644
--- a/htdocs/core/class/interfaces.class.php
+++ b/htdocs/core/class/interfaces.class.php
@@ -321,4 +321,3 @@ class Interfaces
     }
 
 }
-?>
diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php
index 0f7d4a00482afe94dddd670fcee033f63a65d957..30eeca5a486a19b49c685974bcf4c048d31ef8eb 100644
--- a/htdocs/core/class/ldap.class.php
+++ b/htdocs/core/class/ldap.class.php
@@ -1380,4 +1380,3 @@ class Ldap
 }
 
 
-?>
diff --git a/htdocs/core/class/menubase.class.php b/htdocs/core/class/menubase.class.php
index a754cc124e82348b09745960a81c7fa3de71bba3..966b9ac7f77c3d8097d0d669389d5dd076b202ed 100644
--- a/htdocs/core/class/menubase.class.php
+++ b/htdocs/core/class/menubase.class.php
@@ -643,4 +643,3 @@ class Menubase
 
 }
 
-?>
diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php
index f24b9fe63de856cb279e9bf7c232b6ee187b20e6..705a39ab636676be71072e5d6b41942ac148af33 100644
--- a/htdocs/core/class/notify.class.php
+++ b/htdocs/core/class/notify.class.php
@@ -252,4 +252,3 @@ class Notify
 
 }
 
-?>
diff --git a/htdocs/core/class/openid.class.php b/htdocs/core/class/openid.class.php
index 0b4652fb0bfa8993a5c5ecb018abf635ca90ebfa..5165dcb4994a38eb6f6ce3f9d350a0996a548fbb 100644
--- a/htdocs/core/class/openid.class.php
+++ b/htdocs/core/class/openid.class.php
@@ -495,4 +495,3 @@ class SimpleOpenID
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/class/smtps.class.php b/htdocs/core/class/smtps.class.php
index a4c2cae4a25862cc9df1e259e5f51c0f511463ae..61a098330c211d2e094534e4689d87cade399efe 100644
--- a/htdocs/core/class/smtps.class.php
+++ b/htdocs/core/class/smtps.class.php
@@ -1800,4 +1800,3 @@ class SMTPs
  *
  */
 
-?>
diff --git a/htdocs/core/class/stats.class.php b/htdocs/core/class/stats.class.php
index 6162e0dcdd0dae3b6982f2da27624f6859bd5e8a..5018d63cecfd44638198ddc67bbbeea52d4c227d 100644
--- a/htdocs/core/class/stats.class.php
+++ b/htdocs/core/class/stats.class.php
@@ -570,4 +570,3 @@ abstract class Stats
 	}	
 }
 
-?>
diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php
index c075a71e01803939a193b3f75338a1c38d94877c..54182c7727ade978a9285c917b8b7a98692434d1 100644
--- a/htdocs/core/class/translate.class.php
+++ b/htdocs/core/class/translate.class.php
@@ -803,4 +803,3 @@ class Translate
 	}
 }
 
-?>
diff --git a/htdocs/core/class/vcard.class.php b/htdocs/core/class/vcard.class.php
index 516ccdecec671163f5d82af172f14214b78037f4..512aa011d986c208990689f2ce7aacef0f1ac915 100644
--- a/htdocs/core/class/vcard.class.php
+++ b/htdocs/core/class/vcard.class.php
@@ -334,4 +334,3 @@ class vCard
     }
 
 }
-?>
diff --git a/htdocs/core/datepicker.php b/htdocs/core/datepicker.php
index a976eb83f01a9bacd8ec57a9c564db54b2405e56..7e0333bc5aa0cda19c3220d3f4777d435db96619 100644
--- a/htdocs/core/datepicker.php
+++ b/htdocs/core/datepicker.php
@@ -278,4 +278,3 @@ function displayBox($selectedDate,$month,$year)
 		<?php
 }//end function
 
-?>
diff --git a/htdocs/core/db/mssql.class.php b/htdocs/core/db/mssql.class.php
index 855b7a710264709a45e15c82ffbeb1988d6c15e9..bf67bd7d8b32cdecf81602de1ff2a45c5e199d39 100644
--- a/htdocs/core/db/mssql.class.php
+++ b/htdocs/core/db/mssql.class.php
@@ -996,4 +996,3 @@ class DoliDBMssql extends DoliDB
 	}
 }
 
-?>
diff --git a/htdocs/core/db/mysql.class.php b/htdocs/core/db/mysql.class.php
index efe942caed50d330ecdb9dc153af6bd8c7434527..6bf25ba6a43208d122d3baff8dfa486bcca4e392 100644
--- a/htdocs/core/db/mysql.class.php
+++ b/htdocs/core/db/mysql.class.php
@@ -1015,4 +1015,3 @@ class DoliDBMysql extends DoliDB
 	}
 }
 
-?>
diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php
index f2dd2e80359c6420832f60d6f2ea21e19af51ada..6161c497b20f8ad2b0cf84b62069162e697c79b1 100644
--- a/htdocs/core/db/mysqli.class.php
+++ b/htdocs/core/db/mysqli.class.php
@@ -1019,4 +1019,3 @@ class DoliDBMysqli extends DoliDB
     }
 }
 
-?>
diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php
index 9ed44faf5489e644c91258140c1043e65e772f73..dfcebb4a433f8f7fa65cc9ccfb60dcc358e56bc0 100644
--- a/htdocs/core/db/pgsql.class.php
+++ b/htdocs/core/db/pgsql.class.php
@@ -1260,4 +1260,3 @@ class DoliDBPgsql extends DoliDB
 		return array();
 	}
 }
-?>
diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php
index 8c3e9fa9df380ab88d0055a0ac79083a8c16f4a8..ad5c6532c9e1f357f1d5cac18b04e8db2e4741c6 100644
--- a/htdocs/core/db/sqlite.class.php
+++ b/htdocs/core/db/sqlite.class.php
@@ -1129,4 +1129,3 @@ class DoliDBSqlite extends DoliDB
     }
 }
 
-?>
diff --git a/htdocs/core/doxygen.php b/htdocs/core/doxygen.php
index 4cf4dd1f7b205401638834576555b8944b7f6d23..fd92572836e0e11109c4a68ccaaaa8275bb660fe 100644
--- a/htdocs/core/doxygen.php
+++ b/htdocs/core/doxygen.php
@@ -31,4 +31,3 @@
  *      Dolibarr spanish portal: <a href="http://www.dolibarr.es">www.dolibarr.es</a><br>
  *      <br>
  */
-?>
\ No newline at end of file
diff --git a/htdocs/core/filemanagerdol/connectors/php/commands.php b/htdocs/core/filemanagerdol/connectors/php/commands.php
index 19185d015150375d78912fdb1930b8ac6ad52406..6369ac9d3ae51c36e9b2c18238d0f408af47d117 100644
--- a/htdocs/core/filemanagerdol/connectors/php/commands.php
+++ b/htdocs/core/filemanagerdol/connectors/php/commands.php
@@ -297,4 +297,3 @@ function FileUpload($resourceType, $currentFolder, $sCommand, $CKEcallback = '')
 
 	exit;
 }
-?>
diff --git a/htdocs/core/filemanagerdol/connectors/php/config.php b/htdocs/core/filemanagerdol/connectors/php/config.php
index b50cea8a482d4af7dcd3d3508ac9fb166af24e2a..0c3b0a4884c3654d9546c0150f36513e6e72249e 100644
--- a/htdocs/core/filemanagerdol/connectors/php/config.php
+++ b/htdocs/core/filemanagerdol/connectors/php/config.php
@@ -161,4 +161,3 @@ $Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] ==
 $Config['QuickUploadPath']['Media']		= $Config['UserFilesPath'] ;
 $Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;
 
-?>
diff --git a/htdocs/core/filemanagerdol/connectors/php/connector.php b/htdocs/core/filemanagerdol/connectors/php/connector.php
index ddafa4b1859ee73e76bf269926b954f90f3dcbf9..810f75601b696c0d9c857e1fc38408ff0c8607d4 100644
--- a/htdocs/core/filemanagerdol/connectors/php/connector.php
+++ b/htdocs/core/filemanagerdol/connectors/php/connector.php
@@ -83,4 +83,3 @@ function DoResponse()
 
 	exit ;
 }
-?>
diff --git a/htdocs/core/filemanagerdol/connectors/php/io.php b/htdocs/core/filemanagerdol/connectors/php/io.php
index f246492e670ad9b04112214bd3b338a0fcbaeaf3..50ce4a33f05c37089b58f435ceb843443819f542 100644
--- a/htdocs/core/filemanagerdol/connectors/php/io.php
+++ b/htdocs/core/filemanagerdol/connectors/php/io.php
@@ -360,4 +360,3 @@ function SendCKEditorResults ($callback, $sFileUrl, $customMsg = '')
 }
 
 
-?>
diff --git a/htdocs/core/filemanagerdol/connectors/php/upload.php b/htdocs/core/filemanagerdol/connectors/php/upload.php
index 030fb67ea168a2367b4ed98e3a0709bbf83799b9..cf329590aed23f641c6a90923937a11267a823b0 100644
--- a/htdocs/core/filemanagerdol/connectors/php/upload.php
+++ b/htdocs/core/filemanagerdol/connectors/php/upload.php
@@ -63,4 +63,3 @@ $CKEcallback = $_GET['CKEditorFuncNum'];
 FileUpload($sType, $sCurrentFolder, $sCommand, $CKEcallback);
 
 
-?>
diff --git a/htdocs/core/filemanagerdol/connectors/php/util.php b/htdocs/core/filemanagerdol/connectors/php/util.php
index 0a7b5fbf9ad733d7ce9352971a6c6d4c90e30864..f23ba45550a1cdd21ece7b18724fe4de85a16c02 100644
--- a/htdocs/core/filemanagerdol/connectors/php/util.php
+++ b/htdocs/core/filemanagerdol/connectors/php/util.php
@@ -239,4 +239,3 @@ function IsImageValid( $filePath, $extension )
 	return true;
 }
 
-?>
diff --git a/htdocs/core/get_menudiv.php b/htdocs/core/get_menudiv.php
index cdc1391e2bb6057e181348c25bdfa77abf12eb93..b52c1f73c980d5c7fc01aa3ef5c137cb8333bdc6 100644
--- a/htdocs/core/get_menudiv.php
+++ b/htdocs/core/get_menudiv.php
@@ -93,4 +93,3 @@ print '</body>';
 print '</html>'."\n";
 
 $db->close();
-?>
diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php
index 1232456e64c3782a27da44883d39788b4842f9f0..02666409fc38bd825b0d1d475c7e9ef4053dff84 100644
--- a/htdocs/core/js/datepicker.js.php
+++ b/htdocs/core/js/datepicker.js.php
@@ -149,4 +149,3 @@ jQuery(function($){
 
 <?php
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/core/js/timepicker.js.php b/htdocs/core/js/timepicker.js.php
index 7bc53ff0660ff28c98250cba1ca7df89525b7c94..cc33a5a39337fa23876b32f1bd54c0aba86b7950 100644
--- a/htdocs/core/js/timepicker.js.php
+++ b/htdocs/core/js/timepicker.js.php
@@ -65,4 +65,3 @@ jQuery(function($){
 
 <?php
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php
index f553e825f9ec806e46b4b6fe66bcb69dd1680123..2f5e217641f8e68f3aeff58ad06f460b6c99e5ff 100644
--- a/htdocs/core/lib/admin.lib.php
+++ b/htdocs/core/lib/admin.lib.php
@@ -1292,4 +1292,3 @@ function phpinfo_array()
 	return $info_arr;
 }
 
-?>
diff --git a/htdocs/core/lib/agenda.lib.php b/htdocs/core/lib/agenda.lib.php
index 40d1e043c1d31d4a97dd448fc384e66c40277fb6..f9da29a7672b9facfff1774433ccd4ba8b9728ff 100644
--- a/htdocs/core/lib/agenda.lib.php
+++ b/htdocs/core/lib/agenda.lib.php
@@ -474,4 +474,3 @@ function calendars_prepare_head($param)
     return $head;
 }
 
-?>
diff --git a/htdocs/core/lib/ajax.lib.php b/htdocs/core/lib/ajax.lib.php
index 0fd1b1b84236033cd7ffc9aa7b0955514e396495..15a797466948d83d4cd7e2f0a98f26491cd88fee 100644
--- a/htdocs/core/lib/ajax.lib.php
+++ b/htdocs/core/lib/ajax.lib.php
@@ -429,4 +429,3 @@ function ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0)
 	return $out;
 }
 
-?>
diff --git a/htdocs/core/lib/bank.lib.php b/htdocs/core/lib/bank.lib.php
index 2433630b3057dd1ca8899a9737f6e2b4fe5d3249..c17c78bc8e1ee45171d7d17991d20b78a903e4ab 100644
--- a/htdocs/core/lib/bank.lib.php
+++ b/htdocs/core/lib/bank.lib.php
@@ -222,4 +222,3 @@ function checkES($IentOfi, $InumCta) {
     return $keycontrol;
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/categories.lib.php b/htdocs/core/lib/categories.lib.php
index 0e04c7e6b011fa058517769247b17fb4586932b1..fb3a0210ef61726651b05bfd2cbb6d47d8303576 100644
--- a/htdocs/core/lib/categories.lib.php
+++ b/htdocs/core/lib/categories.lib.php
@@ -101,4 +101,3 @@ function categoriesadmin_prepare_head()
 }
 
 
-?>
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 09e66330791eda31cbd73eee8e96d901c446a1cc..841df7b5d40c13c128d272d671681309340918eb 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -1387,4 +1387,3 @@ function show_subsidiaries($conf,$langs,$db,$object)
 	return $i;
 }
 
-?>
diff --git a/htdocs/core/lib/contact.lib.php b/htdocs/core/lib/contact.lib.php
index f441229c1af700fa35e5232fd71b5370995174f5..b729aae2589df1e12dbab281952f20c5cea76522 100644
--- a/htdocs/core/lib/contact.lib.php
+++ b/htdocs/core/lib/contact.lib.php
@@ -92,4 +92,3 @@ function contact_prepare_head($object)
 	return $head;
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/date.lib.php b/htdocs/core/lib/date.lib.php
index 116eeb6739c16aa7a63105a6f80c60256bc92a63..4201cde9e9dc544c1564585de825ef34f8141a6b 100644
--- a/htdocs/core/lib/date.lib.php
+++ b/htdocs/core/lib/date.lib.php
@@ -777,4 +777,3 @@ function monthArray($outputlangs)
     return $montharray;
 }
 
-?>
diff --git a/htdocs/core/lib/doc.lib.php b/htdocs/core/lib/doc.lib.php
index 56ecd40fca20c390d8904e7d27253547a04dd094..1562cfcf7e7d4a7e296983d821a8e73c5717b74b 100644
--- a/htdocs/core/lib/doc.lib.php
+++ b/htdocs/core/lib/doc.lib.php
@@ -155,4 +155,3 @@ function doc_getlinedesc($line,$outputlangs,$hideref=0,$hidedesc=0,$issupplierli
 	return $libelleproduitservice;
 }
 
-?>
diff --git a/htdocs/core/lib/ecm.lib.php b/htdocs/core/lib/ecm.lib.php
index 0652573ca3700e6f48733ddc826742cb67eab6f9..1257d6a9bd176577a136a61589f1d62e253f4f5c 100644
--- a/htdocs/core/lib/ecm.lib.php
+++ b/htdocs/core/lib/ecm.lib.php
@@ -125,4 +125,3 @@ function ecm_prepare_head_fm($object)
 	return $head;
 }
 
-?>
diff --git a/htdocs/core/lib/emailing.lib.php b/htdocs/core/lib/emailing.lib.php
index 394f8b7234938fde419aff13d3e37a983dc38d8c..6c06a1eccb272652ad218ac4ed795f90b5324575 100644
--- a/htdocs/core/lib/emailing.lib.php
+++ b/htdocs/core/lib/emailing.lib.php
@@ -60,4 +60,3 @@ function emailing_prepare_head($object)
 	return $head;
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php
index fabe7303e639b5ff82082558b4492b51a79118fc..a6082fa0c2981f9d6e77799605097a008aae9f12 100644
--- a/htdocs/core/lib/files.lib.php
+++ b/htdocs/core/lib/files.lib.php
@@ -1854,4 +1854,3 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
 
 	return $ret;
 }
-?>
diff --git a/htdocs/core/lib/format_cards.lib.php b/htdocs/core/lib/format_cards.lib.php
index e45ff13be594014e349ce6657db2422dc56839af..29789791e14ce9c3f0214374eba8e43592cde521 100644
--- a/htdocs/core/lib/format_cards.lib.php
+++ b/htdocs/core/lib/format_cards.lib.php
@@ -148,4 +148,3 @@ foreach($_Avery_Labels as $key => $val)
 	$_Avery_Labels[$key]['name'].=' ('.$_Avery_Labels[$key]['paper-size'].' - '.$_Avery_Labels[$key]['NX'].'x'.$_Avery_Labels[$key]['NY'].')';
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/geturl.lib.php b/htdocs/core/lib/geturl.lib.php
index 6aef0bf9ca734bec83e38f632097877283b8be64..15604c0ce5d20580570e52d317e355d676ff631a 100644
--- a/htdocs/core/lib/geturl.lib.php
+++ b/htdocs/core/lib/geturl.lib.php
@@ -124,4 +124,3 @@ function getURLContent($url,$postorget='GET',$param='',$followlocation=1,$addhea
     return $rep;
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/images.lib.php b/htdocs/core/lib/images.lib.php
index e7e633231a30e81198ca238bf02df8cc59f36069..f7592c69c08d0fdca8dea29b106ba6f88560263d 100644
--- a/htdocs/core/lib/images.lib.php
+++ b/htdocs/core/lib/images.lib.php
@@ -705,4 +705,3 @@ function moneyMeter($actualValue=0, $pendingValue=0, $intentValue=0)
 	return $thermometer . $formLegenda;
 }
 
-?>
diff --git a/htdocs/core/lib/import.lib.php b/htdocs/core/lib/import.lib.php
index ceb15b51d0de531bd39e3072c52ddedcdc102874..89847d69c1112b7def88aca6175a2b2fa8305a1f 100644
--- a/htdocs/core/lib/import.lib.php
+++ b/htdocs/core/lib/import.lib.php
@@ -53,4 +53,3 @@ function import_prepare_head($param, $maxstep=0)
 	return $head;
 }
 
-?>
diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php
index caf82ca03f080ceff813fbba22fbacb240d8f9cf..2afb4686162ee5cae9bd3da3a8b2d44360f55bfb 100644
--- a/htdocs/core/lib/invoice.lib.php
+++ b/htdocs/core/lib/invoice.lib.php
@@ -144,4 +144,3 @@ function invoice_admin_prepare_head($object)
 
 
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/ldap.lib.php b/htdocs/core/lib/ldap.lib.php
index 82dd27d274950490c5e54af48e22f4cca9f6e9e9..caee12ed1359777136ed44cc1c474dfd94f503e3 100644
--- a/htdocs/core/lib/ldap.lib.php
+++ b/htdocs/core/lib/ldap.lib.php
@@ -169,4 +169,3 @@ function show_ldap_content($result,$level,$count,$var,$hide=0,$subcount=0)
 	return 1;
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/memory.lib.php b/htdocs/core/lib/memory.lib.php
index 03087daf55d0fdd0d60b68abd7d92519629e3c6e..c6a70180df66fed0380a573f4f6580c0a416b0b2 100644
--- a/htdocs/core/lib/memory.lib.php
+++ b/htdocs/core/lib/memory.lib.php
@@ -248,4 +248,3 @@ function dol_getshmop($memoryid)
 	return $data;
 }
 
-?>
diff --git a/htdocs/core/lib/order.lib.php b/htdocs/core/lib/order.lib.php
index fa5be241aa6c35cf3bc63c65ed0ad7767d7ec201..948bd74281c2d3c3a70cf1eb14d0f8df8bed7ad0 100644
--- a/htdocs/core/lib/order.lib.php
+++ b/htdocs/core/lib/order.lib.php
@@ -149,4 +149,3 @@ function order_admin_prepare_head($object)
 }
 
 
-?>
diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php
index f250c5511e7244eea98226dad3a45f30ec1435dc..b32536ed1ac6875b6907e7c4bf26bedbf22e2095 100644
--- a/htdocs/core/lib/pdf.lib.php
+++ b/htdocs/core/lib/pdf.lib.php
@@ -1633,4 +1633,3 @@ function pdf_getSizeForImage($realpath)
 	return array('width'=>$width,'height'=>$height);
 }
 
-?>
diff --git a/htdocs/core/lib/prelevement.lib.php b/htdocs/core/lib/prelevement.lib.php
index 60f65e8fbd2ac7cea8e4683e8ed520550857bb0e..c6305423a961c496d8ec4de824fe23485c2a9988 100644
--- a/htdocs/core/lib/prelevement.lib.php
+++ b/htdocs/core/lib/prelevement.lib.php
@@ -97,4 +97,3 @@ function prelevement_check_config()
 	return 0;
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php
index 87113d923013606e5662be3c7d80ad7ea5742939..d530c2ac5ccfaa85b58ba2e52ae6e6d32de74c66 100644
--- a/htdocs/core/lib/project.lib.php
+++ b/htdocs/core/lib/project.lib.php
@@ -706,4 +706,3 @@ function print_projecttasks_array($db, $socid, $projectsListId, $mytasks=0)
 	print "</table>";
 }
 
-?>
diff --git a/htdocs/core/lib/propal.lib.php b/htdocs/core/lib/propal.lib.php
index 1a513d5fcecff9d7a38c94d697e29c8015920de4..3a5b25da295f3d38ba2c07e1f39cb3d6133d062d 100644
--- a/htdocs/core/lib/propal.lib.php
+++ b/htdocs/core/lib/propal.lib.php
@@ -147,4 +147,3 @@ function propal_admin_prepare_head($object)
 }
 
 
-?>
diff --git a/htdocs/core/lib/report.lib.php b/htdocs/core/lib/report.lib.php
index 13c30976a988145443b7472d90ec0eb9acc93a91..9c701441765c6c7cbece9a62f6635688f2754e18 100644
--- a/htdocs/core/lib/report.lib.php
+++ b/htdocs/core/lib/report.lib.php
@@ -117,4 +117,3 @@ function report_header($nom,$variante,$period,$periodlink,$description,$builddat
 	print "\n<!-- fin cartouche rapport -->\n\n";
 }
 
-?>
diff --git a/htdocs/core/lib/security.lib.php b/htdocs/core/lib/security.lib.php
index 15cc17fba5c29a54b348e424b440d21088cc27df..df6704992a510373aa8da46e6405a81f0742d472 100644
--- a/htdocs/core/lib/security.lib.php
+++ b/htdocs/core/lib/security.lib.php
@@ -518,4 +518,3 @@ function accessforbidden($message='',$printheader=1,$printfooter=1,$showonlymess
     exit(0);
 }
 
-?>
diff --git a/htdocs/core/lib/security2.lib.php b/htdocs/core/lib/security2.lib.php
index 79c711fe1233785203586738684e0c486894fcff..99f34b24d3b62f63f0f8757c1c82302a43363a41 100644
--- a/htdocs/core/lib/security2.lib.php
+++ b/htdocs/core/lib/security2.lib.php
@@ -463,4 +463,3 @@ function getRandomPassword($generic=false)
 	return $generated_password;
 }
 
-?>
diff --git a/htdocs/core/lib/sendings.lib.php b/htdocs/core/lib/sendings.lib.php
index ac62511475001875dfbaf7c5aa896e5ce5b8b733..3d9e6cfd87e20a31007bdc6cb537bab7e71fa5c0 100644
--- a/htdocs/core/lib/sendings.lib.php
+++ b/htdocs/core/lib/sendings.lib.php
@@ -347,4 +347,3 @@ function show_list_sending_receive($origin,$origin_id,$filter='')
 	return 1;
 }
 
-?>
diff --git a/htdocs/core/lib/stock.lib.php b/htdocs/core/lib/stock.lib.php
index f6408575fcdca74e7d8713b41cf5b6838af5e00f..2ebbb52940730c59ad98719b2ba6a938c5a37a88 100644
--- a/htdocs/core/lib/stock.lib.php
+++ b/htdocs/core/lib/stock.lib.php
@@ -79,4 +79,3 @@ function stock_prepare_head($object)
     return $head;
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/ws.lib.php b/htdocs/core/lib/ws.lib.php
index 690d39c7f5fa91b2a23e9bef75c567c8d9113ed8..1e7f4b4e522500a884c7a56863aebe4671dec5ee 100644
--- a/htdocs/core/lib/ws.lib.php
+++ b/htdocs/core/lib/ws.lib.php
@@ -96,4 +96,3 @@ function check_authentication($authentication,&$error,&$errorcode,&$errorlabel)
     return $fuser;
 }
 
-?>
diff --git a/htdocs/core/lib/xcal.lib.php b/htdocs/core/lib/xcal.lib.php
index 4483e9540e5806807ac2455774a888d1c95a2456..5927bf976747b96e4e16b35c7be8adbe4958fb14 100644
--- a/htdocs/core/lib/xcal.lib.php
+++ b/htdocs/core/lib/xcal.lib.php
@@ -519,4 +519,3 @@ function quotedPrintDecode($str)
 	return trim($out);
 }
 
-?>
diff --git a/htdocs/core/login/functions_dolibarr.php b/htdocs/core/login/functions_dolibarr.php
index b75cc648a6ee997d52350013e1b5e55af394f291..400b57657196766aae413f131af88f94579c7d56 100644
--- a/htdocs/core/login/functions_dolibarr.php
+++ b/htdocs/core/login/functions_dolibarr.php
@@ -138,4 +138,3 @@ function check_user_password_dolibarr($usertotest,$passwordtotest,$entitytotest=
 }
 
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/menus/standard/auguria_menu.php b/htdocs/core/menus/standard/auguria_menu.php
index f9f08cbf91e18cdf4f192b850129bc3b2a19f22d..ddb28c5864810a69246927945f930ae3920fd70c 100644
--- a/htdocs/core/menus/standard/auguria_menu.php
+++ b/htdocs/core/menus/standard/auguria_menu.php
@@ -249,4 +249,3 @@ class MenuManager
     }
 }
 
-?>
diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php
index 6b98a70d8a16477b0f5f1c73d704cb958c6229a8..99c53ac089fb59ecde2ac7aa3a25b007b8ece58f 100644
--- a/htdocs/core/menus/standard/eldy.lib.php
+++ b/htdocs/core/menus/standard/eldy.lib.php
@@ -1381,4 +1381,3 @@ function dol_eldy_showmenu($type_user, &$menuentry, &$listofmodulesforexternal)
 	return 1;
 }
 
-?>
diff --git a/htdocs/core/menus/standard/eldy_menu.php b/htdocs/core/menus/standard/eldy_menu.php
index 5c6aed3188085a3759539dabc04dba33a3da65c6..e7e76ed7669ad6550c6e20cbf17874a2bdb1142c 100644
--- a/htdocs/core/menus/standard/eldy_menu.php
+++ b/htdocs/core/menus/standard/eldy_menu.php
@@ -223,4 +223,3 @@ class MenuManager
 
 }
 
-?>
diff --git a/htdocs/core/menus/standard/empty.php b/htdocs/core/menus/standard/empty.php
index cc1fb691c21e136a45c4ec73792de54870a0c4a5..f316d3349280c3e7cf5769c187b9f46ff3a4d8fe 100644
--- a/htdocs/core/menus/standard/empty.php
+++ b/htdocs/core/menus/standard/empty.php
@@ -347,4 +347,3 @@ function print_end_menu_array_empty()
 	print "\n";
 }
 
-?>
diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php
index be498b0441376df0faf7b39524a0d8977a0cc9b4..e25f4d0c71594dbc6509f912a651a8c0c80ce3de 100644
--- a/htdocs/core/modules/DolibarrModules.class.php
+++ b/htdocs/core/modules/DolibarrModules.class.php
@@ -1376,4 +1376,3 @@ abstract class DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/action/rapport.pdf.php b/htdocs/core/modules/action/rapport.pdf.php
index fcbff3308226b1ec4ead4f4465300e36a44a2437..b864205f2c96ec9184609d8218c7d25a347b9aeb 100644
--- a/htdocs/core/modules/action/rapport.pdf.php
+++ b/htdocs/core/modules/action/rapport.pdf.php
@@ -290,4 +290,3 @@ class CommActionRapport
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php
index 9d42acb47221557c6aec694a9eca25ffc5d68277..d476d2fa3f4bd724f77a1bfacb8795e39915a05d 100644
--- a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php
+++ b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php
@@ -168,4 +168,3 @@ class modPhpbarcode extends ModeleBarCode
 
 }
 
-?>
diff --git a/htdocs/core/modules/barcode/mod_barcode_product_standard.php b/htdocs/core/modules/barcode/mod_barcode_product_standard.php
index 53a6d3caf3507d3708dafba408a796b8cc3d4cdd..37273397ee66f2893164a2c93f10e7d71a249c6b 100644
--- a/htdocs/core/modules/barcode/mod_barcode_product_standard.php
+++ b/htdocs/core/modules/barcode/mod_barcode_product_standard.php
@@ -280,4 +280,3 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
 
 }
 
-?>
diff --git a/htdocs/core/modules/barcode/modules_barcode.class.php b/htdocs/core/modules/barcode/modules_barcode.class.php
index 345ed5ef16d4ae90634e4d3a76563caff85fef7b..5305ad53cd2b4a6f879023b66c1f673ee0478114 100644
--- a/htdocs/core/modules/barcode/modules_barcode.class.php
+++ b/htdocs/core/modules/barcode/modules_barcode.class.php
@@ -173,4 +173,3 @@ abstract class ModeleNumRefBarCode
     
 }
 
-?>
diff --git a/htdocs/core/modules/cheque/pdf/modules_chequereceipts.php b/htdocs/core/modules/cheque/pdf/modules_chequereceipts.php
index 699a321690dc0a3e51e381cc6b81dece95f79d4a..1fde7ef8bdb74a7149b03dc151c3f54bc41fea55 100644
--- a/htdocs/core/modules/cheque/pdf/modules_chequereceipts.php
+++ b/htdocs/core/modules/cheque/pdf/modules_chequereceipts.php
@@ -128,4 +128,3 @@ function chequereceipt_pdf_create($db, $id, $message, $modele, $outputlangs)
 	}
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php
index ddc2b80f2334370b0e182241d346e204e7feeb42..294d3a4940972cd6c5dda2a805845b7837920311 100644
--- a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php
+++ b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php
@@ -599,4 +599,3 @@ class doc_generic_order_odt extends ModelePDFCommandes
 
 }
 
-?>
diff --git a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php
index e7b8f320ba9669171c490786d9ebac68967a0f54..0030cbd8481120d22a8adaf1053c8a3ce8d14059 100644
--- a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php
+++ b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php
@@ -1276,4 +1276,3 @@ class pdf_einstein extends ModelePDFCommandes
 
 }
 
-?>
diff --git a/htdocs/core/modules/commande/doc/pdf_proforma.modules.php b/htdocs/core/modules/commande/doc/pdf_proforma.modules.php
index 7ea8ebb2e557b49fd9f2c1a8f512f5abca6e26ce..4d87d7e644856fc093e5834f6b7c7cdcd95374d7 100644
--- a/htdocs/core/modules/commande/doc/pdf_proforma.modules.php
+++ b/htdocs/core/modules/commande/doc/pdf_proforma.modules.php
@@ -1233,4 +1233,3 @@ class pdf_proforma extends ModelePDFCommandes
 
 }
 
-?>
diff --git a/htdocs/core/modules/commande/mod_commande_marbre.php b/htdocs/core/modules/commande/mod_commande_marbre.php
index c4117b5bfec7f9dee0c6889b91785898826d2454..2ccbff754917c125cddeb15cbe86968cdac3e897 100644
--- a/htdocs/core/modules/commande/mod_commande_marbre.php
+++ b/htdocs/core/modules/commande/mod_commande_marbre.php
@@ -146,4 +146,3 @@ class mod_commande_marbre extends ModeleNumRefCommandes
 	}
 
 }
-?>
diff --git a/htdocs/core/modules/commande/mod_commande_saphir.php b/htdocs/core/modules/commande/mod_commande_saphir.php
index b5152614357c39624b17a7dc0eadb2bc643bb70e..87ba0d57c9846998bc2580f9f6a2a8ed031d0954 100644
--- a/htdocs/core/modules/commande/mod_commande_saphir.php
+++ b/htdocs/core/modules/commande/mod_commande_saphir.php
@@ -141,4 +141,3 @@ class mod_commande_saphir extends ModeleNumRefCommandes
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/contract/doc/pdf_strato.modules.php b/htdocs/core/modules/contract/doc/pdf_strato.modules.php
index 280e02120c7d7e90843b5ab37eed1ea4182e3aa8..57d86558bf3d2e45fea217d8ae7289824a2b750c 100644
--- a/htdocs/core/modules/contract/doc/pdf_strato.modules.php
+++ b/htdocs/core/modules/contract/doc/pdf_strato.modules.php
@@ -616,4 +616,3 @@ class pdf_strato extends ModelePDFContract
 
 }
 
-?>
diff --git a/htdocs/core/modules/contract/mod_contract_magre.php b/htdocs/core/modules/contract/mod_contract_magre.php
index 09265b1ef2a59a4a4d18d1ccb6d7ed1d974f67b5..8281552b45938dc96dfa31a0a8a2077f6d9cdd96 100644
--- a/htdocs/core/modules/contract/mod_contract_magre.php
+++ b/htdocs/core/modules/contract/mod_contract_magre.php
@@ -130,4 +130,3 @@ class mod_contract_magre extends ModelNumRefContracts
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/contract/modules_contract.php b/htdocs/core/modules/contract/modules_contract.php
index fb03a8a811567fcc1bb4a165cce092cda80bc9d2..9c54ed4a460a220d75d2b6f06a20f81a2ae188f2 100644
--- a/htdocs/core/modules/contract/modules_contract.php
+++ b/htdocs/core/modules/contract/modules_contract.php
@@ -249,4 +249,3 @@ function contract_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0
 		return 0;
 	}
 }
-?>
diff --git a/htdocs/core/modules/dons/html_cerfafr.modules.php b/htdocs/core/modules/dons/html_cerfafr.modules.php
index 5a0a5c24894e5c07be5c1b04b18785e127d8b3c8..e999124300eaa93563633435a5cc287accd6a7d5 100644
--- a/htdocs/core/modules/dons/html_cerfafr.modules.php
+++ b/htdocs/core/modules/dons/html_cerfafr.modules.php
@@ -194,4 +194,3 @@ class html_cerfafr extends ModeleDon
     }
 }
 
-?>
diff --git a/htdocs/core/modules/dons/modules_don.php b/htdocs/core/modules/dons/modules_don.php
index 1527b134a8d98dc5b9ddb34e0c34e582c1a39912..c06494fc50195d5c14aa276adc6dcd70207bacbd 100644
--- a/htdocs/core/modules/dons/modules_don.php
+++ b/htdocs/core/modules/dons/modules_don.php
@@ -249,4 +249,3 @@ function don_create($db, $id, $message, $modele, $outputlangs, $hidedetails=0, $
     }
 }
 
-?>
diff --git a/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php b/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
index e5162fb59041708a3497a824e97274f834cee133..f9a35bb47b2d6f944b66170696c7e483ab2423e3 100644
--- a/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
+++ b/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
@@ -589,4 +589,3 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
 
 }
 
-?>
diff --git a/htdocs/core/modules/expedition/doc/pdf_merou.modules.php b/htdocs/core/modules/expedition/doc/pdf_merou.modules.php
index 3de9a45f45d4e5527466c7c0a6f50835650124c4..2d15f16ab78b313f180408312904222de7cca641 100644
--- a/htdocs/core/modules/expedition/doc/pdf_merou.modules.php
+++ b/htdocs/core/modules/expedition/doc/pdf_merou.modules.php
@@ -626,4 +626,3 @@ class pdf_merou extends ModelePdfExpedition
 		$pdf->MultiCell($blW,2, $carac_client, 0, 'L');
 	}
 }
-?>
diff --git a/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php b/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
index caf6c69ceae6ba759341686997f29153c323741a..d75e8d203e536fff4285f845f12295906bb424f1 100644
--- a/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
+++ b/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
@@ -658,4 +658,3 @@ class pdf_rouget extends ModelePdfExpedition
 
 }
 
-?>
diff --git a/htdocs/core/modules/expedition/mod_expedition_ribera.php b/htdocs/core/modules/expedition/mod_expedition_ribera.php
index f40d3d361a02481045c639c3eb407412d86f5b3f..c92ea93e6a2fd925b4bdcdbc59e38c782d4b4e78 100644
--- a/htdocs/core/modules/expedition/mod_expedition_ribera.php
+++ b/htdocs/core/modules/expedition/mod_expedition_ribera.php
@@ -130,4 +130,3 @@ class mod_expedition_ribera extends ModelNumRefExpedition
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/expedition/modules_expedition.php b/htdocs/core/modules/expedition/modules_expedition.php
index 9a56b85582d6464a297952abd95d928cebe37f61..ceddd5064e1bccd35710e6d4c9ef7145c09e8da3 100644
--- a/htdocs/core/modules/expedition/modules_expedition.php
+++ b/htdocs/core/modules/expedition/modules_expedition.php
@@ -254,4 +254,3 @@ function expedition_pdf_create($db, $object, $modele, $outputlangs)
 		return 0;
     }
 }
-?>
diff --git a/htdocs/core/modules/export/export_csv.modules.php b/htdocs/core/modules/export/export_csv.modules.php
index 4d29682fdd3ea16959c9cc75a34ee414ba952e71..ce058a934551298b211680f5691a14ff337b1a98 100644
--- a/htdocs/core/modules/export/export_csv.modules.php
+++ b/htdocs/core/modules/export/export_csv.modules.php
@@ -321,4 +321,3 @@ class ExportCsv extends ModeleExports
 
 }
 
-?>
diff --git a/htdocs/core/modules/export/export_excel.modules.php b/htdocs/core/modules/export/export_excel.modules.php
index 3e158035cfaa5b8cc28e39984d991c4f13a39eec..46ab465f42ef0c8f41eb79b20b1d5651db982004 100644
--- a/htdocs/core/modules/export/export_excel.modules.php
+++ b/htdocs/core/modules/export/export_excel.modules.php
@@ -460,4 +460,3 @@ class ExportExcel extends ModeleExports
     }
 }
 
-?>
diff --git a/htdocs/core/modules/export/export_excel2007.modules.php b/htdocs/core/modules/export/export_excel2007.modules.php
index 5dcf72cf60e70b5103db461a3c669e045e1b39af..9d704ce8fbe94e3baaef406be14b99d634f60dd3 100644
--- a/htdocs/core/modules/export/export_excel2007.modules.php
+++ b/htdocs/core/modules/export/export_excel2007.modules.php
@@ -100,4 +100,3 @@ class ExportExcel2007 extends ExportExcel
 
 }
 
-?>
diff --git a/htdocs/core/modules/export/export_tsv.modules.php b/htdocs/core/modules/export/export_tsv.modules.php
index 12062b94804c3077e8cede5aa32b30dfb083acd5..409102fd85719e4ab3dad9c3afa10a919200cab9 100644
--- a/htdocs/core/modules/export/export_tsv.modules.php
+++ b/htdocs/core/modules/export/export_tsv.modules.php
@@ -283,4 +283,3 @@ class ExportTsv extends ModeleExports
 
 }
 
-?>
diff --git a/htdocs/core/modules/export/modules_export.php b/htdocs/core/modules/export/modules_export.php
index 47ba1609f5d0ead3ce1d3d8f30d53e30f01cd568..62599016b3d22d4b39af58aa4640d1aeb7d1f0c2 100644
--- a/htdocs/core/modules/export/modules_export.php
+++ b/htdocs/core/modules/export/modules_export.php
@@ -162,4 +162,3 @@ class ModeleExports extends CommonDocGenerator    // This class can't be abstrac
 }
 
 
-?>
diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php
index 3651d106951b228594eef0b28d5a033d491630f5..a7c83a8fb1bb609dbaa13a9264e8a64ed31374a4 100644
--- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php
+++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php
@@ -571,4 +571,3 @@ class doc_generic_invoice_odt extends ModelePDFFactures
 
 }
 
-?>
diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
index eecf69eed8dc6181f0297d435e57ad35bb99c45d..d9772fc879686ef8bf56218d19be0baa20f1c2ee 100644
--- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
+++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
@@ -1462,4 +1462,3 @@ class pdf_crabe extends ModelePDFFactures
 
 }
 
-?>
diff --git a/htdocs/core/modules/facture/mod_facture_mars.php b/htdocs/core/modules/facture/mod_facture_mars.php
index 21dc49c32f3cf949cd16f5288b9a879321b5c7bc..008229cab1ed12aa43c12d9c2eeb7a0e3338c6ad 100644
--- a/htdocs/core/modules/facture/mod_facture_mars.php
+++ b/htdocs/core/modules/facture/mod_facture_mars.php
@@ -205,4 +205,3 @@ class mod_facture_mars extends ModeleNumRefFactures
 
 }
 
-?>
diff --git a/htdocs/core/modules/facture/mod_facture_mercure.php b/htdocs/core/modules/facture/mod_facture_mercure.php
index 3ce1326806f6da16c8a31acec2ab47f2f707cb00..2c873412da5fcccc8eb563e413c8ce2f57b59f82 100644
--- a/htdocs/core/modules/facture/mod_facture_mercure.php
+++ b/htdocs/core/modules/facture/mod_facture_mercure.php
@@ -178,4 +178,3 @@ class mod_facture_mercure extends ModeleNumRefFactures
     }
 
 }
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/facture/modules_facture.php b/htdocs/core/modules/facture/modules_facture.php
index 31ec4698bb88d4abe44ea429018e78186775b205..3253ed00ef9665db0aa2a266db8f61ffe1d21dcf 100644
--- a/htdocs/core/modules/facture/modules_facture.php
+++ b/htdocs/core/modules/facture/modules_facture.php
@@ -258,4 +258,3 @@ function facture_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
 	}
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/fichinter/mod_arctic.php b/htdocs/core/modules/fichinter/mod_arctic.php
index f2d89bf63c6a7c1586afaee261c6ad63318de4d5..ab06d1417e6646a4399b4a5fe444bd421eedf9f4 100644
--- a/htdocs/core/modules/fichinter/mod_arctic.php
+++ b/htdocs/core/modules/fichinter/mod_arctic.php
@@ -140,4 +140,3 @@ class mod_arctic extends ModeleNumRefFicheinter
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/fichinter/modules_fichinter.php b/htdocs/core/modules/fichinter/modules_fichinter.php
index 35e5fd4ed33fa9e901d739f8d21cc3bade3cc214..51084d7b313a804ad83ace50d7caba31f6ec13c9 100644
--- a/htdocs/core/modules/fichinter/modules_fichinter.php
+++ b/htdocs/core/modules/fichinter/modules_fichinter.php
@@ -246,4 +246,3 @@ function fichinter_create($db, $object, $modele, $outputlangs, $hidedetails=0, $
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/import/import_csv.modules.php b/htdocs/core/modules/import/import_csv.modules.php
index 0a812096fa49988a054f26e9e3e7641947c1e8fc..e83f812e8c43a1f37e217eefc2943d12fc1da97a 100644
--- a/htdocs/core/modules/import/import_csv.modules.php
+++ b/htdocs/core/modules/import/import_csv.modules.php
@@ -671,4 +671,3 @@ function cleansep($value)
 };
 
 
-?>
diff --git a/htdocs/core/modules/import/modules_import.php b/htdocs/core/modules/import/modules_import.php
index 62767f0c11a927109dd343cddf86dfdc61a24138..49fb7decd694e399977ad0245949b392ea676978 100644
--- a/htdocs/core/modules/import/modules_import.php
+++ b/htdocs/core/modules/import/modules_import.php
@@ -178,4 +178,3 @@ class ModeleImports
 
 }
 
-?>
diff --git a/htdocs/core/modules/livraison/mod_livraison_jade.php b/htdocs/core/modules/livraison/mod_livraison_jade.php
index 43b2c2e4cf85c1cc2955bdc64eb7a477bc8df014..0d7e2e9a534e415e24e5f64bbc908a1bd5c8186f 100644
--- a/htdocs/core/modules/livraison/mod_livraison_jade.php
+++ b/htdocs/core/modules/livraison/mod_livraison_jade.php
@@ -154,4 +154,3 @@ class mod_livraison_jade extends ModeleNumRefDeliveryOrder
     }
 
 }
-?>
diff --git a/htdocs/core/modules/livraison/mod_livraison_saphir.php b/htdocs/core/modules/livraison/mod_livraison_saphir.php
index da2f8bdcfb18f6bb8c82396aa2ac695e4d91f06d..5f8a6b936862d4206810a97256067d5702d7ae91 100644
--- a/htdocs/core/modules/livraison/mod_livraison_saphir.php
+++ b/htdocs/core/modules/livraison/mod_livraison_saphir.php
@@ -153,4 +153,3 @@ class mod_livraison_saphir extends ModeleNumRefDeliveryOrder
 
 }
 
-?>
diff --git a/htdocs/core/modules/livraison/modules_livraison.php b/htdocs/core/modules/livraison/modules_livraison.php
index bb4992fb3e2f1a2471b5ed8cd43ddb52ae7a6ad7..89b226ec06606c14fa8c0a95b426927ee8e5eec6 100644
--- a/htdocs/core/modules/livraison/modules_livraison.php
+++ b/htdocs/core/modules/livraison/modules_livraison.php
@@ -251,4 +251,3 @@ function delivery_order_pdf_create($db, $object, $modele, $outputlangs='')
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php b/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php
index 497663bf1d5a66e3e5835f1e098339b0234dbef1..3d04c422c883e3f9c2eb6d807e1277abed507a8b 100644
--- a/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php
+++ b/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php
@@ -855,4 +855,3 @@ class pdf_typhon extends ModelePDFDeliveryOrder
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/contacts1.modules.php b/htdocs/core/modules/mailings/contacts1.modules.php
index fd0f2e3ddf6e2f50be450b54160d01dbe3f49065..5143ffd3fc3fe565a703041362bd9b39d3f18811 100644
--- a/htdocs/core/modules/mailings/contacts1.modules.php
+++ b/htdocs/core/modules/mailings/contacts1.modules.php
@@ -263,4 +263,3 @@ class mailing_contacts1 extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/contacts2.modules.php b/htdocs/core/modules/mailings/contacts2.modules.php
index 0b13c9ec7efa71f29888e873637b6fd07b5e997a..c1018284a4ca1e5a0e927c17f34b61e41e1b1c23 100644
--- a/htdocs/core/modules/mailings/contacts2.modules.php
+++ b/htdocs/core/modules/mailings/contacts2.modules.php
@@ -217,4 +217,3 @@ class mailing_contacts2 extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/contacts3.modules.php b/htdocs/core/modules/mailings/contacts3.modules.php
index 6262d4c9fe5e51f52bf68a2f6991c159699a1ae1..bbc763af06d4439b341923ce2285ceb9fe03e244 100644
--- a/htdocs/core/modules/mailings/contacts3.modules.php
+++ b/htdocs/core/modules/mailings/contacts3.modules.php
@@ -238,4 +238,3 @@ class mailing_contacts3 extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/contacts4.modules.php b/htdocs/core/modules/mailings/contacts4.modules.php
index 4138a605caeacbb2785acaf0e1b8a8ea0f963a5d..780393cc908489a34c00efac7d7f202b541fbdcd 100644
--- a/htdocs/core/modules/mailings/contacts4.modules.php
+++ b/htdocs/core/modules/mailings/contacts4.modules.php
@@ -245,4 +245,3 @@ class mailing_contacts4 extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/example.modules.php b/htdocs/core/modules/mailings/example.modules.php
index 3251c330808fc8125435bea99517e485abb9fbbc..a7eb1b0b839b25530b3adbf1f1679452ddb6e8de 100644
--- a/htdocs/core/modules/mailings/example.modules.php
+++ b/htdocs/core/modules/mailings/example.modules.php
@@ -143,4 +143,3 @@ class mailing_example extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/fraise.modules.php b/htdocs/core/modules/mailings/fraise.modules.php
index 7daaea1ab0198a8ffc9e4cc57c48c497b87ceb20..9c4824106865911199249e635367c09594c67731 100644
--- a/htdocs/core/modules/mailings/fraise.modules.php
+++ b/htdocs/core/modules/mailings/fraise.modules.php
@@ -230,4 +230,3 @@ class mailing_fraise extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/framboise.modules.php b/htdocs/core/modules/mailings/framboise.modules.php
index 8b4e92ddbe820e388f24c4b4f90079876ed3d869..815fc4bf4eb8c31dfbac0a5959be579f13efb177 100644
--- a/htdocs/core/modules/mailings/framboise.modules.php
+++ b/htdocs/core/modules/mailings/framboise.modules.php
@@ -231,4 +231,3 @@ class mailing_framboise extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/modules_mailings.php b/htdocs/core/modules/mailings/modules_mailings.php
index 6f4a573ccfc291e4fa01888a72d68455ffb2d3f2..b8482a24c3e0f2f44ad8a27c3fb542c814156573 100644
--- a/htdocs/core/modules/mailings/modules_mailings.php
+++ b/htdocs/core/modules/mailings/modules_mailings.php
@@ -239,4 +239,3 @@ class MailingTargets    // This can't be abstract as it is used for some method
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/pomme.modules.php b/htdocs/core/modules/mailings/pomme.modules.php
index 17d211dd06c9032bfed22b962284af03ea30f11f..47da1d870b732bf0373e33325b540477f0004efc 100644
--- a/htdocs/core/modules/mailings/pomme.modules.php
+++ b/htdocs/core/modules/mailings/pomme.modules.php
@@ -208,4 +208,3 @@ class mailing_pomme extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/thirdparties.modules.php b/htdocs/core/modules/mailings/thirdparties.modules.php
index 1d955e65ddc637dcb01d3ee7ac2a3b79d0a34d5e..ecb14ce6ed5b9f3f66eadae880e756016792ae50 100644
--- a/htdocs/core/modules/mailings/thirdparties.modules.php
+++ b/htdocs/core/modules/mailings/thirdparties.modules.php
@@ -249,4 +249,3 @@ class mailing_thirdparties extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php b/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php
index f3d0e4cc476283852417a7a8f52c0873bfcbc846..fc135b77df5a544222968943606769cb9229a006 100644
--- a/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php
+++ b/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php
@@ -239,4 +239,3 @@ class mailing_thirdparties_services_expired extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/xinputfile.modules.php b/htdocs/core/modules/mailings/xinputfile.modules.php
index f6f47db95bb79f400ed0ebf8bb7984ff201ea03d..3c192404e3c2887125a1b46bf81ac16a680cf051 100644
--- a/htdocs/core/modules/mailings/xinputfile.modules.php
+++ b/htdocs/core/modules/mailings/xinputfile.modules.php
@@ -225,4 +225,3 @@ class mailing_xinputfile extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/mailings/xinputuser.modules.php b/htdocs/core/modules/mailings/xinputuser.modules.php
index a1c60bf527c2dc854c904b1cc2831bde684bbd6d..1fef6c09b4617e8bbd9b07c0288e157a11af2511 100644
--- a/htdocs/core/modules/mailings/xinputuser.modules.php
+++ b/htdocs/core/modules/mailings/xinputuser.modules.php
@@ -162,4 +162,3 @@ class mailing_xinputuser extends MailingTargets
 
 }
 
-?>
diff --git a/htdocs/core/modules/member/doc/pdf_standard.class.php b/htdocs/core/modules/member/doc/pdf_standard.class.php
index a7d23402d2323c2274825e4770be7856dae7f98f..2a7f17733ac952bea0b2263e8c09b98071e18efb 100644
--- a/htdocs/core/modules/member/doc/pdf_standard.class.php
+++ b/htdocs/core/modules/member/doc/pdf_standard.class.php
@@ -559,4 +559,3 @@ class pdf_standard
 	}
 
 }
-?>
diff --git a/htdocs/core/modules/member/modules_cards.php b/htdocs/core/modules/member/modules_cards.php
index 5732cbd829a8dde881dad1daabb870e46cc45f4c..0b5d9e482acc70e689ada76039aa4a7f99c9175c 100644
--- a/htdocs/core/modules/member/modules_cards.php
+++ b/htdocs/core/modules/member/modules_cards.php
@@ -163,4 +163,3 @@ function members_card_pdf_create($db, $arrayofmembers, $modele, $outputlangs)
 
 }
 
-?>
diff --git a/htdocs/core/modules/modAccounting.class.php b/htdocs/core/modules/modAccounting.class.php
index 93fd939e10e6da3bb5036d610b73ee49d8f13679..489f07378a91543843b15b586ba9e0e486e2c712 100644
--- a/htdocs/core/modules/modAccounting.class.php
+++ b/htdocs/core/modules/modAccounting.class.php
@@ -171,4 +171,3 @@ class modAccounting extends DolibarrModules
 		return $this->_remove($sql,$options);
 	}
 }
-?>
diff --git a/htdocs/core/modules/modAdherent.class.php b/htdocs/core/modules/modAdherent.class.php
index 1cfd593522b4a7843d84b16a165f25f8cd56d5f8..40da5f73db84d1ac680dfbf8d8d6adf1209ff6c9 100644
--- a/htdocs/core/modules/modAdherent.class.php
+++ b/htdocs/core/modules/modAdherent.class.php
@@ -262,4 +262,3 @@ class modAdherent extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modAgenda.class.php b/htdocs/core/modules/modAgenda.class.php
index 6424bcb5194dcf2761c416da980d24078f704d56..235d0b194adb05deb0babe90cbfcc7f48fc7e964 100644
--- a/htdocs/core/modules/modAgenda.class.php
+++ b/htdocs/core/modules/modAgenda.class.php
@@ -427,4 +427,3 @@ class modAgenda extends DolibarrModules
 	}
 
 }
-?>
diff --git a/htdocs/core/modules/modBanque.class.php b/htdocs/core/modules/modBanque.class.php
index 04259aec337456b3491b3545889fc8cc96ad2844..43fbe916c4777dde9e8563be14edb83c97a11bbd 100644
--- a/htdocs/core/modules/modBanque.class.php
+++ b/htdocs/core/modules/modBanque.class.php
@@ -226,4 +226,3 @@ class modBanque extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modBarcode.class.php b/htdocs/core/modules/modBarcode.class.php
index c51e177f97c5909a66a54db206f679e2bf243676..129b7966d4592351f68e1b4d11c6c637667fe804 100644
--- a/htdocs/core/modules/modBarcode.class.php
+++ b/htdocs/core/modules/modBarcode.class.php
@@ -159,4 +159,3 @@ class modBarcode extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modBookmark.class.php b/htdocs/core/modules/modBookmark.class.php
index 3ae2f0eee128cbcb6f39afc585a21d5ec9cac4a1..587429aa830d386adb8afe328a03a976e1472f93 100644
--- a/htdocs/core/modules/modBookmark.class.php
+++ b/htdocs/core/modules/modBookmark.class.php
@@ -131,4 +131,3 @@ class modBookmark extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modBoutique.class.php b/htdocs/core/modules/modBoutique.class.php
index c20777cfc2b6260931b02ab4d24a117ea493dd43..837dd8c6c24ab4e5624539bda49959a32d09970d 100644
--- a/htdocs/core/modules/modBoutique.class.php
+++ b/htdocs/core/modules/modBoutique.class.php
@@ -116,4 +116,3 @@ class modBoutique extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modCashDesk.class.php b/htdocs/core/modules/modCashDesk.class.php
index d07d8c5826323ffa3bdd85d1d4d3599e10e00422..d6deb4ab51f37f644f5bec55b1441a0583c90235 100644
--- a/htdocs/core/modules/modCashDesk.class.php
+++ b/htdocs/core/modules/modCashDesk.class.php
@@ -156,4 +156,3 @@ class modCashDesk extends DolibarrModules
   	}
 
 }
-?>
diff --git a/htdocs/core/modules/modCategorie.class.php b/htdocs/core/modules/modCategorie.class.php
index 33dba7e6ee3d1111f170df0e01ac33f959823ee1..9fd4f6602851b85bd68112707e130cee5c92946b 100644
--- a/htdocs/core/modules/modCategorie.class.php
+++ b/htdocs/core/modules/modCategorie.class.php
@@ -349,4 +349,3 @@ class modCategorie extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modClickToDial.class.php b/htdocs/core/modules/modClickToDial.class.php
index aaef5d846a7ad6d150b369e71eec2ef5c5c32e12..872700c18170374335af80cd9256e483792c1987 100644
--- a/htdocs/core/modules/modClickToDial.class.php
+++ b/htdocs/core/modules/modClickToDial.class.php
@@ -108,4 +108,3 @@ class modClickToDial extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modCommande.class.php b/htdocs/core/modules/modCommande.class.php
index 8a7a7789d3f664407f4038d3df05c3d19fbbb704..22197c9beff795c9381749fdc4ab88561d012a3b 100644
--- a/htdocs/core/modules/modCommande.class.php
+++ b/htdocs/core/modules/modCommande.class.php
@@ -247,4 +247,3 @@ class modCommande extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modComptabilite.class.php b/htdocs/core/modules/modComptabilite.class.php
index 72a55f3957a01a5b6947a9ac3a6b986da76237a4..f4f943bc3cc8407ab0c7fb1ce8d3d4ba6cddac9b 100644
--- a/htdocs/core/modules/modComptabilite.class.php
+++ b/htdocs/core/modules/modComptabilite.class.php
@@ -156,4 +156,3 @@ class modComptabilite extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modContrat.class.php b/htdocs/core/modules/modContrat.class.php
index 48c94ff3ad31c2332c02499cebb4d01f99bc55fa..b1a4e7e63cfdac41ef30e94bada73b4dad5378ba 100644
--- a/htdocs/core/modules/modContrat.class.php
+++ b/htdocs/core/modules/modContrat.class.php
@@ -153,4 +153,3 @@ class modContrat extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modCron.class.php b/htdocs/core/modules/modCron.class.php
index c7c221d085632b07b2320fefb8f559ccaa5c6bcf..fafec485b600522c012be9f494b7457f00549c5f 100644
--- a/htdocs/core/modules/modCron.class.php
+++ b/htdocs/core/modules/modCron.class.php
@@ -173,4 +173,3 @@ class modCron extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modDeplacement.class.php b/htdocs/core/modules/modDeplacement.class.php
index 47000d87f02d31b06674f657f35e2f3d68a2329a..24536bc5a68bc3da6b51bb7e347fed8ab407c793 100644
--- a/htdocs/core/modules/modDeplacement.class.php
+++ b/htdocs/core/modules/modDeplacement.class.php
@@ -156,4 +156,3 @@ class modDeplacement extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modDocument.class.php b/htdocs/core/modules/modDocument.class.php
index 405ef8cce7c2c9e1ef1d60ec8dd3459031e342ca..431265dade2990c95cea3afe86007f0d7101ac96 100644
--- a/htdocs/core/modules/modDocument.class.php
+++ b/htdocs/core/modules/modDocument.class.php
@@ -132,4 +132,3 @@ class modDocument extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modDon.class.php b/htdocs/core/modules/modDon.class.php
index 6c6c6268d6f737307bf944b7aa172ba8a504ee86..931aa2ec325c955555bba84b0e477207355c0137 100644
--- a/htdocs/core/modules/modDon.class.php
+++ b/htdocs/core/modules/modDon.class.php
@@ -140,4 +140,3 @@ class modDon  extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modECM.class.php b/htdocs/core/modules/modECM.class.php
index 3e365ba06e11bfcde1f5f2293ac067cc9dc3f8be..60d76f2e995fbed6a5ead8d5c8e21a786c6bd81b 100644
--- a/htdocs/core/modules/modECM.class.php
+++ b/htdocs/core/modules/modECM.class.php
@@ -212,4 +212,3 @@ class modECM extends DolibarrModules
 
 }
 
-?>
diff --git a/htdocs/core/modules/modExpedition.class.php b/htdocs/core/modules/modExpedition.class.php
index bcdece7930fab6513b729bdec6864633e294b066..6af42b4203394163199b3b320dd31b4c38ef3d1f 100644
--- a/htdocs/core/modules/modExpedition.class.php
+++ b/htdocs/core/modules/modExpedition.class.php
@@ -294,4 +294,3 @@ class modExpedition extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modExport.class.php b/htdocs/core/modules/modExport.class.php
index bbdd897c435005fa6c3c6070f629ee3ec2f1bc19..ad2da537436eb9f2d0463aff432240877d3a4aa9 100644
--- a/htdocs/core/modules/modExport.class.php
+++ b/htdocs/core/modules/modExport.class.php
@@ -121,4 +121,3 @@ class modExport extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modExternalRss.class.php b/htdocs/core/modules/modExternalRss.class.php
index 5e7de7abea5aac04b405c8650e6de53e52e30a51..60ed479b34bfc65eedb222e3d34e7d3025acc52b 100644
--- a/htdocs/core/modules/modExternalRss.class.php
+++ b/htdocs/core/modules/modExternalRss.class.php
@@ -137,4 +137,3 @@ class modExternalRss extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modExternalSite.class.php b/htdocs/core/modules/modExternalSite.class.php
index f80a0812748a3f431b7e8a9a55fd31398dcf7931..61eebe77f8073f9fe44347e2c6838a76704316f8 100644
--- a/htdocs/core/modules/modExternalSite.class.php
+++ b/htdocs/core/modules/modExternalSite.class.php
@@ -150,4 +150,3 @@ class modExternalSite extends DolibarrModules
 
 }
 
-?>
diff --git a/htdocs/core/modules/modFTP.class.php b/htdocs/core/modules/modFTP.class.php
index ce8f26b52da3edb7ee13d0f16550db2942ec664c..2d6e1689ba9f407def53df8487f2a7719722acac 100644
--- a/htdocs/core/modules/modFTP.class.php
+++ b/htdocs/core/modules/modFTP.class.php
@@ -159,4 +159,3 @@ class modFTP extends DolibarrModules
 
 }
 
-?>
diff --git a/htdocs/core/modules/modFacture.class.php b/htdocs/core/modules/modFacture.class.php
index 50db03f846c0d2c1bd4c9d579295ea6821d91d0d..7b8d8d355ff7ab0030370fa187c947364bee3759 100644
--- a/htdocs/core/modules/modFacture.class.php
+++ b/htdocs/core/modules/modFacture.class.php
@@ -341,4 +341,3 @@ class modFacture extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modFckeditor.class.php b/htdocs/core/modules/modFckeditor.class.php
index 023b4ba615348ecaae1c0f3c1bced4029230462d..8f81bf74f7bdbe889ac58c596519bd240e206512 100644
--- a/htdocs/core/modules/modFckeditor.class.php
+++ b/htdocs/core/modules/modFckeditor.class.php
@@ -116,4 +116,3 @@ class modFckeditor extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modFicheinter.class.php b/htdocs/core/modules/modFicheinter.class.php
index e2bfe2c4dfa4e4bdf2504a7cacce0d2b6b0bb755..f54e4fef4975817216ee8bef67faa0fa56336686 100644
--- a/htdocs/core/modules/modFicheinter.class.php
+++ b/htdocs/core/modules/modFicheinter.class.php
@@ -192,4 +192,3 @@ class modFicheinter extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modFournisseur.class.php b/htdocs/core/modules/modFournisseur.class.php
index f62cba32a813ed247f0236d5b3befd8e2acc0dd3..92c27bb11f94085fccfa50d001cbcbebb8e200ab 100644
--- a/htdocs/core/modules/modFournisseur.class.php
+++ b/htdocs/core/modules/modFournisseur.class.php
@@ -412,4 +412,3 @@ class modFournisseur extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modGeoIPMaxmind.class.php b/htdocs/core/modules/modGeoIPMaxmind.class.php
index f2c1adb6c1d7f94d0902c064f1bceefd39eca8fd..06d9d8f7f5e622bc2b1f6e554c5fd49872ff203e 100644
--- a/htdocs/core/modules/modGeoIPMaxmind.class.php
+++ b/htdocs/core/modules/modGeoIPMaxmind.class.php
@@ -117,4 +117,3 @@ class modGeoIPMaxmind extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modGravatar.class.php b/htdocs/core/modules/modGravatar.class.php
index 9a8106619cb961eba7d3093729c666c8051946df..2f32818bb106116914785d4171e0dcee9c10cacf 100644
--- a/htdocs/core/modules/modGravatar.class.php
+++ b/htdocs/core/modules/modGravatar.class.php
@@ -211,4 +211,3 @@ class modGravatar extends DolibarrModules
 
 }
 
-?>
diff --git a/htdocs/core/modules/modHoliday.class.php b/htdocs/core/modules/modHoliday.class.php
index 984c9b51cf6b753f8c3f7e91d6720d2f14c3702c..4bf687c9704eed4c0fc0c24263f44887691cd964 100644
--- a/htdocs/core/modules/modHoliday.class.php
+++ b/htdocs/core/modules/modHoliday.class.php
@@ -311,4 +311,3 @@ class modHoliday extends DolibarrModules
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/modLabel.class.php b/htdocs/core/modules/modLabel.class.php
index 45d279e6bf4bc60e0ab006588a212fe04b9f5614..a5e8e42400876747713d5e8a2e965a5957fe9fe4 100644
--- a/htdocs/core/modules/modLabel.class.php
+++ b/htdocs/core/modules/modLabel.class.php
@@ -124,4 +124,3 @@ class modLabel extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modLdap.class.php b/htdocs/core/modules/modLdap.class.php
index f6ae053c07451ed5966685502929506004e20295..f7362ceefdd39974f2444ee878a08c26054a4bf5 100644
--- a/htdocs/core/modules/modLdap.class.php
+++ b/htdocs/core/modules/modLdap.class.php
@@ -122,4 +122,3 @@ class modLdap extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modMailing.class.php b/htdocs/core/modules/modMailing.class.php
index f940891b0e104493c70e6376d5047dd5e78abb24..045f857b574b893545fff85c43f19002db1e8992 100644
--- a/htdocs/core/modules/modMailing.class.php
+++ b/htdocs/core/modules/modMailing.class.php
@@ -164,4 +164,3 @@ class modMailing extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modMailmanSpip.class.php b/htdocs/core/modules/modMailmanSpip.class.php
index 4a4c39f3c0231ab17e3fafd7bad5147b076bbebf..95a3ecd03c42aa416f18df7f1957f54f7c341913 100644
--- a/htdocs/core/modules/modMailmanSpip.class.php
+++ b/htdocs/core/modules/modMailmanSpip.class.php
@@ -111,4 +111,3 @@ class modMailmanSpip extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modMargin.class.php b/htdocs/core/modules/modMargin.class.php
index f71fd6ed53f2a5df4d6cdcdc7c6621e57cc81b57..6a2444069960bcd9c47cb629876c17cb78ebc46d 100644
--- a/htdocs/core/modules/modMargin.class.php
+++ b/htdocs/core/modules/modMargin.class.php
@@ -164,4 +164,3 @@ class modMargin extends DolibarrModules
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/modOpenSurvey.class.php b/htdocs/core/modules/modOpenSurvey.class.php
index e780b235677760d13c769a2ea774a282aa24bb8b..44b9f9286940efb3b8f350554674e849e6b7d891 100644
--- a/htdocs/core/modules/modOpenSurvey.class.php
+++ b/htdocs/core/modules/modOpenSurvey.class.php
@@ -212,4 +212,3 @@ class modOpenSurvey extends DolibarrModules
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/modPaybox.class.php b/htdocs/core/modules/modPaybox.class.php
index b00de1a93f010275bd6d9428d7f6e812aec33a61..820bc1d19c13709ac543a5640bbf739b512d8501 100644
--- a/htdocs/core/modules/modPaybox.class.php
+++ b/htdocs/core/modules/modPaybox.class.php
@@ -207,4 +207,3 @@ class modPayBox extends DolibarrModules
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/modPrintIPP.class.php b/htdocs/core/modules/modPrintIPP.class.php
index 40ff282cbd0657b94e87c8254b5b262da7b4845a..d9e2166b4e6180aecbab283b4b0de55164510f16 100644
--- a/htdocs/core/modules/modPrintIPP.class.php
+++ b/htdocs/core/modules/modPrintIPP.class.php
@@ -152,4 +152,3 @@ class modPrintIPP extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modProduct.class.php b/htdocs/core/modules/modProduct.class.php
index 92bbdc6229816879b96ebd265564eea6218658ba..19d9ca500319b79c576a8731217811d7cd380790 100644
--- a/htdocs/core/modules/modProduct.class.php
+++ b/htdocs/core/modules/modProduct.class.php
@@ -354,4 +354,3 @@ class modProduct extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modProductBatch.class.php b/htdocs/core/modules/modProductBatch.class.php
index 03779f8d0ea29b83441ff46b9c06e242b73c5ea7..2209fffb4ad73e8164f8a2ff0c80cb1cc29999e2 100644
--- a/htdocs/core/modules/modProductBatch.class.php
+++ b/htdocs/core/modules/modProductBatch.class.php
@@ -134,4 +134,3 @@ class modProductBatch extends DolibarrModules
 
 }
 
-?>
diff --git a/htdocs/core/modules/modProjet.class.php b/htdocs/core/modules/modProjet.class.php
index 189df9c4b0dc5b50db22f7becdd5b733a66a489c..0d8a09aa7e5aa181b06e53f49500b3fc9a692f3e 100644
--- a/htdocs/core/modules/modProjet.class.php
+++ b/htdocs/core/modules/modProjet.class.php
@@ -368,4 +368,3 @@ class modProjet extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modPropale.class.php b/htdocs/core/modules/modPropale.class.php
index 642c5b9196d8b49a66ba350d6de5a106f5f32217..5e81edc87f583442ced0471aa816f82e5fbd42d6 100644
--- a/htdocs/core/modules/modPropale.class.php
+++ b/htdocs/core/modules/modPropale.class.php
@@ -243,4 +243,3 @@ class modPropale extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modSalaries.class.php b/htdocs/core/modules/modSalaries.class.php
index ede678137e3ce60bb0f7d48f003530b109560a66..9947cdce87cd12940becf5fb5a1971afcf35074a 100644
--- a/htdocs/core/modules/modSalaries.class.php
+++ b/htdocs/core/modules/modSalaries.class.php
@@ -174,4 +174,3 @@ class modSalaries extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modService.class.php b/htdocs/core/modules/modService.class.php
index 695ff596e6eec74cfc79a4fe30b75344dd30705b..2309bd7f06bbf900fced37a0669bc860080bc0d2 100644
--- a/htdocs/core/modules/modService.class.php
+++ b/htdocs/core/modules/modService.class.php
@@ -233,4 +233,3 @@ class modService extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modSkype.class.php b/htdocs/core/modules/modSkype.class.php
index c1c7d8aed763da32cf5a75c5bcd83a0e88dc7809..f010f3b769e1752107f1e00cece907dffee31b12 100644
--- a/htdocs/core/modules/modSkype.class.php
+++ b/htdocs/core/modules/modSkype.class.php
@@ -123,4 +123,3 @@ class modSkype extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modSociete.class.php b/htdocs/core/modules/modSociete.class.php
index 88fe8d2865cb288364dd5278eda227f6992461f0..87b60cd4ba67a333c543ef3505e7925fddb8b7aa 100644
--- a/htdocs/core/modules/modSociete.class.php
+++ b/htdocs/core/modules/modSociete.class.php
@@ -516,4 +516,3 @@ class modSociete extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modStock.class.php b/htdocs/core/modules/modStock.class.php
index 830247843fa4d696a9d415d11a83a5cac75a1bfe..8a13fff5bc93ec2935d3e2625a2295b35efa6b1a 100644
--- a/htdocs/core/modules/modStock.class.php
+++ b/htdocs/core/modules/modStock.class.php
@@ -211,4 +211,3 @@ class modStock extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modSyslog.class.php b/htdocs/core/modules/modSyslog.class.php
index 8f172fa97c9704b0f55ac7bfdb32857d72b3bfdf..563b2e31fa092393c34bdc78b45cd78b5e74e19f 100644
--- a/htdocs/core/modules/modSyslog.class.php
+++ b/htdocs/core/modules/modSyslog.class.php
@@ -114,4 +114,3 @@ class modSyslog extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modTax.class.php b/htdocs/core/modules/modTax.class.php
index 7934f9f4aa033dda088d89eb947a15c572cffcc8..f4942d567c9696153e0210e71c87da31ebc9c327 100644
--- a/htdocs/core/modules/modTax.class.php
+++ b/htdocs/core/modules/modTax.class.php
@@ -173,4 +173,3 @@ class modTax extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modUser.class.php b/htdocs/core/modules/modUser.class.php
index e0be7ece7440dd298520302853ba6bc66139618f..a59031b4a44a46e3c7288c994800681b41c7cd41 100644
--- a/htdocs/core/modules/modUser.class.php
+++ b/htdocs/core/modules/modUser.class.php
@@ -260,4 +260,3 @@ class modUser extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modWebServices.class.php b/htdocs/core/modules/modWebServices.class.php
index ba214eb3693d9c88b1b91c9100d3e0e2d171f297..9211d2749d096816e5b01227e7c668378fc19d51 100644
--- a/htdocs/core/modules/modWebServices.class.php
+++ b/htdocs/core/modules/modWebServices.class.php
@@ -119,4 +119,3 @@ class modWebServices extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/modWorkflow.class.php b/htdocs/core/modules/modWorkflow.class.php
index 7158690215438242d6d5d8a657377762677ee2c0..ed0f66e6455717eae2f9a6ad4b712f66a1040f6e 100644
--- a/htdocs/core/modules/modWorkflow.class.php
+++ b/htdocs/core/modules/modWorkflow.class.php
@@ -165,4 +165,3 @@ class modWorkflow extends DolibarrModules
     }
 
 }
-?>
diff --git a/htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php b/htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php
index 811333b1d8f4f98bb6ac442acc5eac89dc42d019..405ae03d7f5c6ae2a10e14921adda9c32cc56be7 100644
--- a/htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php
+++ b/htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php
@@ -537,4 +537,3 @@ class pdf_standardlabel
         return 1;
     }
 }
-?>
diff --git a/htdocs/core/modules/printsheet/modules_labels.php b/htdocs/core/modules/printsheet/modules_labels.php
index 4c4ebad6c3af0d35d0f585e8019a1434db958b76..d2594d75b2155bbd8a600880a08264ac41ce626c 100644
--- a/htdocs/core/modules/printsheet/modules_labels.php
+++ b/htdocs/core/modules/printsheet/modules_labels.php
@@ -162,4 +162,3 @@ function members_label_pdf_create($db, $arrayofrecords, $modele, $outputlangs, $
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/product/mod_codeproduct_leopard.php b/htdocs/core/modules/product/mod_codeproduct_leopard.php
index fb044429dc7c5704da2d6321788b96a31e581493..cf696efb1c1548d0384fd6e637199ca18cd7e22d 100644
--- a/htdocs/core/modules/product/mod_codeproduct_leopard.php
+++ b/htdocs/core/modules/product/mod_codeproduct_leopard.php
@@ -120,4 +120,3 @@ class mod_codeproduct_leopard extends ModeleProductCode
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/product/modules_product.class.php b/htdocs/core/modules/product/modules_product.class.php
index 89d918142165541a3c4e103288917d65c63ef79c..e708b89b82a0ae468611503f8c0fbfe16c99760e 100644
--- a/htdocs/core/modules/product/modules_product.class.php
+++ b/htdocs/core/modules/product/modules_product.class.php
@@ -210,4 +210,3 @@ abstract class ModeleProductCode
 
 }
 
-?>
diff --git a/htdocs/core/modules/project/mod_project_simple.php b/htdocs/core/modules/project/mod_project_simple.php
index fb2e6cf13862bf53c31b3ad515d7d32fa9d2062b..bfc0eea0838426232d78f9bfa37d63a7b8f71a36 100644
--- a/htdocs/core/modules/project/mod_project_simple.php
+++ b/htdocs/core/modules/project/mod_project_simple.php
@@ -150,4 +150,3 @@ class mod_project_simple extends ModeleNumRefProjects
     }
 }
 
-?>
diff --git a/htdocs/core/modules/project/mod_project_universal.php b/htdocs/core/modules/project/mod_project_universal.php
index 1af2f34d46cbc726f312c11735ece35d37186792..5633a61f8ac1e7328d72d7ec6fd35a6d72405c0f 100644
--- a/htdocs/core/modules/project/mod_project_universal.php
+++ b/htdocs/core/modules/project/mod_project_universal.php
@@ -139,4 +139,3 @@ class mod_project_universal extends ModeleNumRefProjects
     }
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/project/pdf/pdf_baleine.modules.php b/htdocs/core/modules/project/pdf/pdf_baleine.modules.php
index 4ccbb35f18081034c0d372cd40e2b6b47cc766ad..c8cc0b65fbc2553759407f7efb090a5048f126d0 100644
--- a/htdocs/core/modules/project/pdf/pdf_baleine.modules.php
+++ b/htdocs/core/modules/project/pdf/pdf_baleine.modules.php
@@ -447,4 +447,3 @@ class pdf_baleine extends ModelePDFProjects
 
 }
 
-?>
diff --git a/htdocs/core/modules/project/task/mod_task_simple.php b/htdocs/core/modules/project/task/mod_task_simple.php
index f6acd1b4d7a05121e4473602764cbed8c51c1a6d..fad0d6afa12d5f4556433bb28072a6a459e8df1f 100644
--- a/htdocs/core/modules/project/task/mod_task_simple.php
+++ b/htdocs/core/modules/project/task/mod_task_simple.php
@@ -150,4 +150,3 @@ class mod_task_simple extends ModeleNumRefTask
     }
 }
 
-?>
diff --git a/htdocs/core/modules/project/task/mod_task_universal.php b/htdocs/core/modules/project/task/mod_task_universal.php
index 2e660bd9cdb4f56e38de8c81b8042fb0e78ce268..1e99f90411693c507345e582f5c409e09e0bc28c 100644
--- a/htdocs/core/modules/project/task/mod_task_universal.php
+++ b/htdocs/core/modules/project/task/mod_task_universal.php
@@ -139,4 +139,3 @@ class mod_task_universal extends ModeleNumRefTask
     }
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/project/task/pdf/doc_generic_task_odt.modules.php b/htdocs/core/modules/project/task/pdf/doc_generic_task_odt.modules.php
index 09d6284d9023e021ae4a67cdded7d6c357e77f76..2c0bdc4f53bd45693e14d5987bc8ca9033bcf6e7 100644
--- a/htdocs/core/modules/project/task/pdf/doc_generic_task_odt.modules.php
+++ b/htdocs/core/modules/project/task/pdf/doc_generic_task_odt.modules.php
@@ -837,4 +837,3 @@ class doc_generic_task_odt extends ModelePDFTask
 	}
 
 }
-?>
diff --git a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
index 80fb073b964ada015fb6e14c6050cfdfca450d71..f9044977ae17d50ba0bebf6e24077ec4a44d7e12 100644
--- a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
+++ b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
@@ -536,4 +536,3 @@ class doc_generic_proposal_odt extends ModelePDFPropales
 
 }
 
-?>
diff --git a/htdocs/core/modules/propale/doc/pdf_azur.modules.php b/htdocs/core/modules/propale/doc/pdf_azur.modules.php
index 0c3a8c824fbc14ac1a946e5c4056053d9812817c..ad91ff39a937cba3d3ffed8716dfdcf63966250a 100644
--- a/htdocs/core/modules/propale/doc/pdf_azur.modules.php
+++ b/htdocs/core/modules/propale/doc/pdf_azur.modules.php
@@ -1367,4 +1367,3 @@ class pdf_azur extends ModelePDFPropales
 
 }
 
-?>
diff --git a/htdocs/core/modules/propale/mod_propale_marbre.php b/htdocs/core/modules/propale/mod_propale_marbre.php
index 86a774da08d22ff49c1ea1040ecbed03b4a0850d..79a31c73b59d2f4368c48593cde5ab9043a71cef 100644
--- a/htdocs/core/modules/propale/mod_propale_marbre.php
+++ b/htdocs/core/modules/propale/mod_propale_marbre.php
@@ -150,4 +150,3 @@ class mod_propale_marbre extends ModeleNumRefPropales
 
 }
 
-?>
diff --git a/htdocs/core/modules/propale/mod_propale_saphir.php b/htdocs/core/modules/propale/mod_propale_saphir.php
index cb8313d85f105c0e7ce99572f421fefbd9bdbc32..5838000382c6adcebc8161862c94467cff75d536 100644
--- a/htdocs/core/modules/propale/mod_propale_saphir.php
+++ b/htdocs/core/modules/propale/mod_propale_saphir.php
@@ -130,4 +130,3 @@ class mod_propale_saphir extends ModeleNumRefPropales
 	}
 
 }
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/rapport/pdf_paiement.class.php b/htdocs/core/modules/rapport/pdf_paiement.class.php
index 44946cdf38f85e0b074444a535d819c42ad6b5f3..d0defd260dde6f790423f3964697e51379021575 100644
--- a/htdocs/core/modules/rapport/pdf_paiement.class.php
+++ b/htdocs/core/modules/rapport/pdf_paiement.class.php
@@ -361,4 +361,3 @@ class pdf_paiement
 
 }
 
-?>
diff --git a/htdocs/core/modules/security/generate/modGeneratePassNone.class.php b/htdocs/core/modules/security/generate/modGeneratePassNone.class.php
index 5ee82c7b2e1da24b74d2e0393f7d3bd97a8eb37e..79cbd1ff6299b46fb87fcc9cb9068939aec5d7c7 100644
--- a/htdocs/core/modules/security/generate/modGeneratePassNone.class.php
+++ b/htdocs/core/modules/security/generate/modGeneratePassNone.class.php
@@ -103,4 +103,3 @@ class modGeneratePassNone extends ModeleGenPassword
 
 }
 
-?>
diff --git a/htdocs/core/modules/security/generate/modGeneratePassStandard.class.php b/htdocs/core/modules/security/generate/modGeneratePassStandard.class.php
index 1fb1d2bcbea00ec19ae48d20e4a1cffb1e3c0537..acb4425653732bbecd07c7b285113fba0e29f814 100644
--- a/htdocs/core/modules/security/generate/modGeneratePassStandard.class.php
+++ b/htdocs/core/modules/security/generate/modGeneratePassStandard.class.php
@@ -129,4 +129,3 @@ class modGeneratePassStandard extends ModeleGenPassword
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/security/generate/modules_genpassword.php b/htdocs/core/modules/security/generate/modules_genpassword.php
index 5829830d40d7786f0436eafa003a3f93afbcb950..3129a3419269e2bb8dad57f1c7ee9a1f0bada29c 100644
--- a/htdocs/core/modules/security/generate/modules_genpassword.php
+++ b/htdocs/core/modules/security/generate/modules_genpassword.php
@@ -89,4 +89,3 @@ abstract class ModeleGenPassword
 
 }
 
-?>
diff --git a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php
index 75b54ba285e77cee589c751927c295cecec7d522..201b3e5c042612cbfc203b6026b83eb7b44c4d06 100644
--- a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php
+++ b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php
@@ -438,4 +438,3 @@ class doc_generic_odt extends ModeleThirdPartyDoc
 
 }
 
-?>
diff --git a/htdocs/core/modules/societe/mod_codeclient_elephant.php b/htdocs/core/modules/societe/mod_codeclient_elephant.php
index 4bf251a02103f62807060ea9ec18dcd1b93970c3..94dd1b814e74bba5a71d038878dc4c05f7fe1c92 100644
--- a/htdocs/core/modules/societe/mod_codeclient_elephant.php
+++ b/htdocs/core/modules/societe/mod_codeclient_elephant.php
@@ -320,4 +320,3 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode
 
 }
 
-?>
diff --git a/htdocs/core/modules/societe/mod_codeclient_leopard.php b/htdocs/core/modules/societe/mod_codeclient_leopard.php
index bedbdaad7ce6bd50b4cab1a932efc21f3db1b378..4c81a0be77baa0dc9bf1d0971550cad5d423c724 100644
--- a/htdocs/core/modules/societe/mod_codeclient_leopard.php
+++ b/htdocs/core/modules/societe/mod_codeclient_leopard.php
@@ -119,4 +119,3 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/societe/mod_codeclient_monkey.php b/htdocs/core/modules/societe/mod_codeclient_monkey.php
index 292a692c3f8cb24a62aae50ac01058a77a4cfe21..cf761b0dc06ae7479e24860523e9b609bdb55640 100644
--- a/htdocs/core/modules/societe/mod_codeclient_monkey.php
+++ b/htdocs/core/modules/societe/mod_codeclient_monkey.php
@@ -267,4 +267,3 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
 
 }
 
-?>
diff --git a/htdocs/core/modules/societe/mod_codecompta_aquarium.php b/htdocs/core/modules/societe/mod_codecompta_aquarium.php
index 1cc70aa009e292aa2ea25bbe369ca0fea17dce67..a191c727ebf9bfd3e2af801ee3513c5d2be196c1 100644
--- a/htdocs/core/modules/societe/mod_codecompta_aquarium.php
+++ b/htdocs/core/modules/societe/mod_codecompta_aquarium.php
@@ -184,4 +184,3 @@ class mod_codecompta_aquarium extends ModeleAccountancyCode
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/societe/mod_codecompta_panicum.php b/htdocs/core/modules/societe/mod_codecompta_panicum.php
index db2216900fe9e0d968d648e9f12d7181dc50607b..b2240f7a9fc0a0cf43c188ccd9b0e39ff48222e5 100644
--- a/htdocs/core/modules/societe/mod_codecompta_panicum.php
+++ b/htdocs/core/modules/societe/mod_codecompta_panicum.php
@@ -88,4 +88,3 @@ class mod_codecompta_panicum extends ModeleAccountancyCode
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/societe/modules_societe.class.php b/htdocs/core/modules/societe/modules_societe.class.php
index 0771380c1ccf44e5e6a699333baaabd953c88bd4..3bff1f4198509fa384698bd9eeb9f3a9f9b9b201 100644
--- a/htdocs/core/modules/societe/modules_societe.class.php
+++ b/htdocs/core/modules/societe/modules_societe.class.php
@@ -447,4 +447,3 @@ function thirdparty_doc_create($db, $object, $message, $modele, $outputlangs)
 }
 
 
-?>
diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
index 55f8bb1f978f0e003aa5119d251beda7dd524d47..aff2557efb2008d9f9b56e114d15b94879791df5 100644
--- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
+++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
@@ -179,4 +179,3 @@ class mod_facture_fournisseur_cactus extends ModeleNumRefSuppliersInvoices
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php
index de8e165b5d4ff09d006d6bc99e31368b33f70219..eca0da0f9a5de03540bc972a6d4abb2ac523ad36 100644
--- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php
+++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php
@@ -144,4 +144,3 @@ class mod_facture_fournisseur_tulip extends ModeleNumRefSuppliersInvoices
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/supplier_invoice/modules_facturefournisseur.php b/htdocs/core/modules/supplier_invoice/modules_facturefournisseur.php
index a646ad39a75b7b5218b4d8c21fb619ceed6f114f..fef936cb1003bb05377c019bc4773a20a502e47e 100644
--- a/htdocs/core/modules/supplier_invoice/modules_facturefournisseur.php
+++ b/htdocs/core/modules/supplier_invoice/modules_facturefournisseur.php
@@ -251,4 +251,3 @@ function supplier_invoice_pdf_create($db, $object, $modele, $outputlangs, $hided
 	}
 }
 
-?>
diff --git a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php
index b75c89f5d39bc14b3778792e6417dca35c19bb75..86cce14ed47db0961602e705b09a075226e2a782 100644
--- a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php
+++ b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php
@@ -1058,4 +1058,3 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
 
 }
 
-?>
diff --git a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php
index e74263304e3befeef1d383a223f75525aaa25727..7438de73c7d01441a95b528810a1e71af27ab465 100644
--- a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php
+++ b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php
@@ -144,4 +144,3 @@ class mod_commande_fournisseur_muguet extends ModeleNumRefSuppliersOrders
     }
 }
 
-?>
diff --git a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php
index 40fa084d2f38205a6b492956c533e422415887c0..c0f89f51efa70a50395256b7162cb305d436d870 100644
--- a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php
+++ b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php
@@ -141,4 +141,3 @@ class mod_commande_fournisseur_orchidee extends ModeleNumRefSuppliersOrders
     }
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php b/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php
index 29d41e3dde777f5a73a8feefe250746e7539880e..79e704bcf23c1b8c5e459bc0146780524af09bdc 100644
--- a/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php
+++ b/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php
@@ -1099,4 +1099,3 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
 
 }
 
-?>
diff --git a/htdocs/core/photos_resize.php b/htdocs/core/photos_resize.php
index b96e0717eab9e6fabb9e7b1de3d294fbf63b2603..2d18c6154f82142a13eae85fb3d356497d8d0b31 100644
--- a/htdocs/core/photos_resize.php
+++ b/htdocs/core/photos_resize.php
@@ -204,4 +204,3 @@ if (! empty($conf->use_javascript_ajax))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/core/search_page.php b/htdocs/core/search_page.php
index 9eb635262d760ca007e3ddb5cee98445b9bf223f..c83fdafcf7ee647d91e0a569e0dca02313b47fd6 100644
--- a/htdocs/core/search_page.php
+++ b/htdocs/core/search_page.php
@@ -127,4 +127,3 @@ print '</div>';
 print '</body></html>'."\n";
 
 $db->close();
-?>
diff --git a/htdocs/core/tools.php b/htdocs/core/tools.php
index 21975a1aef4646daf28de83423190d9cb96fe830..1375ed5c455d29aeffd3f905a26da89f36a74942 100644
--- a/htdocs/core/tools.php
+++ b/htdocs/core/tools.php
@@ -55,4 +55,3 @@ print $langs->trans("ToolsDesc").'<br><br>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/core/triggers/interface_20_all_Logevents.class.php b/htdocs/core/triggers/interface_20_all_Logevents.class.php
index 8d1b6c19b10120cc70636ac41a9e086de9f30511..df6242a20d93d5154775ed3b55d2654d76259e3e 100644
--- a/htdocs/core/triggers/interface_20_all_Logevents.class.php
+++ b/htdocs/core/triggers/interface_20_all_Logevents.class.php
@@ -256,4 +256,3 @@ class InterfaceLogevents
     }
 
 }
-?>
diff --git a/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php b/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
index be0ea2e74e157837a1fc1571c6a1960e366712d9..4401a0ebcfab8ab2d78293a0e091435c54104734 100644
--- a/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
+++ b/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
@@ -158,4 +158,3 @@ class InterfacePaypalWorkflow
     }
 
 }
-?>
diff --git a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
index 73a348302f1bbf3c67bb5af4a23a0f11fd82a126..adca98768d317fc1b4d7af634957f3a46d4b6e57 100644
--- a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
+++ b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
@@ -190,4 +190,3 @@ class InterfaceWorkflowManager
     }
 
 }
-?>
diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
index d882b8b8ab02d752dc9f2c6e5b4c5739c6e7ac50..19facf72876351ad406b0aed5cdf14a2131bf9f5 100644
--- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
+++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
@@ -750,4 +750,3 @@ class InterfaceActionsAuto
     }
 
 }
-?>
diff --git a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
index 5af0f663a8050f176b4dd1451ebe5746f6b4afad..7bc742d3a26cfe5157e9e192f16d49ad535febb4 100644
--- a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
+++ b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
@@ -647,4 +647,3 @@ class InterfaceLdapsynchro
     }
 
 }
-?>
diff --git a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php
index 77318bee7958ae345e9bd0d808cc3e41dc6ad0da..01ce1f7e5396f7180a20e63b6d6542987a524f0f 100644
--- a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php
+++ b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php
@@ -245,4 +245,3 @@ class InterfaceMailmanSpipsynchro
     }
 
 }
-?>
diff --git a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
index f3b10e7f1f882db559de5b762a33035fc3363a96..c035acac207cebb3a944b7cfed6a1cb7f33f1d8f 100644
--- a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
+++ b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
@@ -279,4 +279,3 @@ class InterfaceNotification
     }
 
 }
-?>
diff --git a/htdocs/cron/card.php b/htdocs/cron/card.php
index 4857523aaf5a87ca8bc8dd5f84c54a85f4e75eca..a785b499642097ccbaff2baa43957ba539af8bc3 100644
--- a/htdocs/cron/card.php
+++ b/htdocs/cron/card.php
@@ -626,4 +626,3 @@ if (($action=="create") || ($action=="edit"))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php
index 19a0d5cc3b18d31e1d9c553e488b148ce55a3d46..453de0d851504c65cec7882f6aa9f25e7d1bfce4 100644
--- a/htdocs/cron/list.php
+++ b/htdocs/cron/list.php
@@ -317,4 +317,3 @@ dol_print_cron_urls();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/ecm/ajax/ecmdatabase.php b/htdocs/ecm/ajax/ecmdatabase.php
index 8461465c5540d24e577740b3bbfe900aa0b853af..4e5103399d99407ed084b304e03459f256cea5c4 100644
--- a/htdocs/ecm/ajax/ecmdatabase.php
+++ b/htdocs/ecm/ajax/ecmdatabase.php
@@ -183,4 +183,3 @@ if (isset($action) && ! empty($action))
 	}
 }
 
-?>
diff --git a/htdocs/ecm/class/ecmdirectory.class.php b/htdocs/ecm/class/ecmdirectory.class.php
index aed4a682fc01874e01a79adb4c5579449aae7e06..ea29d82210246ac2d37bccbbf1179f127d4149a8 100644
--- a/htdocs/ecm/class/ecmdirectory.class.php
+++ b/htdocs/ecm/class/ecmdirectory.class.php
@@ -704,4 +704,3 @@ class EcmDirectory // extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/ecm/class/htmlecm.form.class.php b/htdocs/ecm/class/htmlecm.form.class.php
index 57b673ea0df7fe1b09293c20e6dc78a3bd78965e..58286371941ac5cd2ee998c841a4645892a8edab 100644
--- a/htdocs/ecm/class/htmlecm.form.class.php
+++ b/htdocs/ecm/class/htmlecm.form.class.php
@@ -88,4 +88,3 @@ class FormEcm
 	}
 }
 
-?>
diff --git a/htdocs/ecm/docdir.php b/htdocs/ecm/docdir.php
index ec16acdbc162cd60c12308a893194d2be9f835aa..dd40205fc1330480adc87777254bb6773f50e4a5 100644
--- a/htdocs/ecm/docdir.php
+++ b/htdocs/ecm/docdir.php
@@ -228,4 +228,3 @@ if (empty($action) || $action == 'delete_section')
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/ecm/docfile.php b/htdocs/ecm/docfile.php
index 6b9dcc7d1a1b82802cefaf4a904010b35207d25d..1b51ca82a5eb47c307245fa4f13f19ce580b20ab 100644
--- a/htdocs/ecm/docfile.php
+++ b/htdocs/ecm/docfile.php
@@ -287,4 +287,3 @@ if ($_GET["action"] != 'edit')
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/ecm/docmine.php b/htdocs/ecm/docmine.php
index 6cd469417ae6239f278c27664136e66acfbbf2dd..7f70cb3b5001c8ddd89ffd2f1ea18419ae354bb3 100644
--- a/htdocs/ecm/docmine.php
+++ b/htdocs/ecm/docmine.php
@@ -367,4 +367,3 @@ if ($user->rights->ecm->read)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/ecm/docother.php b/htdocs/ecm/docother.php
index b74af256bc32fe59c7c95b0b80e8d216d2b179ac..f219e352c64e2780a306623afc0e80a9af6e502f 100644
--- a/htdocs/ecm/docother.php
+++ b/htdocs/ecm/docother.php
@@ -172,4 +172,3 @@ print $langs->trans("FeatureNotYetAvailable");
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php
index 0ca94ef6df2cfdaa8a40872ee22f0459b33588bb..e46011c45babfb8e335bcef0300fd4fd2983aa6d 100644
--- a/htdocs/ecm/index.php
+++ b/htdocs/ecm/index.php
@@ -781,4 +781,3 @@ if (! empty($conf->use_javascript_ajax) && empty($conf->global->MAIN_ECM_DISABLE
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/ecm/index_auto.php b/htdocs/ecm/index_auto.php
index b2d1b7eabeeb485fe51e7891b43e23f6c3cb89a0..9c4ab7e0e2f4625d343efd521d35dfe682d58788 100644
--- a/htdocs/ecm/index_auto.php
+++ b/htdocs/ecm/index_auto.php
@@ -602,4 +602,3 @@ if (! empty($conf->use_javascript_ajax) && empty($conf->global->MAIN_ECM_DISABLE
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/ecm/search.php b/htdocs/ecm/search.php
index 8bfc9216fbedd2b9f5855636e17b00afc7295e8a..968318f5b85bd73d20bcb3f112c6354ea05dff1b 100644
--- a/htdocs/ecm/search.php
+++ b/htdocs/ecm/search.php
@@ -210,4 +210,3 @@ print '<br>';
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php
index df55d9bd9a2605ad2979a2581442ed3ad7335a28..d8024a257fa2cc67c0828dc3a438aafd22fe1ba8 100644
--- a/htdocs/expedition/class/expedition.class.php
+++ b/htdocs/expedition/class/expedition.class.php
@@ -1565,4 +1565,3 @@ class ExpeditionLigne
 
 }
 
-?>
diff --git a/htdocs/expedition/class/expeditionbatch.class.php b/htdocs/expedition/class/expeditionbatch.class.php
index 27893018ce2a0241ec022d19de79d1b4a4e79e7d..7bbd99706bde391ede8b3515b44e0c3ae460ee80 100644
--- a/htdocs/expedition/class/expeditionbatch.class.php
+++ b/htdocs/expedition/class/expeditionbatch.class.php
@@ -215,4 +215,3 @@ class ExpeditionLigneBatch extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/expedition/class/expeditionstats.class.php b/htdocs/expedition/class/expeditionstats.class.php
index e0a7d7b3cdf3e8c1fad944bbec9b337e89074998..7fa16f4210f307fc8b9ba1d994a0cd329da84513 100644
--- a/htdocs/expedition/class/expeditionstats.class.php
+++ b/htdocs/expedition/class/expeditionstats.class.php
@@ -140,4 +140,3 @@ class ExpeditionStats extends Stats
 	}
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/expedition/index.php b/htdocs/expedition/index.php
index 33082aa9193bd12c244b09071cd1b0017e860ffb..362da157b9a21661840def5459de686ab2f824c6 100644
--- a/htdocs/expedition/index.php
+++ b/htdocs/expedition/index.php
@@ -280,4 +280,3 @@ print '</div></div></div>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php
index 10ff087801e85718e7a0dfc1f8fb6654faf787cc..76dbd7cc9a9635b4adf7b046f8b2ff6233c9fbf5 100644
--- a/htdocs/expedition/liste.php
+++ b/htdocs/expedition/liste.php
@@ -157,4 +157,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/expedition/note.php b/htdocs/expedition/note.php
index ad55c3bbe3e7f98098045ff7d3ba9cd88bede024..54103e8edf72fac2b077c5cc0920f01d5ab13f6f 100644
--- a/htdocs/expedition/note.php
+++ b/htdocs/expedition/note.php
@@ -143,4 +143,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index 48cf7ffc3e033c6be75a6393d59f29156bb0fea4..fce9c3bf6a548c322dea965e39018d2144e462eb 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -662,4 +662,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/expedition/stats/index.php b/htdocs/expedition/stats/index.php
index 51295ecc81f61b593a3ade8338642ee289d858d4..ca35f97df9b3c1a2d55368bf7beea7b67680ec47 100644
--- a/htdocs/expedition/stats/index.php
+++ b/htdocs/expedition/stats/index.php
@@ -355,4 +355,3 @@ print '<i>'.$langs->trans("StatsOnShipmentsOnlyValidated").'</i>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/expedition/stats/month.php b/htdocs/expedition/stats/month.php
index e358aa4f928e76424c3fdd9a544f3161b26c7af3..f1cf51e3e16408769b6f98da8316fdf9ba287c71 100644
--- a/htdocs/expedition/stats/month.php
+++ b/htdocs/expedition/stats/month.php
@@ -74,4 +74,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php
index 42299a755b5b197ec91553e206deaad06a588fb9..fda062952d160e3421f3c0b8e344e2514a922bb7 100644
--- a/htdocs/exports/class/export.class.php
+++ b/htdocs/exports/class/export.class.php
@@ -801,4 +801,3 @@ class Export
 
 }
 
-?>
diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php
index 50d7fe60b6be543f630c622f50fe73a00301f15e..d503e91641409cc3b4d60e7aed7d9168a960ca28 100644
--- a/htdocs/exports/export.php
+++ b/htdocs/exports/export.php
@@ -1165,4 +1165,3 @@ function getablenamefromfield($code,$sqlmaxforexport)
 	else return '';
 }
 
-?>
diff --git a/htdocs/exports/index.php b/htdocs/exports/index.php
index 0184ed8ed68fde95232c1cddda0b3e438d08ac23..442bb13acb291f4e0e18b1d1f7196ed641eebfd5 100644
--- a/htdocs/exports/index.php
+++ b/htdocs/exports/index.php
@@ -154,4 +154,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/externalsite/admin/externalsite.php b/htdocs/externalsite/admin/externalsite.php
index 45d1ae0fb2d78d7d8013ce9b39a5f4aa4c09db6a..9c59a7bf4ff2b60eb7ac71efc01e2c450321427f 100644
--- a/htdocs/externalsite/admin/externalsite.php
+++ b/htdocs/externalsite/admin/externalsite.php
@@ -127,4 +127,3 @@ dol_htmloutput_mesg($mesg);
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/externalsite/frames.php b/htdocs/externalsite/frames.php
index bbd9a188dc33f897d00b99fd78fde8335d3c0af3..0fca246e9ee88e6e134181f5f6e2b4852f1a8d86 100644
--- a/htdocs/externalsite/frames.php
+++ b/htdocs/externalsite/frames.php
@@ -69,4 +69,3 @@ print "
 ";
 
 
-?>
diff --git a/htdocs/externalsite/frametop.php b/htdocs/externalsite/frametop.php
index 0bf7a259c8f460e3d44b4a6f49148036b281c050..f33c8ae61a2287a673c434b1fb2d6d67cb8ae55d 100644
--- a/htdocs/externalsite/frametop.php
+++ b/htdocs/externalsite/frametop.php
@@ -29,14 +29,3 @@ $langs->load("externalsite");
 top_htmlhead("","");
 top_menu("","","_top");
 
-?>
-
-
-
-
-
-
-
-
-
-
diff --git a/htdocs/fichinter/admin/fichinter_extrafields.php b/htdocs/fichinter/admin/fichinter_extrafields.php
index 04c05093d5b04d2025da31ec7b1cfec0b4330975..23c39533e19886e5507e0b5604a6104d67b990ae 100644
--- a/htdocs/fichinter/admin/fichinter_extrafields.php
+++ b/htdocs/fichinter/admin/fichinter_extrafields.php
@@ -157,4 +157,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fichinter/apercu.php b/htdocs/fichinter/apercu.php
index fbf7569ce4ad3bd00d7406d9b731de72895e8218..753a74a3ed6d2b94afbcb5069557ec86bb5d5762 100644
--- a/htdocs/fichinter/apercu.php
+++ b/htdocs/fichinter/apercu.php
@@ -188,4 +188,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php
index 3a1dc898d0e77a05579a90a267257addb089c6af..bae211525eaa981b56109fedb67544f146482ec2 100644
--- a/htdocs/fichinter/class/fichinter.class.php
+++ b/htdocs/fichinter/class/fichinter.class.php
@@ -1355,4 +1355,3 @@ class FichinterLigne
 
 }
 
-?>
diff --git a/htdocs/fichinter/contact.php b/htdocs/fichinter/contact.php
index 687261fbce2963ec85a64d947519532a0b6e2f76..f5f355b315a38f113ce5a2dc224c3017a9f93c27 100644
--- a/htdocs/fichinter/contact.php
+++ b/htdocs/fichinter/contact.php
@@ -154,4 +154,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php
index e38e84613b05efd75651e9abb0b9ce1b0886b6de..182fd0d1a362f7071cf15596f805c965e899c452 100644
--- a/htdocs/fichinter/fiche.php
+++ b/htdocs/fichinter/fiche.php
@@ -1721,4 +1721,3 @@ else if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fichinter/info.php b/htdocs/fichinter/info.php
index b3bc8295d2c2eb65bc193433cf81e57b932a22a6..21412fa8064ab04e83ab16057bf2551523042baf 100644
--- a/htdocs/fichinter/info.php
+++ b/htdocs/fichinter/info.php
@@ -68,4 +68,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index 2a037a07563e0ff3c1239e479e5a77930170413b..aa18223c0c52a86a9ada39d08912022cd131aa09 100644
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -175,4 +175,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fichinter/note.php b/htdocs/fichinter/note.php
index 6eea406fbfcf768361c43129a0e53896cfa353bc..d263620ae4777c380b808e4209a9723440a96b55 100644
--- a/htdocs/fichinter/note.php
+++ b/htdocs/fichinter/note.php
@@ -91,4 +91,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php
index eaca2179553e7ba8d21c7c46e130b39b08f74fbe..d89f06993c2293f0135db572da35bf62257c2dcb 100644
--- a/htdocs/filefunc.inc.php
+++ b/htdocs/filefunc.inc.php
@@ -239,4 +239,3 @@ if (preg_match('/crypted:/i',$dolibarr_main_db_pass) || ! empty($dolibarr_main_d
 	else $dolibarr_main_db_pass = dol_decode($dolibarr_main_db_encrypted_pass);
 }
 
-?>
diff --git a/htdocs/fourn/ajax/getSupplierPrices.php b/htdocs/fourn/ajax/getSupplierPrices.php
index e6d3963dd25ac4a634e876caf6da733a0ec788ad..bbe3aeba4dc4a2d2a70a0598ee1e40cf12b142ae 100644
--- a/htdocs/fourn/ajax/getSupplierPrices.php
+++ b/htdocs/fourn/ajax/getSupplierPrices.php
@@ -111,4 +111,3 @@ if (! empty($idprod))
 
 echo json_encode($prices);
 
-?>
diff --git a/htdocs/fourn/class/fournisseur.class.php b/htdocs/fourn/class/fournisseur.class.php
index 58f6bae505214a544a8168e6c0ecda52780d18db..f557573fdfccd617999721c78bfe6bf505019c27 100644
--- a/htdocs/fourn/class/fournisseur.class.php
+++ b/htdocs/fourn/class/fournisseur.class.php
@@ -212,4 +212,3 @@ class Fournisseur extends Societe
 
 }
 
-?>
diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php
index c996c0e7ad88ed1a6c6005499d22cc11ee13d271..bc6fede9ab08ba9a89d11cc7bc6eda87c5a4c4a8 100644
--- a/htdocs/fourn/class/fournisseur.commande.class.php
+++ b/htdocs/fourn/class/fournisseur.commande.class.php
@@ -2115,4 +2115,3 @@ class CommandeFournisseurLigne
     }
 }
 
-?>
diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php
index 7e7cc14a92c056700d7796843a61cdc8fc8a5984..37d918e07bdf0920c8895a4d4120b1831fb808d2 100644
--- a/htdocs/fourn/class/fournisseur.facture.class.php
+++ b/htdocs/fourn/class/fournisseur.facture.class.php
@@ -1673,4 +1673,3 @@ class FactureFournisseur extends CommonInvoice
     }
 
 }
-?>
diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php
index 9b22b82fd68459c5037219b6a05b01bb6632587d..4aeb265a41ce66e126d5c5a4d24d5f7bf631d89b 100644
--- a/htdocs/fourn/class/fournisseur.product.class.php
+++ b/htdocs/fourn/class/fournisseur.product.class.php
@@ -546,4 +546,3 @@ class ProductFournisseur extends Product
 
 }
 
-?>
diff --git a/htdocs/fourn/class/paiementfourn.class.php b/htdocs/fourn/class/paiementfourn.class.php
index a221814b95bab66de7b282b6f77f1db8b41ad9ad..627b2de0d844c318d1dbd733ce9650705c9b9db8 100644
--- a/htdocs/fourn/class/paiementfourn.class.php
+++ b/htdocs/fourn/class/paiementfourn.class.php
@@ -496,4 +496,3 @@ class PaiementFourn extends Paiement
 		return $result;
 	}
 }
-?>
diff --git a/htdocs/fourn/commande/contact.php b/htdocs/fourn/commande/contact.php
index 7840ae22042720498efed0a52dec8752acda3232..8311e8bfc9f4df3856e311d9a03272c330eb4a21 100644
--- a/htdocs/fourn/commande/contact.php
+++ b/htdocs/fourn/commande/contact.php
@@ -181,4 +181,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index c2f2830ea524cdfef9aad25210a9f9788e228bbe..02666e1c855c906b4ead1274c3e489623de83f1b 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -495,4 +495,3 @@ if ($id > 0 || ! empty($ref))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fourn/commande/document.php b/htdocs/fourn/commande/document.php
index cdf5bfad4e52eeeda334cd2cb7aedbf2c6bbb40a..a3681b8fc0231fac064c2ee8c2c42c5b5567264e 100644
--- a/htdocs/fourn/commande/document.php
+++ b/htdocs/fourn/commande/document.php
@@ -172,4 +172,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php
index d569f8673a82dd1aebf0f6e1a9b370fcd876b5cb..9d923fcc98d1fc3a20966d6731f826d1fe85a6a7 100644
--- a/htdocs/fourn/commande/fiche.php
+++ b/htdocs/fourn/commande/fiche.php
@@ -2154,4 +2154,3 @@ elseif (! empty($object->id))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/commande/history.php b/htdocs/fourn/commande/history.php
index 4463d8ebbd2115e28f6e48caba5947f177a814db..e53b3974cf48cb2ec75c4558c4d89184aa5a69b0 100644
--- a/htdocs/fourn/commande/history.php
+++ b/htdocs/fourn/commande/history.php
@@ -190,4 +190,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php
index 9a1aaf4164f8c6ee53f1c709506872d3d66b2ec2..85557877d767e1026da9a02e6812b90dcec33dd9 100644
--- a/htdocs/fourn/commande/index.php
+++ b/htdocs/fourn/commande/index.php
@@ -439,4 +439,3 @@ print '</td></tr></table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/commande/liste.php b/htdocs/fourn/commande/liste.php
index 70bd5eb2d2bd086f6a74a558f3d13ff67f705ddf..e845f48a47cdf1668582dca2f29a8d2e71bbb067 100644
--- a/htdocs/fourn/commande/liste.php
+++ b/htdocs/fourn/commande/liste.php
@@ -245,4 +245,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php
index 7220f132f9cbebba3cf984bb414bfe8361f45ab6..b9cbf6e33b72d7b5af97ace1c4b0eb8c36713c76 100644
--- a/htdocs/fourn/commande/note.php
+++ b/htdocs/fourn/commande/note.php
@@ -154,4 +154,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/contact.php b/htdocs/fourn/contact.php
index f1052c6130e48b45054b4b7cadbf9778f14bdeed..70748c8bd574360f30b61048665381068e7716a9 100644
--- a/htdocs/fourn/contact.php
+++ b/htdocs/fourn/contact.php
@@ -136,4 +136,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/facture/contact.php b/htdocs/fourn/facture/contact.php
index 9010abbb50fb892eb738fc45172d889370ed6b46..25361746869072c0d5f6039aa65c94c76c58f0b6 100644
--- a/htdocs/fourn/facture/contact.php
+++ b/htdocs/fourn/facture/contact.php
@@ -175,4 +175,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php
index 3ea8e7b382e6ac173bf2e2bad6eea4344b4ab6b3..79c826a85e9f94e2792709a6702199e45cedd421 100644
--- a/htdocs/fourn/facture/document.php
+++ b/htdocs/fourn/facture/document.php
@@ -189,4 +189,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php
index cc0df53aa0c0cb3c0a7cdf2f308625a7762813fd..dee9aceeb24843af358fa410975caacc67df9a67 100644
--- a/htdocs/fourn/facture/fiche.php
+++ b/htdocs/fourn/facture/fiche.php
@@ -2381,4 +2381,3 @@ else
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/facture/impayees.php b/htdocs/fourn/facture/impayees.php
index 1d81ae01230182b28c2d8c7c216eac039f639b17..40799e2bcb9fe32da09f86d9f90cccc39ad0461b 100644
--- a/htdocs/fourn/facture/impayees.php
+++ b/htdocs/fourn/facture/impayees.php
@@ -296,4 +296,3 @@ if ($user->rights->fournisseur->facture->lire)
 // End of page
 $db->close();
 llxFooter();
-?>
diff --git a/htdocs/fourn/facture/info.php b/htdocs/fourn/facture/info.php
index 42a92954a7356163261d4c17afa09a27b7824ac1..e45833c53f150d137fea3b92696a8623090e30e2 100644
--- a/htdocs/fourn/facture/info.php
+++ b/htdocs/fourn/facture/info.php
@@ -64,4 +64,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index dd8d778d63a8d06991221ec894af3b5f307488bd..de1569a91b592c18a93e75f21b9b1e976f9361dc 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -310,4 +310,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/facture/note.php b/htdocs/fourn/facture/note.php
index 12b754dea19095f70fe13014202a4bf4d1171e9d..d5654c9215cd090d6d4a894ed83d3e9867003bc0 100644
--- a/htdocs/fourn/facture/note.php
+++ b/htdocs/fourn/facture/note.php
@@ -153,4 +153,3 @@ if ($object->id > 0)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index 3c37e3cf07c571565fee55c29dc63dc665eff301..8502e13834dc913d0d0329034988ac0a253d18a2 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -587,4 +587,3 @@ if (empty($action))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php
index 089b540146d773d3b7440de0d714b9d5052e959a..810eaaf30dbb37db8fa1b21497489b421a2fe715 100644
--- a/htdocs/fourn/fiche.php
+++ b/htdocs/fourn/fiche.php
@@ -495,4 +495,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/index.php b/htdocs/fourn/index.php
index 49b71423b6bc48653e9420da333c0b4d24859f2b..6f6bfb67040d0abf2269689f3ab58f49f24ae6c4 100644
--- a/htdocs/fourn/index.php
+++ b/htdocs/fourn/index.php
@@ -326,4 +326,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/liste.php b/htdocs/fourn/liste.php
index 5ce488939b3b2ca4631fdb0830ef519e0454dc7c..fad3fac6b1ee2d989aa0eeac5f954eb13d34c66e 100644
--- a/htdocs/fourn/liste.php
+++ b/htdocs/fourn/liste.php
@@ -234,4 +234,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fourn/paiement/fiche.php b/htdocs/fourn/paiement/fiche.php
index 2c21a98f5c1ac6f7e145581739e79d14fbf19b54..8b58e7a44553b4156882e6fabf78b28b90d23487 100644
--- a/htdocs/fourn/paiement/fiche.php
+++ b/htdocs/fourn/paiement/fiche.php
@@ -344,4 +344,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/fourn/paiement/info.php b/htdocs/fourn/paiement/info.php
index 7b5e3f2815cecfd11b1aab4e7f698965db994c19..5e3ea3f18f6e322416cec214a0841b7b0513cc9e 100644
--- a/htdocs/fourn/paiement/info.php
+++ b/htdocs/fourn/paiement/info.php
@@ -55,4 +55,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fourn/product/categorie.php b/htdocs/fourn/product/categorie.php
index 6e9cd1d1d13ffe98e89442d8ca13783c2033beb4..ad46210ed3bb3514128d9d3962ed61717b14e545 100644
--- a/htdocs/fourn/product/categorie.php
+++ b/htdocs/fourn/product/categorie.php
@@ -173,5 +173,3 @@ $db->close();
 
 
 llxFooter();
-?>
-
diff --git a/htdocs/fourn/product/index.php b/htdocs/fourn/product/index.php
index 91560079688f3ccc8e0f80cf050b9efbdf1679e5..14f4790f5af6a4e415152fcd05898e741fe22d8e 100644
--- a/htdocs/fourn/product/index.php
+++ b/htdocs/fourn/product/index.php
@@ -151,4 +151,3 @@ print '</td></tr></table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fourn/product/liste.php b/htdocs/fourn/product/liste.php
index e380f9dd7df2d6c31e4f6e81beaeec5701019572..ffd413cbf2ffec265c17b63682c3b1fa40241d96 100644
--- a/htdocs/fourn/product/liste.php
+++ b/htdocs/fourn/product/liste.php
@@ -242,4 +242,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/fourn/product/photos.php b/htdocs/fourn/product/photos.php
index cf676f7c6f805d58e24e5b8931a48a3177256c82..d60a4aab4d0cdc91b28df3bf63735ba78ee1f38a 100644
--- a/htdocs/fourn/product/photos.php
+++ b/htdocs/fourn/product/photos.php
@@ -213,4 +213,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/fourn/recap-fourn.php b/htdocs/fourn/recap-fourn.php
index e0869fede6f72ca313e3a4366192c0828ddf5caf..3d3fd9f2dcbda9d856e7ea37ef280ed48a22abe4 100644
--- a/htdocs/fourn/recap-fourn.php
+++ b/htdocs/fourn/recap-fourn.php
@@ -217,4 +217,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/ftp/admin/ftpclient.php b/htdocs/ftp/admin/ftpclient.php
index dd229ba6200992ed67aad605f9c236ce2aa53f45..1ff142f7be7d0b838f375de797b89ba36bab22ff 100644
--- a/htdocs/ftp/admin/ftpclient.php
+++ b/htdocs/ftp/admin/ftpclient.php
@@ -307,4 +307,3 @@ dol_htmloutput_mesg($mesg);
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/ftp/index.php b/htdocs/ftp/index.php
index d7017e9ca00a1cb3d8265e2a2a59a54a3562e658..0c72bcc1b1a2289f89cf357c1d8d31eb4809194b 100644
--- a/htdocs/ftp/index.php
+++ b/htdocs/ftp/index.php
@@ -713,4 +713,3 @@ function ftp_isdir($connect_id,$dir)
 	}
 }
 
-?>
diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php
index cb8af8c78b30b3e14f75aa68bbf918d4b733ad96..dfa0e0d9b329807dbeffd3bcd1225df64ad8d8c8 100644
--- a/htdocs/holiday/class/holiday.class.php
+++ b/htdocs/holiday/class/holiday.class.php
@@ -1757,4 +1757,3 @@ class Holiday extends CommonObject
     }
 
 }
-?>
diff --git a/htdocs/holiday/common.inc.php b/htdocs/holiday/common.inc.php
index adf490b61a30f119e437f9a8ef63d8f26304d4f9..a047bee9889972a619a3b33cdd4885dfc0598da4 100644
--- a/htdocs/holiday/common.inc.php
+++ b/htdocs/holiday/common.inc.php
@@ -42,4 +42,3 @@ if (empty($conf->holiday->enabled))
     exit();
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/holiday/fiche.php b/htdocs/holiday/fiche.php
index b77a93ab6336d9595dc5f62fbf5d01a971e904e4..10fb41211479fe147d729cd92cd706e4cbc2cf0d 100644
--- a/htdocs/holiday/fiche.php
+++ b/htdocs/holiday/fiche.php
@@ -1145,4 +1145,3 @@ else
 llxFooter();
 
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/holiday/index.php b/htdocs/holiday/index.php
index 71619a677affe005d58fdf7b13fe8987cc391f2d..906fa9c2d6e021b4c6f717fc45522ce0e60673b8 100644
--- a/htdocs/holiday/index.php
+++ b/htdocs/holiday/index.php
@@ -396,4 +396,3 @@ if ($user_id == $user->id)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/holiday/month_report.php b/htdocs/holiday/month_report.php
index 31b1765cf32a9f9b147cf602cbd4d96778a1bde1..8e1f50782e20062423fca22117ed6c88db81e08b 100644
--- a/htdocs/holiday/month_report.php
+++ b/htdocs/holiday/month_report.php
@@ -143,4 +143,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/holiday/view_log.php b/htdocs/holiday/view_log.php
index bdd855c7bad09c626a55801f6d767cc57e326443..566fdbcf5029c9f0646489989d33dfa34549f648 100644
--- a/htdocs/holiday/view_log.php
+++ b/htdocs/holiday/view_log.php
@@ -101,4 +101,3 @@ print '</table>'."\n";
 // Fin de page
 $db->close();
 llxFooter();
-?>
diff --git a/htdocs/imports/class/import.class.php b/htdocs/imports/class/import.class.php
index 674226830ab57da55c90d205a55edc9c2917047a..b1fa3552d9a79bc5ebab93da1fe87c9585e1bb71 100644
--- a/htdocs/imports/class/import.class.php
+++ b/htdocs/imports/class/import.class.php
@@ -342,4 +342,3 @@ class Import
 	}
 
 }
-?>
diff --git a/htdocs/imports/emptyexample.php b/htdocs/imports/emptyexample.php
index c90e79428ade0ac853c68ec9cfb2c1ba54c1cd91..b9c6f1874b2c65149fa4b08f90e6c1d798ff73b1 100644
--- a/htdocs/imports/emptyexample.php
+++ b/htdocs/imports/emptyexample.php
@@ -86,4 +86,3 @@ foreach($fieldstarget as $code=>$label)
 
 print $objimport->build_example_file($format,$headerlinefields,$contentlinevalues,$datatoimport);
 
-?>
diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php
index 9d48052bb70f6672c7afcb9ecd59fa22c2713577..b7fc38eaa4c7e7a10860668d0036b4b41bb6892c 100644
--- a/htdocs/imports/import.php
+++ b/htdocs/imports/import.php
@@ -1772,4 +1772,3 @@ function getnewkey(&$fieldssource,&$listofkey)
 	$listofkey[$i]=1;
 	return $i;
 }
-?>
diff --git a/htdocs/imports/index.php b/htdocs/imports/index.php
index 19642c63378e95d6c137d4f3be7cda3a86155559..2ccb92e197057c554d06a23f8c2d5364c8a49012 100644
--- a/htdocs/imports/index.php
+++ b/htdocs/imports/index.php
@@ -138,4 +138,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/index.php b/htdocs/index.php
index 1c30610ba73fbcffa320316cbb21f87816aaa67c..3b0cc3c5306cc3608de41d0734d65ea75449ce27 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -605,4 +605,3 @@ function showWeather($totallate,$text,$options)
     if ($totallate > $level3) $out.=img_picto_common($text,'weather/weather-storm.png',$options);
     return $out;
 }
-?>
diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index 7fd519e56d29051b8084a19b3ebf5f633e82ca2d..a6cb2b4a06930666ac31c9fbbffc60139feb260c 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -463,4 +463,3 @@ else
 
 pFooter(1);	// 1 car ne doit jamais afficher bouton Suivant
 
-?>
diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php
index 1671d7d976edf4b680de9c8e2f42a49ff650183c..43d063bf2701f1dcfaba0d5b968704e44eaa5800 100644
--- a/htdocs/install/etape1.php
+++ b/htdocs/install/etape1.php
@@ -944,4 +944,3 @@ function write_conf_file($conffile)
 	return $error;
 }
 
-?>
diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php
index a9d5b3ea85a75258745c7325666e05d2ca4681a1..f97f1afaa9c08b53550b240c9faf878bdda8fb93 100644
--- a/htdocs/install/etape2.php
+++ b/htdocs/install/etape2.php
@@ -608,4 +608,3 @@ dolibarr_install_syslog("--- install/etape2.php end", LOG_INFO);
 pFooter(!$ok,$setuplang);
 
 if (isset($db) && is_object($db)) $db->close();
-?>
diff --git a/htdocs/install/etape4.php b/htdocs/install/etape4.php
index d8231a6050153111812a5679327867108d7cc486..546395057011bd58dedd0343f6caa31a7893f84e 100644
--- a/htdocs/install/etape4.php
+++ b/htdocs/install/etape4.php
@@ -111,4 +111,3 @@ dolibarr_install_syslog("--- install/etape4.php end", LOG_INFO);
 pFooter($err,$setuplang);
 
 $db->close();
-?>
diff --git a/htdocs/install/etape5.php b/htdocs/install/etape5.php
index 61fde5a1215b946df7e2cb904cc051c1f53550b9..4238884a6f524aca79b486dc6ffc2cbf42370390 100644
--- a/htdocs/install/etape5.php
+++ b/htdocs/install/etape5.php
@@ -420,4 +420,3 @@ clearstatcache();
 dolibarr_install_syslog("--- install/etape5.php Dolibarr setup finished", LOG_INFO);
 
 pFooter(1,$setuplang);
-?>
diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php
index 1a26789811ec5d51e4f41d5bf7bef6e5a7555933..665d766a8ddc8e8335b18e4b39449f2db48d1e95 100644
--- a/htdocs/install/fileconf.php
+++ b/htdocs/install/fileconf.php
@@ -582,4 +582,3 @@ function jscheckparam()
 // $db->close();	Not database connexion yet
 
 pFooter($err,$setuplang,'jscheckparam');
-?>
diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php
index a8a4099004a56043639ba16b246407cc5891ab70..a7e66fbcf94a45f65fa43a0a68ba422b95475ec5 100644
--- a/htdocs/install/inc.php
+++ b/htdocs/install/inc.php
@@ -473,4 +473,3 @@ function dolibarr_install_syslog($message, $level=LOG_DEBUG)
     dol_syslog($message,$level);
 }
 
-?>
diff --git a/htdocs/install/index.php b/htdocs/install/index.php
index ae2ae29d920207bb9b681f23366da48566277d04..fb346ea003363e3812d7f543ab038f219e36a0fc 100644
--- a/htdocs/install/index.php
+++ b/htdocs/install/index.php
@@ -65,4 +65,3 @@ print '<br><br>'.$langs->trans("SomeTranslationAreUncomplete");
 // Si pas d'erreur, on affiche le bouton pour passer a l'etape suivante
 if ($err == 0) pFooter(0);
 
-?>
diff --git a/htdocs/install/lib/repair.lib.php b/htdocs/install/lib/repair.lib.php
index 171c047a8801631e25c65014ad0c4cf6a380231b..5e81b15ce1045e71a4fa99d852f12de1b561cb44 100644
--- a/htdocs/install/lib/repair.lib.php
+++ b/htdocs/install/lib/repair.lib.php
@@ -144,4 +144,3 @@ function clean_data_ecm_directories()
 	return;
 }
 
-?>
diff --git a/htdocs/install/phpinfo.php b/htdocs/install/phpinfo.php
index f459cbad6d3fb88b74d9857484f55642c70d4e06..b3817dcbde23df8338d11ad8f5dd5bfe95e9dd64 100644
--- a/htdocs/install/phpinfo.php
+++ b/htdocs/install/phpinfo.php
@@ -25,4 +25,3 @@ include_once 'inc.php';
 
 phpinfo();
 
-?>
diff --git a/htdocs/install/repair.php b/htdocs/install/repair.php
index dc38357ca4ea3552ab1780e8c12ee6f9b95ca8e1..47456c21c62abff10c2508d6f3d79060804fad6f 100644
--- a/htdocs/install/repair.php
+++ b/htdocs/install/repair.php
@@ -434,4 +434,3 @@ if ($db->connected) $db->close();
 
 // Return code if ran from command line
 if (! $ok && isset($argv[1])) exit(1);
-?>
\ No newline at end of file
diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php
index 8a49edfaef6ac8496c52d5ba708a65f754fe31ed..736346d0f721d8a2fa86764eab419c333de19379 100644
--- a/htdocs/install/upgrade2.php
+++ b/htdocs/install/upgrade2.php
@@ -3822,4 +3822,3 @@ update llx_facture set paye=1, fk_statut=2 where close_code is null
 and rowid in (...)
 */
 
-?>
\ No newline at end of file
diff --git a/htdocs/mailmanspip/class/mailmanspip.class.php b/htdocs/mailmanspip/class/mailmanspip.class.php
index 248035c65ef56585ef1f3050ce55a01c3f91d9e2..d4db8deb01c8b6d9eea648539fb4a6a9d14be5b3 100644
--- a/htdocs/mailmanspip/class/mailmanspip.class.php
+++ b/htdocs/mailmanspip/class/mailmanspip.class.php
@@ -437,4 +437,3 @@ class MailmanSpip
     }
 
 }
-?>
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index e5a69e96fc218a013825bb51308fa719b7ae64fd..5f02014b9b8ef4bc104f9b435e5e7ee854c6626e 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1866,4 +1866,3 @@ if (! function_exists("llxFooter"))
     }
 }
 
-?>
diff --git a/htdocs/margin/admin/margin.php b/htdocs/margin/admin/margin.php
index d3406b849d396c410c8924c7d18c68e655b5c3ec..f8beb7cd1ca1795a32674d93a9b74053db9180b5 100644
--- a/htdocs/margin/admin/margin.php
+++ b/htdocs/margin/admin/margin.php
@@ -285,4 +285,3 @@ print '<br>';
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/margin/index.php b/htdocs/margin/index.php
index 6ab989b524c57345d7a9abfddf1747fe91bd055e..d3897faa5515cf15307cad5c0090245aac40c17e 100644
--- a/htdocs/margin/index.php
+++ b/htdocs/margin/index.php
@@ -23,4 +23,3 @@
 
 require 'productMargins.php';
 
-?>
diff --git a/htdocs/margin/lib/margins.lib.php b/htdocs/margin/lib/margins.lib.php
index a47b0a5d21f4d2475f9f4eb08d0ac4c16eb5971a..d3ffd9c1bf46390910a5bc6c987262e1ef5bd1f4 100644
--- a/htdocs/margin/lib/margins.lib.php
+++ b/htdocs/margin/lib/margins.lib.php
@@ -139,4 +139,3 @@ function getMarginInfos($pvht, $remise_percent, $tva_tx, $localtax1_tx, $localta
 
 	return array($paht_ret, $marge_tx_ret, $marque_tx_ret);
 }
-?>
\ No newline at end of file
diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php
index afbf0c2b92d87940c9afc54f31117d58fabf1a95..884d5124126af7842e9cb68635203c3d72fcba2b 100644
--- a/htdocs/opensurvey/card.php
+++ b/htdocs/opensurvey/card.php
@@ -387,4 +387,3 @@ print '<br>';
 llxFooterSurvey();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/opensurvey/exportcsv.php b/htdocs/opensurvey/exportcsv.php
index ec48b65ce17786063d4034bdd66bc6e93799a123..2c31b67f574a0f4a43912c2ed7075e6918217114 100644
--- a/htdocs/opensurvey/exportcsv.php
+++ b/htdocs/opensurvey/exportcsv.php
@@ -140,4 +140,3 @@ header('Cache-Control: max-age=10');
 echo $input;
 
 exit;
-?>
\ No newline at end of file
diff --git a/htdocs/opensurvey/index.php b/htdocs/opensurvey/index.php
index a69b1ff19bd96d5aac8d13782045cbd50628fe9a..08c8f8d7d95426783762fffb485f73a915721941 100644
--- a/htdocs/opensurvey/index.php
+++ b/htdocs/opensurvey/index.php
@@ -82,4 +82,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php
index c00ddf38384891c663c12892786e86f1075865fd..d2ec6067b85b42a8bbd95719ca8a849df63a6e9c 100644
--- a/htdocs/opensurvey/wizard/choix_autre.php
+++ b/htdocs/opensurvey/wizard/choix_autre.php
@@ -161,4 +161,3 @@ print '</div>'."\n";
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/opensurvey/wizard/index.php b/htdocs/opensurvey/wizard/index.php
index 87852231f807b66c312767c73eb42a378918d7f0..db2948a1cd37b383c0577399aadf5d53e136c24d 100644
--- a/htdocs/opensurvey/wizard/index.php
+++ b/htdocs/opensurvey/wizard/index.php
@@ -56,4 +56,3 @@ print '<p>'.$langs->trans("OrganizeYourMeetingEasily").'</p>
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/paybox/admin/paybox.php b/htdocs/paybox/admin/paybox.php
index 20e0c2ebaee1651a85bff9c86b857d29fae881a1..7eefafb9c8c0075a5afccfa3202eeed17178f5b1 100644
--- a/htdocs/paybox/admin/paybox.php
+++ b/htdocs/paybox/admin/paybox.php
@@ -232,4 +232,3 @@ dol_htmloutput_mesg($mesg);
 $db->close();
 dol_fiche_end();
 llxFooter();
-?>
diff --git a/htdocs/paybox/lib/paybox.lib.php b/htdocs/paybox/lib/paybox.lib.php
index 6caec19c2b546e8f98ddf0aab47de4c1f5772e83..f56367c9a36ac000102fd352913e6fd9ae2ea9cd 100644
--- a/htdocs/paybox/lib/paybox.lib.php
+++ b/htdocs/paybox/lib/paybox.lib.php
@@ -310,4 +310,3 @@ function html_print_paybox_footer($fromcompany,$langs)
 	print '</font></center>'."\n";
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/paypal/lib/paypal.lib.php b/htdocs/paypal/lib/paypal.lib.php
index 31ed9b97ff8fe0d20270c389d2842d175727781b..02a16c68b1fb4ad5a14bc42f0de631338d97db0f 100644
--- a/htdocs/paypal/lib/paypal.lib.php
+++ b/htdocs/paypal/lib/paypal.lib.php
@@ -797,4 +797,3 @@ function getApiError()
 	return $errors;
 }
 
-?>
diff --git a/htdocs/paypal/lib/paypalfunctions.lib.php b/htdocs/paypal/lib/paypalfunctions.lib.php
index f0847ef99408060364adaeba564869aa7cb2a68c..64f0b638c7c9a7d15982bd64830fe3ea23ff5434 100644
--- a/htdocs/paypal/lib/paypalfunctions.lib.php
+++ b/htdocs/paypal/lib/paypalfunctions.lib.php
@@ -76,4 +76,3 @@ $PROXY_USER = $conf->global->MAIN_PROXY_USER;
 $PROXY_PASS = $conf->global->MAIN_PROXY_PASS;
 $USE_PROXY = empty($conf->global->MAIN_PROXY_USE)?false:true;
 
-?>
\ No newline at end of file
diff --git a/htdocs/printipp/index.php b/htdocs/printipp/index.php
index c6f678a6595d4ee2beb91da077d969b7c4f5ecf5..a130805f16ebd3ee3863a21cd22148d9c2804eb7 100644
--- a/htdocs/printipp/index.php
+++ b/htdocs/printipp/index.php
@@ -34,4 +34,3 @@ $printer->list_jobs('commande');
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/printipp/lib/printipp.lib.php b/htdocs/printipp/lib/printipp.lib.php
index 33f367a0501912b32882e92f96cf87fe3f2ef934..c87080032f5dfe319652b91e73694a97822cae59 100644
--- a/htdocs/printipp/lib/printipp.lib.php
+++ b/htdocs/printipp/lib/printipp.lib.php
@@ -58,4 +58,3 @@ function printippadmin_prepare_head()
     return $head;
 }
 
-?>
diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php
index 5aa65d69b5a0b208e7b197c4307fe856e03f6492..17f26d1252a18c56ae8607918ddf10cfdb53efce 100644
--- a/htdocs/product/admin/product.php
+++ b/htdocs/product/admin/product.php
@@ -517,4 +517,3 @@ llxFooter();
 
 $db->close();
 
-?>
diff --git a/htdocs/product/admin/product_extrafields.php b/htdocs/product/admin/product_extrafields.php
index 3f4ff84655efdacd0a657b6fdea96236599f5065..fd31abaa80ead870adbfc26269d8cab970ab0385 100644
--- a/htdocs/product/admin/product_extrafields.php
+++ b/htdocs/product/admin/product_extrafields.php
@@ -167,4 +167,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/admin/product_tools.php b/htdocs/product/admin/product_tools.php
index aa1a470aef1dee1f67aa4e5110ad30da6b0e79be..a4aae519b98b49a66ed0e4531abd57f7d4536424 100644
--- a/htdocs/product/admin/product_tools.php
+++ b/htdocs/product/admin/product_tools.php
@@ -311,4 +311,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/ajax/products.php b/htdocs/product/ajax/products.php
index 1ef0ef48191ceea3881663dfcf8f2cb526c725c6..61a1c3bff730bbace0a4646c6602e6042112a366 100644
--- a/htdocs/product/ajax/products.php
+++ b/htdocs/product/ajax/products.php
@@ -190,4 +190,3 @@ if (! empty($action) && $action == 'fetch' && ! empty($id)) {
 		print json_encode($arrayresult);
 }
 
-?>
diff --git a/htdocs/product/canvas/product/actions_card_product.class.php b/htdocs/product/canvas/product/actions_card_product.class.php
index 27b00f0bc35252f9fb3727bdd2e20151efd90e27..ddbd3c015ff9d0aa44b969d76248ef3ef58517fd 100644
--- a/htdocs/product/canvas/product/actions_card_product.class.php
+++ b/htdocs/product/canvas/product/actions_card_product.class.php
@@ -447,4 +447,3 @@ class ActionsCardProduct
 
 }
 
-?>
diff --git a/htdocs/product/canvas/service/actions_card_service.class.php b/htdocs/product/canvas/service/actions_card_service.class.php
index 87e28b18dbcdb99cfe25b286becfb8e90360c468..cee958be50fe581bf2496f9108e7d1e2e8d06528 100644
--- a/htdocs/product/canvas/service/actions_card_service.class.php
+++ b/htdocs/product/canvas/service/actions_card_service.class.php
@@ -379,4 +379,3 @@ class ActionsCardService
 
 }
 
-?>
diff --git a/htdocs/product/class/html.formproduct.class.php b/htdocs/product/class/html.formproduct.class.php
index 40658c97fb8d78bda35d6de40b07dd79db4a3e60..bd302c422d9ff410a5cf448f0d308ce05aab457f 100644
--- a/htdocs/product/class/html.formproduct.class.php
+++ b/htdocs/product/class/html.formproduct.class.php
@@ -196,4 +196,3 @@ class FormProduct
 
 }
 
-?>
diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php
index c9296124a1f3ba7ffec76216d075685a1c7b3dfb..2bcb72c971346b0c25d9fa822d4410d782cafabd 100644
--- a/htdocs/product/class/product.class.php
+++ b/htdocs/product/class/product.class.php
@@ -3374,4 +3374,3 @@ class Product extends CommonObject
 		}
 	}
 }
-?>
diff --git a/htdocs/product/class/productbatch.class.php b/htdocs/product/class/productbatch.class.php
index cdfef622f45bc1a5f80f1271c628535f27ab2dd6..9c92431c56355c400170c5bd647cba8989e25236 100644
--- a/htdocs/product/class/productbatch.class.php
+++ b/htdocs/product/class/productbatch.class.php
@@ -523,4 +523,3 @@ class Productbatch extends CommonObject
     }
 
 }
-?>
diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php
index 6ae90523b823bdf338a5a94ef5501d34cd71392c..c0b99104aa5e844718b95448409e6f8e0f751e7c 100644
--- a/htdocs/product/class/productcustomerprice.class.php
+++ b/htdocs/product/class/productcustomerprice.class.php
@@ -943,4 +943,3 @@ class PriceByCustomerLine
 	var $socname;
 	var $prodref;
 }
-?>
diff --git a/htdocs/product/class/service.class.php b/htdocs/product/class/service.class.php
index b67699a7f2a8f42af1b24415a5406a7cd7b13877..7ba5db47d1ca91d981b96298d7ee83349a8695d4 100644
--- a/htdocs/product/class/service.class.php
+++ b/htdocs/product/class/service.class.php
@@ -87,4 +87,3 @@ class Service extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/product/composition/fiche.php b/htdocs/product/composition/fiche.php
index f7485fdc49dc1011c492a0104fde1be59a0e5418..26761a2d56be4a3f6e86b9b7382accbef89d992e 100644
--- a/htdocs/product/composition/fiche.php
+++ b/htdocs/product/composition/fiche.php
@@ -551,4 +551,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php
index c2450f793811b4d1df7018d436fffe1ed2a661cd..21fa78abd7f23fa6a3f10f812b47e39ed9135240 100644
--- a/htdocs/product/fiche.php
+++ b/htdocs/product/fiche.php
@@ -1711,4 +1711,3 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status)
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php
index d8aa9b8431498a616693b81e7b4ff09cb846aa24..3957fbfd889f16c5bf48d94a1a0cc207e7cef60d 100644
--- a/htdocs/product/fournisseurs.php
+++ b/htdocs/product/fournisseurs.php
@@ -562,4 +562,3 @@ else
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/index.php b/htdocs/product/index.php
index ece788ae34cd637f85b9c53ef39af46ee66bd594..e05a846fd33fa3e7445c548da507d3a0b4d79baa 100644
--- a/htdocs/product/index.php
+++ b/htdocs/product/index.php
@@ -379,4 +379,3 @@ function activitytrim($product_type)
 	}
 }
 
-?>
diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php
index 09576449f0b9f2e752de8e5bc42f084dae2554ee..36904eb03787179408fda1b7c36358e4ff7da463 100644
--- a/htdocs/product/liste.php
+++ b/htdocs/product/liste.php
@@ -518,4 +518,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php
index 34a2e8365999c3fce241226749d7594b9c03c619..306ee51d210722655850a9803fb1359a3033fc72 100644
--- a/htdocs/product/photos.php
+++ b/htdocs/product/photos.php
@@ -195,4 +195,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/popuprop.php b/htdocs/product/popuprop.php
index 5404dd1848aee83ea9e8bae98f172b24fefac549..7d1f4da5682f0fc91085ae75acec62a6f8805f8f 100644
--- a/htdocs/product/popuprop.php
+++ b/htdocs/product/popuprop.php
@@ -164,4 +164,3 @@ print "</table>";
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/price.php b/htdocs/product/price.php
index 19c18be82b4285347ab5965bbaa1f29ac306f572..b202899f082999d3ca596788432ff439c17377a2 100644
--- a/htdocs/product/price.php
+++ b/htdocs/product/price.php
@@ -1141,4 +1141,3 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/reassort.php b/htdocs/product/reassort.php
index fcbcd780fb6eb3328118f10067468acf0874e92e..c185eeaf38947dff81c8e1520229097c1775b117 100644
--- a/htdocs/product/reassort.php
+++ b/htdocs/product/reassort.php
@@ -362,4 +362,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/stats/commande.php b/htdocs/product/stats/commande.php
index ca337e00b86f44bac41fcc0919da59f374deff76..b19c3c7fd6806bc601f75540d941a3d81a9895c5 100644
--- a/htdocs/product/stats/commande.php
+++ b/htdocs/product/stats/commande.php
@@ -194,4 +194,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/stats/commande_fournisseur.php b/htdocs/product/stats/commande_fournisseur.php
index 5c0e0463da152f7bba148d118d4be651c0f59c2f..69845b4b2646d2f26e7d1c99d562a5eb51bce080 100644
--- a/htdocs/product/stats/commande_fournisseur.php
+++ b/htdocs/product/stats/commande_fournisseur.php
@@ -189,4 +189,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/stats/contrat.php b/htdocs/product/stats/contrat.php
index 8c5a76e1ac932757de4b9d1ac1c49bebf7f5ce32..12c97435c7e478c1517463ffec6790f78c572a89 100644
--- a/htdocs/product/stats/contrat.php
+++ b/htdocs/product/stats/contrat.php
@@ -205,4 +205,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php
index 1265ea13962e050de352e9d2e9d9f9011c2738ab..cac2bccc45b0d4338d80100daa9738c68b5ab06e 100644
--- a/htdocs/product/stats/facture.php
+++ b/htdocs/product/stats/facture.php
@@ -198,4 +198,3 @@ else
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php
index 2791698eef1d5816d9c1d67d4054e4cae70c68d0..8b366a409582b5a9ce04e4c56313dc4b7343bbeb 100644
--- a/htdocs/product/stats/fiche.php
+++ b/htdocs/product/stats/fiche.php
@@ -280,4 +280,3 @@ else
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php
index c83f66f42cf144cead8c843b0ef4a902458419d3..b28a8f9451f5313044f5bcf586421a85b8f3c955 100644
--- a/htdocs/product/stock/class/entrepot.class.php
+++ b/htdocs/product/stock/class/entrepot.class.php
@@ -552,4 +552,3 @@ class Entrepot extends CommonObject
         $this->country_code='FR';
     }
 }
-?>
diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php
index 3c3980188055337eb4f5b2848ac96c4702a4de27..e8861d60ddbc1e5d122459c756cf3e41997c2e46 100644
--- a/htdocs/product/stock/class/mouvementstock.class.php
+++ b/htdocs/product/stock/class/mouvementstock.class.php
@@ -512,4 +512,3 @@ class MouvementStock
 		return $origin->getNomUrl(1);
 	}
 }
-?>
diff --git a/htdocs/product/stock/fiche-valo.php b/htdocs/product/stock/fiche-valo.php
index 91129f9a6795cf9560f0b3d261e8d27bbf35da34..10cdb0144ac960fbc4c98c62caecc8016d0b0da0 100644
--- a/htdocs/product/stock/fiche-valo.php
+++ b/htdocs/product/stock/fiche-valo.php
@@ -144,4 +144,3 @@ if ($_GET["id"])
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/product/stock/fiche.php b/htdocs/product/stock/fiche.php
index 6949d29cf8eff28d2855c88bf86ce7b74d3e7ded..4a365e3e50b4fcefe02becb40b7280717cadbbca 100644
--- a/htdocs/product/stock/fiche.php
+++ b/htdocs/product/stock/fiche.php
@@ -559,4 +559,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php
index 7f8e7f0766c25ab2be7702b58623e51ef4d6140b..da52a5aac58f2f413c1e3ea5ccf6cc00fb794595 100644
--- a/htdocs/product/stock/index.php
+++ b/htdocs/product/stock/index.php
@@ -169,4 +169,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/stock/info.php b/htdocs/product/stock/info.php
index 52b483cf0f865fa7dcfedb05347ba41173577a56..f9c5e163f4df0be779b785b570efbc0842c4af75 100644
--- a/htdocs/product/stock/info.php
+++ b/htdocs/product/stock/info.php
@@ -57,4 +57,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/stock/lib/replenishment.lib.php b/htdocs/product/stock/lib/replenishment.lib.php
index 09c39e7661d03b487c83323cfdd47718efafbb2f..21c3b4ee301e0bd41a8c3109130fb99767869514 100644
--- a/htdocs/product/stock/lib/replenishment.lib.php
+++ b/htdocs/product/stock/lib/replenishment.lib.php
@@ -145,4 +145,3 @@ function getProducts($order_id)
     return $products;
 }
 
-?>
diff --git a/htdocs/product/stock/liste.php b/htdocs/product/stock/liste.php
index 55e6f858124b1092c13805fa0961776f50c2180f..b7ca2b7ba480b671606811682bffb3e3c9094a5a 100644
--- a/htdocs/product/stock/liste.php
+++ b/htdocs/product/stock/liste.php
@@ -110,4 +110,3 @@ else
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php
index 6159a4362e920a3a71d55d468917a96c757f2183..54aa307fc95778c58c068ffca9c2d06e0a96f276 100644
--- a/htdocs/product/stock/massstockmove.php
+++ b/htdocs/product/stock/massstockmove.php
@@ -343,4 +343,3 @@ print '</form>';
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index d8f1418bb2948b16e26a35f87650bfeda1ae56f6..3f26d8c0980cec6228402bf0869e7fc3b66afe92 100644
--- a/htdocs/product/stock/product.php
+++ b/htdocs/product/stock/product.php
@@ -678,4 +678,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php
index 8321df18aef61ee1819e171dcdc4a8626a42768f..c833bcb2bb8d7564d590407049db9f0fb76f75a1 100644
--- a/htdocs/product/stock/replenish.php
+++ b/htdocs/product/stock/replenish.php
@@ -644,4 +644,3 @@ function toggle(source)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/product/stock/replenishorders.php b/htdocs/product/stock/replenishorders.php
index b1d2ec5c69dbdb99ac016b722b1ae5e748ccb67f..f0f2bfca8e996fe645bf6c36df5958b1e4f6932e 100644
--- a/htdocs/product/stock/replenishorders.php
+++ b/htdocs/product/stock/replenishorders.php
@@ -328,4 +328,3 @@ else
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/product/traduction.php b/htdocs/product/traduction.php
index 129a425f32ea6bb5ae2cbfabf408ae5104e26dd1..045b9c8cf1d0258853a858647dc0eaa2f3adff2f 100644
--- a/htdocs/product/traduction.php
+++ b/htdocs/product/traduction.php
@@ -287,4 +287,3 @@ if ($action == 'add' && ($user->rights->produit->creer || $user->rights->service
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/projet/activity/list.php b/htdocs/projet/activity/list.php
index e9cb8568b658ac99f14153b6e81a621d0ac45f37..93e8bf9564700ac70094c13c8749d7699dde00e5 100644
--- a/htdocs/projet/activity/list.php
+++ b/htdocs/projet/activity/list.php
@@ -165,4 +165,3 @@ print '</form>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/admin/project.php b/htdocs/projet/admin/project.php
index 0183f08af5220b6154f5b09716553b950b37b7b1..c564a23a480eb56796f187e29e88f7499ed225e8 100644
--- a/htdocs/projet/admin/project.php
+++ b/htdocs/projet/admin/project.php
@@ -791,4 +791,3 @@ dol_htmloutput_mesg($mesg);
 $db->close();
 
 llxFooter();
-?>
\ No newline at end of file
diff --git a/htdocs/projet/admin/project_task_extrafields.php b/htdocs/projet/admin/project_task_extrafields.php
index 9d85781084a6843d207ca726177de6f67c637437..9b9da25e24f949d1e5626d70264e00c8d8281f4e 100644
--- a/htdocs/projet/admin/project_task_extrafields.php
+++ b/htdocs/projet/admin/project_task_extrafields.php
@@ -148,4 +148,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index ca25a8bbfbef08e9d1e06d6a74255e4d9bf2ddc5..e4b9ac53454ab23b4e04aa112bb8be7820ce3c0b 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -1282,4 +1282,3 @@ class Project extends CommonObject
 	}
 }
 
-?>
diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php
index 6b0b51005dae06176591fcc8148e6b8b45acbff0..0a56b5253a9b8d79cdd355307da245f80ec5f9b4 100644
--- a/htdocs/projet/class/task.class.php
+++ b/htdocs/projet/class/task.class.php
@@ -1237,4 +1237,3 @@ class Task extends CommonObject
 	}
 
 }
-?>
diff --git a/htdocs/projet/contact.php b/htdocs/projet/contact.php
index 0674bcaf24b45687c7d4634185174d5138db0a83..ab892617a00e5f8652aab95f8ddeb6a1e03423df 100644
--- a/htdocs/projet/contact.php
+++ b/htdocs/projet/contact.php
@@ -213,4 +213,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index fd36808ccdd4335cebefdc44d1682e6fe955f709..a318608addf1f2243d76b505e2efc49ddfd491a8 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -408,4 +408,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php
index cefa422c4addb364aaf63ab5a9df363c08239521..f1f360a3f81003845380221782bf7f1479fca3b6 100644
--- a/htdocs/projet/fiche.php
+++ b/htdocs/projet/fiche.php
@@ -773,4 +773,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/ganttchart.php b/htdocs/projet/ganttchart.php
index 4e34ee682a289e2d0727b48f067cea1b458d6790..b370119114249acb9e2e6ba0b19a3f80f4e609c2 100644
--- a/htdocs/projet/ganttchart.php
+++ b/htdocs/projet/ganttchart.php
@@ -192,4 +192,3 @@ function findChildGanttLine($tarr,$parent,$project_dependencies,$level)
     }
 }
 
-?>
diff --git a/htdocs/projet/ganttview.php b/htdocs/projet/ganttview.php
index 50a5022a2f0b624debc64ee1a83f6f7485043c8c..06ff6867d79cd5c1c9ec7c2c3b1a47f4dbfcb327 100644
--- a/htdocs/projet/ganttview.php
+++ b/htdocs/projet/ganttview.php
@@ -262,4 +262,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php
index a05be1ec2da3056ffe49bd8cdae95bbdea8ab0de..1e6444b6f7880e02c0af6b6d42f0bece8329e826 100644
--- a/htdocs/projet/index.php
+++ b/htdocs/projet/index.php
@@ -238,4 +238,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/projet/liste.php b/htdocs/projet/liste.php
index 974f7f5ef00abf629df2265b91c627ab87542cbf..35df2b981b5e9710ff1c456224867a3541c80a15 100644
--- a/htdocs/projet/liste.php
+++ b/htdocs/projet/liste.php
@@ -215,4 +215,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/note.php b/htdocs/projet/note.php
index 9eb3ca646b3f8f3d301c077fb1ab94eea4762260..e030833c052e6c17f3989a60a455278887f60473 100644
--- a/htdocs/projet/note.php
+++ b/htdocs/projet/note.php
@@ -132,4 +132,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php
index 36792d4d0ad07e2631ff6843532f0472609a980a..7e8f48e1adb58e2df3a2c631bd75a5630d6c3d98 100644
--- a/htdocs/projet/tasks.php
+++ b/htdocs/projet/tasks.php
@@ -458,4 +458,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/tasks/contact.php b/htdocs/projet/tasks/contact.php
index 0de638e4d0e6f0ffb23dc9b696940502552dccd7..d65b54a2f7c48f6de624e3f21968d6b25346f0cd 100644
--- a/htdocs/projet/tasks/contact.php
+++ b/htdocs/projet/tasks/contact.php
@@ -468,4 +468,3 @@ if ($id > 0 || ! empty($ref))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/tasks/document.php b/htdocs/projet/tasks/document.php
index 84dd161484f964595e121da84d0b95653ccd8d30..7c5df98168cb07853741872307d82515da6bde91 100644
--- a/htdocs/projet/tasks/document.php
+++ b/htdocs/projet/tasks/document.php
@@ -247,4 +247,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/tasks/index.php b/htdocs/projet/tasks/index.php
index ac25e601d1481437ae0b728b8a82bb1ce887fb66..94e05ece06a4c54dcd1528c4ac6e8e538baea1d4 100644
--- a/htdocs/projet/tasks/index.php
+++ b/htdocs/projet/tasks/index.php
@@ -160,4 +160,3 @@ if ($user->rights->projet->creer)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/projet/tasks/note.php b/htdocs/projet/tasks/note.php
index 0b64949097b367415ba98f7ba79652ccdb413cf5..a9836894da9bb1a5f3870b838917935c26f48a63 100644
--- a/htdocs/projet/tasks/note.php
+++ b/htdocs/projet/tasks/note.php
@@ -203,4 +203,3 @@ if ($object->id > 0)
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/projet/tasks/task.php b/htdocs/projet/tasks/task.php
index 4d45cd1673502335b2aa56a62d110e171946f2fb..af56faa9329dcb1e7a40ec1dd45dd62e92a68d4c 100644
--- a/htdocs/projet/tasks/task.php
+++ b/htdocs/projet/tasks/task.php
@@ -509,4 +509,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index 304781e8309e7a25380a65c6e817b5d9e6b189e9..9078b95bede01ad463df535076872500d7b74078 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -490,4 +490,3 @@ if ($id > 0 || ! empty($ref))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/public/agenda/agendaexport.php b/htdocs/public/agenda/agendaexport.php
index efc4f13276448f10e9786c2245f7a8f00104ec9a..3443f08788fa831ed7358646e62e7b3529a4f44c 100644
--- a/htdocs/public/agenda/agendaexport.php
+++ b/htdocs/public/agenda/agendaexport.php
@@ -210,4 +210,3 @@ if ($format == 'rss')
 llxHeaderVierge();
 print '<div class="error">'.$agenda->error.'</div>';
 llxFooterVierge();
-?>
diff --git a/htdocs/public/agenda/index.php b/htdocs/public/agenda/index.php
index bee9017c5efb6820d445581ab3abc4a44cd3aca2..1c06e10b06d4557cd16437ccd426f0224dbf1bab 100644
--- a/htdocs/public/agenda/index.php
+++ b/htdocs/public/agenda/index.php
@@ -26,4 +26,3 @@ require '../../master.inc.php';
 
 header("Location: ".DOL_URL_ROOT.'/public/error-404.php');
 
-?>
diff --git a/htdocs/public/cron/cron_run_jobs.php b/htdocs/public/cron/cron_run_jobs.php
index 0f56be678a76a2ebe9c48737d918b16b14348886..cb4ae42ff136a7ed69f62b2d75468925c72a81df 100644
--- a/htdocs/public/cron/cron_run_jobs.php
+++ b/htdocs/public/cron/cron_run_jobs.php
@@ -179,4 +179,3 @@ else
 }
 
 $db->close();
-?>
diff --git a/htdocs/public/demo/index.php b/htdocs/public/demo/index.php
index 0948be50631f1774495e4b66a0570eb650d14b92..60348965835e634c153e6afb1fa604868d512feb 100644
--- a/htdocs/public/demo/index.php
+++ b/htdocs/public/demo/index.php
@@ -488,4 +488,3 @@ function llxFooterVierge()
     print "</html>\n";
 }
 
-?>
diff --git a/htdocs/public/donations/donateurs_code.php b/htdocs/public/donations/donateurs_code.php
index 972ba6a657d046c136d11fb6c41bfccc5480eb69..d2435f9f20f2febca84b4f47948899a04d0a807d 100644
--- a/htdocs/public/donations/donateurs_code.php
+++ b/htdocs/public/donations/donateurs_code.php
@@ -111,4 +111,3 @@ else
 $db->close();
 
 llxFooterVierge();
-?>
diff --git a/htdocs/public/donations/index.php b/htdocs/public/donations/index.php
index 713bc5d9e6254d2dfe7b2dd3fa73fcafc0c1bc82..23f8e0e4cdc0ff9be28de96d331828a51c6ac1ec 100644
--- a/htdocs/public/donations/index.php
+++ b/htdocs/public/donations/index.php
@@ -26,4 +26,3 @@ require '../../master.inc.php';
 
 header("Location: ".DOL_URL_ROOT.'/public/error-404.php');
 
-?>
diff --git a/htdocs/public/donations/therm.php b/htdocs/public/donations/therm.php
index ffd832c0bf59058a20a35205685cdbaba592c4dc..1e111567c1756b1e8d3e3fcd958b61d43c9dab77 100644
--- a/htdocs/public/donations/therm.php
+++ b/htdocs/public/donations/therm.php
@@ -52,4 +52,3 @@ $db->close();
  */
 print moneyMeter($actualValue, $pendingValue, $intentValue);
 
-?>
diff --git a/htdocs/public/emailing/mailing-read.php b/htdocs/public/emailing/mailing-read.php
index 81d218cec78a873c526cfd095045481fc4645d55..1e9913056581b267f5c0f1965b17a9bf71de78d1 100644
--- a/htdocs/public/emailing/mailing-read.php
+++ b/htdocs/public/emailing/mailing-read.php
@@ -86,4 +86,3 @@ if (! empty($tag))
 }
 
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/public/index.php b/htdocs/public/index.php
index d7cd7bc7513a92ffe209ff15348e3d97853ed883..d02276ef269859368d418addeed560b7e11cf717 100644
--- a/htdocs/public/index.php
+++ b/htdocs/public/index.php
@@ -26,4 +26,3 @@ require '../master.inc.php';
 
 header("Location: ".DOL_URL_ROOT.'/public/error-404.php');
 
-?>
diff --git a/htdocs/public/members/index.php b/htdocs/public/members/index.php
index e12937fcdc5219ab916674a1abb1afc6bb421593..1ec9a1d183364a9c46a4bfccd5d88c5218c3b0a1 100644
--- a/htdocs/public/members/index.php
+++ b/htdocs/public/members/index.php
@@ -26,4 +26,3 @@ require '../../master.inc.php';
 
 header("Location: ".DOL_URL_ROOT.'/public/error-404.php');
 
-?>
diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php
index 34a96f7bcb649990ac02d1076848426c9303b688..e335fd0e6a6114304f8370af82f862741585d3e9 100644
--- a/htdocs/public/members/new.php
+++ b/htdocs/public/members/new.php
@@ -606,4 +606,3 @@ print
 llxFooterVierge();
 
 $db->close();
-?>
diff --git a/htdocs/public/members/public_card.php b/htdocs/public/members/public_card.php
index 2a9b346554362a0b62055327a8a990ae42add3bd..77c419e7b115c85840db25e085c79764f61ffe1d 100644
--- a/htdocs/public/members/public_card.php
+++ b/htdocs/public/members/public_card.php
@@ -154,4 +154,3 @@ function llxFooterVierge()
 	print "</html>\n";
 }
 
-?>
diff --git a/htdocs/public/members/public_list.php b/htdocs/public/members/public_list.php
index 1b6d23d946cc5fe3422adf68a5ad550b96ee0634..7a1ffffd54d09f1ef591be731adaeb921661eac4 100644
--- a/htdocs/public/members/public_list.php
+++ b/htdocs/public/members/public_list.php
@@ -169,4 +169,3 @@ else
 $db->close();
 
 llxFooterVierge();
-?>
diff --git a/htdocs/public/offline.php b/htdocs/public/offline.php
index a52b446b4bb909620c7255cdc5a08b328e6efda1..11ed3d959930ff34be5e24a8c3cf703be28a9f56 100644
--- a/htdocs/public/offline.php
+++ b/htdocs/public/offline.php
@@ -35,4 +35,3 @@ require '../main.inc.php';
 print 'Sorry, it seems your internet connexion is off.<br>';
 print 'You need to be connected to network to use this software.<br>';
  
-?>
\ No newline at end of file
diff --git a/htdocs/public/paybox/newpayment.php b/htdocs/public/paybox/newpayment.php
index b8bad33c08fe1d4e419560032f18e42c49b6aeaf..d9e652abc35591f3dd040e6f81fb78fe1488b869 100644
--- a/htdocs/public/paybox/newpayment.php
+++ b/htdocs/public/paybox/newpayment.php
@@ -788,4 +788,3 @@ html_print_paybox_footer($mysoc,$langs);
 llxFooterPayBox();
 
 $db->close();
-?>
diff --git a/htdocs/public/paybox/paymentko.php b/htdocs/public/paybox/paymentko.php
index 2e86623622ad1a005208a8ffde13e1f9469f0217..9e094b9d394afca36133f960f9d9a2e264271c9b 100644
--- a/htdocs/public/paybox/paymentko.php
+++ b/htdocs/public/paybox/paymentko.php
@@ -113,4 +113,3 @@ html_print_paybox_footer($mysoc,$langs);
 llxFooterPayBox();
 
 $db->close();
-?>
diff --git a/htdocs/public/paybox/paymentok.php b/htdocs/public/paybox/paymentok.php
index 4377a4cbf96e1cbbbaf6b2f0e4e9c5e23937eba3..3d35bab2a281026458bd45736a03d0a63843e4d1 100644
--- a/htdocs/public/paybox/paymentok.php
+++ b/htdocs/public/paybox/paymentok.php
@@ -148,4 +148,3 @@ html_print_paybox_footer($mysoc,$langs);
 llxFooterPayBox();
 
 $db->close();
-?>
diff --git a/htdocs/public/paypal/index.php b/htdocs/public/paypal/index.php
index 868fb07b31db62c302166ba9428d885865b15bb3..2e7f27726875fc205af63815373500c24f88093e 100644
--- a/htdocs/public/paypal/index.php
+++ b/htdocs/public/paypal/index.php
@@ -26,4 +26,3 @@ require '../../master.inc.php';
 
 header("Location: ".DOL_URL_ROOT.'/public/error-404.php');
 
-?>
diff --git a/htdocs/public/paypal/newpayment.php b/htdocs/public/paypal/newpayment.php
index 91d1f67a3b943e6d472d833c1b7f22d4dd3ce510..d2f73d84b96ac940db4cd1a27c93ab59c3f0ea7b 100644
--- a/htdocs/public/paypal/newpayment.php
+++ b/htdocs/public/paypal/newpayment.php
@@ -968,4 +968,3 @@ html_print_paypal_footer($mysoc,$langs);
 llxFooterPaypal();
 
 $db->close();
-?>
diff --git a/htdocs/public/paypal/paymentko.php b/htdocs/public/paypal/paymentko.php
index d61b155610312ab7502cbf17f0fa580fdc848a9d..33dabdd5a473e892d0a9439130504f078b4b2cb7 100644
--- a/htdocs/public/paypal/paymentko.php
+++ b/htdocs/public/paypal/paymentko.php
@@ -117,4 +117,3 @@ html_print_paypal_footer($mysoc,$langs);
 llxFooterPaypal();
 
 $db->close();
-?>
diff --git a/htdocs/public/paypal/paymentok.php b/htdocs/public/paypal/paymentok.php
index 54abcd1b02ec41ee98495f8571d63477a15409e7..903a850ff36f8ee2942cb0d2551f1b0878d9bc4b 100644
--- a/htdocs/public/paypal/paymentok.php
+++ b/htdocs/public/paypal/paymentok.php
@@ -286,4 +286,3 @@ html_print_paypal_footer($mysoc,$langs);
 llxFooterPaypal();
 
 $db->close();
-?>
diff --git a/htdocs/societe/admin/contact_extrafields.php b/htdocs/societe/admin/contact_extrafields.php
index 6cb54ee144992d6a0c8b643d186b9f8e4fe48c8c..c47128179559a999a4afa1bdfb9ac27f42008e38 100644
--- a/htdocs/societe/admin/contact_extrafields.php
+++ b/htdocs/societe/admin/contact_extrafields.php
@@ -152,4 +152,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php
index 9834959273cc6ace9967d15dc63b22865652a2af..f48fbb61f7b91616ebba5826f29bd3a8b00d6938 100644
--- a/htdocs/societe/admin/societe.php
+++ b/htdocs/societe/admin/societe.php
@@ -810,4 +810,3 @@ dol_fiche_end();
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/societe/admin/societe_extrafields.php b/htdocs/societe/admin/societe_extrafields.php
index 11a284dabef207fa09b8514f74957406e83d7cc3..5ca23df284a32c1e7b53d090942e1e16914a38a8 100644
--- a/htdocs/societe/admin/societe_extrafields.php
+++ b/htdocs/societe/admin/societe_extrafields.php
@@ -155,4 +155,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/agenda.php b/htdocs/societe/agenda.php
index a1c2d641b71305b50c7a86ac8dad49005017e1f0..1ad1eeceed5de20dfc5a980dbcd7bfc66ee4704d 100644
--- a/htdocs/societe/agenda.php
+++ b/htdocs/societe/agenda.php
@@ -185,4 +185,3 @@ if ($socid)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/ajax/company.php b/htdocs/societe/ajax/company.php
index d79fe3f4ee9d1352c758ad6e18b9590a3bc7316f..03d6091f6c0853be11d0ec6922c70bfd96de078f 100644
--- a/htdocs/societe/ajax/company.php
+++ b/htdocs/societe/ajax/company.php
@@ -104,4 +104,3 @@ else
 	if ($outjson) print json_encode($arrayresult);
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/societe/canvas/company/actions_card_company.class.php b/htdocs/societe/canvas/company/actions_card_company.class.php
index f986f426fe87a005b7b905dcc791b6df5d7a6481..a47b63217927967eb75c9c7c18326d2f9d31c561 100644
--- a/htdocs/societe/canvas/company/actions_card_company.class.php
+++ b/htdocs/societe/canvas/company/actions_card_company.class.php
@@ -242,4 +242,3 @@ class ActionsCardCompany extends ActionsCardCommon
 
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/societe/class/address.class.php b/htdocs/societe/class/address.class.php
index 272baf034c36c8860befe1fa6e2b5b3667781895..2b566013e9da2eec4178cf3ea7db844781fb3a5b 100644
--- a/htdocs/societe/class/address.class.php
+++ b/htdocs/societe/class/address.class.php
@@ -521,4 +521,3 @@ class AddressLine
 		$this->db = $db;
 	}
 }
-?>
\ No newline at end of file
diff --git a/htdocs/societe/class/companybankaccount.class.php b/htdocs/societe/class/companybankaccount.class.php
index 13203c74dc9523827b8162963b3fdd1c8a9ede6d..189556b186dc6435ed2b8e7a4b612f44802c9154 100644
--- a/htdocs/societe/class/companybankaccount.class.php
+++ b/htdocs/societe/class/companybankaccount.class.php
@@ -368,4 +368,3 @@ class CompanyBankAccount extends Account
     }
 }
 
-?>
diff --git a/htdocs/societe/commerciaux.php b/htdocs/societe/commerciaux.php
index b099da89afe66ef35790607258fc1df65b57fe35..47368dc9fe3a57de6926ee57c49c2546987d5e5e 100644
--- a/htdocs/societe/commerciaux.php
+++ b/htdocs/societe/commerciaux.php
@@ -279,4 +279,3 @@ if ($_GET["socid"])
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php
index f29c290548f7b8514b66c1af7584ca7902dc9bf9..520d003305d848b05780e59e19e3bec7fc9658de 100644
--- a/htdocs/societe/consumption.php
+++ b/htdocs/societe/consumption.php
@@ -454,4 +454,3 @@ dol_htmloutput_errors($error,$errors);
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php
index e1b4f9cd504a1420fe12beb0d226c5cce0249319..2fde1ef5dcf38304fefe35f1268ece0fd385a95f 100644
--- a/htdocs/societe/document.php
+++ b/htdocs/societe/document.php
@@ -162,4 +162,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php
index 9cf708b15105374b6850146a8d421f6212a31637..1f668008baa95564ff4115747c88d21d1b657018 100644
--- a/htdocs/societe/index.php
+++ b/htdocs/societe/index.php
@@ -262,4 +262,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/info.php b/htdocs/societe/info.php
index 8f0d0836ed46a2023d4e6b1df8218b54e82ddcf0..0deec0419322216554294dc1eadc701a008e584a 100644
--- a/htdocs/societe/info.php
+++ b/htdocs/societe/info.php
@@ -82,4 +82,3 @@ print '</div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/localtaxes.php b/htdocs/societe/localtaxes.php
index 4471c163f44250e6d25f615522b854cad6dca916..37d1094a6a22cd29ba747856eb94b8952dec2384 100644
--- a/htdocs/societe/localtaxes.php
+++ b/htdocs/societe/localtaxes.php
@@ -265,4 +265,3 @@ if ($socid)
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/note.php b/htdocs/societe/note.php
index 0d87f98854b613307357089d8729af7bb744e9a3..d00e92887d1a5f1ac5d442decd228cc52bfe9f83 100644
--- a/htdocs/societe/note.php
+++ b/htdocs/societe/note.php
@@ -118,4 +118,3 @@ if ($id > 0)
 llxFooter();
 $db->close();
 
-?>
\ No newline at end of file
diff --git a/htdocs/societe/notify/index.php b/htdocs/societe/notify/index.php
index 943d55669bfb3a542174c307b708ecc7fed68f4d..470544242126fc164ced5d2fe97e1c47fda84465 100644
--- a/htdocs/societe/notify/index.php
+++ b/htdocs/societe/notify/index.php
@@ -111,4 +111,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php
index 6b5a552f00ddefd3113ed79a2d173281a3cd279e..ae71537e6484fdced5a495cae40134cf81676051 100644
--- a/htdocs/societe/price.php
+++ b/htdocs/societe/price.php
@@ -562,4 +562,3 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php
index 70bca06b0d4f10d6b5b44ba451f4bd18387168b9..ea64135bd43dcb606a4d476daedb2b286eb02f4d 100644
--- a/htdocs/societe/rib.php
+++ b/htdocs/societe/rib.php
@@ -611,4 +611,3 @@ if ($socid && $action != 'edit' && $action != 'create')
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index 8bb6342a2cd4fda20347e5d4fa8037a95be5f3e1..d085c6a8e3e3921cf4cfabe6688ddf2489ead00e 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -2020,4 +2020,3 @@ else
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/societe/societe.php b/htdocs/societe/societe.php
index 7d3e2e1a78d43ad7823957ea569be26f36c0e931..ffeb128cda1c2e7a7cc4042a6e134839daceee50 100644
--- a/htdocs/societe/societe.php
+++ b/htdocs/societe/societe.php
@@ -466,4 +466,3 @@ llxFooter();
 
 $db->close();
 
-?>
diff --git a/htdocs/societe/tpl/linesalesrepresentative.tpl.php b/htdocs/societe/tpl/linesalesrepresentative.tpl.php
index 70c9ec283c07ce0d3e2e0a2c6075748639777e82..6ad5a81b7f2c8ec720eeaa838460239f9d7e26fe 100644
--- a/htdocs/societe/tpl/linesalesrepresentative.tpl.php
+++ b/htdocs/societe/tpl/linesalesrepresentative.tpl.php
@@ -36,4 +36,3 @@
         }
         else print $langs->trans("NoSalesRepresentativeAffected");
         print '</td></tr>';
-?>
\ No newline at end of file
diff --git a/htdocs/support/index.php b/htdocs/support/index.php
index a88b79d26b078b1dd6a8862fc9dced69eace3b1e..755863707e592ae31c156fd435473b0f75edd6e5 100644
--- a/htdocs/support/index.php
+++ b/htdocs/support/index.php
@@ -248,4 +248,3 @@ print '</div>';
 
 
 pFooter();
-?>
diff --git a/htdocs/support/online.php b/htdocs/support/online.php
index 33b18af79245ead1acf78a36a55d29ecb2b5a1e7..0f2dca142fc9681beec87047401209b4c3be13a3 100644
--- a/htdocs/support/online.php
+++ b/htdocs/support/online.php
@@ -163,4 +163,3 @@ print '<br><br>';
 
 
 pFooter();
-?>
diff --git a/htdocs/theme/amarok/graph-color.php b/htdocs/theme/amarok/graph-color.php
index be8421b6d4b7aef588660d5dd10275f5f3ccb63d..037e6a86d6f060d0984566c9a43cb634f6e12ffc 100644
--- a/htdocs/theme/amarok/graph-color.php
+++ b/htdocs/theme/amarok/graph-color.php
@@ -28,4 +28,3 @@ $theme_datacolor = array(array(190,190,220), array(200,160,180), array(125,135,1
 $theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4'));
 $theme_bgcoloronglet = array(hexdec('DE'),hexdec('E7'),hexdec('EC'));
 
-?>
diff --git a/htdocs/theme/amarok/style.css.php b/htdocs/theme/amarok/style.css.php
index ca47f144cdb2625f57b784fe8977e5a6e7e38596..38df086e267da7ed77cdb7e30e412744036a352d 100644
--- a/htdocs/theme/amarok/style.css.php
+++ b/htdocs/theme/amarok/style.css.php
@@ -2263,4 +2263,3 @@ ul.ulmenu {
 
 <?php
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/theme/auguria/graph-color.php b/htdocs/theme/auguria/graph-color.php
index 52717f2693ddb6735598ebcb9f3735ba2891dd31..a24834807621778588a16158ca5b729079ba209a 100644
--- a/htdocs/theme/auguria/graph-color.php
+++ b/htdocs/theme/auguria/graph-color.php
@@ -28,4 +28,3 @@ $theme_datacolor = array(array(125,135,150), array(200,160,180), array(190,190,2
 $theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4'));
 $theme_bgcoloronglet = array(hexdec('DE'),hexdec('E7'),hexdec('EC'));
 
-?>
diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php
index e363537ad01f4632ca09c5233c3312741fb24eb0..78bdafc3e0df76b8485eebb7e2c9a13e08ee9f06 100644
--- a/htdocs/theme/auguria/style.css.php
+++ b/htdocs/theme/auguria/style.css.php
@@ -2432,4 +2432,3 @@ ul.ulmenu {
 
 <?php
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/theme/bureau2crea/graph-color.php b/htdocs/theme/bureau2crea/graph-color.php
index 163607485f71fe0e8702a1dbe8620e4350c0f185..c95f9f7b42d079206d1d5d67554dd814fbf2c368 100644
--- a/htdocs/theme/bureau2crea/graph-color.php
+++ b/htdocs/theme/bureau2crea/graph-color.php
@@ -29,4 +29,3 @@ $theme_datacolor = array(array(120,130,150), array(200,160,180), array(190,190,2
 $theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4'));
 $theme_bgcoloronglet = array(hexdec('FF'),hexdec('FF'),hexdec('FF'));
 
-?>
diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php
index c67d3f90d85520a7673776773bf79bf43d795fab..5c367ffb798c72d0d94f2fbf8d555886a7437a54 100644
--- a/htdocs/theme/bureau2crea/style.css.php
+++ b/htdocs/theme/bureau2crea/style.css.php
@@ -2602,4 +2602,3 @@ ul.ulmenu {
 
 <?php
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/theme/cameleo/graph-color.php b/htdocs/theme/cameleo/graph-color.php
index e706ec07593876c18dec594975d7a2b82fd8c6d8..a09ab902ecd37d7f8f74aa02e2dab9cabb1e0ced 100644
--- a/htdocs/theme/cameleo/graph-color.php
+++ b/htdocs/theme/cameleo/graph-color.php
@@ -29,4 +29,3 @@ $theme_datacolor = array(array(120,130,150), array(200,160,180), array(190,190,2
 $theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4'));
 $theme_bgcoloronglet = array(hexdec('DE'),hexdec('E7'),hexdec('EC'));
 
-?>
diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php
index ac72ab2f3f5190664854dcc27ca14307d7a56f7e..5ac4a4cbb1ca2aa96cd2c00771c484e513e5c893 100644
--- a/htdocs/theme/cameleo/style.css.php
+++ b/htdocs/theme/cameleo/style.css.php
@@ -2514,4 +2514,3 @@ ul.ulmenu {
 
 <?php
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/theme/eldy/graph-color.php b/htdocs/theme/eldy/graph-color.php
index ab59c7689a44fff4b4b57927244ad1877fae4f5d..a4dc67db555cfc946b1f89933f4ab2753974b310 100644
--- a/htdocs/theme/eldy/graph-color.php
+++ b/htdocs/theme/eldy/graph-color.php
@@ -32,4 +32,3 @@ $theme_datacolor = array(array(190,190,220), array(200,160,180), array(125,135,1
 $theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4'));
 $theme_bgcoloronglet = array(hexdec('DE'),hexdec('E7'),hexdec('EC'));
 
-?>
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index a7eb25cc76843329f3e55c4e8784b570eb2baa33..ee5688073edc9df3d6be4309d78883a9e98dba1b 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -2873,4 +2873,3 @@ border-top-right-radius: 6px;
 
 <?php
 if (is_object($db)) $db->close();
-?>
diff --git a/htdocs/user/admin/user_extrafields.php b/htdocs/user/admin/user_extrafields.php
index ce372d25d4ba15ca9d93ac6083e6e398c922333c..edabfd53256f3b104e266febcd38d4ef74267e6c 100644
--- a/htdocs/user/admin/user_extrafields.php
+++ b/htdocs/user/admin/user_extrafields.php
@@ -152,4 +152,3 @@ if ($action == 'edit' && ! empty($attrname))
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index 2ff681b8fe4d6dbe748e5796a1e92f42ecae86bf..b59b7dd0aa2da0a50dea79c808e2e69ab95f52d6 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -2354,4 +2354,3 @@ class User extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php
index debf67f95ebc32dcb7c897a096bff32f1b79f62c..72dc0b7cf48600dc1910e6599065a284822770d6 100644
--- a/htdocs/user/class/usergroup.class.php
+++ b/htdocs/user/class/usergroup.class.php
@@ -749,4 +749,3 @@ class UserGroup extends CommonObject
 	}
 }
 
-?>
\ No newline at end of file
diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php
index ba851ea384060652603cf6b0fed26833f74442fb..f108667ccb38d82410b14fb0b07262cc30babffb 100644
--- a/htdocs/user/fiche.php
+++ b/htdocs/user/fiche.php
@@ -1985,4 +1985,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/user/group/fiche.php b/htdocs/user/group/fiche.php
index f7c0cba4a6a1caab7e537aba12582d241440d26e..625195bfa684395079e91464cbd6aab401550f17 100644
--- a/htdocs/user/group/fiche.php
+++ b/htdocs/user/group/fiche.php
@@ -519,4 +519,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/user/group/index.php b/htdocs/user/group/index.php
index 82d81b14beee882f2238f94fbc8583ecd64c25b2..d0766655d6a00139f405f16b8229083e6a00ae38 100644
--- a/htdocs/user/group/index.php
+++ b/htdocs/user/group/index.php
@@ -129,4 +129,3 @@ else
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/user/group/ldap.php b/htdocs/user/group/ldap.php
index 878b6b6ab6a32846feb2eb80b6df99a0e1f90b3e..cde5e764af562d6d6802f60d5e8bbcbf6d83a436 100644
--- a/htdocs/user/group/ldap.php
+++ b/htdocs/user/group/ldap.php
@@ -208,4 +208,3 @@ llxFooter();
 
 $db->close();
 
-?>
diff --git a/htdocs/user/group/perms.php b/htdocs/user/group/perms.php
index 1f291d6b160c1b97d2ad16f3762623d3586a673a..5c52fa80a50f8225ebe2e2ccac211ea24e3e4157 100644
--- a/htdocs/user/group/perms.php
+++ b/htdocs/user/group/perms.php
@@ -329,4 +329,3 @@ if ($id)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/user/hierarchy.php b/htdocs/user/hierarchy.php
index 0f2ccff204d4ff1ee5e5a6df29816562b813022a..8061163fca2aa73e8ae13f59ad93bad9a23bc64d 100644
--- a/htdocs/user/hierarchy.php
+++ b/htdocs/user/hierarchy.php
@@ -118,4 +118,3 @@ print "</table>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/user/home.php b/htdocs/user/home.php
index 3f43e40e43a2fd660538613c5d78e3c3eb541df0..44b40f7786bdb6f0fb31f3acdae998f830dfa51c 100644
--- a/htdocs/user/home.php
+++ b/htdocs/user/home.php
@@ -259,4 +259,3 @@ print '</div></div></div>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/user/index.php b/htdocs/user/index.php
index baa704509cc762ae0b3f0b832e4cc81c1707bd7d..56d866f3ae96f8885e9f6d164404ecc3888035f5 100644
--- a/htdocs/user/index.php
+++ b/htdocs/user/index.php
@@ -209,4 +209,3 @@ else
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/user/info.php b/htdocs/user/info.php
index 1725acd68435c7b056594163d51a5acfaeec01f7..fd74a0ca95d575069987f736c83f2b06f6b86475 100644
--- a/htdocs/user/info.php
+++ b/htdocs/user/info.php
@@ -73,4 +73,3 @@ print '</div>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/user/ldap.php b/htdocs/user/ldap.php
index 5082056997915ec0f1bb82747d8d3ede6278101e..ebf776e64aaa14442e4f39628b875d4b9200ad22 100644
--- a/htdocs/user/ldap.php
+++ b/htdocs/user/ldap.php
@@ -228,4 +228,3 @@ print '</table>';
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/user/logout.php b/htdocs/user/logout.php
index 24bc2e7c9a9ae4a70843a1a3a23f55cfe68b034e..ab31ae0aa6c0a50ad1ea7a04cb147b2b65b2c5bf 100644
--- a/htdocs/user/logout.php
+++ b/htdocs/user/logout.php
@@ -82,4 +82,3 @@ unset($_SESSION['dol_entity']);
 
 if (GETPOST('noredirect')) return;
 header("Location: ".$url);		// Default behaviour is redirect to index.php page
-?>
diff --git a/htdocs/user/note.php b/htdocs/user/note.php
index 5ccd23f30428a39420d212cc6c0d965a13ef5e11..ceaa9ceb011b4f4e6e3ee8071e3f79550f069f6a 100644
--- a/htdocs/user/note.php
+++ b/htdocs/user/note.php
@@ -162,4 +162,3 @@ if ($id)
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php
index 44686e9277ec743d892bdebe307c04c8807f678b..7e6e8f7289dd3a7ffdb3bd5d1f863ac8f8c4c6b2 100644
--- a/htdocs/user/param_ihm.php
+++ b/htdocs/user/param_ihm.php
@@ -276,4 +276,3 @@ dol_fiche_end();
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php
index da067b34d90dc6666accb9da5acf43ab8e7ff982..4f1a36c6e040231ff235bd7d5cd3460719cf951f 100644
--- a/htdocs/user/passwordforgotten.php
+++ b/htdocs/user/passwordforgotten.php
@@ -242,4 +242,3 @@ $hookmanager->executeHooks('getPasswordForgottenPageOptions',$parameters);    //
 
 include $template_dir.'passwordforgotten.tpl.php';	// To use native PHP
 
-?>
diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php
index 4b05818a56750723a1f163710c31cb89286f4f29..49bd0877e6ef1109bf3ab54654fa86937976e5cb 100644
--- a/htdocs/user/perms.php
+++ b/htdocs/user/perms.php
@@ -429,4 +429,3 @@ dol_fiche_end();
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/webservices/admin/webservices.php b/htdocs/webservices/admin/webservices.php
index 7b71e5a022832fc044870449ee53902bbe0b1b9e..a12f638a17481c4bd9c8bda1fc6ce4dac376d56b 100644
--- a/htdocs/webservices/admin/webservices.php
+++ b/htdocs/webservices/admin/webservices.php
@@ -158,4 +158,3 @@ if (! empty($conf->use_javascript_ajax))
 
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/webservices/index.php b/htdocs/webservices/index.php
index b5670b809bb7f1cb6052f539279e71fac06470ea..46d40570d5978fc66e932f1005cd49a39a3970df 100644
--- a/htdocs/webservices/index.php
+++ b/htdocs/webservices/index.php
@@ -102,4 +102,3 @@ print '<br>';
 
 $db->close();
 
-?>
\ No newline at end of file
diff --git a/htdocs/webservices/server_contact.php b/htdocs/webservices/server_contact.php
index 126e4202018e2d46ef63cacabc949296c17421f0..212fc44e60f543428c046093ee9d45320dca18ef 100644
--- a/htdocs/webservices/server_contact.php
+++ b/htdocs/webservices/server_contact.php
@@ -715,4 +715,3 @@ function updateContact($authentication,$contact)
 // Return the results.
 $server->service($HTTP_RAW_POST_DATA);
 
-?>
diff --git a/htdocs/webservices/server_invoice.php b/htdocs/webservices/server_invoice.php
index d1a67e9c736eab7a493f2cbe1c95e07e40d50bb2..c478288c74e5a084b14f8478d6ef5a07cffeaa87 100644
--- a/htdocs/webservices/server_invoice.php
+++ b/htdocs/webservices/server_invoice.php
@@ -587,4 +587,3 @@ function createInvoice($authentication,$invoice)
 // Return the results.
 $server->service((isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:''));
 
-?>
diff --git a/htdocs/webservices/server_order.php b/htdocs/webservices/server_order.php
index f77af335e2e09ca6a31cebe3956d313dec872c61..e9e835d3fde08dd430e923a0c99268f295c6f6f9 100644
--- a/htdocs/webservices/server_order.php
+++ b/htdocs/webservices/server_order.php
@@ -802,4 +802,3 @@ function validOrder($authentication,$id='')
 // Return the results.
 $server->service((isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:''));
 
-?>
diff --git a/htdocs/webservices/server_other.php b/htdocs/webservices/server_other.php
index 193e01de2f21b0ae78b171a609d23aee19441b85..0e3caa512c6f1069a9c9033ac5f418a8787892ce 100644
--- a/htdocs/webservices/server_other.php
+++ b/htdocs/webservices/server_other.php
@@ -323,4 +323,3 @@ function getDocument($authentication, $modulepart, $file, $refname='')
 // Return the results.
 $server->service($HTTP_RAW_POST_DATA);
 
-?>
diff --git a/htdocs/webservices/server_productorservice.php b/htdocs/webservices/server_productorservice.php
index f2c418c86647ba06765ae0c645910433b1413028..c2eba3f9d1b8421b191eb84e2ff39ded2bc17c74 100644
--- a/htdocs/webservices/server_productorservice.php
+++ b/htdocs/webservices/server_productorservice.php
@@ -957,4 +957,3 @@ function getProductsForCategory($authentication,$id,$lang='')
 // Return the results.
 $server->service($HTTP_RAW_POST_DATA);
 
-?>
diff --git a/htdocs/webservices/server_supplier_invoice.php b/htdocs/webservices/server_supplier_invoice.php
index 57021f5f2b28da2809862ab79f5c22dca9911fdb..c6697980a122e41bfaff09817742229c83a636a2 100644
--- a/htdocs/webservices/server_supplier_invoice.php
+++ b/htdocs/webservices/server_supplier_invoice.php
@@ -461,4 +461,3 @@ function getSupplierInvoicesForThirdParty($authentication,$idthirdparty)
 // Return the results.
 $server->service($HTTP_RAW_POST_DATA);
 
-?>
diff --git a/htdocs/webservices/server_user.php b/htdocs/webservices/server_user.php
index c33bfaf07eab84d00860547df162e344e69759f7..0a8071bf524e6bb068de5701ebea1747db9cb6c0 100644
--- a/htdocs/webservices/server_user.php
+++ b/htdocs/webservices/server_user.php
@@ -757,4 +757,3 @@ function setUserPassword($authentication,$shortuser) {
 // Return the results.
 $server->service($HTTP_RAW_POST_DATA);
 
-?>
diff --git a/scripts/bank/export-bank-receipts.php b/scripts/bank/export-bank-receipts.php
index 00a193efd29f0a6852e13942c4866e2a5ca4430a..5d59914f743c188899f7a0ec7b6597eb9710f070 100755
--- a/scripts/bank/export-bank-receipts.php
+++ b/scripts/bank/export-bank-receipts.php
@@ -445,4 +445,3 @@ else
 $db->close();
 
 exit($ret);
-?>
\ No newline at end of file
diff --git a/scripts/company/sync_contacts_dolibarr2ldap.php b/scripts/company/sync_contacts_dolibarr2ldap.php
index d4e6f9e7ca5866eb98c38a1b44ab19d038aa8f23..e64c54eb1de8464d84727405bc954daafb98c7e9 100755
--- a/scripts/company/sync_contacts_dolibarr2ldap.php
+++ b/scripts/company/sync_contacts_dolibarr2ldap.php
@@ -149,4 +149,3 @@ else
 }
 
 exit($error);
-?>
diff --git a/scripts/contracts/email_expire_services_to_customers.php b/scripts/contracts/email_expire_services_to_customers.php
index 458f0989bb293f3d8e9d88338fbd7dbb1bba00ed..0a8dc701206b7c0aab123ac5face9e68b1551f80 100755
--- a/scripts/contracts/email_expire_services_to_customers.php
+++ b/scripts/contracts/email_expire_services_to_customers.php
@@ -318,4 +318,3 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldtarget,$durati
     }
 }
 
-?>
diff --git a/scripts/contracts/email_expire_services_to_representatives.php b/scripts/contracts/email_expire_services_to_representatives.php
index da16a328bcfaa9e4841e96ffef4472d1710cca47..5d4fa4f0e3233829919549ed44c733630a4db6ef 100755
--- a/scripts/contracts/email_expire_services_to_representatives.php
+++ b/scripts/contracts/email_expire_services_to_representatives.php
@@ -284,4 +284,3 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldsalerepresenta
     }
 }
 
-?>
diff --git a/scripts/cron/cron_run_jobs.php b/scripts/cron/cron_run_jobs.php
index 988d0a9c7a44cd622099694a8727fd477e17f8db..d2e62831da87899a9a52cc2026f7c050203a29dd 100755
--- a/scripts/cron/cron_run_jobs.php
+++ b/scripts/cron/cron_run_jobs.php
@@ -160,4 +160,3 @@ if(is_array($object->lines) && (count($object->lines)>0))
 $db->close();
 
 exit(0);
-?>
diff --git a/scripts/emailings/mailing-send.php b/scripts/emailings/mailing-send.php
index 4742cf59b18394cec45d64fde41b8c111a816519..aef1bc7f8469760e0580b66845156c5cc9bd0bb5 100755
--- a/scripts/emailings/mailing-send.php
+++ b/scripts/emailings/mailing-send.php
@@ -311,4 +311,3 @@ else
 
 
 exit($error);
-?>
diff --git a/scripts/invoices/email_unpaid_invoices_to_customers.php b/scripts/invoices/email_unpaid_invoices_to_customers.php
index 52bc8bd14421da2e63b21eac45b4818a4ab33c00..6ddf05a99c1baae50651df5295ce31663a25900d 100755
--- a/scripts/invoices/email_unpaid_invoices_to_customers.php
+++ b/scripts/invoices/email_unpaid_invoices_to_customers.php
@@ -305,4 +305,3 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldtarget)
     }
 }
 
-?>
diff --git a/scripts/invoices/email_unpaid_invoices_to_representatives.php b/scripts/invoices/email_unpaid_invoices_to_representatives.php
index e83dbe5b7956a877059377aa8d77041f4a705767..78b4d46071dcb1a6f296c3c67263d1dce508d7c4 100755
--- a/scripts/invoices/email_unpaid_invoices_to_representatives.php
+++ b/scripts/invoices/email_unpaid_invoices_to_representatives.php
@@ -277,4 +277,3 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldsalerepresenta
     }
 }
 
-?>
diff --git a/scripts/invoices/rebuild_merge_pdf.php b/scripts/invoices/rebuild_merge_pdf.php
index 9646e808c376246504a021c162d77edbb401f36a..f68bff66cb811ba19aab393780c55fd0ba1e62b4 100755
--- a/scripts/invoices/rebuild_merge_pdf.php
+++ b/scripts/invoices/rebuild_merge_pdf.php
@@ -289,4 +289,3 @@ function usage()
 	print "\n";
 	print "Note that some filters can be cumulated.\n";
 }
-?>
diff --git a/scripts/members/sync_members_dolibarr2ldap.php b/scripts/members/sync_members_dolibarr2ldap.php
index 840cf464ba22e3ecf14661910999379dc344c330..c5307b176732c2e64ab25ea10f4c6dbbe5a0d254 100755
--- a/scripts/members/sync_members_dolibarr2ldap.php
+++ b/scripts/members/sync_members_dolibarr2ldap.php
@@ -160,4 +160,3 @@ else
 }
 
 exit($error);
-?>
diff --git a/scripts/members/sync_members_ldap2dolibarr.php b/scripts/members/sync_members_ldap2dolibarr.php
index 56c91255c7e769b84238e1c55a6b13f6388828e2..9a662839a3f8b8332f723f67be8c017955440a0d 100755
--- a/scripts/members/sync_members_ldap2dolibarr.php
+++ b/scripts/members/sync_members_ldap2dolibarr.php
@@ -341,4 +341,3 @@ function dolValidElement($element)
 	return (trim($element) != '');
 }
 
-?>
diff --git a/scripts/user/sync_groups_dolibarr2ldap.php b/scripts/user/sync_groups_dolibarr2ldap.php
index c67932120320daca13efe8480e9c7e812ce3f9f2..d75f84a9cdbdfc23eeda21e110e027dafe30cb0b 100755
--- a/scripts/user/sync_groups_dolibarr2ldap.php
+++ b/scripts/user/sync_groups_dolibarr2ldap.php
@@ -122,4 +122,3 @@ else
 }
 
 exit($error);
-?>
diff --git a/scripts/user/sync_groups_ldap2dolibarr.php b/scripts/user/sync_groups_ldap2dolibarr.php
index e7bf8773a2578947c918708431e85cf01d1b7e9b..fa29e4465c0fcdaef7cad51f00456a41611aaffa 100755
--- a/scripts/user/sync_groups_ldap2dolibarr.php
+++ b/scripts/user/sync_groups_ldap2dolibarr.php
@@ -256,4 +256,3 @@ function dolValidElement($element)
 	return (trim($element) != '');
 }
 
-?>
diff --git a/scripts/user/sync_users_dolibarr2ldap.php b/scripts/user/sync_users_dolibarr2ldap.php
index 9fcd3bc40dc7dd53f3f2b72bd726e93f1428a456..ea56d86a8ec6a70ac236c5bb0c2386a7e1ccc671 100755
--- a/scripts/user/sync_users_dolibarr2ldap.php
+++ b/scripts/user/sync_users_dolibarr2ldap.php
@@ -121,4 +121,3 @@ else
 }
 
 exit($error);
-?>
\ No newline at end of file
diff --git a/scripts/withdrawals/build_withdrawal_file.php b/scripts/withdrawals/build_withdrawal_file.php
index a842aeb1f1b2a313e43600016cf8bbc3c17cecf1..b8be0c9b2449a34a9672567432ada3ef77b2807b 100755
--- a/scripts/withdrawals/build_withdrawal_file.php
+++ b/scripts/withdrawals/build_withdrawal_file.php
@@ -76,4 +76,3 @@ $result=$withdrawreceipt->create($conf->global->PRELEVEMENT_CODE_BANQUE,$conf->g
 $db->close();
 
 exit(0);
-?>
diff --git a/test/phpunit/AdherentTest.php b/test/phpunit/AdherentTest.php
index 714ac5c05d6587208ec6e6ae7fe7ae45c84c5ca8..459050a7ba6cee337998db9c2a0c7d47e34e5aa7 100644
--- a/test/phpunit/AdherentTest.php
+++ b/test/phpunit/AdherentTest.php
@@ -534,4 +534,3 @@ class AdherentTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
diff --git a/test/phpunit/AdminLibTest.php b/test/phpunit/AdminLibTest.php
index 562a5d5c7143de18cbc59b01c37946016b342ff3..90b0951cc86a952f8644a0f67a835a3850773d9e 100644
--- a/test/phpunit/AdminLibTest.php
+++ b/test/phpunit/AdminLibTest.php
@@ -142,4 +142,3 @@ class AdminLibTest extends PHPUnit_Framework_TestCase
 		return $result;
     }
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/BankAccountTest.php b/test/phpunit/BankAccountTest.php
index 4999e7a2014e5ddec096cde58feed09c5afcd325..4983f1e2173a99d194303ca5722d96b47c2ec992 100644
--- a/test/phpunit/BankAccountTest.php
+++ b/test/phpunit/BankAccountTest.php
@@ -221,4 +221,3 @@ class BankAccountTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/CMailFileTest.php b/test/phpunit/CMailFileTest.php
index 232d10c4e7822eb8ab13fb243b6c04d4b24224e6..26e18161b776b31ccd9fae64076e91b412d2a37e 100755
--- a/test/phpunit/CMailFileTest.php
+++ b/test/phpunit/CMailFileTest.php
@@ -179,4 +179,3 @@ class CMailFileTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/ContratTest.php b/test/phpunit/ContratTest.php
index 4a629ac3b16be992f157d40a3562fb96ec142123..2c9eaf6dc9d2a3234c82796182c19f858d771a56 100644
--- a/test/phpunit/ContratTest.php
+++ b/test/phpunit/ContratTest.php
@@ -265,4 +265,3 @@ class ContratTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/DateLibTzFranceTest.php b/test/phpunit/DateLibTzFranceTest.php
index 23947c0f7538cc1d22206fe87d28075e02d3b3b0..22bfc12590e08006c21b75c9ace364ce68ce6a63 100644
--- a/test/phpunit/DateLibTzFranceTest.php
+++ b/test/phpunit/DateLibTzFranceTest.php
@@ -199,4 +199,3 @@ class DateLibTzFranceTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/FormAdminTest.php b/test/phpunit/FormAdminTest.php
index 0d204f3b365fb2251ea3c8f4ed7aaa8aed7dbe5f..265f8e627598033ae614ae1273cb8eecc4417f6d 100644
--- a/test/phpunit/FormAdminTest.php
+++ b/test/phpunit/FormAdminTest.php
@@ -136,4 +136,3 @@ class FormAdminTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/ImagesLibTest.php b/test/phpunit/ImagesLibTest.php
index e485e4545162404659fce41db5fd981a290c5b1c..f43bfe1c16980277aa351bcfb0cd2ad160508113 100644
--- a/test/phpunit/ImagesLibTest.php
+++ b/test/phpunit/ImagesLibTest.php
@@ -143,4 +143,3 @@ class ImagesLibTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/ModulesTest.php b/test/phpunit/ModulesTest.php
index 26f76e942f9cb3b9bba5506e1ca89e09d60e1372..974ce8ea70a62202545b842cb3d5a80c903e1e00 100755
--- a/test/phpunit/ModulesTest.php
+++ b/test/phpunit/ModulesTest.php
@@ -146,4 +146,3 @@ class ModulesTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/PaypalTest.php b/test/phpunit/PaypalTest.php
index 065fb3973c22d7688d8c3777c8bb4db418a46262..20feab6fb0a6c826bb86b1d802cd221a74cae34f 100644
--- a/test/phpunit/PaypalTest.php
+++ b/test/phpunit/PaypalTest.php
@@ -143,4 +143,3 @@ class PaypalTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/PgsqlTest.php b/test/phpunit/PgsqlTest.php
index a354071588987624c3f3c538b8564864b7461b24..4fdca35eb82109b09d294d2c0c234387426f934b 100755
--- a/test/phpunit/PgsqlTest.php
+++ b/test/phpunit/PgsqlTest.php
@@ -163,4 +163,3 @@ class PgsqlTest extends PHPUnit_Framework_TestCase
     	return $result;
     }
 }
-?>
diff --git a/test/phpunit/PricesTest.php b/test/phpunit/PricesTest.php
index 7e403795182b6aeb0ff3ab8a3fe3d5f494258219..87ffd9c6066f079b63c1462df0995a0fa7a8b33d 100755
--- a/test/phpunit/PricesTest.php
+++ b/test/phpunit/PricesTest.php
@@ -235,4 +235,3 @@ class PricesTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
diff --git a/test/phpunit/ProductTest.php b/test/phpunit/ProductTest.php
index 371bee4928bd5f6d50d0e2d652619e91a763ae99..852292a0ad97c491e95ac734d18f15ac0f4e756c 100755
--- a/test/phpunit/ProductTest.php
+++ b/test/phpunit/ProductTest.php
@@ -257,4 +257,3 @@ class ProductTest extends PHPUnit_Framework_TestCase
         return;
     }
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/SqlTest.php b/test/phpunit/SqlTest.php
index ff8a5d0475d788f7cced12cdaf1d41999e2414fe..bd2a3c57b5d3fc817e113b7d2e5396cfd4f88347 100755
--- a/test/phpunit/SqlTest.php
+++ b/test/phpunit/SqlTest.php
@@ -159,4 +159,3 @@ class SqlTest extends PHPUnit_Framework_TestCase
         return;
     }
 }
-?>
\ No newline at end of file