*** empty log message ***
This commit is contained in:
parent
dc31ffc437
commit
ddc4186387
@ -1,3 +1,3 @@
|
||||
index.php
|
||||
documents
|
||||
*.htaccess
|
||||
index.php
|
||||
documents
|
||||
*.htaccess
|
||||
|
||||
@ -1,31 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<PADGEN_CML>
|
||||
<AppVerInfo>PADGen 2.0.2.30</AppVerInfo>
|
||||
<Company_Info>
|
||||
<Company_Name>Dolibarr Developpers</Company_Name>
|
||||
<Address_1 />
|
||||
<Address_2 />
|
||||
<City_Town>Paris</City_Town>
|
||||
<State_Province />
|
||||
<Zip_Postal_Code />
|
||||
<Country>FRANCE</Country>
|
||||
<Company_WebSite_URL>http://www.dolibarr.org</Company_WebSite_URL>
|
||||
<Contact_Info>
|
||||
<Author_First_Name>Dolibarr team</Author_First_Name>
|
||||
<Author_Last_Name>Dolibarr team</Author_Last_Name>
|
||||
<Author_Email>dolibarr-dev@nongnu.org</Author_Email>
|
||||
<Contact_First_Name>Dolibarr team</Contact_First_Name>
|
||||
<Contact_Last_Name>Dolibarr team</Contact_Last_Name>
|
||||
<Contact_Email>dolibarr-dev@nongnu.org</Contact_Email>
|
||||
</Contact_Info>
|
||||
<Support_Info>
|
||||
<Sales_Email>dolibarr-dev@nongnu.org</Sales_Email>
|
||||
<Support_Email>dolibarr-dev@nongnu.org</Support_Email>
|
||||
<General_Email>dolibarr-dev@nongnu.org</General_Email>
|
||||
<Sales_Phone />
|
||||
<Support_Phone />
|
||||
<General_Phone />
|
||||
<Fax_Phone />
|
||||
</Support_Info>
|
||||
</Company_Info>
|
||||
</PADGEN_CML>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<PADGEN_CML>
|
||||
<AppVerInfo>PADGen 2.0.2.30</AppVerInfo>
|
||||
<Company_Info>
|
||||
<Company_Name>Dolibarr Developpers</Company_Name>
|
||||
<Address_1 />
|
||||
<Address_2 />
|
||||
<City_Town>Paris</City_Town>
|
||||
<State_Province />
|
||||
<Zip_Postal_Code />
|
||||
<Country>FRANCE</Country>
|
||||
<Company_WebSite_URL>http://www.dolibarr.org</Company_WebSite_URL>
|
||||
<Contact_Info>
|
||||
<Author_First_Name>Dolibarr team</Author_First_Name>
|
||||
<Author_Last_Name>Dolibarr team</Author_Last_Name>
|
||||
<Author_Email>dolibarr-dev@nongnu.org</Author_Email>
|
||||
<Contact_First_Name>Dolibarr team</Contact_First_Name>
|
||||
<Contact_Last_Name>Dolibarr team</Contact_Last_Name>
|
||||
<Contact_Email>dolibarr-dev@nongnu.org</Contact_Email>
|
||||
</Contact_Info>
|
||||
<Support_Info>
|
||||
<Sales_Email>dolibarr-dev@nongnu.org</Sales_Email>
|
||||
<Support_Email>dolibarr-dev@nongnu.org</Support_Email>
|
||||
<General_Email>dolibarr-dev@nongnu.org</General_Email>
|
||||
<Sales_Phone />
|
||||
<Support_Phone />
|
||||
<General_Phone />
|
||||
<Fax_Phone />
|
||||
</Support_Info>
|
||||
</Company_Info>
|
||||
</PADGEN_CML>
|
||||
|
||||
@ -1,178 +1,178 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<PADGEN_PML>
|
||||
<AppVerInfo>PADGen 2.0.2.30</AppVerInfo>
|
||||
<CompanyName />
|
||||
<Program_Info>
|
||||
<Program_Name>Dolibarr</Program_Name>
|
||||
<Program_Version>2.1</Program_Version>
|
||||
<Program_Release_Month>07</Program_Release_Month>
|
||||
<Program_Release_Day>14</Program_Release_Day>
|
||||
<Program_Release_Year>2006</Program_Release_Year>
|
||||
<Program_Cost_Dollars>0</Program_Cost_Dollars>
|
||||
<Program_Cost_Other_Code />
|
||||
<Program_Cost_Other>0</Program_Cost_Other>
|
||||
<Program_Type>Freeware</Program_Type>
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>Uninstall Only</Program_Install_Support>
|
||||
<Program_OS_Support>Win95,Win98,WinME,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Starter,Windows Vista Home Basic,Windows Vista Home Premium,Windows Vista Business,Windows Vista Enterprise,Windows Vista Ultimate,Windows Vista Home Basic x64,Windows Vista Home Premium x64,Windows Vista Business x64,Windows Vista Enterprise x64,Windows Vista Ultimate x64,Unix,Linux,OS/2,OS/2 Warp,OS/2 Warp 4,MAC 68k,Mac PPC,Mac OS X,Mac Other,BEOS</Program_OS_Support>
|
||||
<Program_Language>English,French</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
<File_Info>
|
||||
<File_Size_Bytes>1016660</File_Size_Bytes>
|
||||
<File_Size_K>992</File_Size_K>
|
||||
<File_Size_MB>0.97</File_Size_MB>
|
||||
</File_Info>
|
||||
<Expire_Info>
|
||||
<Has_Expire_Info>N</Has_Expire_Info>
|
||||
<Expire_Count />
|
||||
<Expire_Based_On>Days</Expire_Based_On>
|
||||
<Expire_Other_Info />
|
||||
<Expire_Month />
|
||||
<Expire_Day />
|
||||
<Expire_Year />
|
||||
</Expire_Info>
|
||||
</Program_Info>
|
||||
<Program_Descriptions>
|
||||
<English>
|
||||
<Keywords>dolibarr</Keywords>
|
||||
<Char_Desc_45>Dolibarr ERP/CRM</Char_Desc_45>
|
||||
<Char_Desc_80>Dolibarr ERP/CRM</Char_Desc_80>
|
||||
<Char_Desc_250>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_250>
|
||||
<Char_Desc_450>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_450>
|
||||
<Char_Desc_2000>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_2000>
|
||||
</English>
|
||||
<French>
|
||||
<Keywords />
|
||||
<Char_Desc_45 />
|
||||
<Char_Desc_80 />
|
||||
<Char_Desc_250 />
|
||||
<Char_Desc_450 />
|
||||
<Char_Desc_2000 />
|
||||
</French>
|
||||
</Program_Descriptions>
|
||||
<Web_Info>
|
||||
<Application_URLs>
|
||||
<Application_Info_URL>http://www.dolibarr.org</Application_Info_URL>
|
||||
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
|
||||
<Application_Screenshot_URL>http://www.dolibarr.org/demo/doc/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
|
||||
<Application_Icon_URL>http://www.dolibarr.org/demo/doc/images/dolibarr.ico</Application_Icon_URL>
|
||||
<Application_XML_File_URL>http://www.dolibarr.org/demo/build/pad/pad_dolibarr.xml</Application_XML_File_URL>
|
||||
</Application_URLs>
|
||||
<Download_URLs>
|
||||
<Primary_Download_URL />
|
||||
<Secondary_Download_URL />
|
||||
<Additional_Download_URL_1 />
|
||||
<Additional_Download_URL_2 />
|
||||
</Download_URLs>
|
||||
</Web_Info>
|
||||
<Permissions>
|
||||
<Distribution_Permissions>GNU GPL</Distribution_Permissions>
|
||||
<EULA>GNU GPL</EULA>
|
||||
</Permissions>
|
||||
<ASP>
|
||||
<ASP_FORM>Y</ASP_FORM>
|
||||
<ASP_Member>N</ASP_Member>
|
||||
<ASP_Member_Number />
|
||||
</ASP>
|
||||
<Affiliates>
|
||||
<Affiliates_FORM>Y</Affiliates_FORM>
|
||||
<Affiliates_VERSION>1.2</Affiliates_VERSION>
|
||||
<Affiliates_URL>http://www.asp-shareware.org/pad/extensions/Affiliates.htm</Affiliates_URL>
|
||||
<Affiliates_Information_Page />
|
||||
<Affiliates_Avangate_Order_Page />
|
||||
<Affiliates_Avangate_Vendor_ID />
|
||||
<Affiliates_Avangate_Product_ID />
|
||||
<Affiliates_Avangate_Maximum_Commission_Rate />
|
||||
<Affiliates_BMTMicro_Order_Page />
|
||||
<Affiliates_BMTMicro_Vendor_ID />
|
||||
<Affiliates_BMTMicro_Product_ID />
|
||||
<Affiliates_BMTMicro_Maximum_Commission_Rate />
|
||||
<Affiliates_clixGalore_Order_Page />
|
||||
<Affiliates_clixGalore_Vendor_ID />
|
||||
<Affiliates_clixGalore_Product_ID />
|
||||
<Affiliates_clixGalore_Maximum_Commission_Rate />
|
||||
<Affiliates_CommissionJunction_Order_Page />
|
||||
<Affiliates_CommissionJunction_Vendor_ID />
|
||||
<Affiliates_CommissionJunction_Product_ID />
|
||||
<Affiliates_CommissionJunction_Maximum_Commission_Rate />
|
||||
<Affiliates_DigiBuy_Order_Page />
|
||||
<Affiliates_DigiBuy_Vendor_ID />
|
||||
<Affiliates_DigiBuy_Product_ID />
|
||||
<Affiliates_DigiBuy_Maximum_Commission_Rate />
|
||||
<Affiliates_DigitalCandle_Order_Page />
|
||||
<Affiliates_DigitalCandle_Vendor_ID />
|
||||
<Affiliates_DigitalCandle_Product_ID />
|
||||
<Affiliates_DigitalCandle_Maximum_Commission_Rate />
|
||||
<Affiliates_Emetrix_Order_Page />
|
||||
<Affiliates_Emetrix_Vendor_ID />
|
||||
<Affiliates_Emetrix_Product_ID />
|
||||
<Affiliates_Emetrix_Maximum_Commission_Rate />
|
||||
<Affiliates_eSellerate_Order_Page />
|
||||
<Affiliates_eSellerate_Vendor_ID />
|
||||
<Affiliates_eSellerate_Product_ID />
|
||||
<Affiliates_eSellerate_Maximum_Commission_Rate />
|
||||
<Affiliates_Kagi_Order_Page />
|
||||
<Affiliates_Kagi_Vendor_ID />
|
||||
<Affiliates_Kagi_Product_ID />
|
||||
<Affiliates_Kagi_Maximum_Commission_Rate />
|
||||
<Affiliates_LinkShare_Order_Page />
|
||||
<Affiliates_LinkShare_Vendor_ID />
|
||||
<Affiliates_LinkShare_Product_ID />
|
||||
<Affiliates_LinkShare_Maximum_Commission_Rate />
|
||||
<Affiliates_NorthStarSol_Order_Page />
|
||||
<Affiliates_NorthStarSol_Vendor_ID />
|
||||
<Affiliates_NorthStarSol_Product_ID />
|
||||
<Affiliates_NorthStarSol_Maximum_Commission_Rate />
|
||||
<Affiliates_Order1_Order_Page />
|
||||
<Affiliates_Order1_Vendor_ID />
|
||||
<Affiliates_Order1_Product_ID />
|
||||
<Affiliates_Order1_Maximum_Commission_Rate />
|
||||
<Affiliates_Osolis_Order_Page />
|
||||
<Affiliates_Osolis_Vendor_ID />
|
||||
<Affiliates_Osolis_Product_ID />
|
||||
<Affiliates_Osolis_Maximum_Commission_Rate />
|
||||
<Affiliates_Plimus_Order_Page />
|
||||
<Affiliates_Plimus_Vendor_ID />
|
||||
<Affiliates_Plimus_Product_ID />
|
||||
<Affiliates_Plimus_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnet_Order_Page />
|
||||
<Affiliates_Regnet_Vendor_ID />
|
||||
<Affiliates_Regnet_Product_ID />
|
||||
<Affiliates_Regnet_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnow_Order_Page />
|
||||
<Affiliates_Regnow_Vendor_ID />
|
||||
<Affiliates_Regnow_Product_ID />
|
||||
<Affiliates_Regnow_Maximum_Commission_Rate />
|
||||
<Affiliates_Regsoft_Order_Page />
|
||||
<Affiliates_Regsoft_Vendor_ID />
|
||||
<Affiliates_Regsoft_Product_ID />
|
||||
<Affiliates_Regsoft_Maximum_Commission_Rate />
|
||||
<Affiliates_ShareIt_Order_Page />
|
||||
<Affiliates_ShareIt_Vendor_ID />
|
||||
<Affiliates_ShareIt_Product_ID />
|
||||
<Affiliates_ShareIt_Maximum_Commission_Rate />
|
||||
<Affiliates_Shareasale_Order_Page />
|
||||
<Affiliates_Shareasale_Vendor_ID />
|
||||
<Affiliates_Shareasale_Product_ID />
|
||||
<Affiliates_Shareasale_Maximum_Commission_Rate />
|
||||
<Affiliates_SWReg_Order_Page />
|
||||
<Affiliates_SWReg_Vendor_ID />
|
||||
<Affiliates_SWReg_Product_ID />
|
||||
<Affiliates_SWReg_Maximum_Commission_Rate />
|
||||
<Affiliates_V-Share_Order_Page />
|
||||
<Affiliates_V-Share_Vendor_ID />
|
||||
<Affiliates_V-Share_Product_ID />
|
||||
<Affiliates_V-Share_Maximum_Commission_Rate />
|
||||
<Affiliates_VFree_Order_Page />
|
||||
<Affiliates_VFree_Vendor_ID />
|
||||
<Affiliates_VFree_Product_ID />
|
||||
<Affiliates_VFree_Maximum_Commission_Rate />
|
||||
<Affiliates_Yaskifo_Order_Page />
|
||||
<Affiliates_Yaskifo_Vendor_ID />
|
||||
<Affiliates_Yaskifo_Product_ID />
|
||||
<Affiliates_Yaskifo_Maximum_Commission_Rate />
|
||||
</Affiliates>
|
||||
</PADGEN_PML>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<PADGEN_PML>
|
||||
<AppVerInfo>PADGen 2.0.2.30</AppVerInfo>
|
||||
<CompanyName />
|
||||
<Program_Info>
|
||||
<Program_Name>Dolibarr</Program_Name>
|
||||
<Program_Version>2.1</Program_Version>
|
||||
<Program_Release_Month>07</Program_Release_Month>
|
||||
<Program_Release_Day>14</Program_Release_Day>
|
||||
<Program_Release_Year>2006</Program_Release_Year>
|
||||
<Program_Cost_Dollars>0</Program_Cost_Dollars>
|
||||
<Program_Cost_Other_Code />
|
||||
<Program_Cost_Other>0</Program_Cost_Other>
|
||||
<Program_Type>Freeware</Program_Type>
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>Uninstall Only</Program_Install_Support>
|
||||
<Program_OS_Support>Win95,Win98,WinME,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Starter,Windows Vista Home Basic,Windows Vista Home Premium,Windows Vista Business,Windows Vista Enterprise,Windows Vista Ultimate,Windows Vista Home Basic x64,Windows Vista Home Premium x64,Windows Vista Business x64,Windows Vista Enterprise x64,Windows Vista Ultimate x64,Unix,Linux,OS/2,OS/2 Warp,OS/2 Warp 4,MAC 68k,Mac PPC,Mac OS X,Mac Other,BEOS</Program_OS_Support>
|
||||
<Program_Language>English,French</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
<File_Info>
|
||||
<File_Size_Bytes>1016660</File_Size_Bytes>
|
||||
<File_Size_K>992</File_Size_K>
|
||||
<File_Size_MB>0.97</File_Size_MB>
|
||||
</File_Info>
|
||||
<Expire_Info>
|
||||
<Has_Expire_Info>N</Has_Expire_Info>
|
||||
<Expire_Count />
|
||||
<Expire_Based_On>Days</Expire_Based_On>
|
||||
<Expire_Other_Info />
|
||||
<Expire_Month />
|
||||
<Expire_Day />
|
||||
<Expire_Year />
|
||||
</Expire_Info>
|
||||
</Program_Info>
|
||||
<Program_Descriptions>
|
||||
<English>
|
||||
<Keywords>dolibarr</Keywords>
|
||||
<Char_Desc_45>Dolibarr ERP/CRM</Char_Desc_45>
|
||||
<Char_Desc_80>Dolibarr ERP/CRM</Char_Desc_80>
|
||||
<Char_Desc_250>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_250>
|
||||
<Char_Desc_450>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_450>
|
||||
<Char_Desc_2000>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_2000>
|
||||
</English>
|
||||
<French>
|
||||
<Keywords />
|
||||
<Char_Desc_45 />
|
||||
<Char_Desc_80 />
|
||||
<Char_Desc_250 />
|
||||
<Char_Desc_450 />
|
||||
<Char_Desc_2000 />
|
||||
</French>
|
||||
</Program_Descriptions>
|
||||
<Web_Info>
|
||||
<Application_URLs>
|
||||
<Application_Info_URL>http://www.dolibarr.org</Application_Info_URL>
|
||||
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
|
||||
<Application_Screenshot_URL>http://www.dolibarr.org/demo/doc/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
|
||||
<Application_Icon_URL>http://www.dolibarr.org/demo/doc/images/dolibarr.ico</Application_Icon_URL>
|
||||
<Application_XML_File_URL>http://www.dolibarr.org/demo/build/pad/pad_dolibarr.xml</Application_XML_File_URL>
|
||||
</Application_URLs>
|
||||
<Download_URLs>
|
||||
<Primary_Download_URL />
|
||||
<Secondary_Download_URL />
|
||||
<Additional_Download_URL_1 />
|
||||
<Additional_Download_URL_2 />
|
||||
</Download_URLs>
|
||||
</Web_Info>
|
||||
<Permissions>
|
||||
<Distribution_Permissions>GNU GPL</Distribution_Permissions>
|
||||
<EULA>GNU GPL</EULA>
|
||||
</Permissions>
|
||||
<ASP>
|
||||
<ASP_FORM>Y</ASP_FORM>
|
||||
<ASP_Member>N</ASP_Member>
|
||||
<ASP_Member_Number />
|
||||
</ASP>
|
||||
<Affiliates>
|
||||
<Affiliates_FORM>Y</Affiliates_FORM>
|
||||
<Affiliates_VERSION>1.2</Affiliates_VERSION>
|
||||
<Affiliates_URL>http://www.asp-shareware.org/pad/extensions/Affiliates.htm</Affiliates_URL>
|
||||
<Affiliates_Information_Page />
|
||||
<Affiliates_Avangate_Order_Page />
|
||||
<Affiliates_Avangate_Vendor_ID />
|
||||
<Affiliates_Avangate_Product_ID />
|
||||
<Affiliates_Avangate_Maximum_Commission_Rate />
|
||||
<Affiliates_BMTMicro_Order_Page />
|
||||
<Affiliates_BMTMicro_Vendor_ID />
|
||||
<Affiliates_BMTMicro_Product_ID />
|
||||
<Affiliates_BMTMicro_Maximum_Commission_Rate />
|
||||
<Affiliates_clixGalore_Order_Page />
|
||||
<Affiliates_clixGalore_Vendor_ID />
|
||||
<Affiliates_clixGalore_Product_ID />
|
||||
<Affiliates_clixGalore_Maximum_Commission_Rate />
|
||||
<Affiliates_CommissionJunction_Order_Page />
|
||||
<Affiliates_CommissionJunction_Vendor_ID />
|
||||
<Affiliates_CommissionJunction_Product_ID />
|
||||
<Affiliates_CommissionJunction_Maximum_Commission_Rate />
|
||||
<Affiliates_DigiBuy_Order_Page />
|
||||
<Affiliates_DigiBuy_Vendor_ID />
|
||||
<Affiliates_DigiBuy_Product_ID />
|
||||
<Affiliates_DigiBuy_Maximum_Commission_Rate />
|
||||
<Affiliates_DigitalCandle_Order_Page />
|
||||
<Affiliates_DigitalCandle_Vendor_ID />
|
||||
<Affiliates_DigitalCandle_Product_ID />
|
||||
<Affiliates_DigitalCandle_Maximum_Commission_Rate />
|
||||
<Affiliates_Emetrix_Order_Page />
|
||||
<Affiliates_Emetrix_Vendor_ID />
|
||||
<Affiliates_Emetrix_Product_ID />
|
||||
<Affiliates_Emetrix_Maximum_Commission_Rate />
|
||||
<Affiliates_eSellerate_Order_Page />
|
||||
<Affiliates_eSellerate_Vendor_ID />
|
||||
<Affiliates_eSellerate_Product_ID />
|
||||
<Affiliates_eSellerate_Maximum_Commission_Rate />
|
||||
<Affiliates_Kagi_Order_Page />
|
||||
<Affiliates_Kagi_Vendor_ID />
|
||||
<Affiliates_Kagi_Product_ID />
|
||||
<Affiliates_Kagi_Maximum_Commission_Rate />
|
||||
<Affiliates_LinkShare_Order_Page />
|
||||
<Affiliates_LinkShare_Vendor_ID />
|
||||
<Affiliates_LinkShare_Product_ID />
|
||||
<Affiliates_LinkShare_Maximum_Commission_Rate />
|
||||
<Affiliates_NorthStarSol_Order_Page />
|
||||
<Affiliates_NorthStarSol_Vendor_ID />
|
||||
<Affiliates_NorthStarSol_Product_ID />
|
||||
<Affiliates_NorthStarSol_Maximum_Commission_Rate />
|
||||
<Affiliates_Order1_Order_Page />
|
||||
<Affiliates_Order1_Vendor_ID />
|
||||
<Affiliates_Order1_Product_ID />
|
||||
<Affiliates_Order1_Maximum_Commission_Rate />
|
||||
<Affiliates_Osolis_Order_Page />
|
||||
<Affiliates_Osolis_Vendor_ID />
|
||||
<Affiliates_Osolis_Product_ID />
|
||||
<Affiliates_Osolis_Maximum_Commission_Rate />
|
||||
<Affiliates_Plimus_Order_Page />
|
||||
<Affiliates_Plimus_Vendor_ID />
|
||||
<Affiliates_Plimus_Product_ID />
|
||||
<Affiliates_Plimus_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnet_Order_Page />
|
||||
<Affiliates_Regnet_Vendor_ID />
|
||||
<Affiliates_Regnet_Product_ID />
|
||||
<Affiliates_Regnet_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnow_Order_Page />
|
||||
<Affiliates_Regnow_Vendor_ID />
|
||||
<Affiliates_Regnow_Product_ID />
|
||||
<Affiliates_Regnow_Maximum_Commission_Rate />
|
||||
<Affiliates_Regsoft_Order_Page />
|
||||
<Affiliates_Regsoft_Vendor_ID />
|
||||
<Affiliates_Regsoft_Product_ID />
|
||||
<Affiliates_Regsoft_Maximum_Commission_Rate />
|
||||
<Affiliates_ShareIt_Order_Page />
|
||||
<Affiliates_ShareIt_Vendor_ID />
|
||||
<Affiliates_ShareIt_Product_ID />
|
||||
<Affiliates_ShareIt_Maximum_Commission_Rate />
|
||||
<Affiliates_Shareasale_Order_Page />
|
||||
<Affiliates_Shareasale_Vendor_ID />
|
||||
<Affiliates_Shareasale_Product_ID />
|
||||
<Affiliates_Shareasale_Maximum_Commission_Rate />
|
||||
<Affiliates_SWReg_Order_Page />
|
||||
<Affiliates_SWReg_Vendor_ID />
|
||||
<Affiliates_SWReg_Product_ID />
|
||||
<Affiliates_SWReg_Maximum_Commission_Rate />
|
||||
<Affiliates_V-Share_Order_Page />
|
||||
<Affiliates_V-Share_Vendor_ID />
|
||||
<Affiliates_V-Share_Product_ID />
|
||||
<Affiliates_V-Share_Maximum_Commission_Rate />
|
||||
<Affiliates_VFree_Order_Page />
|
||||
<Affiliates_VFree_Vendor_ID />
|
||||
<Affiliates_VFree_Product_ID />
|
||||
<Affiliates_VFree_Maximum_Commission_Rate />
|
||||
<Affiliates_Yaskifo_Order_Page />
|
||||
<Affiliates_Yaskifo_Vendor_ID />
|
||||
<Affiliates_Yaskifo_Product_ID />
|
||||
<Affiliates_Yaskifo_Maximum_Commission_Rate />
|
||||
</Affiliates>
|
||||
</PADGEN_PML>
|
||||
|
||||
@ -1,178 +1,178 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<PADGEN_PML>
|
||||
<AppVerInfo>PADGen 3.0.1.35</AppVerInfo>
|
||||
<CompanyName />
|
||||
<Program_Info>
|
||||
<Program_Name>Dolibarr</Program_Name>
|
||||
<Program_Version>2.1</Program_Version>
|
||||
<Program_Release_Month>04</Program_Release_Month>
|
||||
<Program_Release_Day>27</Program_Release_Day>
|
||||
<Program_Release_Year>2007</Program_Release_Year>
|
||||
<Program_Cost_Dollars />
|
||||
<Program_Cost_Other_Code />
|
||||
<Program_Cost_Other />
|
||||
<Program_Type>Freeware</Program_Type>
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>No Install Support</Program_Install_Support>
|
||||
<Program_OS_Support>Win95,Win98,WinME,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Starter,Windows Vista Home Basic,Windows Vista Home Premium,Windows Vista Business,Windows Vista Enterprise,Windows Vista Ultimate,Windows Vista Home Basic x64,Windows Vista Home Premium x64,Windows Vista Business x64,Windows Vista Enterprise x64,Windows Vista Ultimate x64,Unix,Linux,OS/2,OS/2 Warp,OS/2 Warp 4,MAC 68k,Mac PPC,Mac OS X,Mac Other,BEOS</Program_OS_Support>
|
||||
<Program_Language>English,French</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
<File_Info>
|
||||
<File_Size_Bytes>1016660</File_Size_Bytes>
|
||||
<File_Size_K>992</File_Size_K>
|
||||
<File_Size_MB>0.97</File_Size_MB>
|
||||
</File_Info>
|
||||
<Expire_Info>
|
||||
<Has_Expire_Info>N</Has_Expire_Info>
|
||||
<Expire_Count />
|
||||
<Expire_Based_On>Days</Expire_Based_On>
|
||||
<Expire_Other_Info />
|
||||
<Expire_Month />
|
||||
<Expire_Day />
|
||||
<Expire_Year />
|
||||
</Expire_Info>
|
||||
</Program_Info>
|
||||
<Program_Descriptions>
|
||||
<English>
|
||||
<Keywords>dolibarr</Keywords>
|
||||
<Char_Desc_45>Dolibarr ERP/CRM</Char_Desc_45>
|
||||
<Char_Desc_80>Dolibarr ERP/CRM</Char_Desc_80>
|
||||
<Char_Desc_250>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_250>
|
||||
<Char_Desc_450>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_450>
|
||||
<Char_Desc_2000>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_2000>
|
||||
</English>
|
||||
<French>
|
||||
<Keywords />
|
||||
<Char_Desc_45 />
|
||||
<Char_Desc_80 />
|
||||
<Char_Desc_250 />
|
||||
<Char_Desc_450 />
|
||||
<Char_Desc_2000 />
|
||||
</French>
|
||||
</Program_Descriptions>
|
||||
<Web_Info>
|
||||
<Application_URLs>
|
||||
<Application_Info_URL>http://www.dolibarr.org</Application_Info_URL>
|
||||
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
|
||||
<Application_Screenshot_URL>http://www.dolibarr.org/demo/doc/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
|
||||
<Application_Icon_URL>http://www.dolibarr.org/demo/doc/images/mylogo.png</Application_Icon_URL>
|
||||
<Application_XML_File_URL>http://www.dolibarr.org/demo/build/pad/pad_dolibarr.xml</Application_XML_File_URL>
|
||||
</Application_URLs>
|
||||
<Download_URLs>
|
||||
<Primary_Download_URL>http://www.dolibarr.org/en/files/documents/dolibarr.tgz</Primary_Download_URL>
|
||||
<Secondary_Download_URL />
|
||||
<Additional_Download_URL_1 />
|
||||
<Additional_Download_URL_2 />
|
||||
</Download_URLs>
|
||||
</Web_Info>
|
||||
<Permissions>
|
||||
<Distribution_Permissions>GNU GPL</Distribution_Permissions>
|
||||
<EULA>GNU GPL</EULA>
|
||||
</Permissions>
|
||||
<ASP>
|
||||
<ASP_FORM>Y</ASP_FORM>
|
||||
<ASP_Member>N</ASP_Member>
|
||||
<ASP_Member_Number />
|
||||
</ASP>
|
||||
<Affiliates>
|
||||
<Affiliates_FORM>Y</Affiliates_FORM>
|
||||
<Affiliates_VERSION>1.2</Affiliates_VERSION>
|
||||
<Affiliates_URL>http://www.asp-shareware.org/pad/extensions/Affiliates.htm</Affiliates_URL>
|
||||
<Affiliates_Information_Page />
|
||||
<Affiliates_Avangate_Order_Page />
|
||||
<Affiliates_Avangate_Vendor_ID />
|
||||
<Affiliates_Avangate_Product_ID />
|
||||
<Affiliates_Avangate_Maximum_Commission_Rate />
|
||||
<Affiliates_BMTMicro_Order_Page />
|
||||
<Affiliates_BMTMicro_Vendor_ID />
|
||||
<Affiliates_BMTMicro_Product_ID />
|
||||
<Affiliates_BMTMicro_Maximum_Commission_Rate />
|
||||
<Affiliates_clixGalore_Order_Page />
|
||||
<Affiliates_clixGalore_Vendor_ID />
|
||||
<Affiliates_clixGalore_Product_ID />
|
||||
<Affiliates_clixGalore_Maximum_Commission_Rate />
|
||||
<Affiliates_CommissionJunction_Order_Page />
|
||||
<Affiliates_CommissionJunction_Vendor_ID />
|
||||
<Affiliates_CommissionJunction_Product_ID />
|
||||
<Affiliates_CommissionJunction_Maximum_Commission_Rate />
|
||||
<Affiliates_DigiBuy_Order_Page />
|
||||
<Affiliates_DigiBuy_Vendor_ID />
|
||||
<Affiliates_DigiBuy_Product_ID />
|
||||
<Affiliates_DigiBuy_Maximum_Commission_Rate />
|
||||
<Affiliates_DigitalCandle_Order_Page />
|
||||
<Affiliates_DigitalCandle_Vendor_ID />
|
||||
<Affiliates_DigitalCandle_Product_ID />
|
||||
<Affiliates_DigitalCandle_Maximum_Commission_Rate />
|
||||
<Affiliates_Emetrix_Order_Page />
|
||||
<Affiliates_Emetrix_Vendor_ID />
|
||||
<Affiliates_Emetrix_Product_ID />
|
||||
<Affiliates_Emetrix_Maximum_Commission_Rate />
|
||||
<Affiliates_eSellerate_Order_Page />
|
||||
<Affiliates_eSellerate_Vendor_ID />
|
||||
<Affiliates_eSellerate_Product_ID />
|
||||
<Affiliates_eSellerate_Maximum_Commission_Rate />
|
||||
<Affiliates_Kagi_Order_Page />
|
||||
<Affiliates_Kagi_Vendor_ID />
|
||||
<Affiliates_Kagi_Product_ID />
|
||||
<Affiliates_Kagi_Maximum_Commission_Rate />
|
||||
<Affiliates_LinkShare_Order_Page />
|
||||
<Affiliates_LinkShare_Vendor_ID />
|
||||
<Affiliates_LinkShare_Product_ID />
|
||||
<Affiliates_LinkShare_Maximum_Commission_Rate />
|
||||
<Affiliates_NorthStarSol_Order_Page />
|
||||
<Affiliates_NorthStarSol_Vendor_ID />
|
||||
<Affiliates_NorthStarSol_Product_ID />
|
||||
<Affiliates_NorthStarSol_Maximum_Commission_Rate />
|
||||
<Affiliates_Order1_Order_Page />
|
||||
<Affiliates_Order1_Vendor_ID />
|
||||
<Affiliates_Order1_Product_ID />
|
||||
<Affiliates_Order1_Maximum_Commission_Rate />
|
||||
<Affiliates_Osolis_Order_Page />
|
||||
<Affiliates_Osolis_Vendor_ID />
|
||||
<Affiliates_Osolis_Product_ID />
|
||||
<Affiliates_Osolis_Maximum_Commission_Rate />
|
||||
<Affiliates_Plimus_Order_Page />
|
||||
<Affiliates_Plimus_Vendor_ID />
|
||||
<Affiliates_Plimus_Product_ID />
|
||||
<Affiliates_Plimus_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnet_Order_Page />
|
||||
<Affiliates_Regnet_Vendor_ID />
|
||||
<Affiliates_Regnet_Product_ID />
|
||||
<Affiliates_Regnet_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnow_Order_Page />
|
||||
<Affiliates_Regnow_Vendor_ID />
|
||||
<Affiliates_Regnow_Product_ID />
|
||||
<Affiliates_Regnow_Maximum_Commission_Rate />
|
||||
<Affiliates_Regsoft_Order_Page />
|
||||
<Affiliates_Regsoft_Vendor_ID />
|
||||
<Affiliates_Regsoft_Product_ID />
|
||||
<Affiliates_Regsoft_Maximum_Commission_Rate />
|
||||
<Affiliates_ShareIt_Order_Page />
|
||||
<Affiliates_ShareIt_Vendor_ID />
|
||||
<Affiliates_ShareIt_Product_ID />
|
||||
<Affiliates_ShareIt_Maximum_Commission_Rate />
|
||||
<Affiliates_Shareasale_Order_Page />
|
||||
<Affiliates_Shareasale_Vendor_ID />
|
||||
<Affiliates_Shareasale_Product_ID />
|
||||
<Affiliates_Shareasale_Maximum_Commission_Rate />
|
||||
<Affiliates_SWReg_Order_Page />
|
||||
<Affiliates_SWReg_Vendor_ID />
|
||||
<Affiliates_SWReg_Product_ID />
|
||||
<Affiliates_SWReg_Maximum_Commission_Rate />
|
||||
<Affiliates_V-Share_Order_Page />
|
||||
<Affiliates_V-Share_Vendor_ID />
|
||||
<Affiliates_V-Share_Product_ID />
|
||||
<Affiliates_V-Share_Maximum_Commission_Rate />
|
||||
<Affiliates_VFree_Order_Page />
|
||||
<Affiliates_VFree_Vendor_ID />
|
||||
<Affiliates_VFree_Product_ID />
|
||||
<Affiliates_VFree_Maximum_Commission_Rate />
|
||||
<Affiliates_Yaskifo_Order_Page />
|
||||
<Affiliates_Yaskifo_Vendor_ID />
|
||||
<Affiliates_Yaskifo_Product_ID />
|
||||
<Affiliates_Yaskifo_Maximum_Commission_Rate />
|
||||
</Affiliates>
|
||||
</PADGEN_PML>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<PADGEN_PML>
|
||||
<AppVerInfo>PADGen 3.0.1.35</AppVerInfo>
|
||||
<CompanyName />
|
||||
<Program_Info>
|
||||
<Program_Name>Dolibarr</Program_Name>
|
||||
<Program_Version>2.1</Program_Version>
|
||||
<Program_Release_Month>04</Program_Release_Month>
|
||||
<Program_Release_Day>27</Program_Release_Day>
|
||||
<Program_Release_Year>2007</Program_Release_Year>
|
||||
<Program_Cost_Dollars />
|
||||
<Program_Cost_Other_Code />
|
||||
<Program_Cost_Other />
|
||||
<Program_Type>Freeware</Program_Type>
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>No Install Support</Program_Install_Support>
|
||||
<Program_OS_Support>Win95,Win98,WinME,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Starter,Windows Vista Home Basic,Windows Vista Home Premium,Windows Vista Business,Windows Vista Enterprise,Windows Vista Ultimate,Windows Vista Home Basic x64,Windows Vista Home Premium x64,Windows Vista Business x64,Windows Vista Enterprise x64,Windows Vista Ultimate x64,Unix,Linux,OS/2,OS/2 Warp,OS/2 Warp 4,MAC 68k,Mac PPC,Mac OS X,Mac Other,BEOS</Program_OS_Support>
|
||||
<Program_Language>English,French</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
<File_Info>
|
||||
<File_Size_Bytes>1016660</File_Size_Bytes>
|
||||
<File_Size_K>992</File_Size_K>
|
||||
<File_Size_MB>0.97</File_Size_MB>
|
||||
</File_Info>
|
||||
<Expire_Info>
|
||||
<Has_Expire_Info>N</Has_Expire_Info>
|
||||
<Expire_Count />
|
||||
<Expire_Based_On>Days</Expire_Based_On>
|
||||
<Expire_Other_Info />
|
||||
<Expire_Month />
|
||||
<Expire_Day />
|
||||
<Expire_Year />
|
||||
</Expire_Info>
|
||||
</Program_Info>
|
||||
<Program_Descriptions>
|
||||
<English>
|
||||
<Keywords>dolibarr</Keywords>
|
||||
<Char_Desc_45>Dolibarr ERP/CRM</Char_Desc_45>
|
||||
<Char_Desc_80>Dolibarr ERP/CRM</Char_Desc_80>
|
||||
<Char_Desc_250>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_250>
|
||||
<Char_Desc_450>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_450>
|
||||
<Char_Desc_2000>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_2000>
|
||||
</English>
|
||||
<French>
|
||||
<Keywords />
|
||||
<Char_Desc_45 />
|
||||
<Char_Desc_80 />
|
||||
<Char_Desc_250 />
|
||||
<Char_Desc_450 />
|
||||
<Char_Desc_2000 />
|
||||
</French>
|
||||
</Program_Descriptions>
|
||||
<Web_Info>
|
||||
<Application_URLs>
|
||||
<Application_Info_URL>http://www.dolibarr.org</Application_Info_URL>
|
||||
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
|
||||
<Application_Screenshot_URL>http://www.dolibarr.org/demo/doc/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
|
||||
<Application_Icon_URL>http://www.dolibarr.org/demo/doc/images/mylogo.png</Application_Icon_URL>
|
||||
<Application_XML_File_URL>http://www.dolibarr.org/demo/build/pad/pad_dolibarr.xml</Application_XML_File_URL>
|
||||
</Application_URLs>
|
||||
<Download_URLs>
|
||||
<Primary_Download_URL>http://www.dolibarr.org/en/files/documents/dolibarr.tgz</Primary_Download_URL>
|
||||
<Secondary_Download_URL />
|
||||
<Additional_Download_URL_1 />
|
||||
<Additional_Download_URL_2 />
|
||||
</Download_URLs>
|
||||
</Web_Info>
|
||||
<Permissions>
|
||||
<Distribution_Permissions>GNU GPL</Distribution_Permissions>
|
||||
<EULA>GNU GPL</EULA>
|
||||
</Permissions>
|
||||
<ASP>
|
||||
<ASP_FORM>Y</ASP_FORM>
|
||||
<ASP_Member>N</ASP_Member>
|
||||
<ASP_Member_Number />
|
||||
</ASP>
|
||||
<Affiliates>
|
||||
<Affiliates_FORM>Y</Affiliates_FORM>
|
||||
<Affiliates_VERSION>1.2</Affiliates_VERSION>
|
||||
<Affiliates_URL>http://www.asp-shareware.org/pad/extensions/Affiliates.htm</Affiliates_URL>
|
||||
<Affiliates_Information_Page />
|
||||
<Affiliates_Avangate_Order_Page />
|
||||
<Affiliates_Avangate_Vendor_ID />
|
||||
<Affiliates_Avangate_Product_ID />
|
||||
<Affiliates_Avangate_Maximum_Commission_Rate />
|
||||
<Affiliates_BMTMicro_Order_Page />
|
||||
<Affiliates_BMTMicro_Vendor_ID />
|
||||
<Affiliates_BMTMicro_Product_ID />
|
||||
<Affiliates_BMTMicro_Maximum_Commission_Rate />
|
||||
<Affiliates_clixGalore_Order_Page />
|
||||
<Affiliates_clixGalore_Vendor_ID />
|
||||
<Affiliates_clixGalore_Product_ID />
|
||||
<Affiliates_clixGalore_Maximum_Commission_Rate />
|
||||
<Affiliates_CommissionJunction_Order_Page />
|
||||
<Affiliates_CommissionJunction_Vendor_ID />
|
||||
<Affiliates_CommissionJunction_Product_ID />
|
||||
<Affiliates_CommissionJunction_Maximum_Commission_Rate />
|
||||
<Affiliates_DigiBuy_Order_Page />
|
||||
<Affiliates_DigiBuy_Vendor_ID />
|
||||
<Affiliates_DigiBuy_Product_ID />
|
||||
<Affiliates_DigiBuy_Maximum_Commission_Rate />
|
||||
<Affiliates_DigitalCandle_Order_Page />
|
||||
<Affiliates_DigitalCandle_Vendor_ID />
|
||||
<Affiliates_DigitalCandle_Product_ID />
|
||||
<Affiliates_DigitalCandle_Maximum_Commission_Rate />
|
||||
<Affiliates_Emetrix_Order_Page />
|
||||
<Affiliates_Emetrix_Vendor_ID />
|
||||
<Affiliates_Emetrix_Product_ID />
|
||||
<Affiliates_Emetrix_Maximum_Commission_Rate />
|
||||
<Affiliates_eSellerate_Order_Page />
|
||||
<Affiliates_eSellerate_Vendor_ID />
|
||||
<Affiliates_eSellerate_Product_ID />
|
||||
<Affiliates_eSellerate_Maximum_Commission_Rate />
|
||||
<Affiliates_Kagi_Order_Page />
|
||||
<Affiliates_Kagi_Vendor_ID />
|
||||
<Affiliates_Kagi_Product_ID />
|
||||
<Affiliates_Kagi_Maximum_Commission_Rate />
|
||||
<Affiliates_LinkShare_Order_Page />
|
||||
<Affiliates_LinkShare_Vendor_ID />
|
||||
<Affiliates_LinkShare_Product_ID />
|
||||
<Affiliates_LinkShare_Maximum_Commission_Rate />
|
||||
<Affiliates_NorthStarSol_Order_Page />
|
||||
<Affiliates_NorthStarSol_Vendor_ID />
|
||||
<Affiliates_NorthStarSol_Product_ID />
|
||||
<Affiliates_NorthStarSol_Maximum_Commission_Rate />
|
||||
<Affiliates_Order1_Order_Page />
|
||||
<Affiliates_Order1_Vendor_ID />
|
||||
<Affiliates_Order1_Product_ID />
|
||||
<Affiliates_Order1_Maximum_Commission_Rate />
|
||||
<Affiliates_Osolis_Order_Page />
|
||||
<Affiliates_Osolis_Vendor_ID />
|
||||
<Affiliates_Osolis_Product_ID />
|
||||
<Affiliates_Osolis_Maximum_Commission_Rate />
|
||||
<Affiliates_Plimus_Order_Page />
|
||||
<Affiliates_Plimus_Vendor_ID />
|
||||
<Affiliates_Plimus_Product_ID />
|
||||
<Affiliates_Plimus_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnet_Order_Page />
|
||||
<Affiliates_Regnet_Vendor_ID />
|
||||
<Affiliates_Regnet_Product_ID />
|
||||
<Affiliates_Regnet_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnow_Order_Page />
|
||||
<Affiliates_Regnow_Vendor_ID />
|
||||
<Affiliates_Regnow_Product_ID />
|
||||
<Affiliates_Regnow_Maximum_Commission_Rate />
|
||||
<Affiliates_Regsoft_Order_Page />
|
||||
<Affiliates_Regsoft_Vendor_ID />
|
||||
<Affiliates_Regsoft_Product_ID />
|
||||
<Affiliates_Regsoft_Maximum_Commission_Rate />
|
||||
<Affiliates_ShareIt_Order_Page />
|
||||
<Affiliates_ShareIt_Vendor_ID />
|
||||
<Affiliates_ShareIt_Product_ID />
|
||||
<Affiliates_ShareIt_Maximum_Commission_Rate />
|
||||
<Affiliates_Shareasale_Order_Page />
|
||||
<Affiliates_Shareasale_Vendor_ID />
|
||||
<Affiliates_Shareasale_Product_ID />
|
||||
<Affiliates_Shareasale_Maximum_Commission_Rate />
|
||||
<Affiliates_SWReg_Order_Page />
|
||||
<Affiliates_SWReg_Vendor_ID />
|
||||
<Affiliates_SWReg_Product_ID />
|
||||
<Affiliates_SWReg_Maximum_Commission_Rate />
|
||||
<Affiliates_V-Share_Order_Page />
|
||||
<Affiliates_V-Share_Vendor_ID />
|
||||
<Affiliates_V-Share_Product_ID />
|
||||
<Affiliates_V-Share_Maximum_Commission_Rate />
|
||||
<Affiliates_VFree_Order_Page />
|
||||
<Affiliates_VFree_Vendor_ID />
|
||||
<Affiliates_VFree_Product_ID />
|
||||
<Affiliates_VFree_Maximum_Commission_Rate />
|
||||
<Affiliates_Yaskifo_Order_Page />
|
||||
<Affiliates_Yaskifo_Vendor_ID />
|
||||
<Affiliates_Yaskifo_Product_ID />
|
||||
<Affiliates_Yaskifo_Maximum_Commission_Rate />
|
||||
</Affiliates>
|
||||
</PADGEN_PML>
|
||||
|
||||
Binary file not shown.
@ -1,208 +1,208 @@
|
||||
<?xml version="1.0" ?>
|
||||
<XML_DIZ_INFO>
|
||||
<MASTER_PAD_VERSION_INFO>
|
||||
<MASTER_PAD_VERSION>3.01</MASTER_PAD_VERSION>
|
||||
<MASTER_PAD_EDITOR>PADGen 3.0.1.35 http://www.padgen.org</MASTER_PAD_EDITOR>
|
||||
<MASTER_PAD_INFO>Portable Application Description, or PAD for short, is a data set that is used by shareware authors to disseminate information to anyone interested in their software products. To find out more go to http://www.asp-shareware.org/pad</MASTER_PAD_INFO>
|
||||
</MASTER_PAD_VERSION_INFO>
|
||||
<Company_Info>
|
||||
<Company_Name>Laurent Destailleur</Company_Name>
|
||||
<Address_1>61 Boulevard Vauban</Address_1>
|
||||
<Address_2 />
|
||||
<City_Town>Montigny-le-Bretonneux</City_Town>
|
||||
<State_Province>Yvelines</State_Province>
|
||||
<Zip_Postal_Code>78180</Zip_Postal_Code>
|
||||
<Country>FRANCE</Country>
|
||||
<Company_WebSite_URL>http://www.destailleur.fr</Company_WebSite_URL>
|
||||
<Contact_Info>
|
||||
<Author_First_Name>Laurent</Author_First_Name>
|
||||
<Author_Last_Name>Destailleur</Author_Last_Name>
|
||||
<Author_Email>eldy@users.sourceforge.net</Author_Email>
|
||||
<Contact_First_Name>Laurent</Contact_First_Name>
|
||||
<Contact_Last_Name>Destailleur</Contact_Last_Name>
|
||||
<Contact_Email>eldy@users.sourceforge.net</Contact_Email>
|
||||
</Contact_Info>
|
||||
<Support_Info>
|
||||
<Sales_Email>eldy@users.sourceforge.net</Sales_Email>
|
||||
<Support_Email>eldy@users.sourceforge.net</Support_Email>
|
||||
<General_Email>eldy@users.sourceforge.net</General_Email>
|
||||
<Sales_Phone />
|
||||
<Support_Phone />
|
||||
<General_Phone />
|
||||
<Fax_Phone />
|
||||
</Support_Info>
|
||||
</Company_Info>
|
||||
<Program_Info>
|
||||
<Program_Name>Dolibarr</Program_Name>
|
||||
<Program_Version>2.1</Program_Version>
|
||||
<Program_Release_Month>04</Program_Release_Month>
|
||||
<Program_Release_Day>27</Program_Release_Day>
|
||||
<Program_Release_Year>2007</Program_Release_Year>
|
||||
<Program_Cost_Dollars />
|
||||
<Program_Cost_Other_Code />
|
||||
<Program_Cost_Other />
|
||||
<Program_Type>Freeware</Program_Type>
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>No Install Support</Program_Install_Support>
|
||||
<Program_OS_Support>Win95,Win98,WinME,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Starter,Windows Vista Home Basic,Windows Vista Home Premium,Windows Vista Business,Windows Vista Enterprise,Windows Vista Ultimate,Windows Vista Home Basic x64,Windows Vista Home Premium x64,Windows Vista Business x64,Windows Vista Enterprise x64,Windows Vista Ultimate x64,Unix,Linux,OS/2,OS/2 Warp,OS/2 Warp 4,MAC 68k,Mac PPC,Mac OS X,Mac Other,BEOS</Program_OS_Support>
|
||||
<Program_Language>English,French</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
<File_Info>
|
||||
<File_Size_Bytes>1016660</File_Size_Bytes>
|
||||
<File_Size_K>992</File_Size_K>
|
||||
<File_Size_MB>0.97</File_Size_MB>
|
||||
</File_Info>
|
||||
<Expire_Info>
|
||||
<Has_Expire_Info>N</Has_Expire_Info>
|
||||
<Expire_Count />
|
||||
<Expire_Based_On>Days</Expire_Based_On>
|
||||
<Expire_Other_Info />
|
||||
<Expire_Month />
|
||||
<Expire_Day />
|
||||
<Expire_Year />
|
||||
</Expire_Info>
|
||||
</Program_Info>
|
||||
<Program_Descriptions>
|
||||
<English>
|
||||
<Keywords>dolibarr</Keywords>
|
||||
<Char_Desc_45>Dolibarr ERP/CRM</Char_Desc_45>
|
||||
<Char_Desc_80>Dolibarr ERP/CRM</Char_Desc_80>
|
||||
<Char_Desc_250>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_250>
|
||||
<Char_Desc_450>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_450>
|
||||
<Char_Desc_2000>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_2000>
|
||||
</English>
|
||||
<French>
|
||||
<Keywords />
|
||||
<Char_Desc_45 />
|
||||
<Char_Desc_80 />
|
||||
<Char_Desc_250 />
|
||||
<Char_Desc_450 />
|
||||
<Char_Desc_2000 />
|
||||
</French>
|
||||
</Program_Descriptions>
|
||||
<Web_Info>
|
||||
<Application_URLs>
|
||||
<Application_Info_URL>http://www.dolibarr.org</Application_Info_URL>
|
||||
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
|
||||
<Application_Screenshot_URL>http://www.dolibarr.org/demo/doc/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
|
||||
<Application_Icon_URL>http://www.dolibarr.org/demo/doc/images/mylogo.png</Application_Icon_URL>
|
||||
<Application_XML_File_URL>http://www.dolibarr.org/demo/build/pad/pad_dolibarr.xml</Application_XML_File_URL>
|
||||
</Application_URLs>
|
||||
<Download_URLs>
|
||||
<Primary_Download_URL>http://www.dolibarr.org/en/files/documents/dolibarr.tgz</Primary_Download_URL>
|
||||
<Secondary_Download_URL />
|
||||
<Additional_Download_URL_1 />
|
||||
<Additional_Download_URL_2 />
|
||||
</Download_URLs>
|
||||
</Web_Info>
|
||||
<Permissions>
|
||||
<Distribution_Permissions>GNU GPL</Distribution_Permissions>
|
||||
<EULA>GNU GPL</EULA>
|
||||
</Permissions>
|
||||
<ASP>
|
||||
<ASP_FORM>Y</ASP_FORM>
|
||||
<ASP_Member>N</ASP_Member>
|
||||
<ASP_Member_Number />
|
||||
</ASP>
|
||||
<Affiliates>
|
||||
<Affiliates_FORM>Y</Affiliates_FORM>
|
||||
<Affiliates_VERSION>1.2</Affiliates_VERSION>
|
||||
<Affiliates_URL>http://www.asp-shareware.org/pad/extensions/Affiliates.htm</Affiliates_URL>
|
||||
<Affiliates_Information_Page />
|
||||
<Affiliates_Avangate_Order_Page />
|
||||
<Affiliates_Avangate_Vendor_ID />
|
||||
<Affiliates_Avangate_Product_ID />
|
||||
<Affiliates_Avangate_Maximum_Commission_Rate />
|
||||
<Affiliates_BMTMicro_Order_Page />
|
||||
<Affiliates_BMTMicro_Vendor_ID />
|
||||
<Affiliates_BMTMicro_Product_ID />
|
||||
<Affiliates_BMTMicro_Maximum_Commission_Rate />
|
||||
<Affiliates_clixGalore_Order_Page />
|
||||
<Affiliates_clixGalore_Vendor_ID />
|
||||
<Affiliates_clixGalore_Product_ID />
|
||||
<Affiliates_clixGalore_Maximum_Commission_Rate />
|
||||
<Affiliates_CommissionJunction_Order_Page />
|
||||
<Affiliates_CommissionJunction_Vendor_ID />
|
||||
<Affiliates_CommissionJunction_Product_ID />
|
||||
<Affiliates_CommissionJunction_Maximum_Commission_Rate />
|
||||
<Affiliates_DigiBuy_Order_Page />
|
||||
<Affiliates_DigiBuy_Vendor_ID />
|
||||
<Affiliates_DigiBuy_Product_ID />
|
||||
<Affiliates_DigiBuy_Maximum_Commission_Rate />
|
||||
<Affiliates_DigitalCandle_Order_Page />
|
||||
<Affiliates_DigitalCandle_Vendor_ID />
|
||||
<Affiliates_DigitalCandle_Product_ID />
|
||||
<Affiliates_DigitalCandle_Maximum_Commission_Rate />
|
||||
<Affiliates_Emetrix_Order_Page />
|
||||
<Affiliates_Emetrix_Vendor_ID />
|
||||
<Affiliates_Emetrix_Product_ID />
|
||||
<Affiliates_Emetrix_Maximum_Commission_Rate />
|
||||
<Affiliates_eSellerate_Order_Page />
|
||||
<Affiliates_eSellerate_Vendor_ID />
|
||||
<Affiliates_eSellerate_Product_ID />
|
||||
<Affiliates_eSellerate_Maximum_Commission_Rate />
|
||||
<Affiliates_Kagi_Order_Page />
|
||||
<Affiliates_Kagi_Vendor_ID />
|
||||
<Affiliates_Kagi_Product_ID />
|
||||
<Affiliates_Kagi_Maximum_Commission_Rate />
|
||||
<Affiliates_LinkShare_Order_Page />
|
||||
<Affiliates_LinkShare_Vendor_ID />
|
||||
<Affiliates_LinkShare_Product_ID />
|
||||
<Affiliates_LinkShare_Maximum_Commission_Rate />
|
||||
<Affiliates_NorthStarSol_Order_Page />
|
||||
<Affiliates_NorthStarSol_Vendor_ID />
|
||||
<Affiliates_NorthStarSol_Product_ID />
|
||||
<Affiliates_NorthStarSol_Maximum_Commission_Rate />
|
||||
<Affiliates_Order1_Order_Page />
|
||||
<Affiliates_Order1_Vendor_ID />
|
||||
<Affiliates_Order1_Product_ID />
|
||||
<Affiliates_Order1_Maximum_Commission_Rate />
|
||||
<Affiliates_Osolis_Order_Page />
|
||||
<Affiliates_Osolis_Vendor_ID />
|
||||
<Affiliates_Osolis_Product_ID />
|
||||
<Affiliates_Osolis_Maximum_Commission_Rate />
|
||||
<Affiliates_Plimus_Order_Page />
|
||||
<Affiliates_Plimus_Vendor_ID />
|
||||
<Affiliates_Plimus_Product_ID />
|
||||
<Affiliates_Plimus_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnet_Order_Page />
|
||||
<Affiliates_Regnet_Vendor_ID />
|
||||
<Affiliates_Regnet_Product_ID />
|
||||
<Affiliates_Regnet_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnow_Order_Page />
|
||||
<Affiliates_Regnow_Vendor_ID />
|
||||
<Affiliates_Regnow_Product_ID />
|
||||
<Affiliates_Regnow_Maximum_Commission_Rate />
|
||||
<Affiliates_Regsoft_Order_Page />
|
||||
<Affiliates_Regsoft_Vendor_ID />
|
||||
<Affiliates_Regsoft_Product_ID />
|
||||
<Affiliates_Regsoft_Maximum_Commission_Rate />
|
||||
<Affiliates_ShareIt_Order_Page />
|
||||
<Affiliates_ShareIt_Vendor_ID />
|
||||
<Affiliates_ShareIt_Product_ID />
|
||||
<Affiliates_ShareIt_Maximum_Commission_Rate />
|
||||
<Affiliates_Shareasale_Order_Page />
|
||||
<Affiliates_Shareasale_Vendor_ID />
|
||||
<Affiliates_Shareasale_Product_ID />
|
||||
<Affiliates_Shareasale_Maximum_Commission_Rate />
|
||||
<Affiliates_SWReg_Order_Page />
|
||||
<Affiliates_SWReg_Vendor_ID />
|
||||
<Affiliates_SWReg_Product_ID />
|
||||
<Affiliates_SWReg_Maximum_Commission_Rate />
|
||||
<Affiliates_V-Share_Order_Page />
|
||||
<Affiliates_V-Share_Vendor_ID />
|
||||
<Affiliates_V-Share_Product_ID />
|
||||
<Affiliates_V-Share_Maximum_Commission_Rate />
|
||||
<Affiliates_VFree_Order_Page />
|
||||
<Affiliates_VFree_Vendor_ID />
|
||||
<Affiliates_VFree_Product_ID />
|
||||
<Affiliates_VFree_Maximum_Commission_Rate />
|
||||
<Affiliates_Yaskifo_Order_Page />
|
||||
<Affiliates_Yaskifo_Vendor_ID />
|
||||
<Affiliates_Yaskifo_Product_ID />
|
||||
<Affiliates_Yaskifo_Maximum_Commission_Rate />
|
||||
</Affiliates>
|
||||
</XML_DIZ_INFO>
|
||||
<?xml version="1.0" ?>
|
||||
<XML_DIZ_INFO>
|
||||
<MASTER_PAD_VERSION_INFO>
|
||||
<MASTER_PAD_VERSION>3.01</MASTER_PAD_VERSION>
|
||||
<MASTER_PAD_EDITOR>PADGen 3.0.1.35 http://www.padgen.org</MASTER_PAD_EDITOR>
|
||||
<MASTER_PAD_INFO>Portable Application Description, or PAD for short, is a data set that is used by shareware authors to disseminate information to anyone interested in their software products. To find out more go to http://www.asp-shareware.org/pad</MASTER_PAD_INFO>
|
||||
</MASTER_PAD_VERSION_INFO>
|
||||
<Company_Info>
|
||||
<Company_Name>Laurent Destailleur</Company_Name>
|
||||
<Address_1>61 Boulevard Vauban</Address_1>
|
||||
<Address_2 />
|
||||
<City_Town>Montigny-le-Bretonneux</City_Town>
|
||||
<State_Province>Yvelines</State_Province>
|
||||
<Zip_Postal_Code>78180</Zip_Postal_Code>
|
||||
<Country>FRANCE</Country>
|
||||
<Company_WebSite_URL>http://www.destailleur.fr</Company_WebSite_URL>
|
||||
<Contact_Info>
|
||||
<Author_First_Name>Laurent</Author_First_Name>
|
||||
<Author_Last_Name>Destailleur</Author_Last_Name>
|
||||
<Author_Email>eldy@users.sourceforge.net</Author_Email>
|
||||
<Contact_First_Name>Laurent</Contact_First_Name>
|
||||
<Contact_Last_Name>Destailleur</Contact_Last_Name>
|
||||
<Contact_Email>eldy@users.sourceforge.net</Contact_Email>
|
||||
</Contact_Info>
|
||||
<Support_Info>
|
||||
<Sales_Email>eldy@users.sourceforge.net</Sales_Email>
|
||||
<Support_Email>eldy@users.sourceforge.net</Support_Email>
|
||||
<General_Email>eldy@users.sourceforge.net</General_Email>
|
||||
<Sales_Phone />
|
||||
<Support_Phone />
|
||||
<General_Phone />
|
||||
<Fax_Phone />
|
||||
</Support_Info>
|
||||
</Company_Info>
|
||||
<Program_Info>
|
||||
<Program_Name>Dolibarr</Program_Name>
|
||||
<Program_Version>2.1</Program_Version>
|
||||
<Program_Release_Month>04</Program_Release_Month>
|
||||
<Program_Release_Day>27</Program_Release_Day>
|
||||
<Program_Release_Year>2007</Program_Release_Year>
|
||||
<Program_Cost_Dollars />
|
||||
<Program_Cost_Other_Code />
|
||||
<Program_Cost_Other />
|
||||
<Program_Type>Freeware</Program_Type>
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>No Install Support</Program_Install_Support>
|
||||
<Program_OS_Support>Win95,Win98,WinME,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Starter,Windows Vista Home Basic,Windows Vista Home Premium,Windows Vista Business,Windows Vista Enterprise,Windows Vista Ultimate,Windows Vista Home Basic x64,Windows Vista Home Premium x64,Windows Vista Business x64,Windows Vista Enterprise x64,Windows Vista Ultimate x64,Unix,Linux,OS/2,OS/2 Warp,OS/2 Warp 4,MAC 68k,Mac PPC,Mac OS X,Mac Other,BEOS</Program_OS_Support>
|
||||
<Program_Language>English,French</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
<File_Info>
|
||||
<File_Size_Bytes>1016660</File_Size_Bytes>
|
||||
<File_Size_K>992</File_Size_K>
|
||||
<File_Size_MB>0.97</File_Size_MB>
|
||||
</File_Info>
|
||||
<Expire_Info>
|
||||
<Has_Expire_Info>N</Has_Expire_Info>
|
||||
<Expire_Count />
|
||||
<Expire_Based_On>Days</Expire_Based_On>
|
||||
<Expire_Other_Info />
|
||||
<Expire_Month />
|
||||
<Expire_Day />
|
||||
<Expire_Year />
|
||||
</Expire_Info>
|
||||
</Program_Info>
|
||||
<Program_Descriptions>
|
||||
<English>
|
||||
<Keywords>dolibarr</Keywords>
|
||||
<Char_Desc_45>Dolibarr ERP/CRM</Char_Desc_45>
|
||||
<Char_Desc_80>Dolibarr ERP/CRM</Char_Desc_80>
|
||||
<Char_Desc_250>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_250>
|
||||
<Char_Desc_450>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_450>
|
||||
<Char_Desc_2000>Dolibarr ERP/CRM is an open source tool to manage invoices, customers, suppliers, contracts and any other things a small or medium company needs.</Char_Desc_2000>
|
||||
</English>
|
||||
<French>
|
||||
<Keywords />
|
||||
<Char_Desc_45 />
|
||||
<Char_Desc_80 />
|
||||
<Char_Desc_250 />
|
||||
<Char_Desc_450 />
|
||||
<Char_Desc_2000 />
|
||||
</French>
|
||||
</Program_Descriptions>
|
||||
<Web_Info>
|
||||
<Application_URLs>
|
||||
<Application_Info_URL>http://www.dolibarr.org</Application_Info_URL>
|
||||
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
|
||||
<Application_Screenshot_URL>http://www.dolibarr.org/demo/doc/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
|
||||
<Application_Icon_URL>http://www.dolibarr.org/demo/doc/images/mylogo.png</Application_Icon_URL>
|
||||
<Application_XML_File_URL>http://www.dolibarr.org/demo/build/pad/pad_dolibarr.xml</Application_XML_File_URL>
|
||||
</Application_URLs>
|
||||
<Download_URLs>
|
||||
<Primary_Download_URL>http://www.dolibarr.org/en/files/documents/dolibarr.tgz</Primary_Download_URL>
|
||||
<Secondary_Download_URL />
|
||||
<Additional_Download_URL_1 />
|
||||
<Additional_Download_URL_2 />
|
||||
</Download_URLs>
|
||||
</Web_Info>
|
||||
<Permissions>
|
||||
<Distribution_Permissions>GNU GPL</Distribution_Permissions>
|
||||
<EULA>GNU GPL</EULA>
|
||||
</Permissions>
|
||||
<ASP>
|
||||
<ASP_FORM>Y</ASP_FORM>
|
||||
<ASP_Member>N</ASP_Member>
|
||||
<ASP_Member_Number />
|
||||
</ASP>
|
||||
<Affiliates>
|
||||
<Affiliates_FORM>Y</Affiliates_FORM>
|
||||
<Affiliates_VERSION>1.2</Affiliates_VERSION>
|
||||
<Affiliates_URL>http://www.asp-shareware.org/pad/extensions/Affiliates.htm</Affiliates_URL>
|
||||
<Affiliates_Information_Page />
|
||||
<Affiliates_Avangate_Order_Page />
|
||||
<Affiliates_Avangate_Vendor_ID />
|
||||
<Affiliates_Avangate_Product_ID />
|
||||
<Affiliates_Avangate_Maximum_Commission_Rate />
|
||||
<Affiliates_BMTMicro_Order_Page />
|
||||
<Affiliates_BMTMicro_Vendor_ID />
|
||||
<Affiliates_BMTMicro_Product_ID />
|
||||
<Affiliates_BMTMicro_Maximum_Commission_Rate />
|
||||
<Affiliates_clixGalore_Order_Page />
|
||||
<Affiliates_clixGalore_Vendor_ID />
|
||||
<Affiliates_clixGalore_Product_ID />
|
||||
<Affiliates_clixGalore_Maximum_Commission_Rate />
|
||||
<Affiliates_CommissionJunction_Order_Page />
|
||||
<Affiliates_CommissionJunction_Vendor_ID />
|
||||
<Affiliates_CommissionJunction_Product_ID />
|
||||
<Affiliates_CommissionJunction_Maximum_Commission_Rate />
|
||||
<Affiliates_DigiBuy_Order_Page />
|
||||
<Affiliates_DigiBuy_Vendor_ID />
|
||||
<Affiliates_DigiBuy_Product_ID />
|
||||
<Affiliates_DigiBuy_Maximum_Commission_Rate />
|
||||
<Affiliates_DigitalCandle_Order_Page />
|
||||
<Affiliates_DigitalCandle_Vendor_ID />
|
||||
<Affiliates_DigitalCandle_Product_ID />
|
||||
<Affiliates_DigitalCandle_Maximum_Commission_Rate />
|
||||
<Affiliates_Emetrix_Order_Page />
|
||||
<Affiliates_Emetrix_Vendor_ID />
|
||||
<Affiliates_Emetrix_Product_ID />
|
||||
<Affiliates_Emetrix_Maximum_Commission_Rate />
|
||||
<Affiliates_eSellerate_Order_Page />
|
||||
<Affiliates_eSellerate_Vendor_ID />
|
||||
<Affiliates_eSellerate_Product_ID />
|
||||
<Affiliates_eSellerate_Maximum_Commission_Rate />
|
||||
<Affiliates_Kagi_Order_Page />
|
||||
<Affiliates_Kagi_Vendor_ID />
|
||||
<Affiliates_Kagi_Product_ID />
|
||||
<Affiliates_Kagi_Maximum_Commission_Rate />
|
||||
<Affiliates_LinkShare_Order_Page />
|
||||
<Affiliates_LinkShare_Vendor_ID />
|
||||
<Affiliates_LinkShare_Product_ID />
|
||||
<Affiliates_LinkShare_Maximum_Commission_Rate />
|
||||
<Affiliates_NorthStarSol_Order_Page />
|
||||
<Affiliates_NorthStarSol_Vendor_ID />
|
||||
<Affiliates_NorthStarSol_Product_ID />
|
||||
<Affiliates_NorthStarSol_Maximum_Commission_Rate />
|
||||
<Affiliates_Order1_Order_Page />
|
||||
<Affiliates_Order1_Vendor_ID />
|
||||
<Affiliates_Order1_Product_ID />
|
||||
<Affiliates_Order1_Maximum_Commission_Rate />
|
||||
<Affiliates_Osolis_Order_Page />
|
||||
<Affiliates_Osolis_Vendor_ID />
|
||||
<Affiliates_Osolis_Product_ID />
|
||||
<Affiliates_Osolis_Maximum_Commission_Rate />
|
||||
<Affiliates_Plimus_Order_Page />
|
||||
<Affiliates_Plimus_Vendor_ID />
|
||||
<Affiliates_Plimus_Product_ID />
|
||||
<Affiliates_Plimus_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnet_Order_Page />
|
||||
<Affiliates_Regnet_Vendor_ID />
|
||||
<Affiliates_Regnet_Product_ID />
|
||||
<Affiliates_Regnet_Maximum_Commission_Rate />
|
||||
<Affiliates_Regnow_Order_Page />
|
||||
<Affiliates_Regnow_Vendor_ID />
|
||||
<Affiliates_Regnow_Product_ID />
|
||||
<Affiliates_Regnow_Maximum_Commission_Rate />
|
||||
<Affiliates_Regsoft_Order_Page />
|
||||
<Affiliates_Regsoft_Vendor_ID />
|
||||
<Affiliates_Regsoft_Product_ID />
|
||||
<Affiliates_Regsoft_Maximum_Commission_Rate />
|
||||
<Affiliates_ShareIt_Order_Page />
|
||||
<Affiliates_ShareIt_Vendor_ID />
|
||||
<Affiliates_ShareIt_Product_ID />
|
||||
<Affiliates_ShareIt_Maximum_Commission_Rate />
|
||||
<Affiliates_Shareasale_Order_Page />
|
||||
<Affiliates_Shareasale_Vendor_ID />
|
||||
<Affiliates_Shareasale_Product_ID />
|
||||
<Affiliates_Shareasale_Maximum_Commission_Rate />
|
||||
<Affiliates_SWReg_Order_Page />
|
||||
<Affiliates_SWReg_Vendor_ID />
|
||||
<Affiliates_SWReg_Product_ID />
|
||||
<Affiliates_SWReg_Maximum_Commission_Rate />
|
||||
<Affiliates_V-Share_Order_Page />
|
||||
<Affiliates_V-Share_Vendor_ID />
|
||||
<Affiliates_V-Share_Product_ID />
|
||||
<Affiliates_V-Share_Maximum_Commission_Rate />
|
||||
<Affiliates_VFree_Order_Page />
|
||||
<Affiliates_VFree_Vendor_ID />
|
||||
<Affiliates_VFree_Product_ID />
|
||||
<Affiliates_VFree_Maximum_Commission_Rate />
|
||||
<Affiliates_Yaskifo_Order_Page />
|
||||
<Affiliates_Yaskifo_Vendor_ID />
|
||||
<Affiliates_Yaskifo_Product_ID />
|
||||
<Affiliates_Yaskifo_Maximum_Commission_Rate />
|
||||
</Affiliates>
|
||||
</XML_DIZ_INFO>
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
# ldapadd_sample2.txt
|
||||
#
|
||||
# Use this sample to add a ou "contacts"
|
||||
# This is the second thing to create after creating the root my-domain
|
||||
#
|
||||
# ldapadd -c -v -D cn=Manager,dc=my-domain,dc=com -W -f ldapadd_sample2.txt
|
||||
|
||||
dn: ou=contacts,dc=my-domain,dc=com
|
||||
objectClass: organizationalUnit
|
||||
# ldapadd_sample2.txt
|
||||
#
|
||||
# Use this sample to add a ou "contacts"
|
||||
# This is the second thing to create after creating the root my-domain
|
||||
#
|
||||
# ldapadd -c -v -D cn=Manager,dc=my-domain,dc=com -W -f ldapadd_sample2.txt
|
||||
|
||||
dn: ou=contacts,dc=my-domain,dc=com
|
||||
objectClass: organizationalUnit
|
||||
ou: contacts
|
||||
@ -1,142 +1,142 @@
|
||||
Accueil
|
||||
Actualités
|
||||
ApercuDesModeles
|
||||
Authentification
|
||||
Benoit Mortier
|
||||
Charte de nommage
|
||||
Commande
|
||||
Constantes
|
||||
Contrat
|
||||
Customisation des documents dolibarr
|
||||
Developpement module
|
||||
Devenir développeur
|
||||
DocUtilisateur
|
||||
DocumentFacture
|
||||
DocumentPropale
|
||||
Document générés
|
||||
Documentation Développeur
|
||||
Documentation développeur
|
||||
Documentation traducteur
|
||||
Documentation utilisateur
|
||||
Dolibarr
|
||||
Dépendances
|
||||
Développement
|
||||
Export
|
||||
Compta
|
||||
FAQUtilisateur
|
||||
FAQ Développeur
|
||||
FAQ Langue
|
||||
FAQ Montants
|
||||
FAQ Utilisateur
|
||||
Facturation
|
||||
Facturation/Comptabilité
|
||||
Facture
|
||||
FactureConfiguration
|
||||
FactureFournisseur
|
||||
FactureModele
|
||||
Fichier de configuration
|
||||
Glossaire
|
||||
Imports de masse
|
||||
Installation
|
||||
Installation / Mise a jour
|
||||
Interface OSCommerce
|
||||
Interfaces Dolibarr vers exterieur
|
||||
Interfaces Exterieur vers Dolibarr
|
||||
Langages
|
||||
Langages et normes
|
||||
Languages
|
||||
Laurent Destailleur (Eldy) - Profession de foi
|
||||
Laurent Destailleur - Profession de foi
|
||||
Librairies externes
|
||||
Librairies externes et dépendances
|
||||
Liste des tables
|
||||
Mailing
|
||||
Main Page
|
||||
Mise à jour du format de la base
|
||||
Module Adhérents
|
||||
Module Avoir
|
||||
Module Banque
|
||||
Module Banque-Caisse
|
||||
Module Barcode
|
||||
Module Commandes
|
||||
Module Comptabilité
|
||||
Module Contrat
|
||||
Module Facture
|
||||
Module Fournisseur
|
||||
Module Mailing
|
||||
Module Propositions commerciales
|
||||
Module Prélèvements bancaires
|
||||
Module Société
|
||||
Module Stock
|
||||
Module Utilisateurs
|
||||
Module comptabilité
|
||||
Modules
|
||||
Nomination chef de projet
|
||||
Normes développeur
|
||||
Module Proposition commerciales
|
||||
Normes développeur
|
||||
Module Stock
|
||||
OpenXtrem
|
||||
Outils et principes
|
||||
Permissions
|
||||
Premiers paramétrages
|
||||
Presse en ligne
|
||||
Presse papier
|
||||
Produits
|
||||
Produits 7.1
|
||||
Projet
|
||||
Projet comptabilité légale
|
||||
Proposition commerciale
|
||||
Prérequis
|
||||
Roadmap
|
||||
Roadmap 1.2.0
|
||||
Roadmap 1.3.0
|
||||
Roadmap 1.4.0
|
||||
Roadmap 1.6.0
|
||||
Roadmap 2.0.0
|
||||
Roadmap 2.1.0
|
||||
Roadmap 2.3.0
|
||||
Roadmap 2.4.0
|
||||
Roadmap 2.6.0
|
||||
Régles de développement
|
||||
Rôle du chef de projet
|
||||
Salon Solutions Linux 2005
|
||||
Salon Solutions Linux 2006
|
||||
Salon Solutions Linux 2007
|
||||
Sauvegarder ses_données avant mise à jour
|
||||
Script facturation-calcul.php
|
||||
Script facturation-verif.php
|
||||
Script import-cdr.php
|
||||
Script mailing-send.php
|
||||
Script prelevement-verif.php
|
||||
Services
|
||||
Sociétés
|
||||
Stocks Librairies externes et dépendances
|
||||
Suggestions utilisateurs
|
||||
Système de menus
|
||||
Système des boites
|
||||
Table llx adherent
|
||||
Table llx action def
|
||||
Table llx commande
|
||||
Table llx commandedet
|
||||
Table llx const
|
||||
Table llx contrat
|
||||
Table llx dolibarr modules
|
||||
Table llx export compta
|
||||
Table llx facturedet
|
||||
Table llx paiement
|
||||
Table llx paiementfourn facturefourn
|
||||
Table llx prelevement
|
||||
Table llx prelevement bons
|
||||
Table llx prelevement facture
|
||||
Table llx prelevement facture demande
|
||||
Table llx prelevement lignes
|
||||
Table llx prelevement rejet
|
||||
Table llx rights def
|
||||
Table llx user param
|
||||
Table llx usergroup
|
||||
Table llx usergroup rights
|
||||
Table llx usergroup user
|
||||
Themes
|
||||
Téléphonie
|
||||
Utiliser ses données pour tester la dernière version
|
||||
Accueil
|
||||
Actualités
|
||||
ApercuDesModeles
|
||||
Authentification
|
||||
Benoit Mortier
|
||||
Charte de nommage
|
||||
Commande
|
||||
Constantes
|
||||
Contrat
|
||||
Customisation des documents dolibarr
|
||||
Developpement module
|
||||
Devenir développeur
|
||||
DocUtilisateur
|
||||
DocumentFacture
|
||||
DocumentPropale
|
||||
Document générés
|
||||
Documentation Développeur
|
||||
Documentation développeur
|
||||
Documentation traducteur
|
||||
Documentation utilisateur
|
||||
Dolibarr
|
||||
Dépendances
|
||||
Développement
|
||||
Export
|
||||
Compta
|
||||
FAQUtilisateur
|
||||
FAQ Développeur
|
||||
FAQ Langue
|
||||
FAQ Montants
|
||||
FAQ Utilisateur
|
||||
Facturation
|
||||
Facturation/Comptabilité
|
||||
Facture
|
||||
FactureConfiguration
|
||||
FactureFournisseur
|
||||
FactureModele
|
||||
Fichier de configuration
|
||||
Glossaire
|
||||
Imports de masse
|
||||
Installation
|
||||
Installation / Mise a jour
|
||||
Interface OSCommerce
|
||||
Interfaces Dolibarr vers exterieur
|
||||
Interfaces Exterieur vers Dolibarr
|
||||
Langages
|
||||
Langages et normes
|
||||
Languages
|
||||
Laurent Destailleur (Eldy) - Profession de foi
|
||||
Laurent Destailleur - Profession de foi
|
||||
Librairies externes
|
||||
Librairies externes et dépendances
|
||||
Liste des tables
|
||||
Mailing
|
||||
Main Page
|
||||
Mise à jour du format de la base
|
||||
Module Adhérents
|
||||
Module Avoir
|
||||
Module Banque
|
||||
Module Banque-Caisse
|
||||
Module Barcode
|
||||
Module Commandes
|
||||
Module Comptabilité
|
||||
Module Contrat
|
||||
Module Facture
|
||||
Module Fournisseur
|
||||
Module Mailing
|
||||
Module Propositions commerciales
|
||||
Module Prélèvements bancaires
|
||||
Module Société
|
||||
Module Stock
|
||||
Module Utilisateurs
|
||||
Module comptabilité
|
||||
Modules
|
||||
Nomination chef de projet
|
||||
Normes développeur
|
||||
Module Proposition commerciales
|
||||
Normes développeur
|
||||
Module Stock
|
||||
OpenXtrem
|
||||
Outils et principes
|
||||
Permissions
|
||||
Premiers paramétrages
|
||||
Presse en ligne
|
||||
Presse papier
|
||||
Produits
|
||||
Produits 7.1
|
||||
Projet
|
||||
Projet comptabilité légale
|
||||
Proposition commerciale
|
||||
Prérequis
|
||||
Roadmap
|
||||
Roadmap 1.2.0
|
||||
Roadmap 1.3.0
|
||||
Roadmap 1.4.0
|
||||
Roadmap 1.6.0
|
||||
Roadmap 2.0.0
|
||||
Roadmap 2.1.0
|
||||
Roadmap 2.3.0
|
||||
Roadmap 2.4.0
|
||||
Roadmap 2.6.0
|
||||
Régles de développement
|
||||
Rôle du chef de projet
|
||||
Salon Solutions Linux 2005
|
||||
Salon Solutions Linux 2006
|
||||
Salon Solutions Linux 2007
|
||||
Sauvegarder ses_données avant mise à jour
|
||||
Script facturation-calcul.php
|
||||
Script facturation-verif.php
|
||||
Script import-cdr.php
|
||||
Script mailing-send.php
|
||||
Script prelevement-verif.php
|
||||
Services
|
||||
Sociétés
|
||||
Stocks Librairies externes et dépendances
|
||||
Suggestions utilisateurs
|
||||
Système de menus
|
||||
Système des boites
|
||||
Table llx adherent
|
||||
Table llx action def
|
||||
Table llx commande
|
||||
Table llx commandedet
|
||||
Table llx const
|
||||
Table llx contrat
|
||||
Table llx dolibarr modules
|
||||
Table llx export compta
|
||||
Table llx facturedet
|
||||
Table llx paiement
|
||||
Table llx paiementfourn facturefourn
|
||||
Table llx prelevement
|
||||
Table llx prelevement bons
|
||||
Table llx prelevement facture
|
||||
Table llx prelevement facture demande
|
||||
Table llx prelevement lignes
|
||||
Table llx prelevement rejet
|
||||
Table llx rights def
|
||||
Table llx user param
|
||||
Table llx usergroup
|
||||
Table llx usergroup rights
|
||||
Table llx usergroup user
|
||||
Themes
|
||||
Téléphonie
|
||||
Utiliser ses données pour tester la dernière version
|
||||
|
||||
@ -1,125 +1,125 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/adherents/cartes/carte.php
|
||||
\ingroup adherent
|
||||
\brief Page de creation d'une carte PDF
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
|
||||
require_once('PDF_card.class.php');
|
||||
|
||||
// liste des patterns remplacable dans le texte a imprimer
|
||||
$patterns = array (
|
||||
'/%PRENOM%/',
|
||||
'/%NOM%/',
|
||||
'/%SERVEUR%/',
|
||||
'/%SOCIETE%/',
|
||||
'/%ADRESSE%/',
|
||||
'/%CP%/',
|
||||
'/%VILLE%/',
|
||||
'/%PAYS%/',
|
||||
'/%EMAIL%/',
|
||||
'/%NAISS%/',
|
||||
'/%PHOTO%/',
|
||||
'/%TYPE%/',
|
||||
'/%ID%/',
|
||||
'/%ANNEE%/'
|
||||
);
|
||||
/*
|
||||
*-------------------------------------------------
|
||||
* Pour créer l'objet on a 2 moyens :
|
||||
* Soit on donne les valeurs en les passant dans un tableau (sert pour un format personnel)
|
||||
* Soit on donne le type d'étiquette au format AVERY
|
||||
*-------------------------------------------------
|
||||
*/
|
||||
|
||||
//$pdf = new PDF_Label(array('name'=>'perso1', 'marginLeft'=>1, 'marginTop'=>1, 'NX'=>2, 'NY'=>7, 'SpaceX'=>0, 'SpaceY'=>0, 'width'=>99.1, 'height'=>'38.1', 'metric'=>'mm', 'font-size'=>14), 1, 2);
|
||||
$pdf = new PDF_card('CARD', 1, 1);
|
||||
|
||||
$pdf->Open();
|
||||
$pdf->AddPage();
|
||||
|
||||
// Choix de l'annee d'impression ou annee courante.
|
||||
if (!isset($annee)){
|
||||
$now = getdate();
|
||||
$annee=$now['year'];
|
||||
}
|
||||
|
||||
// requete en prenant que les adherents a jour de cotisation
|
||||
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin,";
|
||||
$sql.= " d.adresse, d.cp, d.ville, d.naiss, d.email, d.photo,";
|
||||
$sql.= " t.libelle as type,";
|
||||
$sql.= " p.libelle as pays";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t, ".MAIN_DB_PREFIX."adherent as d";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_pays as p ON d.pays = p.rowid";
|
||||
$sql.= " WHERE d.fk_adherent_type = t.rowid AND d.statut = 1 AND datefin >= now()";
|
||||
$sql.= " ORDER BY d.rowid ASC";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows($result);
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
// attribut a remplacer
|
||||
$replace = array (
|
||||
ucfirst(strtolower($objp->prenom)),
|
||||
strtoupper($objp->nom),
|
||||
"http://".$_SERVER["SERVER_NAME"]."/",
|
||||
$objp->societe,
|
||||
ucwords(strtolower($objp->adresse)),
|
||||
$objp->cp,
|
||||
strtoupper($objp->ville),
|
||||
ucfirst(strtolower($objp->pays)),
|
||||
$objp->email,
|
||||
$objp->naiss,
|
||||
$objp->photo,
|
||||
$objp->type,
|
||||
$objp->rowid,
|
||||
$annee
|
||||
);
|
||||
|
||||
// imprime le texte specifique sur la carte
|
||||
//$pdf->Add_PDF_card(sprintf("%s\n%s\n%s\n%s\n%s, %s\n%s", $objp->type." n° ".$objp->rowid,ucfirst(strtolower($objp->prenom))." ".strtoupper($objp->nom),"<".$objp->email.">", ucwords(strtolower($objp->adresse)), $objp->cp, strtoupper($objp->ville), ucfirst(strtolower($objp->pays))),$annee,"Association FreeLUG http://www.freelug.org/");
|
||||
$pdf->Add_PDF_card(preg_replace ($patterns, $replace, ADHERENT_CARD_TEXT),preg_replace ($patterns, $replace, ADHERENT_CARD_HEADER_TEXT),preg_replace ($patterns, $replace, ADHERENT_CARD_FOOTER_TEXT));
|
||||
$i++;
|
||||
}
|
||||
|
||||
$db->close();
|
||||
$pdf->Output();
|
||||
}
|
||||
else
|
||||
{
|
||||
dolibarr_print_error($db);
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
}
|
||||
|
||||
?>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/adherents/cartes/carte.php
|
||||
\ingroup adherent
|
||||
\brief Page de creation d'une carte PDF
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
|
||||
require_once('PDF_card.class.php');
|
||||
|
||||
// liste des patterns remplacable dans le texte a imprimer
|
||||
$patterns = array (
|
||||
'/%PRENOM%/',
|
||||
'/%NOM%/',
|
||||
'/%SERVEUR%/',
|
||||
'/%SOCIETE%/',
|
||||
'/%ADRESSE%/',
|
||||
'/%CP%/',
|
||||
'/%VILLE%/',
|
||||
'/%PAYS%/',
|
||||
'/%EMAIL%/',
|
||||
'/%NAISS%/',
|
||||
'/%PHOTO%/',
|
||||
'/%TYPE%/',
|
||||
'/%ID%/',
|
||||
'/%ANNEE%/'
|
||||
);
|
||||
/*
|
||||
*-------------------------------------------------
|
||||
* Pour créer l'objet on a 2 moyens :
|
||||
* Soit on donne les valeurs en les passant dans un tableau (sert pour un format personnel)
|
||||
* Soit on donne le type d'étiquette au format AVERY
|
||||
*-------------------------------------------------
|
||||
*/
|
||||
|
||||
//$pdf = new PDF_Label(array('name'=>'perso1', 'marginLeft'=>1, 'marginTop'=>1, 'NX'=>2, 'NY'=>7, 'SpaceX'=>0, 'SpaceY'=>0, 'width'=>99.1, 'height'=>'38.1', 'metric'=>'mm', 'font-size'=>14), 1, 2);
|
||||
$pdf = new PDF_card('CARD', 1, 1);
|
||||
|
||||
$pdf->Open();
|
||||
$pdf->AddPage();
|
||||
|
||||
// Choix de l'annee d'impression ou annee courante.
|
||||
if (!isset($annee)){
|
||||
$now = getdate();
|
||||
$annee=$now['year'];
|
||||
}
|
||||
|
||||
// requete en prenant que les adherents a jour de cotisation
|
||||
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin,";
|
||||
$sql.= " d.adresse, d.cp, d.ville, d.naiss, d.email, d.photo,";
|
||||
$sql.= " t.libelle as type,";
|
||||
$sql.= " p.libelle as pays";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t, ".MAIN_DB_PREFIX."adherent as d";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_pays as p ON d.pays = p.rowid";
|
||||
$sql.= " WHERE d.fk_adherent_type = t.rowid AND d.statut = 1 AND datefin >= now()";
|
||||
$sql.= " ORDER BY d.rowid ASC";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows($result);
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
// attribut a remplacer
|
||||
$replace = array (
|
||||
ucfirst(strtolower($objp->prenom)),
|
||||
strtoupper($objp->nom),
|
||||
"http://".$_SERVER["SERVER_NAME"]."/",
|
||||
$objp->societe,
|
||||
ucwords(strtolower($objp->adresse)),
|
||||
$objp->cp,
|
||||
strtoupper($objp->ville),
|
||||
ucfirst(strtolower($objp->pays)),
|
||||
$objp->email,
|
||||
$objp->naiss,
|
||||
$objp->photo,
|
||||
$objp->type,
|
||||
$objp->rowid,
|
||||
$annee
|
||||
);
|
||||
|
||||
// imprime le texte specifique sur la carte
|
||||
//$pdf->Add_PDF_card(sprintf("%s\n%s\n%s\n%s\n%s, %s\n%s", $objp->type." n° ".$objp->rowid,ucfirst(strtolower($objp->prenom))." ".strtoupper($objp->nom),"<".$objp->email.">", ucwords(strtolower($objp->adresse)), $objp->cp, strtoupper($objp->ville), ucfirst(strtolower($objp->pays))),$annee,"Association FreeLUG http://www.freelug.org/");
|
||||
$pdf->Add_PDF_card(preg_replace ($patterns, $replace, ADHERENT_CARD_TEXT),preg_replace ($patterns, $replace, ADHERENT_CARD_HEADER_TEXT),preg_replace ($patterns, $replace, ADHERENT_CARD_FOOTER_TEXT));
|
||||
$i++;
|
||||
}
|
||||
|
||||
$db->close();
|
||||
$pdf->Output();
|
||||
}
|
||||
else
|
||||
{
|
||||
dolibarr_print_error($db);
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -1,94 +1,94 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/adherents/cartes/etiquette.php
|
||||
\ingroup adherent
|
||||
\brief Page de creation d'etiquettes
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
|
||||
require_once('PDF_card.class.php');
|
||||
|
||||
/*
|
||||
*-------------------------------------------------
|
||||
* Pour créer l'objet on a 2 moyens :
|
||||
* Soit on donne les valeurs en les passant dans un tableau (sert pour un format personnel)
|
||||
* Soit on donne le type d'étiquette au format AVERY
|
||||
*-------------------------------------------------
|
||||
*/
|
||||
|
||||
//$pdf = new PDF_Label(array('name'=>'perso1', 'marginLeft'=>1, 'marginTop'=>1, 'NX'=>2, 'NY'=>7, 'SpaceX'=>0, 'SpaceY'=>0, 'width'=>99.1, 'height'=>'38.1', 'metric'=>'mm', 'font-size'=>14), 1, 2);
|
||||
//$pdf = new PDF_card('CARD', 1, 1);
|
||||
if (defined("ADHERENT_ETIQUETTE_TYPE") && ADHERENT_ETIQUETTE_TYPE !=''){
|
||||
$pdf = new PDF_card(ADHERENT_ETIQUETTE_TYPE, 1, 1);
|
||||
}else{
|
||||
$pdf = new PDF_card('L7163', 1, 1);
|
||||
}
|
||||
|
||||
$pdf->Open();
|
||||
$pdf->AddPage();
|
||||
|
||||
// Choix de l'annee d'impression ou annee courante.
|
||||
if (!isset($annee)){
|
||||
$now = getdate();
|
||||
$annee=$now['year'];
|
||||
}
|
||||
|
||||
// requete en prenant que les adherents a jour de cotisation
|
||||
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin,";
|
||||
$sql.= " d.adresse, d.cp, d.ville, d.naiss, d.email, d.photo,";
|
||||
$sql.= " t.libelle as type,";
|
||||
$sql.= " p.libelle as pays";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t, ".MAIN_DB_PREFIX."adherent as d";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_pays as p ON d.pays = p.rowid";
|
||||
$sql.= " WHERE d.fk_adherent_type = t.rowid AND d.statut = 1 AND datefin >= now()";
|
||||
$sql.= " ORDER BY d.rowid ASC";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
// imprime le texte specifique sur la carte
|
||||
$pdf->Add_PDF_card(sprintf("%s\n%s\n%s %s\n%s", ucfirst(strtolower($objp->prenom))." ".strtoupper($objp->nom), ucwords(strtolower($objp->adresse)), $objp->cp, strtoupper($objp->ville), ucfirst(strtolower($objp->pays))),'','');
|
||||
$i++;
|
||||
}
|
||||
|
||||
$db->close();
|
||||
$pdf->Output();
|
||||
}
|
||||
else
|
||||
{
|
||||
dolibarr_print_error($db);
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
}
|
||||
|
||||
?>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/adherents/cartes/etiquette.php
|
||||
\ingroup adherent
|
||||
\brief Page de creation d'etiquettes
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
|
||||
require_once('PDF_card.class.php');
|
||||
|
||||
/*
|
||||
*-------------------------------------------------
|
||||
* Pour créer l'objet on a 2 moyens :
|
||||
* Soit on donne les valeurs en les passant dans un tableau (sert pour un format personnel)
|
||||
* Soit on donne le type d'étiquette au format AVERY
|
||||
*-------------------------------------------------
|
||||
*/
|
||||
|
||||
//$pdf = new PDF_Label(array('name'=>'perso1', 'marginLeft'=>1, 'marginTop'=>1, 'NX'=>2, 'NY'=>7, 'SpaceX'=>0, 'SpaceY'=>0, 'width'=>99.1, 'height'=>'38.1', 'metric'=>'mm', 'font-size'=>14), 1, 2);
|
||||
//$pdf = new PDF_card('CARD', 1, 1);
|
||||
if (defined("ADHERENT_ETIQUETTE_TYPE") && ADHERENT_ETIQUETTE_TYPE !=''){
|
||||
$pdf = new PDF_card(ADHERENT_ETIQUETTE_TYPE, 1, 1);
|
||||
}else{
|
||||
$pdf = new PDF_card('L7163', 1, 1);
|
||||
}
|
||||
|
||||
$pdf->Open();
|
||||
$pdf->AddPage();
|
||||
|
||||
// Choix de l'annee d'impression ou annee courante.
|
||||
if (!isset($annee)){
|
||||
$now = getdate();
|
||||
$annee=$now['year'];
|
||||
}
|
||||
|
||||
// requete en prenant que les adherents a jour de cotisation
|
||||
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin,";
|
||||
$sql.= " d.adresse, d.cp, d.ville, d.naiss, d.email, d.photo,";
|
||||
$sql.= " t.libelle as type,";
|
||||
$sql.= " p.libelle as pays";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t, ".MAIN_DB_PREFIX."adherent as d";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_pays as p ON d.pays = p.rowid";
|
||||
$sql.= " WHERE d.fk_adherent_type = t.rowid AND d.statut = 1 AND datefin >= now()";
|
||||
$sql.= " ORDER BY d.rowid ASC";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
// imprime le texte specifique sur la carte
|
||||
$pdf->Add_PDF_card(sprintf("%s\n%s\n%s %s\n%s", ucfirst(strtolower($objp->prenom))." ".strtoupper($objp->nom), ucwords(strtolower($objp->adresse)), $objp->cp, strtoupper($objp->ville), ucfirst(strtolower($objp->pays))),'','');
|
||||
$i++;
|
||||
}
|
||||
|
||||
$db->close();
|
||||
$pdf->Output();
|
||||
}
|
||||
else
|
||||
{
|
||||
dolibarr_print_error($db);
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,2 @@
|
||||
conf.php*.sav
|
||||
*.php
|
||||
conf.php*.sav
|
||||
*.php
|
||||
|
||||
@ -1 +1 @@
|
||||
jpgraph2
|
||||
jpgraph2
|
||||
|
||||
@ -1,177 +1,177 @@
|
||||
<!--
|
||||
* FCKeditor - The text editor for internet
|
||||
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
|
||||
*
|
||||
* Licensed under the terms of the GNU Lesser General Public License:
|
||||
* http://www.opensource.org/licenses/lgpl-license.php
|
||||
*
|
||||
* For further information visit:
|
||||
* http://www.fckeditor.net/
|
||||
*
|
||||
* "Support Open Source software. What about a donation today?"
|
||||
*
|
||||
* File Name: test.html
|
||||
* Test page for the File Browser connectors.
|
||||
*
|
||||
* File Authors:
|
||||
* Frederico Caldeira Knabben (fredck@fckeditor.net)
|
||||
-->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>FCKeditor - Connectors Tests</title>
|
||||
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
|
||||
<script type="text/javascript">
|
||||
|
||||
function BuildBaseUrl( command )
|
||||
{
|
||||
var sUrl =
|
||||
document.getElementById('cmbConnector').value +
|
||||
'?Command=' + command +
|
||||
'&Type=' + document.getElementById('cmbType').value +
|
||||
'&CurrentFolder=' + document.getElementById('txtFolder').value ;
|
||||
|
||||
return sUrl ;
|
||||
}
|
||||
|
||||
function SetFrameUrl( url )
|
||||
{
|
||||
if ( document.all )
|
||||
eRunningFrame.document.location = url ;
|
||||
else
|
||||
document.getElementById('eRunningFrame').src = url ;
|
||||
|
||||
document.getElementById('eUrl').innerHTML = url ;
|
||||
}
|
||||
|
||||
function GetFolders()
|
||||
{
|
||||
SetFrameUrl( BuildBaseUrl( 'GetFolders' ) ) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
function GetFoldersAndFiles()
|
||||
{
|
||||
SetFrameUrl( BuildBaseUrl( 'GetFoldersAndFiles' ) ) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
function CreateFolder()
|
||||
{
|
||||
var sFolder = prompt( 'Type the folder name:', 'Test Folder' ) ;
|
||||
|
||||
if ( ! sFolder )
|
||||
return ;
|
||||
|
||||
var sUrl = BuildBaseUrl( 'CreateFolder' ) ;
|
||||
sUrl += '&NewFolderName=' + escape( sFolder ) ;
|
||||
|
||||
SetFrameUrl( sUrl ) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
function OnUploadCompleted( errorNumber, fileName )
|
||||
{
|
||||
switch ( errorNumber )
|
||||
{
|
||||
case 0 :
|
||||
alert( 'File uploaded with no errors' ) ;
|
||||
break ;
|
||||
case 201 :
|
||||
GetFoldersAndFiles()
|
||||
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ;
|
||||
break ;
|
||||
case 202 :
|
||||
alert( 'Invalid file' ) ;
|
||||
break ;
|
||||
default :
|
||||
alert( 'Error on file upload. Error number: ' + errorNumber ) ;
|
||||
break ;
|
||||
}
|
||||
}
|
||||
|
||||
this.frames.frmUpload = this ;
|
||||
|
||||
function SetAction()
|
||||
{
|
||||
var sUrl = BuildBaseUrl( 'FileUpload' ) ;
|
||||
document.getElementById('eUrl').innerHTML = sUrl ;
|
||||
document.getElementById('frmUpload').action = sUrl ;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
Connector:<br />
|
||||
<select id="cmbConnector" name="cmbConnector">
|
||||
<option value="asp/connector.asp" selected="selected">ASP</option>
|
||||
<option value="aspx/connector.aspx">ASP.Net</option>
|
||||
<option value="cfm/connector.cfm">ColdFusion</option>
|
||||
<option value="lasso/connector.lasso">Lasso</option>
|
||||
<option value="perl/connector.cgi">Perl</option>
|
||||
<option value="php/connector.php">PHP</option>
|
||||
<option value="py/connector.py">Python</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
Current Folder<br />
|
||||
<input id="txtFolder" type="text" value="/" name="txtFolder" /></td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
Resource Type<br />
|
||||
<select id="cmbType" name="cmbType">
|
||||
<option value="File" selected="selected">File</option>
|
||||
<option value="Image">Image</option>
|
||||
<option value="Flash">Flash</option>
|
||||
<option value="Media">Media</option>
|
||||
<option value="Invalid">Invalid Type (for testing)</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<a href="#" onclick="GetFolders();">Get Folders</a></td>
|
||||
<td>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<a href="#" onclick="GetFoldersAndFiles();">Get Folders and Files</a></td>
|
||||
<td>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<a href="#" onclick="CreateFolder();">Create Folder</a></td>
|
||||
<td>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<form id="frmUpload" action="" target="eRunningFrame" method="post" enctype="multipart/form-data">
|
||||
File Upload<br />
|
||||
<input id="txtFileUpload" type="file" name="NewFile" />
|
||||
<input type="submit" value="Upload" onclick="SetAction();" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
URL: <span id="eUrl"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="100%" valign="top">
|
||||
<iframe id="eRunningFrame" src="../../../../fckblank.html" name="eRunningFrame" width="100%"
|
||||
height="100%"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
<!--
|
||||
* FCKeditor - The text editor for internet
|
||||
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
|
||||
*
|
||||
* Licensed under the terms of the GNU Lesser General Public License:
|
||||
* http://www.opensource.org/licenses/lgpl-license.php
|
||||
*
|
||||
* For further information visit:
|
||||
* http://www.fckeditor.net/
|
||||
*
|
||||
* "Support Open Source software. What about a donation today?"
|
||||
*
|
||||
* File Name: test.html
|
||||
* Test page for the File Browser connectors.
|
||||
*
|
||||
* File Authors:
|
||||
* Frederico Caldeira Knabben (fredck@fckeditor.net)
|
||||
-->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>FCKeditor - Connectors Tests</title>
|
||||
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
|
||||
<script type="text/javascript">
|
||||
|
||||
function BuildBaseUrl( command )
|
||||
{
|
||||
var sUrl =
|
||||
document.getElementById('cmbConnector').value +
|
||||
'?Command=' + command +
|
||||
'&Type=' + document.getElementById('cmbType').value +
|
||||
'&CurrentFolder=' + document.getElementById('txtFolder').value ;
|
||||
|
||||
return sUrl ;
|
||||
}
|
||||
|
||||
function SetFrameUrl( url )
|
||||
{
|
||||
if ( document.all )
|
||||
eRunningFrame.document.location = url ;
|
||||
else
|
||||
document.getElementById('eRunningFrame').src = url ;
|
||||
|
||||
document.getElementById('eUrl').innerHTML = url ;
|
||||
}
|
||||
|
||||
function GetFolders()
|
||||
{
|
||||
SetFrameUrl( BuildBaseUrl( 'GetFolders' ) ) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
function GetFoldersAndFiles()
|
||||
{
|
||||
SetFrameUrl( BuildBaseUrl( 'GetFoldersAndFiles' ) ) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
function CreateFolder()
|
||||
{
|
||||
var sFolder = prompt( 'Type the folder name:', 'Test Folder' ) ;
|
||||
|
||||
if ( ! sFolder )
|
||||
return ;
|
||||
|
||||
var sUrl = BuildBaseUrl( 'CreateFolder' ) ;
|
||||
sUrl += '&NewFolderName=' + escape( sFolder ) ;
|
||||
|
||||
SetFrameUrl( sUrl ) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
function OnUploadCompleted( errorNumber, fileName )
|
||||
{
|
||||
switch ( errorNumber )
|
||||
{
|
||||
case 0 :
|
||||
alert( 'File uploaded with no errors' ) ;
|
||||
break ;
|
||||
case 201 :
|
||||
GetFoldersAndFiles()
|
||||
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ;
|
||||
break ;
|
||||
case 202 :
|
||||
alert( 'Invalid file' ) ;
|
||||
break ;
|
||||
default :
|
||||
alert( 'Error on file upload. Error number: ' + errorNumber ) ;
|
||||
break ;
|
||||
}
|
||||
}
|
||||
|
||||
this.frames.frmUpload = this ;
|
||||
|
||||
function SetAction()
|
||||
{
|
||||
var sUrl = BuildBaseUrl( 'FileUpload' ) ;
|
||||
document.getElementById('eUrl').innerHTML = sUrl ;
|
||||
document.getElementById('frmUpload').action = sUrl ;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
Connector:<br />
|
||||
<select id="cmbConnector" name="cmbConnector">
|
||||
<option value="asp/connector.asp" selected="selected">ASP</option>
|
||||
<option value="aspx/connector.aspx">ASP.Net</option>
|
||||
<option value="cfm/connector.cfm">ColdFusion</option>
|
||||
<option value="lasso/connector.lasso">Lasso</option>
|
||||
<option value="perl/connector.cgi">Perl</option>
|
||||
<option value="php/connector.php">PHP</option>
|
||||
<option value="py/connector.py">Python</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
Current Folder<br />
|
||||
<input id="txtFolder" type="text" value="/" name="txtFolder" /></td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
Resource Type<br />
|
||||
<select id="cmbType" name="cmbType">
|
||||
<option value="File" selected="selected">File</option>
|
||||
<option value="Image">Image</option>
|
||||
<option value="Flash">Flash</option>
|
||||
<option value="Media">Media</option>
|
||||
<option value="Invalid">Invalid Type (for testing)</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<a href="#" onclick="GetFolders();">Get Folders</a></td>
|
||||
<td>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<a href="#" onclick="GetFoldersAndFiles();">Get Folders and Files</a></td>
|
||||
<td>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<a href="#" onclick="CreateFolder();">Create Folder</a></td>
|
||||
<td>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<form id="frmUpload" action="" target="eRunningFrame" method="post" enctype="multipart/form-data">
|
||||
File Upload<br />
|
||||
<input id="txtFileUpload" type="file" name="NewFile" />
|
||||
<input type="submit" value="Upload" onclick="SetAction();" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
URL: <span id="eUrl"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="100%" valign="top">
|
||||
<iframe id="eRunningFrame" src="../../../../fckblank.html" name="eRunningFrame" width="100%"
|
||||
height="100%"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
define('FPDF_FONTPATH','font/');
|
||||
require('code39.php');
|
||||
|
||||
$pdf=new PDF_Code39();
|
||||
$pdf->AddPage();
|
||||
$pdf->Code39(60, 30, 'Code 39');
|
||||
$pdf->Output();
|
||||
?>
|
||||
<?php
|
||||
define('FPDF_FONTPATH','font/');
|
||||
require('code39.php');
|
||||
|
||||
$pdf=new PDF_Code39();
|
||||
$pdf->AddPage();
|
||||
$pdf->Code39(60, 30, 'Code 39');
|
||||
$pdf->Output();
|
||||
?>
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>Extended Code 39 barcodes</TITLE>
|
||||
<STYLE>
|
||||
BODY {font-family:"Times New Roman",serif}
|
||||
H2 {color:#4000A0}
|
||||
.st {font-weight:bold; color:#900000}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>Extended Code 39 barcodes</H2>
|
||||
<H4 CLASS="st">Informations</H4>Author: <A HREF="mailto:ehavet@yahoo.fr?subject=Extended%20Code%2039%20barcodes">Emmanuel Havet</A><BR>License: Freeware
|
||||
<H4 CLASS="st">Description</H4>This script supports both standard and extended Code 39 barcodes. The extended mode gives access
|
||||
to the full ASCII range (from 0 to 127). The script also gives the possibility to add a checksum.<BR>
|
||||
<BR>
|
||||
<TT>Code39(<B>float</B> x, <B>float</B> y, <B>string</B> code [, <B>boolean</B> ext [, <B>boolean</B> cks [, <B>float</B> w [, <B>float</B> h [, <B>boolean</B> wide]]]]])</TT><BR>
|
||||
<BR>
|
||||
<TT><U>x</U></TT>: abscissa<BR>
|
||||
<TT><U>y</U></TT>: ordinate<BR>
|
||||
<TT><U>code</U></TT>: barcode value<BR>
|
||||
<TT><U>ext</U></TT>: indicates if extended mode must be used (<TT>true</TT> by default)<BR>
|
||||
<TT><U>cks</U></TT>: indicates if a checksum must be appended (<TT>false</TT> by default)<BR>
|
||||
<TT><U>w</U></TT>: width of a narrow bar (<TT>0.4</TT> by default)<BR>
|
||||
<TT><U>h</U></TT>: height of bars (<TT>20</TT> by default)<BR>
|
||||
<TT><U>wide</U></TT>: indicates if ratio between wide and narrow bars is high; if yes, ratio is 3, if no, it's 2 (<TT>true</TT> by default)
|
||||
</BODY>
|
||||
</HTML>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>Extended Code 39 barcodes</TITLE>
|
||||
<STYLE>
|
||||
BODY {font-family:"Times New Roman",serif}
|
||||
H2 {color:#4000A0}
|
||||
.st {font-weight:bold; color:#900000}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>Extended Code 39 barcodes</H2>
|
||||
<H4 CLASS="st">Informations</H4>Author: <A HREF="mailto:ehavet@yahoo.fr?subject=Extended%20Code%2039%20barcodes">Emmanuel Havet</A><BR>License: Freeware
|
||||
<H4 CLASS="st">Description</H4>This script supports both standard and extended Code 39 barcodes. The extended mode gives access
|
||||
to the full ASCII range (from 0 to 127). The script also gives the possibility to add a checksum.<BR>
|
||||
<BR>
|
||||
<TT>Code39(<B>float</B> x, <B>float</B> y, <B>string</B> code [, <B>boolean</B> ext [, <B>boolean</B> cks [, <B>float</B> w [, <B>float</B> h [, <B>boolean</B> wide]]]]])</TT><BR>
|
||||
<BR>
|
||||
<TT><U>x</U></TT>: abscissa<BR>
|
||||
<TT><U>y</U></TT>: ordinate<BR>
|
||||
<TT><U>code</U></TT>: barcode value<BR>
|
||||
<TT><U>ext</U></TT>: indicates if extended mode must be used (<TT>true</TT> by default)<BR>
|
||||
<TT><U>cks</U></TT>: indicates if a checksum must be appended (<TT>false</TT> by default)<BR>
|
||||
<TT><U>w</U></TT>: width of a narrow bar (<TT>0.4</TT> by default)<BR>
|
||||
<TT><U>h</U></TT>: height of bars (<TT>20</TT> by default)<BR>
|
||||
<TT><U>wide</U></TT>: indicates if ratio between wide and narrow bars is high; if yes, ratio is 3, if no, it's 2 (<TT>true</TT> by default)
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
@ -1,302 +1,302 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>FAQ</TITLE>
|
||||
<LINK TYPE="text/css" REL="stylesheet" HREF="fpdf.css">
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>FAQ</H2>
|
||||
<UL STYLE="list-style-type:none; margin-left:0; padding-left:0; margin-bottom:2.2em">
|
||||
<LI><B>1.</B> <A HREF='#1'>Quelle est exactement la licence de FPDF ? Y a-t-il des restrictions d'utilisation ?</A>
|
||||
<LI><B>2.</B> <A HREF='#2'>Lorsque j'essaie de créer un PDF, plein de caractères bizarres s'affichent à l'écran.</A>
|
||||
<LI><B>3.</B> <A HREF='#3'>J'essaie de générer un PDF et IE m'affiche une page blanche. Que se passe-t-il ?</A>
|
||||
<LI><B>4.</B> <A HREF='#4'>J'envoie des paramètres en utilisant la méthode POST et les valeurs n'apparaissent pas dans le PDF.</A>
|
||||
<LI><B>5.</B> <A HREF='#5'>Lorsque j'utilise une session PHP, IE n'affiche plus mon PDF mais propose de le télécharger.</A>
|
||||
<LI><B>6.</B> <A HREF='#6'>Quand je suis en SSL, IE n'arrive pas à ouvrir le PDF.</A>
|
||||
<LI><B>7.</B> <A HREF='#7'>Quand j'exécute un script j'obtiens le message "FPDF error: Don't alter the locale before including class file".</A>
|
||||
<LI><B>8.</B> <A HREF='#8'>J'essaie de mettre un PNG et Acrobat me dit "Une erreur est survenue lors du traitement d'une page. Une erreur d'affichage est survenue".</A>
|
||||
<LI><B>9.</B> <A HREF='#9'>J'ai l'erreur suivante quand j'essaie de générer un PDF : Warning: Cannot add header information - headers already sent by (output started at script.php:X)</A>
|
||||
<LI><B>10.</B> <A HREF='#10'>J'essaie d'afficher une variable dans la méthode Header mais rien ne s'imprime.</A>
|
||||
<LI><B>11.</B> <A HREF='#11'>J'ai défini les méthodes Header et Footer dans ma classe PDF mais rien ne s'affiche.</A>
|
||||
<LI><B>12.</B> <A HREF='#12'>Je n'arrive pas à faire de retour à la ligne. J'ai bien mis \n dans la chaîne imprimée par MultiCell mais ça ne marche pas.</A>
|
||||
<LI><B>13.</B> <A HREF='#13'>J'essaie de mettre le caractère euro mais je n'y arrive pas.</A>
|
||||
<LI><B>14.</B> <A HREF='#14'>Je dessine un cadre avec des dimensions très précises, mais à l'impression je constate des écarts.</A>
|
||||
<LI><B>15.</B> <A HREF='#15'>Je voudrais utiliser toute la surface de la page mais à l'impression j'ai toujours des marges. Comment les enlever ?</A>
|
||||
<LI><B>16.</B> <A HREF='#16'>Quelle est la taille limite des fichiers que je peux générer avec FPDF ?</A>
|
||||
<LI><B>17.</B> <A HREF='#17'>Est-ce que je peux modifier un PDF avec FPDF ?</A>
|
||||
<LI><B>18.</B> <A HREF='#18'>Je voudrais faire un moteur de recherche en PHP et indexer des PDF. Est-ce que je peux le faire avec FPDF ?</A>
|
||||
<LI><B>19.</B> <A HREF='#19'>Est-ce que je peux transformer une page HTML en PDF avec FPDF ?</A>
|
||||
<LI><B>20.</B> <A HREF='#20'>Est-ce que je peux concaténer des PDF avec FPDF ?</A>
|
||||
</UL>
|
||||
<P><A NAME='1'><B>1.</B></A> <SPAN CLASS='st'>Quelle est exactement la licence de FPDF ? Y a-t-il des restrictions d'utilisation ?</SPAN></P>
|
||||
FPDF est Freeware (c'est indiqué au début du fichier source). Il n'y a pas de restriction
|
||||
d'usage. Vous pouvez l'incorporer librement dans votre application (commerciale ou non), avec
|
||||
ou sans modification. Vous pouvez également le redistribuer.
|
||||
<P><A NAME='2'><B>2.</B></A> <SPAN CLASS='st'>Lorsque j'essaie de créer un PDF, plein de caractères bizarres s'affichent à l'écran.</SPAN></P>
|
||||
Ces caractères "bizarres" sont en fait le contenu réel du PDF. Ce comportement est un bug d'IE.
|
||||
Lorsqu'il reçoit d'abord une page HTML, puis un PDF à partir de la même URL, il l'affiche
|
||||
directement sans lancer le plug-in Acrobat. Cela arrive fréquemment en cours de développement :
|
||||
à la moindre erreur de script, une page HTML est envoyée, et après correction, le PDF arrive.
|
||||
<BR>
|
||||
Pour résoudre le problème, il suffit de fermer IE et de le relancer. On peut aussi aller sur
|
||||
une autre URL et revenir.
|
||||
<BR>
|
||||
Pour éviter ce genre de désagrément durant le développement, on peut générer le PDF directement
|
||||
dans un fichier et l'ouvrir via l'explorateur.
|
||||
<P><A NAME='3'><B>3.</B></A> <SPAN CLASS='st'>J'essaie de générer un PDF et IE m'affiche une page blanche. Que se passe-t-il ?</SPAN></P>
|
||||
Tout d'abord, vérifiez que vous n'envoyez rien au navigateur après le PDF (même pas un espace
|
||||
ou un retour-chariot). Vous pouvez mettre un exit juste après l'appel à la méthode Output()
|
||||
pour en être sûr.
|
||||
<BR>
|
||||
Si ce n'est pas ça, c'est que vous êtes victime du syndrome de la "page blanche". IE utilisé
|
||||
en conjonction avec le plug-in Acrobat souffre de très nombreux bugs, quelles que soient les
|
||||
versions. Essayez de tester votre application avec le plus de versions d'IE possible (en tout cas
|
||||
si elle est sur Internet). Le problème survient surtout lorsqu'on utilise la méthode POST, c'est
|
||||
pourquoi il est fortement déconseillé de l'utiliser (d'autant qu'elle pose d'autres problèmes,
|
||||
voir la question suivante). Le GET marche mieux mais peut échouer lorsque l'URL devient trop
|
||||
longue : il ne faut pas dépasser 45 caractères pour la query string. Il existe cependant une
|
||||
astuce pour dépasser cette limite : terminer l'URL par .pdf, ce qui trompe IE. Si vous utilisez
|
||||
un formulaire, il suffit de rajouter un champ caché en dernière position :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
<INPUT TYPE="HIDDEN" NAME="ext" VALUE=".pdf">
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
L'utilisation de session PHP cause également souvent des dysfonctionnements (il faut éviter
|
||||
d'envoyer des en-têtes HTTP empêchant la mise en cache). Voir la question 5 pour un moyen
|
||||
de résoudre le problème.
|
||||
<BR>
|
||||
<BR>
|
||||
Pour éviter tous ces problèmes de manière fiable, il existe deux principales techniques :
|
||||
<BR>
|
||||
<BR>
|
||||
- Désactiver le plug-in et utiliser Acrobat comme application externe. Pour cela, lancez
|
||||
Acrobat ; dans le menu Fichier, Préférences, Générales, désactivez l'option "Intégrer au
|
||||
navigateur Web" (pour Acrobat 5 : Edition, Préférences, Options, "Afficher dans le navigateur").
|
||||
Puis, lorsque vous récupérez un PDF dans IE, ce dernier affiche la boîte "Ouvrir ce fichier" ou
|
||||
"Enregistrer ce fichier". Décochez la case "Toujours demander avant d'ouvrir ce type de fichier"
|
||||
et choisissez Ouvrir. Dorénavant les PDF s'ouvriront automatiquement dans une fenêtre Acrobat
|
||||
indépendante.
|
||||
<BR>
|
||||
L'inconvénient de la méthode est qu'il faut toucher à la configuration du poste client, ce
|
||||
qu'on peut faire en intranet mais pas pour Internet.
|
||||
<BR>
|
||||
<BR>
|
||||
- Utiliser une technique de redirection. Le principe consiste à générer le PDF dans un fichier
|
||||
temporaire sur le serveur et à rediriger le client dessus (en utilisant du JavaScript, pas
|
||||
l'en-tête HTTP Location qui pose aussi des problèmes). Par exemple, à la fin du script, on
|
||||
peut mettre :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
//Détermination d'un nom de fichier temporaire dans le répertoire courant<BR>
|
||||
$file=basename(tempnam(getcwd(),'tmp'));<BR>
|
||||
//Sauvegarde du PDF dans le fichier<BR>
|
||||
$pdf->Output($file);<BR>
|
||||
//Redirection JavaScript<BR>
|
||||
echo "<HTML><SCRIPT>document.location='getpdf.php?f=$file';</SCRIPT></HTML>";
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Puis ceci dans getpdf.php :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
<?php<BR>
|
||||
$f=$HTTP_GET_VARS['f'];<BR>
|
||||
//Contrôle du fichier (à ne pas oublier !)<BR>
|
||||
if(substr($f,0,3)!='tmp' or strpos($f,'/') or strpos($f,'\\'))<BR>
|
||||
die("Nom de fichier incorrect");<BR>
|
||||
if(!file_exists($f))<BR>
|
||||
die("Le fichier n'existe pas");<BR>
|
||||
//Traitement de la requête spéciale IE au cas où<BR>
|
||||
if($HTTP_SERVER_VARS['HTTP_USER_AGENT']=='contype')<BR>
|
||||
{<BR>
|
||||
Header('Content-Type: application/pdf');<BR>
|
||||
exit;<BR>
|
||||
}<BR>
|
||||
//Envoi du PDF<BR>
|
||||
Header('Content-Type: application/pdf');<BR>
|
||||
Header('Content-Length: '.filesize($f));<BR>
|
||||
readfile($f);<BR>
|
||||
//Suppression du fichier<BR>
|
||||
unlink($f);<BR>
|
||||
exit;<BR>
|
||||
?>
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Cette méthode fonctionne dans la plupart des cas, mais pose encore des problèmes avec IE6. La
|
||||
méthode "ultime" consiste à rediriger directement sur le fichier temporaire. Ce dernier doit
|
||||
donc avoir l'extension .pdf :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
//Détermination d'un nom de fichier temporaire dans le répertoire courant<BR>
|
||||
$file=basename(tempnam(getcwd(),'tmp'));<BR>
|
||||
rename($file,$file.'.pdf');<BR>
|
||||
$file.='.pdf';<BR>
|
||||
//Sauvegarde du PDF dans le fichier<BR>
|
||||
$pdf->Output($file);<BR>
|
||||
//Redirection JavaScript<BR>
|
||||
echo "<HTML><SCRIPT>document.location='$file';</SCRIPT></HTML>";
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Cette méthode transforme un PDF dynamique en PDF statique et évite ainsi tous les ennuis.
|
||||
Par contre, il faut prévoir une procédure de nettoyage pour effacer les fichiers temporaires.
|
||||
Par exemple :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
function CleanFiles($dir)<BR>
|
||||
{<BR>
|
||||
//Efface les fichiers temporaires<BR>
|
||||
$t=time();<BR>
|
||||
$h=opendir($dir);<BR>
|
||||
while($file=readdir($h))<BR>
|
||||
{<BR>
|
||||
if(substr($file,0,3)=='tmp' and substr($file,-4)=='.pdf')<BR>
|
||||
{<BR>
|
||||
$path=$dir.'/'.$file;<BR>
|
||||
if($t-filemtime($path)>3600)<BR>
|
||||
@unlink($path);<BR>
|
||||
}<BR>
|
||||
}<BR>
|
||||
closedir($h);<BR>
|
||||
}
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Cette fonction efface tous les fichiers de la forme tmp*.pdf dans le répertoire spécifié qui
|
||||
datent de plus d'une heure. Vous pouvez l'appeler où vous voulez, par exemple dans le script
|
||||
qui génère le PDF.
|
||||
<BR>
|
||||
<BR>
|
||||
Remarque : il est nécessaire d'ouvrir une nouvelle fenêtre pour le PDF, car on ne peut plus
|
||||
revenir en arrière à cause de la redirection.
|
||||
<P><A NAME='4'><B>4.</B></A> <SPAN CLASS='st'>J'envoie des paramètres en utilisant la méthode POST et les valeurs n'apparaissent pas dans le PDF.</SPAN></P>
|
||||
C'est un problème qui affecte certaines versions d'IE (en particulier la première 5.5). Voir la
|
||||
question précédente pour les moyens de le contourner.
|
||||
<P><A NAME='5'><B>5.</B></A> <SPAN CLASS='st'>Lorsque j'utilise une session PHP, IE n'affiche plus mon PDF mais propose de le télécharger.</SPAN></P>
|
||||
C'est un problème qui affecte certaines versions d'IE. Pour le contourner, ajoutez la ligne
|
||||
suivante avant session_start() :<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
session_cache_limiter('private');
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
ou bien faites une redirection comme expliqué à la question 3.
|
||||
<P><A NAME='6'><B>6.</B></A> <SPAN CLASS='st'>Quand je suis en SSL, IE n'arrive pas à ouvrir le PDF.</SPAN></P>
|
||||
Le problème peut être résolu en ajoutant cette ligne :<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
Header('Pragma: public');
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
|
||||
<P><A NAME='7'><B>7.</B></A> <SPAN CLASS='st'>Quand j'exécute un script j'obtiens le message "FPDF error: Don't alter the locale before including class file".</SPAN></P>
|
||||
Lorsqu'on configure le séparateur décimal comme virgule avant d'inclure un fichier, il y a un
|
||||
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> dans certaines versions de PHP et les
|
||||
nombres décimaux sont tronqués. Il ne faut donc pas faire d'appel à setlocale() avant d'inclure la
|
||||
classe. Sous Unix, il ne faut pas non plus définir la variable d'environnement LC_ALL, car cela
|
||||
est équivalent à faire un appel à setlocale().
|
||||
<P><A NAME='8'><B>8.</B></A> <SPAN CLASS='st'>J'essaie de mettre un PNG et Acrobat me dit "Une erreur est survenue lors du traitement d'une page. Une erreur d'affichage est survenue".</SPAN></P>
|
||||
Acrobat 5 a un bug et ne peut pas afficher les images transparentes monochromes (i.e. avec 1 bit par pixel).
|
||||
Enlevez la transparence ou passez votre image en 16 couleurs (4 bits par pixel) ou plus.
|
||||
<P><A NAME='9'><B>9.</B></A> <SPAN CLASS='st'>J'ai l'erreur suivante quand j'essaie de générer un PDF : Warning: Cannot add header information - headers already sent by (output started at script.php:X)</SPAN></P>
|
||||
Il ne faut rien envoyer d'autre au navigateur que le PDF lui-même : pas d'HTML, pas d'espace, pas
|
||||
de retour-chariot, ni avant ni après. Le script envoie quelque chose à la ligne X.
|
||||
<P><A NAME='10'><B>10.</B></A> <SPAN CLASS='st'>J'essaie d'afficher une variable dans la méthode Header mais rien ne s'imprime.</SPAN></P>
|
||||
Il faut utiliser le mot-clé <TT>global</TT>, par exemple :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
function Header()<BR>
|
||||
{<BR>
|
||||
global $titre;<BR>
|
||||
<BR>
|
||||
$this->SetFont('Arial','B',15);<BR>
|
||||
$this->Cell(0,10,$titre,1,1,'C');<BR>
|
||||
}
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
|
||||
<P><A NAME='11'><B>11.</B></A> <SPAN CLASS='st'>J'ai défini les méthodes Header et Footer dans ma classe PDF mais rien ne s'affiche.</SPAN></P>
|
||||
Il faut créer un objet de la classe PDF et non pas FPDF :<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
$pdf=new PDF();
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
|
||||
<P><A NAME='12'><B>12.</B></A> <SPAN CLASS='st'>Je n'arrive pas à faire de retour à la ligne. J'ai bien mis \n dans la chaîne imprimée par MultiCell mais ça ne marche pas.</SPAN></P>
|
||||
Il faut mettre la chaîne entre guillemets et non pas entre apostrophes.
|
||||
<P><A NAME='13'><B>13.</B></A> <SPAN CLASS='st'>J'essaie de mettre le caractère euro mais je n'y arrive pas.</SPAN></P>
|
||||
Pour les polices standard, le caractère euro a pour code 128. Vous pouvez par commodité définir
|
||||
une constante comme suit :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
define('EURO',chr(128));
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Note : Acrobat 4 ou supérieur est requis pour afficher l'euro.
|
||||
<P><A NAME='14'><B>14.</B></A> <SPAN CLASS='st'>Je dessine un cadre avec des dimensions très précises, mais à l'impression je constate des écarts.</SPAN></P>
|
||||
Pour respecter les dimensions, il faut décocher la case "Ajuster" dans la boîte de dialogue
|
||||
d'impression.
|
||||
<P><A NAME='15'><B>15.</B></A> <SPAN CLASS='st'>Je voudrais utiliser toute la surface de la page mais à l'impression j'ai toujours des marges. Comment les enlever ?</SPAN></P>
|
||||
Les imprimantes ont toutes des marges physiques (variables en fonction du modèle), il est donc
|
||||
impossible de les supprimer et d'imprimer sur la totalité de la page.
|
||||
<P><A NAME='16'><B>16.</B></A> <SPAN CLASS='st'>Quelle est la taille limite des fichiers que je peux générer avec FPDF ?</SPAN></P>
|
||||
Il n'y a pas de limite particulière. Il existe cependant certaines contraintes :
|
||||
<BR>
|
||||
<BR>
|
||||
- La taille mémoire allouée par défaut aux scripts PHP est de 8 Mo. Pour de très gros
|
||||
documents, en particulier avec des images, cette limite peut être atteinte (le fichier étant
|
||||
construit en mémoire). Elle est paramétrée dans php.ini.
|
||||
<BR>
|
||||
<BR>
|
||||
- Le temps d'exécution alloué par défaut est de 30 secondes. Cette limite peut bien entendu
|
||||
être facilement dépassée. Elle est paramétrée dans php.ini et peut être éventuellement modifiée
|
||||
à l'exécution par set_time_limit().
|
||||
<BR>
|
||||
<BR>
|
||||
- Les navigateurs ont généralement un time-out de 5 minutes. Si vous envoyez le PDF directement
|
||||
au navigateur et que vous dépassez cette limite, il sera perdu. Il est donc conseillé pour les
|
||||
très gros documents de les générer dans un fichier, et d'envoyer des données de temps en temps
|
||||
au navigateur (par exemple page 1, page 2... en utilisant flush() pour forcer l'envoi).
|
||||
Lorsque le fichier est terminé, vous pouvez effectuer une redirection dessus avec JavaScript
|
||||
ou bien créer un lien.
|
||||
<BR>
|
||||
Remarque : même lorsque le navigateur part en time-out, il est possible que le script continue
|
||||
à s'exécuter sur le serveur.
|
||||
<P><A NAME='17'><B>17.</B></A> <SPAN CLASS='st'>Est-ce que je peux modifier un PDF avec FPDF ?</SPAN></P>
|
||||
Il est possible d'importer un PDF existant grâce à l'extension FPDI :<BR>
|
||||
<BR>
|
||||
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
|
||||
<P><A NAME='18'><B>18.</B></A> <SPAN CLASS='st'>Je voudrais faire un moteur de recherche en PHP et indexer des PDF. Est-ce que je peux le faire avec FPDF ?</SPAN></P>
|
||||
Non. Par contre il existe un utilitaire GPL en C, pdftotext, capable d'extraire le contenu
|
||||
textuel d'un PDF. Il est fourni avec l'archive de Xpdf :<BR>
|
||||
<BR>
|
||||
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
|
||||
<P><A NAME='19'><B>19.</B></A> <SPAN CLASS='st'>Est-ce que je peux transformer une page HTML en PDF avec FPDF ?</SPAN></P>
|
||||
Non, on ne peut convertir que de l'HTML très simple, pas des pages réelles. Par contre il
|
||||
existe un utilitaire GPL en C, htmldoc, qui permet de le faire et donne de bons résultats :<BR>
|
||||
<BR>
|
||||
<A HREF="http://www.htmldoc.org" TARGET="_blank">http://www.htmldoc.org</A>
|
||||
<P><A NAME='20'><B>20.</B></A> <SPAN CLASS='st'>Est-ce que je peux concaténer des PDF avec FPDF ?</SPAN></P>
|
||||
Non. Par contre il existe des utilitaires gratuits pour le faire :<BR>
|
||||
<BR>
|
||||
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/mbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/mbtPdfAsm2.html</A><BR>
|
||||
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>FAQ</TITLE>
|
||||
<LINK TYPE="text/css" REL="stylesheet" HREF="fpdf.css">
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>FAQ</H2>
|
||||
<UL STYLE="list-style-type:none; margin-left:0; padding-left:0; margin-bottom:2.2em">
|
||||
<LI><B>1.</B> <A HREF='#1'>Quelle est exactement la licence de FPDF ? Y a-t-il des restrictions d'utilisation ?</A>
|
||||
<LI><B>2.</B> <A HREF='#2'>Lorsque j'essaie de créer un PDF, plein de caractères bizarres s'affichent à l'écran.</A>
|
||||
<LI><B>3.</B> <A HREF='#3'>J'essaie de générer un PDF et IE m'affiche une page blanche. Que se passe-t-il ?</A>
|
||||
<LI><B>4.</B> <A HREF='#4'>J'envoie des paramètres en utilisant la méthode POST et les valeurs n'apparaissent pas dans le PDF.</A>
|
||||
<LI><B>5.</B> <A HREF='#5'>Lorsque j'utilise une session PHP, IE n'affiche plus mon PDF mais propose de le télécharger.</A>
|
||||
<LI><B>6.</B> <A HREF='#6'>Quand je suis en SSL, IE n'arrive pas à ouvrir le PDF.</A>
|
||||
<LI><B>7.</B> <A HREF='#7'>Quand j'exécute un script j'obtiens le message "FPDF error: Don't alter the locale before including class file".</A>
|
||||
<LI><B>8.</B> <A HREF='#8'>J'essaie de mettre un PNG et Acrobat me dit "Une erreur est survenue lors du traitement d'une page. Une erreur d'affichage est survenue".</A>
|
||||
<LI><B>9.</B> <A HREF='#9'>J'ai l'erreur suivante quand j'essaie de générer un PDF : Warning: Cannot add header information - headers already sent by (output started at script.php:X)</A>
|
||||
<LI><B>10.</B> <A HREF='#10'>J'essaie d'afficher une variable dans la méthode Header mais rien ne s'imprime.</A>
|
||||
<LI><B>11.</B> <A HREF='#11'>J'ai défini les méthodes Header et Footer dans ma classe PDF mais rien ne s'affiche.</A>
|
||||
<LI><B>12.</B> <A HREF='#12'>Je n'arrive pas à faire de retour à la ligne. J'ai bien mis \n dans la chaîne imprimée par MultiCell mais ça ne marche pas.</A>
|
||||
<LI><B>13.</B> <A HREF='#13'>J'essaie de mettre le caractère euro mais je n'y arrive pas.</A>
|
||||
<LI><B>14.</B> <A HREF='#14'>Je dessine un cadre avec des dimensions très précises, mais à l'impression je constate des écarts.</A>
|
||||
<LI><B>15.</B> <A HREF='#15'>Je voudrais utiliser toute la surface de la page mais à l'impression j'ai toujours des marges. Comment les enlever ?</A>
|
||||
<LI><B>16.</B> <A HREF='#16'>Quelle est la taille limite des fichiers que je peux générer avec FPDF ?</A>
|
||||
<LI><B>17.</B> <A HREF='#17'>Est-ce que je peux modifier un PDF avec FPDF ?</A>
|
||||
<LI><B>18.</B> <A HREF='#18'>Je voudrais faire un moteur de recherche en PHP et indexer des PDF. Est-ce que je peux le faire avec FPDF ?</A>
|
||||
<LI><B>19.</B> <A HREF='#19'>Est-ce que je peux transformer une page HTML en PDF avec FPDF ?</A>
|
||||
<LI><B>20.</B> <A HREF='#20'>Est-ce que je peux concaténer des PDF avec FPDF ?</A>
|
||||
</UL>
|
||||
<P><A NAME='1'><B>1.</B></A> <SPAN CLASS='st'>Quelle est exactement la licence de FPDF ? Y a-t-il des restrictions d'utilisation ?</SPAN></P>
|
||||
FPDF est Freeware (c'est indiqué au début du fichier source). Il n'y a pas de restriction
|
||||
d'usage. Vous pouvez l'incorporer librement dans votre application (commerciale ou non), avec
|
||||
ou sans modification. Vous pouvez également le redistribuer.
|
||||
<P><A NAME='2'><B>2.</B></A> <SPAN CLASS='st'>Lorsque j'essaie de créer un PDF, plein de caractères bizarres s'affichent à l'écran.</SPAN></P>
|
||||
Ces caractères "bizarres" sont en fait le contenu réel du PDF. Ce comportement est un bug d'IE.
|
||||
Lorsqu'il reçoit d'abord une page HTML, puis un PDF à partir de la même URL, il l'affiche
|
||||
directement sans lancer le plug-in Acrobat. Cela arrive fréquemment en cours de développement :
|
||||
à la moindre erreur de script, une page HTML est envoyée, et après correction, le PDF arrive.
|
||||
<BR>
|
||||
Pour résoudre le problème, il suffit de fermer IE et de le relancer. On peut aussi aller sur
|
||||
une autre URL et revenir.
|
||||
<BR>
|
||||
Pour éviter ce genre de désagrément durant le développement, on peut générer le PDF directement
|
||||
dans un fichier et l'ouvrir via l'explorateur.
|
||||
<P><A NAME='3'><B>3.</B></A> <SPAN CLASS='st'>J'essaie de générer un PDF et IE m'affiche une page blanche. Que se passe-t-il ?</SPAN></P>
|
||||
Tout d'abord, vérifiez que vous n'envoyez rien au navigateur après le PDF (même pas un espace
|
||||
ou un retour-chariot). Vous pouvez mettre un exit juste après l'appel à la méthode Output()
|
||||
pour en être sûr.
|
||||
<BR>
|
||||
Si ce n'est pas ça, c'est que vous êtes victime du syndrome de la "page blanche". IE utilisé
|
||||
en conjonction avec le plug-in Acrobat souffre de très nombreux bugs, quelles que soient les
|
||||
versions. Essayez de tester votre application avec le plus de versions d'IE possible (en tout cas
|
||||
si elle est sur Internet). Le problème survient surtout lorsqu'on utilise la méthode POST, c'est
|
||||
pourquoi il est fortement déconseillé de l'utiliser (d'autant qu'elle pose d'autres problèmes,
|
||||
voir la question suivante). Le GET marche mieux mais peut échouer lorsque l'URL devient trop
|
||||
longue : il ne faut pas dépasser 45 caractères pour la query string. Il existe cependant une
|
||||
astuce pour dépasser cette limite : terminer l'URL par .pdf, ce qui trompe IE. Si vous utilisez
|
||||
un formulaire, il suffit de rajouter un champ caché en dernière position :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
<INPUT TYPE="HIDDEN" NAME="ext" VALUE=".pdf">
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
L'utilisation de session PHP cause également souvent des dysfonctionnements (il faut éviter
|
||||
d'envoyer des en-têtes HTTP empêchant la mise en cache). Voir la question 5 pour un moyen
|
||||
de résoudre le problème.
|
||||
<BR>
|
||||
<BR>
|
||||
Pour éviter tous ces problèmes de manière fiable, il existe deux principales techniques :
|
||||
<BR>
|
||||
<BR>
|
||||
- Désactiver le plug-in et utiliser Acrobat comme application externe. Pour cela, lancez
|
||||
Acrobat ; dans le menu Fichier, Préférences, Générales, désactivez l'option "Intégrer au
|
||||
navigateur Web" (pour Acrobat 5 : Edition, Préférences, Options, "Afficher dans le navigateur").
|
||||
Puis, lorsque vous récupérez un PDF dans IE, ce dernier affiche la boîte "Ouvrir ce fichier" ou
|
||||
"Enregistrer ce fichier". Décochez la case "Toujours demander avant d'ouvrir ce type de fichier"
|
||||
et choisissez Ouvrir. Dorénavant les PDF s'ouvriront automatiquement dans une fenêtre Acrobat
|
||||
indépendante.
|
||||
<BR>
|
||||
L'inconvénient de la méthode est qu'il faut toucher à la configuration du poste client, ce
|
||||
qu'on peut faire en intranet mais pas pour Internet.
|
||||
<BR>
|
||||
<BR>
|
||||
- Utiliser une technique de redirection. Le principe consiste à générer le PDF dans un fichier
|
||||
temporaire sur le serveur et à rediriger le client dessus (en utilisant du JavaScript, pas
|
||||
l'en-tête HTTP Location qui pose aussi des problèmes). Par exemple, à la fin du script, on
|
||||
peut mettre :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
//Détermination d'un nom de fichier temporaire dans le répertoire courant<BR>
|
||||
$file=basename(tempnam(getcwd(),'tmp'));<BR>
|
||||
//Sauvegarde du PDF dans le fichier<BR>
|
||||
$pdf->Output($file);<BR>
|
||||
//Redirection JavaScript<BR>
|
||||
echo "<HTML><SCRIPT>document.location='getpdf.php?f=$file';</SCRIPT></HTML>";
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Puis ceci dans getpdf.php :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
<?php<BR>
|
||||
$f=$HTTP_GET_VARS['f'];<BR>
|
||||
//Contrôle du fichier (à ne pas oublier !)<BR>
|
||||
if(substr($f,0,3)!='tmp' or strpos($f,'/') or strpos($f,'\\'))<BR>
|
||||
die("Nom de fichier incorrect");<BR>
|
||||
if(!file_exists($f))<BR>
|
||||
die("Le fichier n'existe pas");<BR>
|
||||
//Traitement de la requête spéciale IE au cas où<BR>
|
||||
if($HTTP_SERVER_VARS['HTTP_USER_AGENT']=='contype')<BR>
|
||||
{<BR>
|
||||
Header('Content-Type: application/pdf');<BR>
|
||||
exit;<BR>
|
||||
}<BR>
|
||||
//Envoi du PDF<BR>
|
||||
Header('Content-Type: application/pdf');<BR>
|
||||
Header('Content-Length: '.filesize($f));<BR>
|
||||
readfile($f);<BR>
|
||||
//Suppression du fichier<BR>
|
||||
unlink($f);<BR>
|
||||
exit;<BR>
|
||||
?>
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Cette méthode fonctionne dans la plupart des cas, mais pose encore des problèmes avec IE6. La
|
||||
méthode "ultime" consiste à rediriger directement sur le fichier temporaire. Ce dernier doit
|
||||
donc avoir l'extension .pdf :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
//Détermination d'un nom de fichier temporaire dans le répertoire courant<BR>
|
||||
$file=basename(tempnam(getcwd(),'tmp'));<BR>
|
||||
rename($file,$file.'.pdf');<BR>
|
||||
$file.='.pdf';<BR>
|
||||
//Sauvegarde du PDF dans le fichier<BR>
|
||||
$pdf->Output($file);<BR>
|
||||
//Redirection JavaScript<BR>
|
||||
echo "<HTML><SCRIPT>document.location='$file';</SCRIPT></HTML>";
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Cette méthode transforme un PDF dynamique en PDF statique et évite ainsi tous les ennuis.
|
||||
Par contre, il faut prévoir une procédure de nettoyage pour effacer les fichiers temporaires.
|
||||
Par exemple :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
function CleanFiles($dir)<BR>
|
||||
{<BR>
|
||||
//Efface les fichiers temporaires<BR>
|
||||
$t=time();<BR>
|
||||
$h=opendir($dir);<BR>
|
||||
while($file=readdir($h))<BR>
|
||||
{<BR>
|
||||
if(substr($file,0,3)=='tmp' and substr($file,-4)=='.pdf')<BR>
|
||||
{<BR>
|
||||
$path=$dir.'/'.$file;<BR>
|
||||
if($t-filemtime($path)>3600)<BR>
|
||||
@unlink($path);<BR>
|
||||
}<BR>
|
||||
}<BR>
|
||||
closedir($h);<BR>
|
||||
}
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Cette fonction efface tous les fichiers de la forme tmp*.pdf dans le répertoire spécifié qui
|
||||
datent de plus d'une heure. Vous pouvez l'appeler où vous voulez, par exemple dans le script
|
||||
qui génère le PDF.
|
||||
<BR>
|
||||
<BR>
|
||||
Remarque : il est nécessaire d'ouvrir une nouvelle fenêtre pour le PDF, car on ne peut plus
|
||||
revenir en arrière à cause de la redirection.
|
||||
<P><A NAME='4'><B>4.</B></A> <SPAN CLASS='st'>J'envoie des paramètres en utilisant la méthode POST et les valeurs n'apparaissent pas dans le PDF.</SPAN></P>
|
||||
C'est un problème qui affecte certaines versions d'IE (en particulier la première 5.5). Voir la
|
||||
question précédente pour les moyens de le contourner.
|
||||
<P><A NAME='5'><B>5.</B></A> <SPAN CLASS='st'>Lorsque j'utilise une session PHP, IE n'affiche plus mon PDF mais propose de le télécharger.</SPAN></P>
|
||||
C'est un problème qui affecte certaines versions d'IE. Pour le contourner, ajoutez la ligne
|
||||
suivante avant session_start() :<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
session_cache_limiter('private');
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
ou bien faites une redirection comme expliqué à la question 3.
|
||||
<P><A NAME='6'><B>6.</B></A> <SPAN CLASS='st'>Quand je suis en SSL, IE n'arrive pas à ouvrir le PDF.</SPAN></P>
|
||||
Le problème peut être résolu en ajoutant cette ligne :<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
Header('Pragma: public');
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
|
||||
<P><A NAME='7'><B>7.</B></A> <SPAN CLASS='st'>Quand j'exécute un script j'obtiens le message "FPDF error: Don't alter the locale before including class file".</SPAN></P>
|
||||
Lorsqu'on configure le séparateur décimal comme virgule avant d'inclure un fichier, il y a un
|
||||
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> dans certaines versions de PHP et les
|
||||
nombres décimaux sont tronqués. Il ne faut donc pas faire d'appel à setlocale() avant d'inclure la
|
||||
classe. Sous Unix, il ne faut pas non plus définir la variable d'environnement LC_ALL, car cela
|
||||
est équivalent à faire un appel à setlocale().
|
||||
<P><A NAME='8'><B>8.</B></A> <SPAN CLASS='st'>J'essaie de mettre un PNG et Acrobat me dit "Une erreur est survenue lors du traitement d'une page. Une erreur d'affichage est survenue".</SPAN></P>
|
||||
Acrobat 5 a un bug et ne peut pas afficher les images transparentes monochromes (i.e. avec 1 bit par pixel).
|
||||
Enlevez la transparence ou passez votre image en 16 couleurs (4 bits par pixel) ou plus.
|
||||
<P><A NAME='9'><B>9.</B></A> <SPAN CLASS='st'>J'ai l'erreur suivante quand j'essaie de générer un PDF : Warning: Cannot add header information - headers already sent by (output started at script.php:X)</SPAN></P>
|
||||
Il ne faut rien envoyer d'autre au navigateur que le PDF lui-même : pas d'HTML, pas d'espace, pas
|
||||
de retour-chariot, ni avant ni après. Le script envoie quelque chose à la ligne X.
|
||||
<P><A NAME='10'><B>10.</B></A> <SPAN CLASS='st'>J'essaie d'afficher une variable dans la méthode Header mais rien ne s'imprime.</SPAN></P>
|
||||
Il faut utiliser le mot-clé <TT>global</TT>, par exemple :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
function Header()<BR>
|
||||
{<BR>
|
||||
global $titre;<BR>
|
||||
<BR>
|
||||
$this->SetFont('Arial','B',15);<BR>
|
||||
$this->Cell(0,10,$titre,1,1,'C');<BR>
|
||||
}
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
|
||||
<P><A NAME='11'><B>11.</B></A> <SPAN CLASS='st'>J'ai défini les méthodes Header et Footer dans ma classe PDF mais rien ne s'affiche.</SPAN></P>
|
||||
Il faut créer un objet de la classe PDF et non pas FPDF :<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
$pdf=new PDF();
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
|
||||
<P><A NAME='12'><B>12.</B></A> <SPAN CLASS='st'>Je n'arrive pas à faire de retour à la ligne. J'ai bien mis \n dans la chaîne imprimée par MultiCell mais ça ne marche pas.</SPAN></P>
|
||||
Il faut mettre la chaîne entre guillemets et non pas entre apostrophes.
|
||||
<P><A NAME='13'><B>13.</B></A> <SPAN CLASS='st'>J'essaie de mettre le caractère euro mais je n'y arrive pas.</SPAN></P>
|
||||
Pour les polices standard, le caractère euro a pour code 128. Vous pouvez par commodité définir
|
||||
une constante comme suit :
|
||||
<BR>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
||||
<TT>
|
||||
define('EURO',chr(128));
|
||||
</TT>
|
||||
</TD></TR></TABLE><BR>
|
||||
Note : Acrobat 4 ou supérieur est requis pour afficher l'euro.
|
||||
<P><A NAME='14'><B>14.</B></A> <SPAN CLASS='st'>Je dessine un cadre avec des dimensions très précises, mais à l'impression je constate des écarts.</SPAN></P>
|
||||
Pour respecter les dimensions, il faut décocher la case "Ajuster" dans la boîte de dialogue
|
||||
d'impression.
|
||||
<P><A NAME='15'><B>15.</B></A> <SPAN CLASS='st'>Je voudrais utiliser toute la surface de la page mais à l'impression j'ai toujours des marges. Comment les enlever ?</SPAN></P>
|
||||
Les imprimantes ont toutes des marges physiques (variables en fonction du modèle), il est donc
|
||||
impossible de les supprimer et d'imprimer sur la totalité de la page.
|
||||
<P><A NAME='16'><B>16.</B></A> <SPAN CLASS='st'>Quelle est la taille limite des fichiers que je peux générer avec FPDF ?</SPAN></P>
|
||||
Il n'y a pas de limite particulière. Il existe cependant certaines contraintes :
|
||||
<BR>
|
||||
<BR>
|
||||
- La taille mémoire allouée par défaut aux scripts PHP est de 8 Mo. Pour de très gros
|
||||
documents, en particulier avec des images, cette limite peut être atteinte (le fichier étant
|
||||
construit en mémoire). Elle est paramétrée dans php.ini.
|
||||
<BR>
|
||||
<BR>
|
||||
- Le temps d'exécution alloué par défaut est de 30 secondes. Cette limite peut bien entendu
|
||||
être facilement dépassée. Elle est paramétrée dans php.ini et peut être éventuellement modifiée
|
||||
à l'exécution par set_time_limit().
|
||||
<BR>
|
||||
<BR>
|
||||
- Les navigateurs ont généralement un time-out de 5 minutes. Si vous envoyez le PDF directement
|
||||
au navigateur et que vous dépassez cette limite, il sera perdu. Il est donc conseillé pour les
|
||||
très gros documents de les générer dans un fichier, et d'envoyer des données de temps en temps
|
||||
au navigateur (par exemple page 1, page 2... en utilisant flush() pour forcer l'envoi).
|
||||
Lorsque le fichier est terminé, vous pouvez effectuer une redirection dessus avec JavaScript
|
||||
ou bien créer un lien.
|
||||
<BR>
|
||||
Remarque : même lorsque le navigateur part en time-out, il est possible que le script continue
|
||||
à s'exécuter sur le serveur.
|
||||
<P><A NAME='17'><B>17.</B></A> <SPAN CLASS='st'>Est-ce que je peux modifier un PDF avec FPDF ?</SPAN></P>
|
||||
Il est possible d'importer un PDF existant grâce à l'extension FPDI :<BR>
|
||||
<BR>
|
||||
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
|
||||
<P><A NAME='18'><B>18.</B></A> <SPAN CLASS='st'>Je voudrais faire un moteur de recherche en PHP et indexer des PDF. Est-ce que je peux le faire avec FPDF ?</SPAN></P>
|
||||
Non. Par contre il existe un utilitaire GPL en C, pdftotext, capable d'extraire le contenu
|
||||
textuel d'un PDF. Il est fourni avec l'archive de Xpdf :<BR>
|
||||
<BR>
|
||||
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
|
||||
<P><A NAME='19'><B>19.</B></A> <SPAN CLASS='st'>Est-ce que je peux transformer une page HTML en PDF avec FPDF ?</SPAN></P>
|
||||
Non, on ne peut convertir que de l'HTML très simple, pas des pages réelles. Par contre il
|
||||
existe un utilitaire GPL en C, htmldoc, qui permet de le faire et donne de bons résultats :<BR>
|
||||
<BR>
|
||||
<A HREF="http://www.htmldoc.org" TARGET="_blank">http://www.htmldoc.org</A>
|
||||
<P><A NAME='20'><B>20.</B></A> <SPAN CLASS='st'>Est-ce que je peux concaténer des PDF avec FPDF ?</SPAN></P>
|
||||
Non. Par contre il existe des utilitaires gratuits pour le faire :<BR>
|
||||
<BR>
|
||||
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/mbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/mbtPdfAsm2.html</A><BR>
|
||||
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
BODY {font-family:times new roman,serif}
|
||||
H2 {color:#4000A0}
|
||||
P.demo {text-align:center; margin-top:-10px}
|
||||
A.demo {text-decoration:none; font-weight:bold; color:#0000CC}
|
||||
A.demo:link {text-decoration:none; font-weight:bold; color:#0000CC}
|
||||
A.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF}
|
||||
A.demo:active {text-decoration:none; font-weight:bold; color:#0000FF}
|
||||
.st {font-weight:bold; color:#900000}
|
||||
.kw {color:#000080; font-weight:bold}
|
||||
.str {color:#CC0000}
|
||||
.cmt {color:#008000}
|
||||
BODY {font-family:times new roman,serif}
|
||||
H2 {color:#4000A0}
|
||||
P.demo {text-align:center; margin-top:-10px}
|
||||
A.demo {text-decoration:none; font-weight:bold; color:#0000CC}
|
||||
A.demo:link {text-decoration:none; font-weight:bold; color:#0000CC}
|
||||
A.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF}
|
||||
A.demo:active {text-decoration:none; font-weight:bold; color:#0000FF}
|
||||
.st {font-weight:bold; color:#900000}
|
||||
.kw {color:#000080; font-weight:bold}
|
||||
.str {color:#CC0000}
|
||||
.cmt {color:#008000}
|
||||
|
||||
@ -1,111 +1,111 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>Historique</TITLE>
|
||||
<LINK TYPE="text/css" REL="stylesheet" HREF="fpdf.css">
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>Historique</H2>
|
||||
<B>v1.53</B> (31/12/2004)
|
||||
<BLOCKQUOTE>
|
||||
- Lorsque le sous-répertoire font se trouve dans le même répertoire que fpdf.php, il n'est maintenant plus nécessaire de définir la constante FPDF_FONTPATH.<BR>
|
||||
- Le tableau $HTTP_SERVER_VARS n'est plus utilisé. Cela pouvait poser des problèmes avec les configurations PHP 5 ayant désactivé l'option register_long_arrays.<BR>
|
||||
- L'incorporation des polices Type1 posait des problèmes avec certains processeurs de PDF.<BR>
|
||||
- Le nom du PDF envoyé au navigateur ne pouvait pas comporter d'espace.<BR>
|
||||
- La méthode Cell() ne pouvait pas imprimer le nombre 0 (seulement la chaîne '0').<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.52</B> (30/12/2003)
|
||||
<BLOCKQUOTE>
|
||||
- Image() affiche maintenant l'image en 72 dpi si aucune dimension n'est indiquée.<BR>
|
||||
- Output() prend un second paramètre chaîne pour indiquer la destination.<BR>
|
||||
- Open() est maintenant appelé automatiquement par AddPage().<BR>
|
||||
- L'insertion d'image JPEG distante ne génère plus d'erreur.<BR>
|
||||
- Le séparateur décimal est forcé au point dans le constructeur.<BR>
|
||||
- Ajout de différents encodages (turc, thaïlandais, hébreu, ukrainien et vietnamien).<BR>
|
||||
- La dernière ligne d'un MultiCell() cadré à droite n'était pas bien alignée si elle se terminait par un retour-chariot.<BR>
|
||||
- Plus de message d'erreur sur les en-têtes déjà envoyés lorsque le PDF est généré sur la sortie standard en mode ligne de commande.<BR>
|
||||
- Le souligné allait trop loin lorsque le texte comportait les caractères \, ( ou ).<BR>
|
||||
- $HTTP_ENV_VARS a été remplacé par $HTTP_SERVER_VARS.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.51</B> (03/08/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Support des polices Type1.<BR>
|
||||
- Ajout des encodages pour les pays baltes.<BR>
|
||||
- La classe travaille maintenant en interne en points avec l'origine en bas afin d'éviter deux bugs avec Acrobat 5 :<BR> * L'épaisseur des traits était trop importante lors des impressions sous Windows 98 SE et ME.<BR> * Les polices TrueType n'apparaissaient pas immédiatement dans le plug-in (une police de substitution était utilisée), il fallait provoquer un rafraîchissement de la fenêtre pour les voir apparaître.<BR>
|
||||
- La zone cliquable dans une cellule était toujours positionnée à gauche indépendamment de l'alignement du texte.<BR>
|
||||
- Les images JPEG en mode CMYK apparaissaient en couleurs inversées.<BR>
|
||||
- Les images PNG transparentes en niveaux de gris ou couleurs vraies étaient incorrectement traitées.<BR>
|
||||
- L'ajout de nouvelles polices fonctionne maintenant correctement même avec l'option magic_quotes_runtime à on.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.5</B> (28/05/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Support des polices TrueType (AddFont()) et des encodages (Europe de l'Ouest, de l'Est, cyrillique et grec).<BR>
|
||||
- Ajout de la méthode Write().<BR>
|
||||
- Ajout du style souligné.<BR>
|
||||
- Support des liens internes et externes (AddLink(), SetLink(), Link()).<BR>
|
||||
- Gestion de la marge droite et ajout des méthodes SetRightMargin() et SetTopMargin().<BR>
|
||||
- Modification de SetDisplayMode() pour sélectionner un affichage continu ou en colonnes.<BR>
|
||||
- Le paramètre border de MultiCell() permet de choisir les bords à tracer comme Cell().<BR>
|
||||
- Lorsqu'un document ne contient aucune page, Close() appelle maintenant AddPage() au lieu de provoquer une erreur fatale.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.41</B> (13/03/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Correction de SetDisplayMode() qui ne fonctionnait plus (le visualiseur PDF utilisait l'affichage par défaut).<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.4</B> (02/03/2002)
|
||||
<BLOCKQUOTE>
|
||||
- PHP3 n'est plus supporté.<BR>
|
||||
- Compression des pages (SetCompression()).<BR>
|
||||
- Choix du format des pages et possibilité de changer l'orientation en cours de document.<BR>
|
||||
- Ajout de la méthode AcceptPageBreak().<BR>
|
||||
- Ajout de la méthode SetLeftMargin().<BR>
|
||||
- Possibilité d'imprimer le nombre total de pages (AliasNbPages()).<BR>
|
||||
- Choix des bords des cellules à tracer.<BR>
|
||||
- Nouveau mode pour la méthode Cell() : la position courante se déplace sous la cellule.<BR>
|
||||
- Possibilité d'inclure une image en n'indiquant que la hauteur (la largeur est déterminée automatiquement).<BR>
|
||||
- Correction d'un bug : lorsqu'une ligne justifiée provoquait un saut de page, le pied de page héritait de l'espacement inter-mot correspondant.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.31</B> (12/01/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Correction d'un bug dans le tracé du cadre avec MultiCell() : la dernière ligne partait toujours de la marge gauche.<BR>
|
||||
- Suppression de l'en-tête HTTP Expires (pose des problèmes dans certains cas).<BR>
|
||||
- Ajout de l'en-tête HTTP Content-disposition (semble aider dans certains cas).<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.3</B> (03/12/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Gestion des sauts de ligne avec justification du texte (MultiCell()).<BR>
|
||||
- Ajout du support de la couleur (SetDrawColor(), SetFillColor(), SetTextColor()). Possibilité de dessiner des rectangles pleins et de colorer le fond des cellules.<BR>
|
||||
- Une cellule dont la largeur est déclarée nulle s'étend jusqu'à la marge droite de la page.<BR>
|
||||
- L'épaisseur des traits est maintenant conservée de page en page et vaut 0,2 mm par défaut.<BR>
|
||||
- Ajout de la méthode SetXY().<BR>
|
||||
- Correction d'un passage par référence effectué d'une manière obsolète en PHP4.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.2</B> (11/11/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Ajout des fichiers de métrique des polices et de la méthode GetStringWidth().<BR>
|
||||
- Possibilité de centrer et d'aligner à droite le texte dans les cellules.<BR>
|
||||
- Réglage du mode d'affichage (SetDisplayMode()).<BR>
|
||||
- Ajout des méthodes de propriété du document (SetAuthor(), SetCreator(), SetKeywords(), SetSubject(), SetTitle()).<BR>
|
||||
- Possibilité de forcer le téléchargement du PDF.<BR>
|
||||
- Ajout des méthodes SetX() et GetX().<BR>
|
||||
- Lors du saut de page automatique, l'abscisse courante est maintenant conservée.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.11</B> (20/10/2001)
|
||||
<BLOCKQUOTE>
|
||||
- L'utilisation des PNG ne nécessite plus PHP4 et l'extension Zlib. Les données sont intégrées directement dans le document PDF sans étape de décompression/recompression.<BR>
|
||||
- L'insertion d'image fonctionne maintenant correctement même avec l'option magic_quotes_runtime à on.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.1</B> (07/10/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Support des images JPEG et PNG.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.01</B> (03/10/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Correction d'un bug lors du saut de page : dans le cas où la méthode Header() ne spécifiait pas de police, celle de la page précédente n'était pas restaurée et produisait un document incorrect.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.0</B> (17/09/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Première version.<BR>
|
||||
</BLOCKQUOTE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>Historique</TITLE>
|
||||
<LINK TYPE="text/css" REL="stylesheet" HREF="fpdf.css">
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>Historique</H2>
|
||||
<B>v1.53</B> (31/12/2004)
|
||||
<BLOCKQUOTE>
|
||||
- Lorsque le sous-répertoire font se trouve dans le même répertoire que fpdf.php, il n'est maintenant plus nécessaire de définir la constante FPDF_FONTPATH.<BR>
|
||||
- Le tableau $HTTP_SERVER_VARS n'est plus utilisé. Cela pouvait poser des problèmes avec les configurations PHP 5 ayant désactivé l'option register_long_arrays.<BR>
|
||||
- L'incorporation des polices Type1 posait des problèmes avec certains processeurs de PDF.<BR>
|
||||
- Le nom du PDF envoyé au navigateur ne pouvait pas comporter d'espace.<BR>
|
||||
- La méthode Cell() ne pouvait pas imprimer le nombre 0 (seulement la chaîne '0').<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.52</B> (30/12/2003)
|
||||
<BLOCKQUOTE>
|
||||
- Image() affiche maintenant l'image en 72 dpi si aucune dimension n'est indiquée.<BR>
|
||||
- Output() prend un second paramètre chaîne pour indiquer la destination.<BR>
|
||||
- Open() est maintenant appelé automatiquement par AddPage().<BR>
|
||||
- L'insertion d'image JPEG distante ne génère plus d'erreur.<BR>
|
||||
- Le séparateur décimal est forcé au point dans le constructeur.<BR>
|
||||
- Ajout de différents encodages (turc, thaïlandais, hébreu, ukrainien et vietnamien).<BR>
|
||||
- La dernière ligne d'un MultiCell() cadré à droite n'était pas bien alignée si elle se terminait par un retour-chariot.<BR>
|
||||
- Plus de message d'erreur sur les en-têtes déjà envoyés lorsque le PDF est généré sur la sortie standard en mode ligne de commande.<BR>
|
||||
- Le souligné allait trop loin lorsque le texte comportait les caractères \, ( ou ).<BR>
|
||||
- $HTTP_ENV_VARS a été remplacé par $HTTP_SERVER_VARS.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.51</B> (03/08/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Support des polices Type1.<BR>
|
||||
- Ajout des encodages pour les pays baltes.<BR>
|
||||
- La classe travaille maintenant en interne en points avec l'origine en bas afin d'éviter deux bugs avec Acrobat 5 :<BR> * L'épaisseur des traits était trop importante lors des impressions sous Windows 98 SE et ME.<BR> * Les polices TrueType n'apparaissaient pas immédiatement dans le plug-in (une police de substitution était utilisée), il fallait provoquer un rafraîchissement de la fenêtre pour les voir apparaître.<BR>
|
||||
- La zone cliquable dans une cellule était toujours positionnée à gauche indépendamment de l'alignement du texte.<BR>
|
||||
- Les images JPEG en mode CMYK apparaissaient en couleurs inversées.<BR>
|
||||
- Les images PNG transparentes en niveaux de gris ou couleurs vraies étaient incorrectement traitées.<BR>
|
||||
- L'ajout de nouvelles polices fonctionne maintenant correctement même avec l'option magic_quotes_runtime à on.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.5</B> (28/05/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Support des polices TrueType (AddFont()) et des encodages (Europe de l'Ouest, de l'Est, cyrillique et grec).<BR>
|
||||
- Ajout de la méthode Write().<BR>
|
||||
- Ajout du style souligné.<BR>
|
||||
- Support des liens internes et externes (AddLink(), SetLink(), Link()).<BR>
|
||||
- Gestion de la marge droite et ajout des méthodes SetRightMargin() et SetTopMargin().<BR>
|
||||
- Modification de SetDisplayMode() pour sélectionner un affichage continu ou en colonnes.<BR>
|
||||
- Le paramètre border de MultiCell() permet de choisir les bords à tracer comme Cell().<BR>
|
||||
- Lorsqu'un document ne contient aucune page, Close() appelle maintenant AddPage() au lieu de provoquer une erreur fatale.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.41</B> (13/03/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Correction de SetDisplayMode() qui ne fonctionnait plus (le visualiseur PDF utilisait l'affichage par défaut).<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.4</B> (02/03/2002)
|
||||
<BLOCKQUOTE>
|
||||
- PHP3 n'est plus supporté.<BR>
|
||||
- Compression des pages (SetCompression()).<BR>
|
||||
- Choix du format des pages et possibilité de changer l'orientation en cours de document.<BR>
|
||||
- Ajout de la méthode AcceptPageBreak().<BR>
|
||||
- Ajout de la méthode SetLeftMargin().<BR>
|
||||
- Possibilité d'imprimer le nombre total de pages (AliasNbPages()).<BR>
|
||||
- Choix des bords des cellules à tracer.<BR>
|
||||
- Nouveau mode pour la méthode Cell() : la position courante se déplace sous la cellule.<BR>
|
||||
- Possibilité d'inclure une image en n'indiquant que la hauteur (la largeur est déterminée automatiquement).<BR>
|
||||
- Correction d'un bug : lorsqu'une ligne justifiée provoquait un saut de page, le pied de page héritait de l'espacement inter-mot correspondant.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.31</B> (12/01/2002)
|
||||
<BLOCKQUOTE>
|
||||
- Correction d'un bug dans le tracé du cadre avec MultiCell() : la dernière ligne partait toujours de la marge gauche.<BR>
|
||||
- Suppression de l'en-tête HTTP Expires (pose des problèmes dans certains cas).<BR>
|
||||
- Ajout de l'en-tête HTTP Content-disposition (semble aider dans certains cas).<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.3</B> (03/12/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Gestion des sauts de ligne avec justification du texte (MultiCell()).<BR>
|
||||
- Ajout du support de la couleur (SetDrawColor(), SetFillColor(), SetTextColor()). Possibilité de dessiner des rectangles pleins et de colorer le fond des cellules.<BR>
|
||||
- Une cellule dont la largeur est déclarée nulle s'étend jusqu'à la marge droite de la page.<BR>
|
||||
- L'épaisseur des traits est maintenant conservée de page en page et vaut 0,2 mm par défaut.<BR>
|
||||
- Ajout de la méthode SetXY().<BR>
|
||||
- Correction d'un passage par référence effectué d'une manière obsolète en PHP4.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.2</B> (11/11/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Ajout des fichiers de métrique des polices et de la méthode GetStringWidth().<BR>
|
||||
- Possibilité de centrer et d'aligner à droite le texte dans les cellules.<BR>
|
||||
- Réglage du mode d'affichage (SetDisplayMode()).<BR>
|
||||
- Ajout des méthodes de propriété du document (SetAuthor(), SetCreator(), SetKeywords(), SetSubject(), SetTitle()).<BR>
|
||||
- Possibilité de forcer le téléchargement du PDF.<BR>
|
||||
- Ajout des méthodes SetX() et GetX().<BR>
|
||||
- Lors du saut de page automatique, l'abscisse courante est maintenant conservée.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.11</B> (20/10/2001)
|
||||
<BLOCKQUOTE>
|
||||
- L'utilisation des PNG ne nécessite plus PHP4 et l'extension Zlib. Les données sont intégrées directement dans le document PDF sans étape de décompression/recompression.<BR>
|
||||
- L'insertion d'image fonctionne maintenant correctement même avec l'option magic_quotes_runtime à on.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.1</B> (07/10/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Support des images JPEG et PNG.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.01</B> (03/10/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Correction d'un bug lors du saut de page : dans le cas où la méthode Header() ne spécifiait pas de police, celle de la page précédente n'était pas restaurée et produisait un document incorrect.<BR>
|
||||
</BLOCKQUOTE>
|
||||
<B>v1.0</B> (17/09/2001)
|
||||
<BLOCKQUOTE>
|
||||
- Première version.<BR>
|
||||
</BLOCKQUOTE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
@ -1,26 +1,26 @@
|
||||
FPDF est constitué des éléments suivants :
|
||||
|
||||
- le fichier principal fpdf.php contenant la classe
|
||||
- les fichiers de métrique des polices (contenus dans le répertoire font de cette archive)
|
||||
|
||||
Les fichiers de métrique sont indispensables dès que l'on veut écrire du texte dans un document.
|
||||
Ils peuvent se trouver en trois endroits différents :
|
||||
|
||||
- dans le répertoire défini par la constante FPDF_FONTPATH (si cette constante est définie)
|
||||
- dans le répertoire font s'il se trouve au même niveau que fpdf.php (comme c'est le cas dans cette archive)
|
||||
- dans un des répertoires accessibles par include()
|
||||
|
||||
Voici un exemple de définition de FPDF_FONTPATH (notez le slash final obligatoire) :
|
||||
|
||||
define('FPDF_FONTPATH','/home/www/font/');
|
||||
require('fpdf.php');
|
||||
|
||||
Si ces fichiers ne sont pas accessibles, la méthode SetFont() produira l'erreur suivante :
|
||||
|
||||
FPDF error: Could not include font metric file
|
||||
|
||||
|
||||
Remarques :
|
||||
|
||||
- Seuls les fichiers correspondant aux polices effectivement utilisées sont nécessaires
|
||||
- Les tutoriels fournis dans l'archive sont prêts à être exécutés
|
||||
FPDF est constitué des éléments suivants :
|
||||
|
||||
- le fichier principal fpdf.php contenant la classe
|
||||
- les fichiers de métrique des polices (contenus dans le répertoire font de cette archive)
|
||||
|
||||
Les fichiers de métrique sont indispensables dès que l'on veut écrire du texte dans un document.
|
||||
Ils peuvent se trouver en trois endroits différents :
|
||||
|
||||
- dans le répertoire défini par la constante FPDF_FONTPATH (si cette constante est définie)
|
||||
- dans le répertoire font s'il se trouve au même niveau que fpdf.php (comme c'est le cas dans cette archive)
|
||||
- dans un des répertoires accessibles par include()
|
||||
|
||||
Voici un exemple de définition de FPDF_FONTPATH (notez le slash final obligatoire) :
|
||||
|
||||
define('FPDF_FONTPATH','/home/www/font/');
|
||||
require('fpdf.php');
|
||||
|
||||
Si ces fichiers ne sont pas accessibles, la méthode SetFont() produira l'erreur suivante :
|
||||
|
||||
FPDF error: Could not include font metric file
|
||||
|
||||
|
||||
Remarques :
|
||||
|
||||
- Seuls les fichiers correspondant aux polices effectivement utilisées sont nécessaires
|
||||
- Les tutoriels fournis dans l'archive sont prêts à être exécutés
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
define('FPDF_FONTPATH','font/');
|
||||
require('i25.php');
|
||||
|
||||
$pdf=new PDF_i25();
|
||||
$pdf->AddPage();
|
||||
$pdf->i25(90,40,'12345678');
|
||||
$pdf->Output();
|
||||
?>
|
||||
<?php
|
||||
define('FPDF_FONTPATH','font/');
|
||||
require('i25.php');
|
||||
|
||||
$pdf=new PDF_i25();
|
||||
$pdf->AddPage();
|
||||
$pdf->i25(90,40,'12345678');
|
||||
$pdf->Output();
|
||||
?>
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>i25 barcodes</TITLE>
|
||||
<STYLE>
|
||||
BODY {font-family:"Times New Roman",serif}
|
||||
H2 {color:#4000A0}
|
||||
.st {font-weight:bold; color:#900000}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>i25 barcodes</H2>
|
||||
<H4 CLASS="st">Informations</H4>Author: Matthias Lau<BR>License: Freeware
|
||||
<H4 CLASS="st">Description</H4>This script implements Interleaved 2 of 5 barcodes. An Interleaved 2 of 5 barcode contains
|
||||
digits (0 to 9) and encodes the data in the width of both bars and spaces. It is used primarily
|
||||
in the distribution and warehouse industry.<BR>
|
||||
<BR>
|
||||
<TT>i25(<B>float</B> xpos, <B>float</B> ypos, <B>string</B> code [, <B>float</B> basewidth [, <B>float</B> height]])</TT><BR>
|
||||
<BR>
|
||||
<TT><U>xpos</U></TT>: abscissa of barcode<BR>
|
||||
<TT><U>ypos</U></TT>: ordinate of barcode<BR>
|
||||
<TT><U>code</U></TT>: value of barcode<BR>
|
||||
<TT><U>basewidth</U></TT>: corresponds to the width of a wide bar (defaults to 1)<BR>
|
||||
<TT><U>height</U></TT>: bar height (defaults to 10)<BR>
|
||||
<BR>
|
||||
Note: if the length of the code is not even, a 0 is preprended.
|
||||
</BODY>
|
||||
</HTML>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
||||
<TITLE>i25 barcodes</TITLE>
|
||||
<STYLE>
|
||||
BODY {font-family:"Times New Roman",serif}
|
||||
H2 {color:#4000A0}
|
||||
.st {font-weight:bold; color:#900000}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2>i25 barcodes</H2>
|
||||
<H4 CLASS="st">Informations</H4>Author: Matthias Lau<BR>License: Freeware
|
||||
<H4 CLASS="st">Description</H4>This script implements Interleaved 2 of 5 barcodes. An Interleaved 2 of 5 barcode contains
|
||||
digits (0 to 9) and encodes the data in the width of both bars and spaces. It is used primarily
|
||||
in the distribution and warehouse industry.<BR>
|
||||
<BR>
|
||||
<TT>i25(<B>float</B> xpos, <B>float</B> ypos, <B>string</B> code [, <B>float</B> basewidth [, <B>float</B> height]])</TT><BR>
|
||||
<BR>
|
||||
<TT><U>xpos</U></TT>: abscissa of barcode<BR>
|
||||
<TT><U>ypos</U></TT>: ordinate of barcode<BR>
|
||||
<TT><U>code</U></TT>: value of barcode<BR>
|
||||
<TT><U>basewidth</U></TT>: corresponds to the width of a wide bar (defaults to 1)<BR>
|
||||
<TT><U>height</U></TT>: bar height (defaults to 10)<BR>
|
||||
<BR>
|
||||
Note: if the length of the code is not even, a 0 is preprended.
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
@ -1,47 +1,47 @@
|
||||
|
||||
If you want to add your own emails selector/import module. This is steps to follow
|
||||
to add you own email predefined selector:
|
||||
|
||||
|
||||
***** STEP 1 *****
|
||||
|
||||
Copy file
|
||||
htdocs/includes/modules/mailings/example.modules.php
|
||||
into
|
||||
htdocs/includes/modules/mailings/myselector.modules.php
|
||||
|
||||
You can choose value of your choice instead of "myselector" in name
|
||||
of new file.
|
||||
|
||||
|
||||
***** STEP 2 *****
|
||||
|
||||
Edit this file myselector.modules.php and change following text:
|
||||
|
||||
"class mailing_example" into "class mailing_myselector"
|
||||
"var $name='example';" into var $name='myselector';
|
||||
"var $desc='...';" into var $desc='A text to describe selector';
|
||||
"function mailing_example" into "function mailing_myselector"
|
||||
|
||||
Then add code inside the "add_to_target" function. What you must do is simply
|
||||
fill the $target PHP array with one record for each email your selector must return.
|
||||
|
||||
You can choose the way you get data: From a file, a database. You are free,
|
||||
the only requirement is that the $target array is filled by records that are
|
||||
themselves array of: ('email', 'name', 'firstname').
|
||||
|
||||
This is for example how you can fill the $target array:
|
||||
|
||||
|
||||
If you want to add your own emails selector/import module. This is steps to follow
|
||||
to add you own email predefined selector:
|
||||
|
||||
|
||||
***** STEP 1 *****
|
||||
|
||||
Copy file
|
||||
htdocs/includes/modules/mailings/example.modules.php
|
||||
into
|
||||
htdocs/includes/modules/mailings/myselector.modules.php
|
||||
|
||||
You can choose value of your choice instead of "myselector" in name
|
||||
of new file.
|
||||
|
||||
|
||||
***** STEP 2 *****
|
||||
|
||||
Edit this file myselector.modules.php and change following text:
|
||||
|
||||
"class mailing_example" into "class mailing_myselector"
|
||||
"var $name='example';" into var $name='myselector';
|
||||
"var $desc='...';" into var $desc='A text to describe selector';
|
||||
"function mailing_example" into "function mailing_myselector"
|
||||
|
||||
Then add code inside the "add_to_target" function. What you must do is simply
|
||||
fill the $target PHP array with one record for each email your selector must return.
|
||||
|
||||
You can choose the way you get data: From a file, a database. You are free,
|
||||
the only requirement is that the $target array is filled by records that are
|
||||
themselves array of: ('email', 'name', 'firstname').
|
||||
|
||||
This is for example how you can fill the $target array:
|
||||
|
||||
// ----- Your code start here -----
|
||||
$target[0]=array('email'=>'email_0','name'=>'name_0','firstname'=>'firstname_0');
|
||||
...
|
||||
$target[n]=array('email'=>'email_n','name'=>'name_n','firstname'=>'firstname_n');
|
||||
// ----- Your code end here -----
|
||||
|
||||
|
||||
|
||||
***** STEP 3 *****
|
||||
|
||||
Once this file has been edited, you can go to the Dolibarr emailing feature,
|
||||
you will see a new line selector in the "targets" editor of emailing tool.
|
||||
|
||||
|
||||
|
||||
|
||||
***** STEP 3 *****
|
||||
|
||||
Once this file has been edited, you can go to the Dolibarr emailing feature,
|
||||
you will see a new line selector in the "targets" editor of emailing tool.
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
samples
|
||||
samples
|
||||
|
||||
@ -1,438 +1,438 @@
|
||||
2003-07-21, version 0.6.5
|
||||
- soap_transport_http: SOAPAction header is quoted again, fixes problem w/ Weblogic Server
|
||||
- applied Jason Levitt patch for proper array serialization, fixes problem w/ Amazon shopping cart services
|
||||
- fixed null value serialization
|
||||
- applied patch from "BZC ToOn'S" - fixes wsdl serialization when no parameters
|
||||
- applied John's patch, implementing compression for the server
|
||||
|
||||
2003-07-22, version 0.6.5
|
||||
- soap_server: fixed bug causing charset encoding not to be passed to the parser
|
||||
- soap_fault: added default encoding to the fault serialization
|
||||
- soap_parser: changed the parser to pre-load the parent's result array when processing scalar values. This increases parsing speed.
|
||||
|
||||
2003-07-23, version 0.6.5
|
||||
- soap_base: fix code that overwrites user-supplied attributes in serialize_val
|
||||
- soap_base: use arrays-of-arrays rather than attempting multi-dimensional in serialize_val
|
||||
- xmlschema: emit import statements and qualify all elements with prefix in serializeSchema (better interop with validation tools)
|
||||
- soapclient: get xml character encoding from HTTP Content-Type header if provided, e.g. text/xml;charset="UTF-8"
|
||||
- soapclient: use headers in call if provided (previously ignored this parameter)
|
||||
- soap_server: in parse_request, if neither getallheaders nor $_SERVER are available, use $HTTP_SERVER_VARS to get SOAPAction and xml encoding
|
||||
|
||||
2003-07-24, version 0.6.5
|
||||
- soap_transport_http: apply patch from Steven Brown "if the server closes connection prematurely, nusoap would spin trying to read data that isn't there"
|
||||
|
||||
2003-07-25, version 0.6.5
|
||||
- wsdl: apply patch from Sven to workaround single schema limitation
|
||||
- wsdl: apply a variant of the patch from Holger to handle empty values for array by serializing an array with 0 elements
|
||||
- xmlschema: remove the redundant default namespace attribute on the schema element; everything in xsd is explicitly specified as being from xsd
|
||||
- soap_transport_http: fix setCredentials and add TODO comments in sendHTTPS about what to change if this setCredentials stays
|
||||
|
||||
2003-07-30, version 0.6.5
|
||||
- nusoap_base: change documentation of soap_defencoding to specify it is the encoding for outgoing messages
|
||||
- nusoap_base: only change &, <, > to entities, not all HTML entities
|
||||
- soap_transport_http: update the Content-Type header in sendRequest, since soap_defencoding could be changed after ctor is called
|
||||
- soap_server: use soap_defencoding instead of charset_encoding
|
||||
- soap_server: read encoding from _SERVER if available
|
||||
- nusoap_base: do entity translation for string parameters with an xsd type specified (thanks David Derr)
|
||||
|
||||
2003-07-31, version 0.6.5
|
||||
- soap_transport_http: add proxy authentication
|
||||
- soap_transport_http: build payload the same way for http and https
|
||||
- wsdl: add proxy authentication
|
||||
- soapclient: add proxy authentication
|
||||
- soapclient: allow proxy information in ctor, so that it can be used for wsdl
|
||||
|
||||
2003-08-01, version 0.6.5
|
||||
- soap_transport_http: close a persistent connection that's at EOF
|
||||
- soap_transport_http: prevent conflicts between setEncoding and usePersistentConnection
|
||||
- soap_transport_http: fix use of $headers instead of $this->incoming_headers in getResponse
|
||||
- soapclient: improve handling of persistent connections
|
||||
- soapclient: force xml_encoding to upper case
|
||||
- soap_server: let the Web server decide whether to close the connection (no Connection: close header)
|
||||
- soap_server: force xml_encoding to upper case
|
||||
|
||||
2003-08-04, version 0.6.5
|
||||
- soap_parser: use XML type information to pick a PHP data type; also decode base64
|
||||
- soap_server: read all HTTP headers when using _SERVER or HTTP_SERVER_VARS
|
||||
- soap_server: add gzip encoding support for outgoing messages
|
||||
- soap_transport_http: deflate is gzcompress/gzuncompress (cf. http://archive.develooper.com/libwww@perl.org/msg04650.html)
|
||||
- soap_transport_http: clean use of persistentConnection so it's always a set boolean
|
||||
- soapclient: add responseData member to access deflated/gunzipped payload
|
||||
|
||||
2003-08-05, version 0.6.5
|
||||
- soap_server: look multiple places when setting debug_flag
|
||||
|
||||
2003-08-07, version 0.6.5
|
||||
- nusoap_base: serialize specified type (e.g. ArrayOfString) even for simple array
|
||||
- wsdl: only specify encodingStyle in the input/output soap bindings when it is not empty (thanks Guillaume)
|
||||
|
||||
2003-08-15, version 0.6.5
|
||||
- soap_parser: fix parsing of elements with no XSD type specified
|
||||
- soap_parser: use PHP string type for XSD long and unsignedLong types
|
||||
|
||||
2003-08-16, version 0.6.5
|
||||
- soap_parser: fix code generating warning (thanks Torsten)
|
||||
|
||||
2003-08-19, version 0.6.5
|
||||
- soap_parser: fix another line of code generating a warning (thanks Torsten)
|
||||
|
||||
2003-08-22, version 0.6.5
|
||||
- soap_server: remove all '--' from debug_str; previous code changed '---' to '- --'
|
||||
- wsdl, soapclient, soap_parser: patch submitted by Mark Spavin as described by
|
||||
the following...
|
||||
> Changes for the multiple/nested imports from the wsdl file. This builds an
|
||||
> array of files not just the last one and also checks for relative paths to
|
||||
> the parent. This will then get the imported files from the remote site
|
||||
> instead of your local disk. Local wsdl files should still work (untested).
|
||||
>
|
||||
> Changes for multiple encoding sytles as previously posted
|
||||
|
||||
2003-08-24, version 0.6.5
|
||||
- wsdl, soapclient: fix some PHP notices from previous update
|
||||
|
||||
2003-08-26, version 0.6.5
|
||||
- wsdl: support multiple SOAP ports
|
||||
- soapclient, soap_server: when no charset is specified, use UTF-8, even though HTTP specifies US-ASCII.
|
||||
- soap_transport_http: do not prepend $host with 'ssl://' for https (is this required for older cURL versions?)
|
||||
|
||||
2003-08-27, version 0.6.5
|
||||
- soap_server: support compressed request messages (thanks John Huong)
|
||||
- soap_parser: deserialize Apache Vector as an array
|
||||
- xmlschema: use $this->typemap in getPHPType (which is not used)
|
||||
- soapclient, wsdl: check for WSDL errors after serializing parameters
|
||||
- nusoap_base: add serialization of Apache Map (when not using WSDL)
|
||||
- wsdl: add serialization of Apache Map (when using WSDL)
|
||||
- wsdl: only change &, <, > to entities, not all HTML entities
|
||||
|
||||
2003-08-28, version 0.6.5
|
||||
- soap_transport_http: disable cURL verification of peer and server (formerly the cURL default)
|
||||
- soap_transport_http: mingle cURL code with straight http, so sendHTTP is no longer needed
|
||||
|
||||
2003-08-29, version 0.6.6
|
||||
- soap_transport_http: add setContentType
|
||||
- soapclient: call setContentType using new getHTTPContentType and getHTTPContentTypeCharset
|
||||
|
||||
2003-09-05, version 0.6.6
|
||||
- wsdl: add some more code to handle null/nil values (but there's still a way to go)
|
||||
|
||||
2003-10-21, version 0.6.6
|
||||
- soap_transport_http: only include port in Host header if it was specified in the URL
|
||||
- soap_transport_http: add some code to use OpenSSL for PHP ssl:// scheme, but comment out since it's not ready
|
||||
- soap_server: use $_SERVER['PHP_SELF'] if $GLOBALS['PHP_SELF'] is not set
|
||||
- wsdl: add WSDL request and response and transport debug to debug
|
||||
- wsdl: handle custom type extending xmlschema namespace (GLUE ... Thanks Matt)
|
||||
- soap_parser: add param to docs
|
||||
- soapclient: add getHTTPBody, getHTTPContentType, getHTTPContentTypeCharset (anticipating MIME subclass)
|
||||
|
||||
2003-10-28, version 0.6.6
|
||||
- nusoap_base: add expandEntities method
|
||||
- wsdl: use expandEntities
|
||||
- soap_fault: use expandEntities
|
||||
- soap_transport_http: Allow credentials to be included in URL, rather than requiring setCredentials
|
||||
- soap_transport_http: Merge HTTP headers that span multiple lines
|
||||
- soap_parser: Properly set errors in ctor
|
||||
- soapclient: Pass headers to parseResponse and parse them in that method
|
||||
|
||||
2003-10-30, version 0.6.6
|
||||
- xmlschema: Add some information for the related type to an element
|
||||
|
||||
2003-12-09, version 0.6.6
|
||||
- nusoap_base: Add some namespace methods previously in xmlschema
|
||||
- xmlschema: Improve parsing of complexType, element and simpleType
|
||||
- xmlschema: Improve serialization
|
||||
- xmlschema: Track imports
|
||||
- xmlschema: Track elementFormDefault and form attributes
|
||||
- wsdl: Support multiple <schema> (note that setting $server->wsdl->schemaTargetNamespace no longer does anything! Use configureWSDL instead.)
|
||||
- wsdl: Use form attribute of element to control namespace specification
|
||||
- wsdl: Support chained imports (A imports B which imports C)
|
||||
- wsdl: Include port in endpoint address when serializing
|
||||
- soap_server: Fix use of style (rpc|document) and use (encoded|literal)
|
||||
- soap_server: Support _SERVER[CONTENT_TYPE] in addition to _SERVER[HTTP_CONTENT_TYPE]
|
||||
- soap_server: Support wsdl with multiple <schema>
|
||||
- soap_client: Remove a var_dump
|
||||
- soap_client: Add style and use parameters to call method to support doc/lit without WSDL
|
||||
- soap_transport_http: Check that $this->fp exists when doing persistent connections
|
||||
|
||||
2003-12-17, version 0.6.6
|
||||
- soap_server: pass namespaces to xmlschema constructor
|
||||
- wsdl: post-process after all imports
|
||||
- wsdl: remove some debug, add some error handling
|
||||
- xmlschema: allow enclosing namespaces to be specified in constructor
|
||||
- xmlschema: improve handling of compositors and simple types
|
||||
|
||||
2004-01-08, version 0.6.6
|
||||
- soap_server: when requested WSDL is in a file, return to client using passthru (thanks Ingo Fischer)
|
||||
- soapclient: have proxy inherit more client state
|
||||
- soapclient: allow timeout and response timeout to be specified in the constructor
|
||||
- wsdl: allow timeout and response timeout to be specified in the constructor
|
||||
- soap_transport_http: allow response timeout to be specified in send and sendHTTPS
|
||||
|
||||
2004-01-28, version 0.6.6
|
||||
- wsdl: add namespace for array and scalar when form is qualified
|
||||
- wsdl: fix a bug in which data type of complexType elements were ignored in serialization
|
||||
- wsdl: enhance handling of URLs with file scheme
|
||||
- wsdl: add addSimpleType
|
||||
- xmlschema: add addSimpleType
|
||||
- xmlschema: always set phpType elements
|
||||
- soapclient: allow a wsdl instance to be specified in constructor
|
||||
- soap_server: allow a wsdl instance to be specified in constructor (not tested!)
|
||||
- soap_server: fix default SOAPAction created in register method
|
||||
- soap_transport_http: accept chunking with LF separators in addition to CRLF.
|
||||
- wsdlcache: added class
|
||||
- nusoapmime: fix comments
|
||||
|
||||
2004-02-23, version 0.6.6
|
||||
- soap_transport_http: don't try to unchunk cURL data, since cURL already does it
|
||||
- soap_transport_http: append CVS revision to version in User-Agent
|
||||
- wsdl: serialize boolean as true|false, not 1|0, to agree with XML Schema
|
||||
- soap_server: always exit() after returning WSDL
|
||||
- soap_server: use the WSDL URL scheme as the default endpoint URL scheme
|
||||
- soap_server: append CVS revision to version in X-SOAP-Server
|
||||
- nusoap_base: add (CVS) revision
|
||||
- wsdlcache: synchronize using a per-WSDL lock file (Thanks Ingo)
|
||||
- wsdlcache: add cache lifetime, after which cache contents are invalidated (Thanks Ingo)
|
||||
|
||||
2004-03-15, version 0.6.6
|
||||
- nusoap_base: add isArraySimpleOrStruct method
|
||||
- soap_server: improve WSDL URL scheme determination
|
||||
- soap_server: only deflate/gzip payloads > 1024 bytes
|
||||
- soap_server: fix parameter order in fault method (always used as faultcode, faultstring)
|
||||
- soap_server: refactor parse_request into multiple functions (for sanity)
|
||||
- soap_server: set the namespace on the Response element to the same as the request
|
||||
- soap_server: name the return value element 'return' by default
|
||||
- soap_server: added and documented data fields, so that service programmers can use them if desired
|
||||
- soap_parser: standardize parsing error message
|
||||
- soap_parser: fix document and responseHeaders so they are the correct XML text (as documented)
|
||||
- soap_transport_http: fix read from persistent connection
|
||||
- soapclient: clean up debugging for persistent connection
|
||||
- wsdl: enforce correct naming of messages parts when an associative array is used for parameters
|
||||
- wsdl: better serialization of null values
|
||||
- wsdl: standardize parsing error message
|
||||
- xmlschema: standardize parsing error message
|
||||
|
||||
2004-03-24, version 0.6.7
|
||||
- soap_transport_http: add digest authentication (based on code by Kevin A. Miller)
|
||||
- xmlschema: improve parsing of import elements
|
||||
- wsdl: do schema imports even if there are no wsdl imports
|
||||
|
||||
2004-04-12, version 0.6.7
|
||||
- wsdl: serialize multiple elements when maxOccurs="unbounded" and value is an array
|
||||
- wsdl: serialize soapval values (used to force an XML type, e.g. when WSDL uses an abstract type)
|
||||
- nusoapmime: do not require nusoap.php (it is now the programmer's responsibility)
|
||||
|
||||
2004-04-21, version 0.6.7
|
||||
- soap_parser: parse repeated element name into an array (de-serializes doc/lit array into a PHP array when there is more than 1 array element)
|
||||
- soap_server: do not wrap response in a response element for a document style service
|
||||
|
||||
2004-04-30, version 0.6.7
|
||||
- soap_transport_http: allow digest auth params to be separated by "," as well as ", "
|
||||
- soap_transport_http: re-initialize incoming headers for each response
|
||||
- soap_server: add methodreturnisliteralxml property to allow service function to return XML as a string
|
||||
- soapclient: improve rpc/literal support
|
||||
- soapclient: allow XML string as call params in addition to array
|
||||
- soapclient: support document style and literal encoding when not using WSDL
|
||||
|
||||
2004-05-05, version 0.6.7
|
||||
- wsdl: serialize PHP objects for WSDL XML Schema complexTypes, in addition to associative arrays
|
||||
- wsdl: fix WSDL generation when there is no encodingStyle
|
||||
- soap_transport_http: suppress fsockopen warnings
|
||||
- soap_transport_http: detect socket timeouts when reading (0 bytes returned)
|
||||
- soap_transport_http: read chunked content "in-line" so it works on a persistent connection
|
||||
- nusoap_base: serialize boolean as true|false, not 1|0, to agree with XML Schema
|
||||
- nusoap_base: serialize array of struct differently than array of array
|
||||
|
||||
2004-06-25, version 0.6.8
|
||||
- soap_server: prefer gzip to deflate, since IE does not like our deflate
|
||||
- soap_server: move webDescription to the wsdl class
|
||||
- soap_server: allow class and instance method calls for service (thanks Ingo Fischer and Roland Knall)
|
||||
- wsdl: get webDescription from the soap_server class
|
||||
- wsdl: allow compression from the server
|
||||
- wsdl: fix serialization of soapval without a type
|
||||
- wsdl: propagate debug value from query string to SOAP endpoint in programmatic WSDL generation
|
||||
- nusoap_base: add anyType, anySimpleType for 2001 XML Schema
|
||||
- nusoap_base: provide additional debug functions
|
||||
- soap_transport_http: ignore Content-Length when chunked encoding is used
|
||||
- soap_transport_http: remove ':' from username for Basic authentication (cf. RFC 2617)
|
||||
- soap_transport_http: urldecode username and password taken from URL
|
||||
- soap_transport_http: use raw inflate/deflate for IE/IIS compatibility, rather than having Zlib headers according to HTTP 1.1 spec
|
||||
- soap_transport_http: attempt to handle the case when both the service application and Web server compress the response
|
||||
- soapclient: when creating proxy methods, replace '.' in operation name with '__' in function name
|
||||
- soapclient: initialize requestHeaders in proxy
|
||||
- general: use new debug methods; never access debug_str directly
|
||||
|
||||
2004-09-30, version 0.6.8
|
||||
- soapclient: do not allow getProxy call when WSDL is not used
|
||||
- soapclient: use ISO-8859-1 as the charset if not specified in the Content-Type header
|
||||
- soapclient: when an empty string is specified for the call namespace, do not put the method element in a namespace
|
||||
- soapclient: let soap_transport_http check for SSL support
|
||||
- soapclient: have proxy inherit soap_defencoding from the client from which it is generated
|
||||
- soapclient: do not assume that 'ns1' is an unused namespace prefix; always generate namespace prefixes randomly
|
||||
- soap_parser: compare any encoding in the XML declaration to the charset from the HTTP Content-Type header (thanks Ingo Fischer)
|
||||
- soap_parser: improve parse repeated element name into an array (de-serializes doc/lit array into a PHP array when there is more than 1 array element)
|
||||
- soap_server: use ISO-8859-1 as the charset if not specified in the Content-Type header
|
||||
- soap_server: allow suppression of automatic UTF-8 decoding
|
||||
- soap_server: fix a bug when call_user_func_array() is used
|
||||
- soap_transport_http: correct digest authentication through a proxy
|
||||
- wsdl: serialize SOAP-ENC types similarly to XSD types
|
||||
- xmlschema: force unprefixed type into default namespace
|
||||
- xmlschema: fix serialization of definition of simple types
|
||||
|
||||
2004-10-01, version 0.6.8
|
||||
- soap_parser: handle default namespace attributes
|
||||
- soap_server: add default_utf8 field
|
||||
- soap_server: support literal encoding (with RPC style)
|
||||
- soap_transport_http: parse HTTP status and generate error for 300, 302-307, 400, 401-417, 501-505 (thanks for the idea Ghislain)
|
||||
- soap_transport_http: follow HTTP redirection (HTTP status 301 and Location header) (thanks for the idea Ghislain)
|
||||
- xmlschema: allow any attributes to be specified in an element of a complexType, e.g., abstract, default, form, minOccurs, maxOccurs, nillable (thanks Jirka Pech for the original patch)
|
||||
|
||||
2004-10-02, version 0.6.8
|
||||
- soapclient: read/write cookies (thanks Ingo)
|
||||
- soap_server: change faultcode on non-resendable faults to Client
|
||||
- soap_transport_http: read/write cookies (thanks Ingo)
|
||||
|
||||
2004-10-05, version 0.6.8
|
||||
- wsdl: add addElement method
|
||||
- wsdl: support the document style in the register method
|
||||
- xmlschema: parse unnamed simpleTypes, rather than ignoring them
|
||||
- xmlschema: include untyped elements when parsing a complexType
|
||||
- xmlschema: add addElement method
|
||||
|
||||
2004-10-14, version 0.6.8
|
||||
- soapclient: support client certificates
|
||||
- soap_parser: deserialize attributes, prefixing names with "!"
|
||||
- soap_server: notify the client with HTML when WSDL is requested but not supported by service
|
||||
- soap_transport_http: support client certificates
|
||||
- wsdl: support defaults for elements of a complexType
|
||||
- wsdl: serialize elements from complexType extension base
|
||||
- wsdl: serialize data (associative array elements) as attributes according to XML Schema
|
||||
- xmlschema: record extension base if present for a complexType
|
||||
|
||||
2004-12-15, version 0.6.8
|
||||
- nusoap_base: add 2000 XML Schema (rare, but used by Akamai)
|
||||
- soap_parser: avoid deserializing more common attributes that are not data
|
||||
- soap_parser: be lax when HTTP specifies ISO-8859-1 (the default) and XML specifies UTF-8 (the norm)
|
||||
- soap_server: account for the fact that get_class_methods returns methods in all lower case (thanks Steve Haldane)
|
||||
- soap_transport_http: parse digest info that includes '=' in the data (thanks Jinsuk Kim)
|
||||
- wsdl: feably handle some cases for literal serialization of form="unqualified" elements
|
||||
- wsdl: don't serialize the decimal portion of a PHP double when the XML type is long
|
||||
- wsdl: fix serialization of attributes for complexType that is an extension
|
||||
- wsdlcache: enhance diagnostics
|
||||
- xmlschema: handle untyped elements
|
||||
- xmlschema: handle WSDL for SOAP Array that uses the base attribute plus a sequence of element
|
||||
|
||||
2005-01-22, version 0.6.8
|
||||
- wsdl: allow an element in one schema to have a type from another schema
|
||||
|
||||
2005-01-24, version 0.6.8
|
||||
- xmlschema: correctly parse nested complexType definitions
|
||||
|
||||
2005-02-14, version 0.6.8
|
||||
- nusoap_base: fix a bug in which attributes were sometimes not serialized with a value
|
||||
- nusoap_base: improve serialization of null values (thanks Dominique Stender)
|
||||
- soap_parser: parse null values by handling the nil attribute (thanks Dominique Stender)
|
||||
- soap_server: set character encoding for a fault to be the same as for the server (thanks Mark Scott)
|
||||
- soap_server: correctly check for null value returned from method when WSDL is used (without WSDL, cannot distinguish whether NULL or void return is desired)
|
||||
- soapclient: for document style, call should always return an array rooted at the response part (all bets are off when there are multiple parts)
|
||||
- xmlschema: save enumeration values parsed from WSDL
|
||||
|
||||
2005-02-10, version 0.6.9
|
||||
- soapclient: only set SOAP headers when they are specified in call params (so setHeaders still works)
|
||||
|
||||
2005-04-04, version 0.6.9
|
||||
- soap_server: use get_class instead of is_a (thanks Thomas Noel)
|
||||
- soapclient: use get_class instead of is_a (thanks Thomas Noel)
|
||||
- soapclient: add setEndpoint method
|
||||
- soap_transport_http: fix client certificates (thanks Doug Anarino and Eryan Eriobowo)
|
||||
|
||||
2005-04-29, version 0.6.9
|
||||
- nusoap_base: add global variable and methods for setting debug level
|
||||
- nusoap_base: use xsd:anyType instead of xsd:ur-type to serialize arrays with multiple element types (thanks Ingo Fischer)
|
||||
- nusoap_base: expand entities in attributes (thanks Gaetano Giunta)
|
||||
- soapclient: call parent constructor
|
||||
- soapval: call parent constructor
|
||||
- soap_fault: call parent constructor
|
||||
- soap_parser: call parent constructor
|
||||
- soap_server: assume get_class_methods always returns lower case for PHP 4.x only
|
||||
- soap_server: call parent constructor
|
||||
- soap_transport_http: do nothing in setEncoding if gzdeflate is not present (thanks Franck Touanen for pointing this out)
|
||||
- soap_transport_http: fix check for server request for digest authentication (thanks Mark Spavin)
|
||||
- soap_transport_http: call parent constructor
|
||||
- wsdl: fix documentation page popup of one method after another (thanks Owen)
|
||||
- wsdl: call parent constructor
|
||||
- wsdl: expand entities in attributes (thanks Gaetano Giunta)
|
||||
- xmlschema: call parent constructor
|
||||
|
||||
2005-06-03, version 0.6.9
|
||||
- nusoap_base: serialize empty arrays as having elements xsd:anyType[0]
|
||||
- nusoap_base: add encodingStyle parameter to serializeEnvelope
|
||||
- nusoap_base: serialize xsi:type with nil values
|
||||
- nusoap_base: improve debug and comments
|
||||
- soap_parser: correctly parse an empty array to an empty array, not an empty string
|
||||
- soap_parser: improve debug and comments
|
||||
- soap_server: specify encodingStyle for envelope when WSDL is used
|
||||
- soapclient: factor out new getProxyClassCode method
|
||||
- soapclient: specify encodingStyle for envelope
|
||||
- soapclient: improve debug and comments
|
||||
- wsdl: add namespace for Apache SOAP types if a variable of such type is serialized
|
||||
- wsdl: serialize nil value for nillable elements when no value is provided
|
||||
- wsdl: serialize xsi:type with nil values
|
||||
- wsdl: copy attributes as well as elements to an element from its complexType
|
||||
- wsdl: specify encodingStyle for operations
|
||||
- wsdl: improve debug and comments
|
||||
- xmlschema: improve debug and comments
|
||||
|
||||
2005-06-03, version 0.7.0
|
||||
- nusoap_base: improve debug and comments
|
||||
- nusoap_base: fix version, which should have been 0.7.0 since 2005-03-04
|
||||
|
||||
2005-06-06, version 0.7.1
|
||||
- nusoap_base: adjust numeric element names for serialization, instead of forcing them to 'soapVal'
|
||||
- nusoapmime: add type=text/xml to multipart/related (thanks Emmanuel Cordonnier)
|
||||
- soap_fault: fix serialization of detail
|
||||
- soap_server: check required parameters for register method
|
||||
- soap_server: when getallheaders is used, massage header names
|
||||
- soap_server: use SOAPAction to determine operation when doc/lit service does not wrap parameters in an element with the method name (thanks Peter Hrastnik)
|
||||
- soap_transport_http: correctly handle multiple HTTP/1.1 100 responses for https (thanks Jan Slabon)
|
||||
- wsdl: fixed documentation for addComplexType (thanks Csintalan Ádám)
|
||||
- wsdl: serialize array data when maxOccurs = 'unbounded' OR maxOccurs > 1 (thanks Dominique Schreckling)
|
||||
- wsdl: when serializing a string == 'false' as a boolean, set the value to false
|
||||
- wsdl: when serializing a complexType, require the PHP value supplied to be an array
|
||||
|
||||
2005-07-01, version 0.7.1
|
||||
- nusoap_base: Allow SOAP headers to be supplied as an array like parameters
|
||||
- soap_parser: de-serialize simpleContent that accompanies complexContent
|
||||
- soap_server: append debug information when programmatically-defined WSDL is returned
|
||||
- soap_transport_http: Add debug when an outgoing header is set
|
||||
- soapclient: Allow SOAP headers to be supplied as an array like parameters
|
||||
- xmlschema: serialize attributes more generally, rather than assuming they are for SOAP 1.1 Array
|
||||
- wsdl: when serializing, look up types by namespace, not prefix (simple programmatic doc/lit WSDL now seems to work)
|
||||
- wsdl: process namespace declarations first when parsing an element
|
||||
|
||||
2005-07-27, version 0.7.1
|
||||
- nusoap_base: do not override supplied element name with class name when serializing an object in serialize_val
|
||||
- nusoap_base: remove http://soapinterop.org/xsd (si) from namespaces array
|
||||
- nusoapmime: add nusoapservermime class to implement MIME attachments on the server
|
||||
- soap_fault: improve documentation
|
||||
- soap_server: improve documentation
|
||||
- soap_server: make consistent use of _SERVER and HTTP_SERVER_VARS
|
||||
- soap_server: make all incoming HTTP header keys lower case
|
||||
- soap_server: add hook functions to support subclassing for MIME attachments
|
||||
- soap_transport_http: remove an unnecessary global statement
|
||||
- soapclient: when creating a proxy, make $params within each function an associative array
|
||||
- soapval: improve documentation
|
||||
- wsdl: when serializing complexType elements, used typed serialization if there is either a type or a reference for the element
|
||||
- wsdl: allow PHP objects to be serialized as SOAP structs in serializeType
|
||||
- wsdl: for WSDL and XML Schema imports, don't forget to use the TCP port number (thanks Luca GIOPPO)
|
||||
- wsdl: make consistent use of _SERVER and HTTP_SERVER_VARS
|
||||
- xmlschema: improve documentation
|
||||
|
||||
2005-07-31, version 0.7.2
|
||||
- nusoap_base: correctly serialize attributes in serialize_val (thanks Hidran Arias)
|
||||
- soap_parser: when resolving references, do not assume that buildVal returns an array (thanks Akshell)
|
||||
- soap_parser: removed decode_entities, which does not work (thanks Martin Sarsale)
|
||||
- soap_server: fix a bug parsing headers from _SERVER and HTTP_SERVER_VARS (thanks Bert Catsburg)
|
||||
- soap_server: parse all "headers" from HTTP_SERVER_VARS (not just HTTP_*)
|
||||
- soap_server: use PHP_SELF instead of SCRIPT_NAME for WSDL endpoint
|
||||
- soap_server: when generating a fault while debug_flag is true, put debug into faultdetail
|
||||
- wsdl: add enumeration parameter to addSimpleType
|
||||
- xmlschema: add enumeration parameter to addSimpleType
|
||||
2003-07-21, version 0.6.5
|
||||
- soap_transport_http: SOAPAction header is quoted again, fixes problem w/ Weblogic Server
|
||||
- applied Jason Levitt patch for proper array serialization, fixes problem w/ Amazon shopping cart services
|
||||
- fixed null value serialization
|
||||
- applied patch from "BZC ToOn'S" - fixes wsdl serialization when no parameters
|
||||
- applied John's patch, implementing compression for the server
|
||||
|
||||
2003-07-22, version 0.6.5
|
||||
- soap_server: fixed bug causing charset encoding not to be passed to the parser
|
||||
- soap_fault: added default encoding to the fault serialization
|
||||
- soap_parser: changed the parser to pre-load the parent's result array when processing scalar values. This increases parsing speed.
|
||||
|
||||
2003-07-23, version 0.6.5
|
||||
- soap_base: fix code that overwrites user-supplied attributes in serialize_val
|
||||
- soap_base: use arrays-of-arrays rather than attempting multi-dimensional in serialize_val
|
||||
- xmlschema: emit import statements and qualify all elements with prefix in serializeSchema (better interop with validation tools)
|
||||
- soapclient: get xml character encoding from HTTP Content-Type header if provided, e.g. text/xml;charset="UTF-8"
|
||||
- soapclient: use headers in call if provided (previously ignored this parameter)
|
||||
- soap_server: in parse_request, if neither getallheaders nor $_SERVER are available, use $HTTP_SERVER_VARS to get SOAPAction and xml encoding
|
||||
|
||||
2003-07-24, version 0.6.5
|
||||
- soap_transport_http: apply patch from Steven Brown "if the server closes connection prematurely, nusoap would spin trying to read data that isn't there"
|
||||
|
||||
2003-07-25, version 0.6.5
|
||||
- wsdl: apply patch from Sven to workaround single schema limitation
|
||||
- wsdl: apply a variant of the patch from Holger to handle empty values for array by serializing an array with 0 elements
|
||||
- xmlschema: remove the redundant default namespace attribute on the schema element; everything in xsd is explicitly specified as being from xsd
|
||||
- soap_transport_http: fix setCredentials and add TODO comments in sendHTTPS about what to change if this setCredentials stays
|
||||
|
||||
2003-07-30, version 0.6.5
|
||||
- nusoap_base: change documentation of soap_defencoding to specify it is the encoding for outgoing messages
|
||||
- nusoap_base: only change &, <, > to entities, not all HTML entities
|
||||
- soap_transport_http: update the Content-Type header in sendRequest, since soap_defencoding could be changed after ctor is called
|
||||
- soap_server: use soap_defencoding instead of charset_encoding
|
||||
- soap_server: read encoding from _SERVER if available
|
||||
- nusoap_base: do entity translation for string parameters with an xsd type specified (thanks David Derr)
|
||||
|
||||
2003-07-31, version 0.6.5
|
||||
- soap_transport_http: add proxy authentication
|
||||
- soap_transport_http: build payload the same way for http and https
|
||||
- wsdl: add proxy authentication
|
||||
- soapclient: add proxy authentication
|
||||
- soapclient: allow proxy information in ctor, so that it can be used for wsdl
|
||||
|
||||
2003-08-01, version 0.6.5
|
||||
- soap_transport_http: close a persistent connection that's at EOF
|
||||
- soap_transport_http: prevent conflicts between setEncoding and usePersistentConnection
|
||||
- soap_transport_http: fix use of $headers instead of $this->incoming_headers in getResponse
|
||||
- soapclient: improve handling of persistent connections
|
||||
- soapclient: force xml_encoding to upper case
|
||||
- soap_server: let the Web server decide whether to close the connection (no Connection: close header)
|
||||
- soap_server: force xml_encoding to upper case
|
||||
|
||||
2003-08-04, version 0.6.5
|
||||
- soap_parser: use XML type information to pick a PHP data type; also decode base64
|
||||
- soap_server: read all HTTP headers when using _SERVER or HTTP_SERVER_VARS
|
||||
- soap_server: add gzip encoding support for outgoing messages
|
||||
- soap_transport_http: deflate is gzcompress/gzuncompress (cf. http://archive.develooper.com/libwww@perl.org/msg04650.html)
|
||||
- soap_transport_http: clean use of persistentConnection so it's always a set boolean
|
||||
- soapclient: add responseData member to access deflated/gunzipped payload
|
||||
|
||||
2003-08-05, version 0.6.5
|
||||
- soap_server: look multiple places when setting debug_flag
|
||||
|
||||
2003-08-07, version 0.6.5
|
||||
- nusoap_base: serialize specified type (e.g. ArrayOfString) even for simple array
|
||||
- wsdl: only specify encodingStyle in the input/output soap bindings when it is not empty (thanks Guillaume)
|
||||
|
||||
2003-08-15, version 0.6.5
|
||||
- soap_parser: fix parsing of elements with no XSD type specified
|
||||
- soap_parser: use PHP string type for XSD long and unsignedLong types
|
||||
|
||||
2003-08-16, version 0.6.5
|
||||
- soap_parser: fix code generating warning (thanks Torsten)
|
||||
|
||||
2003-08-19, version 0.6.5
|
||||
- soap_parser: fix another line of code generating a warning (thanks Torsten)
|
||||
|
||||
2003-08-22, version 0.6.5
|
||||
- soap_server: remove all '--' from debug_str; previous code changed '---' to '- --'
|
||||
- wsdl, soapclient, soap_parser: patch submitted by Mark Spavin as described by
|
||||
the following...
|
||||
> Changes for the multiple/nested imports from the wsdl file. This builds an
|
||||
> array of files not just the last one and also checks for relative paths to
|
||||
> the parent. This will then get the imported files from the remote site
|
||||
> instead of your local disk. Local wsdl files should still work (untested).
|
||||
>
|
||||
> Changes for multiple encoding sytles as previously posted
|
||||
|
||||
2003-08-24, version 0.6.5
|
||||
- wsdl, soapclient: fix some PHP notices from previous update
|
||||
|
||||
2003-08-26, version 0.6.5
|
||||
- wsdl: support multiple SOAP ports
|
||||
- soapclient, soap_server: when no charset is specified, use UTF-8, even though HTTP specifies US-ASCII.
|
||||
- soap_transport_http: do not prepend $host with 'ssl://' for https (is this required for older cURL versions?)
|
||||
|
||||
2003-08-27, version 0.6.5
|
||||
- soap_server: support compressed request messages (thanks John Huong)
|
||||
- soap_parser: deserialize Apache Vector as an array
|
||||
- xmlschema: use $this->typemap in getPHPType (which is not used)
|
||||
- soapclient, wsdl: check for WSDL errors after serializing parameters
|
||||
- nusoap_base: add serialization of Apache Map (when not using WSDL)
|
||||
- wsdl: add serialization of Apache Map (when using WSDL)
|
||||
- wsdl: only change &, <, > to entities, not all HTML entities
|
||||
|
||||
2003-08-28, version 0.6.5
|
||||
- soap_transport_http: disable cURL verification of peer and server (formerly the cURL default)
|
||||
- soap_transport_http: mingle cURL code with straight http, so sendHTTP is no longer needed
|
||||
|
||||
2003-08-29, version 0.6.6
|
||||
- soap_transport_http: add setContentType
|
||||
- soapclient: call setContentType using new getHTTPContentType and getHTTPContentTypeCharset
|
||||
|
||||
2003-09-05, version 0.6.6
|
||||
- wsdl: add some more code to handle null/nil values (but there's still a way to go)
|
||||
|
||||
2003-10-21, version 0.6.6
|
||||
- soap_transport_http: only include port in Host header if it was specified in the URL
|
||||
- soap_transport_http: add some code to use OpenSSL for PHP ssl:// scheme, but comment out since it's not ready
|
||||
- soap_server: use $_SERVER['PHP_SELF'] if $GLOBALS['PHP_SELF'] is not set
|
||||
- wsdl: add WSDL request and response and transport debug to debug
|
||||
- wsdl: handle custom type extending xmlschema namespace (GLUE ... Thanks Matt)
|
||||
- soap_parser: add param to docs
|
||||
- soapclient: add getHTTPBody, getHTTPContentType, getHTTPContentTypeCharset (anticipating MIME subclass)
|
||||
|
||||
2003-10-28, version 0.6.6
|
||||
- nusoap_base: add expandEntities method
|
||||
- wsdl: use expandEntities
|
||||
- soap_fault: use expandEntities
|
||||
- soap_transport_http: Allow credentials to be included in URL, rather than requiring setCredentials
|
||||
- soap_transport_http: Merge HTTP headers that span multiple lines
|
||||
- soap_parser: Properly set errors in ctor
|
||||
- soapclient: Pass headers to parseResponse and parse them in that method
|
||||
|
||||
2003-10-30, version 0.6.6
|
||||
- xmlschema: Add some information for the related type to an element
|
||||
|
||||
2003-12-09, version 0.6.6
|
||||
- nusoap_base: Add some namespace methods previously in xmlschema
|
||||
- xmlschema: Improve parsing of complexType, element and simpleType
|
||||
- xmlschema: Improve serialization
|
||||
- xmlschema: Track imports
|
||||
- xmlschema: Track elementFormDefault and form attributes
|
||||
- wsdl: Support multiple <schema> (note that setting $server->wsdl->schemaTargetNamespace no longer does anything! Use configureWSDL instead.)
|
||||
- wsdl: Use form attribute of element to control namespace specification
|
||||
- wsdl: Support chained imports (A imports B which imports C)
|
||||
- wsdl: Include port in endpoint address when serializing
|
||||
- soap_server: Fix use of style (rpc|document) and use (encoded|literal)
|
||||
- soap_server: Support _SERVER[CONTENT_TYPE] in addition to _SERVER[HTTP_CONTENT_TYPE]
|
||||
- soap_server: Support wsdl with multiple <schema>
|
||||
- soap_client: Remove a var_dump
|
||||
- soap_client: Add style and use parameters to call method to support doc/lit without WSDL
|
||||
- soap_transport_http: Check that $this->fp exists when doing persistent connections
|
||||
|
||||
2003-12-17, version 0.6.6
|
||||
- soap_server: pass namespaces to xmlschema constructor
|
||||
- wsdl: post-process after all imports
|
||||
- wsdl: remove some debug, add some error handling
|
||||
- xmlschema: allow enclosing namespaces to be specified in constructor
|
||||
- xmlschema: improve handling of compositors and simple types
|
||||
|
||||
2004-01-08, version 0.6.6
|
||||
- soap_server: when requested WSDL is in a file, return to client using passthru (thanks Ingo Fischer)
|
||||
- soapclient: have proxy inherit more client state
|
||||
- soapclient: allow timeout and response timeout to be specified in the constructor
|
||||
- wsdl: allow timeout and response timeout to be specified in the constructor
|
||||
- soap_transport_http: allow response timeout to be specified in send and sendHTTPS
|
||||
|
||||
2004-01-28, version 0.6.6
|
||||
- wsdl: add namespace for array and scalar when form is qualified
|
||||
- wsdl: fix a bug in which data type of complexType elements were ignored in serialization
|
||||
- wsdl: enhance handling of URLs with file scheme
|
||||
- wsdl: add addSimpleType
|
||||
- xmlschema: add addSimpleType
|
||||
- xmlschema: always set phpType elements
|
||||
- soapclient: allow a wsdl instance to be specified in constructor
|
||||
- soap_server: allow a wsdl instance to be specified in constructor (not tested!)
|
||||
- soap_server: fix default SOAPAction created in register method
|
||||
- soap_transport_http: accept chunking with LF separators in addition to CRLF.
|
||||
- wsdlcache: added class
|
||||
- nusoapmime: fix comments
|
||||
|
||||
2004-02-23, version 0.6.6
|
||||
- soap_transport_http: don't try to unchunk cURL data, since cURL already does it
|
||||
- soap_transport_http: append CVS revision to version in User-Agent
|
||||
- wsdl: serialize boolean as true|false, not 1|0, to agree with XML Schema
|
||||
- soap_server: always exit() after returning WSDL
|
||||
- soap_server: use the WSDL URL scheme as the default endpoint URL scheme
|
||||
- soap_server: append CVS revision to version in X-SOAP-Server
|
||||
- nusoap_base: add (CVS) revision
|
||||
- wsdlcache: synchronize using a per-WSDL lock file (Thanks Ingo)
|
||||
- wsdlcache: add cache lifetime, after which cache contents are invalidated (Thanks Ingo)
|
||||
|
||||
2004-03-15, version 0.6.6
|
||||
- nusoap_base: add isArraySimpleOrStruct method
|
||||
- soap_server: improve WSDL URL scheme determination
|
||||
- soap_server: only deflate/gzip payloads > 1024 bytes
|
||||
- soap_server: fix parameter order in fault method (always used as faultcode, faultstring)
|
||||
- soap_server: refactor parse_request into multiple functions (for sanity)
|
||||
- soap_server: set the namespace on the Response element to the same as the request
|
||||
- soap_server: name the return value element 'return' by default
|
||||
- soap_server: added and documented data fields, so that service programmers can use them if desired
|
||||
- soap_parser: standardize parsing error message
|
||||
- soap_parser: fix document and responseHeaders so they are the correct XML text (as documented)
|
||||
- soap_transport_http: fix read from persistent connection
|
||||
- soapclient: clean up debugging for persistent connection
|
||||
- wsdl: enforce correct naming of messages parts when an associative array is used for parameters
|
||||
- wsdl: better serialization of null values
|
||||
- wsdl: standardize parsing error message
|
||||
- xmlschema: standardize parsing error message
|
||||
|
||||
2004-03-24, version 0.6.7
|
||||
- soap_transport_http: add digest authentication (based on code by Kevin A. Miller)
|
||||
- xmlschema: improve parsing of import elements
|
||||
- wsdl: do schema imports even if there are no wsdl imports
|
||||
|
||||
2004-04-12, version 0.6.7
|
||||
- wsdl: serialize multiple elements when maxOccurs="unbounded" and value is an array
|
||||
- wsdl: serialize soapval values (used to force an XML type, e.g. when WSDL uses an abstract type)
|
||||
- nusoapmime: do not require nusoap.php (it is now the programmer's responsibility)
|
||||
|
||||
2004-04-21, version 0.6.7
|
||||
- soap_parser: parse repeated element name into an array (de-serializes doc/lit array into a PHP array when there is more than 1 array element)
|
||||
- soap_server: do not wrap response in a response element for a document style service
|
||||
|
||||
2004-04-30, version 0.6.7
|
||||
- soap_transport_http: allow digest auth params to be separated by "," as well as ", "
|
||||
- soap_transport_http: re-initialize incoming headers for each response
|
||||
- soap_server: add methodreturnisliteralxml property to allow service function to return XML as a string
|
||||
- soapclient: improve rpc/literal support
|
||||
- soapclient: allow XML string as call params in addition to array
|
||||
- soapclient: support document style and literal encoding when not using WSDL
|
||||
|
||||
2004-05-05, version 0.6.7
|
||||
- wsdl: serialize PHP objects for WSDL XML Schema complexTypes, in addition to associative arrays
|
||||
- wsdl: fix WSDL generation when there is no encodingStyle
|
||||
- soap_transport_http: suppress fsockopen warnings
|
||||
- soap_transport_http: detect socket timeouts when reading (0 bytes returned)
|
||||
- soap_transport_http: read chunked content "in-line" so it works on a persistent connection
|
||||
- nusoap_base: serialize boolean as true|false, not 1|0, to agree with XML Schema
|
||||
- nusoap_base: serialize array of struct differently than array of array
|
||||
|
||||
2004-06-25, version 0.6.8
|
||||
- soap_server: prefer gzip to deflate, since IE does not like our deflate
|
||||
- soap_server: move webDescription to the wsdl class
|
||||
- soap_server: allow class and instance method calls for service (thanks Ingo Fischer and Roland Knall)
|
||||
- wsdl: get webDescription from the soap_server class
|
||||
- wsdl: allow compression from the server
|
||||
- wsdl: fix serialization of soapval without a type
|
||||
- wsdl: propagate debug value from query string to SOAP endpoint in programmatic WSDL generation
|
||||
- nusoap_base: add anyType, anySimpleType for 2001 XML Schema
|
||||
- nusoap_base: provide additional debug functions
|
||||
- soap_transport_http: ignore Content-Length when chunked encoding is used
|
||||
- soap_transport_http: remove ':' from username for Basic authentication (cf. RFC 2617)
|
||||
- soap_transport_http: urldecode username and password taken from URL
|
||||
- soap_transport_http: use raw inflate/deflate for IE/IIS compatibility, rather than having Zlib headers according to HTTP 1.1 spec
|
||||
- soap_transport_http: attempt to handle the case when both the service application and Web server compress the response
|
||||
- soapclient: when creating proxy methods, replace '.' in operation name with '__' in function name
|
||||
- soapclient: initialize requestHeaders in proxy
|
||||
- general: use new debug methods; never access debug_str directly
|
||||
|
||||
2004-09-30, version 0.6.8
|
||||
- soapclient: do not allow getProxy call when WSDL is not used
|
||||
- soapclient: use ISO-8859-1 as the charset if not specified in the Content-Type header
|
||||
- soapclient: when an empty string is specified for the call namespace, do not put the method element in a namespace
|
||||
- soapclient: let soap_transport_http check for SSL support
|
||||
- soapclient: have proxy inherit soap_defencoding from the client from which it is generated
|
||||
- soapclient: do not assume that 'ns1' is an unused namespace prefix; always generate namespace prefixes randomly
|
||||
- soap_parser: compare any encoding in the XML declaration to the charset from the HTTP Content-Type header (thanks Ingo Fischer)
|
||||
- soap_parser: improve parse repeated element name into an array (de-serializes doc/lit array into a PHP array when there is more than 1 array element)
|
||||
- soap_server: use ISO-8859-1 as the charset if not specified in the Content-Type header
|
||||
- soap_server: allow suppression of automatic UTF-8 decoding
|
||||
- soap_server: fix a bug when call_user_func_array() is used
|
||||
- soap_transport_http: correct digest authentication through a proxy
|
||||
- wsdl: serialize SOAP-ENC types similarly to XSD types
|
||||
- xmlschema: force unprefixed type into default namespace
|
||||
- xmlschema: fix serialization of definition of simple types
|
||||
|
||||
2004-10-01, version 0.6.8
|
||||
- soap_parser: handle default namespace attributes
|
||||
- soap_server: add default_utf8 field
|
||||
- soap_server: support literal encoding (with RPC style)
|
||||
- soap_transport_http: parse HTTP status and generate error for 300, 302-307, 400, 401-417, 501-505 (thanks for the idea Ghislain)
|
||||
- soap_transport_http: follow HTTP redirection (HTTP status 301 and Location header) (thanks for the idea Ghislain)
|
||||
- xmlschema: allow any attributes to be specified in an element of a complexType, e.g., abstract, default, form, minOccurs, maxOccurs, nillable (thanks Jirka Pech for the original patch)
|
||||
|
||||
2004-10-02, version 0.6.8
|
||||
- soapclient: read/write cookies (thanks Ingo)
|
||||
- soap_server: change faultcode on non-resendable faults to Client
|
||||
- soap_transport_http: read/write cookies (thanks Ingo)
|
||||
|
||||
2004-10-05, version 0.6.8
|
||||
- wsdl: add addElement method
|
||||
- wsdl: support the document style in the register method
|
||||
- xmlschema: parse unnamed simpleTypes, rather than ignoring them
|
||||
- xmlschema: include untyped elements when parsing a complexType
|
||||
- xmlschema: add addElement method
|
||||
|
||||
2004-10-14, version 0.6.8
|
||||
- soapclient: support client certificates
|
||||
- soap_parser: deserialize attributes, prefixing names with "!"
|
||||
- soap_server: notify the client with HTML when WSDL is requested but not supported by service
|
||||
- soap_transport_http: support client certificates
|
||||
- wsdl: support defaults for elements of a complexType
|
||||
- wsdl: serialize elements from complexType extension base
|
||||
- wsdl: serialize data (associative array elements) as attributes according to XML Schema
|
||||
- xmlschema: record extension base if present for a complexType
|
||||
|
||||
2004-12-15, version 0.6.8
|
||||
- nusoap_base: add 2000 XML Schema (rare, but used by Akamai)
|
||||
- soap_parser: avoid deserializing more common attributes that are not data
|
||||
- soap_parser: be lax when HTTP specifies ISO-8859-1 (the default) and XML specifies UTF-8 (the norm)
|
||||
- soap_server: account for the fact that get_class_methods returns methods in all lower case (thanks Steve Haldane)
|
||||
- soap_transport_http: parse digest info that includes '=' in the data (thanks Jinsuk Kim)
|
||||
- wsdl: feably handle some cases for literal serialization of form="unqualified" elements
|
||||
- wsdl: don't serialize the decimal portion of a PHP double when the XML type is long
|
||||
- wsdl: fix serialization of attributes for complexType that is an extension
|
||||
- wsdlcache: enhance diagnostics
|
||||
- xmlschema: handle untyped elements
|
||||
- xmlschema: handle WSDL for SOAP Array that uses the base attribute plus a sequence of element
|
||||
|
||||
2005-01-22, version 0.6.8
|
||||
- wsdl: allow an element in one schema to have a type from another schema
|
||||
|
||||
2005-01-24, version 0.6.8
|
||||
- xmlschema: correctly parse nested complexType definitions
|
||||
|
||||
2005-02-14, version 0.6.8
|
||||
- nusoap_base: fix a bug in which attributes were sometimes not serialized with a value
|
||||
- nusoap_base: improve serialization of null values (thanks Dominique Stender)
|
||||
- soap_parser: parse null values by handling the nil attribute (thanks Dominique Stender)
|
||||
- soap_server: set character encoding for a fault to be the same as for the server (thanks Mark Scott)
|
||||
- soap_server: correctly check for null value returned from method when WSDL is used (without WSDL, cannot distinguish whether NULL or void return is desired)
|
||||
- soapclient: for document style, call should always return an array rooted at the response part (all bets are off when there are multiple parts)
|
||||
- xmlschema: save enumeration values parsed from WSDL
|
||||
|
||||
2005-02-10, version 0.6.9
|
||||
- soapclient: only set SOAP headers when they are specified in call params (so setHeaders still works)
|
||||
|
||||
2005-04-04, version 0.6.9
|
||||
- soap_server: use get_class instead of is_a (thanks Thomas Noel)
|
||||
- soapclient: use get_class instead of is_a (thanks Thomas Noel)
|
||||
- soapclient: add setEndpoint method
|
||||
- soap_transport_http: fix client certificates (thanks Doug Anarino and Eryan Eriobowo)
|
||||
|
||||
2005-04-29, version 0.6.9
|
||||
- nusoap_base: add global variable and methods for setting debug level
|
||||
- nusoap_base: use xsd:anyType instead of xsd:ur-type to serialize arrays with multiple element types (thanks Ingo Fischer)
|
||||
- nusoap_base: expand entities in attributes (thanks Gaetano Giunta)
|
||||
- soapclient: call parent constructor
|
||||
- soapval: call parent constructor
|
||||
- soap_fault: call parent constructor
|
||||
- soap_parser: call parent constructor
|
||||
- soap_server: assume get_class_methods always returns lower case for PHP 4.x only
|
||||
- soap_server: call parent constructor
|
||||
- soap_transport_http: do nothing in setEncoding if gzdeflate is not present (thanks Franck Touanen for pointing this out)
|
||||
- soap_transport_http: fix check for server request for digest authentication (thanks Mark Spavin)
|
||||
- soap_transport_http: call parent constructor
|
||||
- wsdl: fix documentation page popup of one method after another (thanks Owen)
|
||||
- wsdl: call parent constructor
|
||||
- wsdl: expand entities in attributes (thanks Gaetano Giunta)
|
||||
- xmlschema: call parent constructor
|
||||
|
||||
2005-06-03, version 0.6.9
|
||||
- nusoap_base: serialize empty arrays as having elements xsd:anyType[0]
|
||||
- nusoap_base: add encodingStyle parameter to serializeEnvelope
|
||||
- nusoap_base: serialize xsi:type with nil values
|
||||
- nusoap_base: improve debug and comments
|
||||
- soap_parser: correctly parse an empty array to an empty array, not an empty string
|
||||
- soap_parser: improve debug and comments
|
||||
- soap_server: specify encodingStyle for envelope when WSDL is used
|
||||
- soapclient: factor out new getProxyClassCode method
|
||||
- soapclient: specify encodingStyle for envelope
|
||||
- soapclient: improve debug and comments
|
||||
- wsdl: add namespace for Apache SOAP types if a variable of such type is serialized
|
||||
- wsdl: serialize nil value for nillable elements when no value is provided
|
||||
- wsdl: serialize xsi:type with nil values
|
||||
- wsdl: copy attributes as well as elements to an element from its complexType
|
||||
- wsdl: specify encodingStyle for operations
|
||||
- wsdl: improve debug and comments
|
||||
- xmlschema: improve debug and comments
|
||||
|
||||
2005-06-03, version 0.7.0
|
||||
- nusoap_base: improve debug and comments
|
||||
- nusoap_base: fix version, which should have been 0.7.0 since 2005-03-04
|
||||
|
||||
2005-06-06, version 0.7.1
|
||||
- nusoap_base: adjust numeric element names for serialization, instead of forcing them to 'soapVal'
|
||||
- nusoapmime: add type=text/xml to multipart/related (thanks Emmanuel Cordonnier)
|
||||
- soap_fault: fix serialization of detail
|
||||
- soap_server: check required parameters for register method
|
||||
- soap_server: when getallheaders is used, massage header names
|
||||
- soap_server: use SOAPAction to determine operation when doc/lit service does not wrap parameters in an element with the method name (thanks Peter Hrastnik)
|
||||
- soap_transport_http: correctly handle multiple HTTP/1.1 100 responses for https (thanks Jan Slabon)
|
||||
- wsdl: fixed documentation for addComplexType (thanks Csintalan Ádám)
|
||||
- wsdl: serialize array data when maxOccurs = 'unbounded' OR maxOccurs > 1 (thanks Dominique Schreckling)
|
||||
- wsdl: when serializing a string == 'false' as a boolean, set the value to false
|
||||
- wsdl: when serializing a complexType, require the PHP value supplied to be an array
|
||||
|
||||
2005-07-01, version 0.7.1
|
||||
- nusoap_base: Allow SOAP headers to be supplied as an array like parameters
|
||||
- soap_parser: de-serialize simpleContent that accompanies complexContent
|
||||
- soap_server: append debug information when programmatically-defined WSDL is returned
|
||||
- soap_transport_http: Add debug when an outgoing header is set
|
||||
- soapclient: Allow SOAP headers to be supplied as an array like parameters
|
||||
- xmlschema: serialize attributes more generally, rather than assuming they are for SOAP 1.1 Array
|
||||
- wsdl: when serializing, look up types by namespace, not prefix (simple programmatic doc/lit WSDL now seems to work)
|
||||
- wsdl: process namespace declarations first when parsing an element
|
||||
|
||||
2005-07-27, version 0.7.1
|
||||
- nusoap_base: do not override supplied element name with class name when serializing an object in serialize_val
|
||||
- nusoap_base: remove http://soapinterop.org/xsd (si) from namespaces array
|
||||
- nusoapmime: add nusoapservermime class to implement MIME attachments on the server
|
||||
- soap_fault: improve documentation
|
||||
- soap_server: improve documentation
|
||||
- soap_server: make consistent use of _SERVER and HTTP_SERVER_VARS
|
||||
- soap_server: make all incoming HTTP header keys lower case
|
||||
- soap_server: add hook functions to support subclassing for MIME attachments
|
||||
- soap_transport_http: remove an unnecessary global statement
|
||||
- soapclient: when creating a proxy, make $params within each function an associative array
|
||||
- soapval: improve documentation
|
||||
- wsdl: when serializing complexType elements, used typed serialization if there is either a type or a reference for the element
|
||||
- wsdl: allow PHP objects to be serialized as SOAP structs in serializeType
|
||||
- wsdl: for WSDL and XML Schema imports, don't forget to use the TCP port number (thanks Luca GIOPPO)
|
||||
- wsdl: make consistent use of _SERVER and HTTP_SERVER_VARS
|
||||
- xmlschema: improve documentation
|
||||
|
||||
2005-07-31, version 0.7.2
|
||||
- nusoap_base: correctly serialize attributes in serialize_val (thanks Hidran Arias)
|
||||
- soap_parser: when resolving references, do not assume that buildVal returns an array (thanks Akshell)
|
||||
- soap_parser: removed decode_entities, which does not work (thanks Martin Sarsale)
|
||||
- soap_server: fix a bug parsing headers from _SERVER and HTTP_SERVER_VARS (thanks Bert Catsburg)
|
||||
- soap_server: parse all "headers" from HTTP_SERVER_VARS (not just HTTP_*)
|
||||
- soap_server: use PHP_SELF instead of SCRIPT_NAME for WSDL endpoint
|
||||
- soap_server: when generating a fault while debug_flag is true, put debug into faultdetail
|
||||
- wsdl: add enumeration parameter to addSimpleType
|
||||
- xmlschema: add enumeration parameter to addSimpleType
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,86 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Contains information for a SOAP fault.
|
||||
* Mainly used for returning faults from deployed functions
|
||||
* in a server instance.
|
||||
* @author Dietrich Ayala <dietrich@ganx4.com>
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class soap_fault extends nusoap_base {
|
||||
/**
|
||||
* The fault code (client|server)
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $faultcode;
|
||||
/**
|
||||
* The fault actor
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $faultactor;
|
||||
/**
|
||||
* The fault string, a description of the fault
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $faultstring;
|
||||
/**
|
||||
* The fault detail, typically a string or array of string
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $faultdetail;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param string $faultcode (client | server)
|
||||
* @param string $faultactor only used when msg routed between multiple actors
|
||||
* @param string $faultstring human readable error message
|
||||
* @param mixed $faultdetail detail, typically a string or array of string
|
||||
*/
|
||||
function soap_fault($faultcode,$faultactor='',$faultstring='',$faultdetail=''){
|
||||
parent::nusoap_base();
|
||||
$this->faultcode = $faultcode;
|
||||
$this->faultactor = $faultactor;
|
||||
$this->faultstring = $faultstring;
|
||||
$this->faultdetail = $faultdetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* serialize a fault
|
||||
*
|
||||
* @return string The serialization of the fault instance.
|
||||
* @access public
|
||||
*/
|
||||
function serialize(){
|
||||
$ns_string = '';
|
||||
foreach($this->namespaces as $k => $v){
|
||||
$ns_string .= "\n xmlns:$k=\"$v\"";
|
||||
}
|
||||
$return_msg =
|
||||
'<?xml version="1.0" encoding="'.$this->soap_defencoding.'"?>'.
|
||||
'<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"'.$ns_string.">\n".
|
||||
'<SOAP-ENV:Body>'.
|
||||
'<SOAP-ENV:Fault>'.
|
||||
$this->serialize_val($this->faultcode, 'faultcode').
|
||||
$this->serialize_val($this->faultactor, 'faultactor').
|
||||
$this->serialize_val($this->faultstring, 'faultstring').
|
||||
$this->serialize_val($this->faultdetail, 'detail').
|
||||
'</SOAP-ENV:Fault>'.
|
||||
'</SOAP-ENV:Body>'.
|
||||
'</SOAP-ENV:Envelope>';
|
||||
return $return_msg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Contains information for a SOAP fault.
|
||||
* Mainly used for returning faults from deployed functions
|
||||
* in a server instance.
|
||||
* @author Dietrich Ayala <dietrich@ganx4.com>
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class soap_fault extends nusoap_base {
|
||||
/**
|
||||
* The fault code (client|server)
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $faultcode;
|
||||
/**
|
||||
* The fault actor
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $faultactor;
|
||||
/**
|
||||
* The fault string, a description of the fault
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $faultstring;
|
||||
/**
|
||||
* The fault detail, typically a string or array of string
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $faultdetail;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param string $faultcode (client | server)
|
||||
* @param string $faultactor only used when msg routed between multiple actors
|
||||
* @param string $faultstring human readable error message
|
||||
* @param mixed $faultdetail detail, typically a string or array of string
|
||||
*/
|
||||
function soap_fault($faultcode,$faultactor='',$faultstring='',$faultdetail=''){
|
||||
parent::nusoap_base();
|
||||
$this->faultcode = $faultcode;
|
||||
$this->faultactor = $faultactor;
|
||||
$this->faultstring = $faultstring;
|
||||
$this->faultdetail = $faultdetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* serialize a fault
|
||||
*
|
||||
* @return string The serialization of the fault instance.
|
||||
* @access public
|
||||
*/
|
||||
function serialize(){
|
||||
$ns_string = '';
|
||||
foreach($this->namespaces as $k => $v){
|
||||
$ns_string .= "\n xmlns:$k=\"$v\"";
|
||||
}
|
||||
$return_msg =
|
||||
'<?xml version="1.0" encoding="'.$this->soap_defencoding.'"?>'.
|
||||
'<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"'.$ns_string.">\n".
|
||||
'<SOAP-ENV:Body>'.
|
||||
'<SOAP-ENV:Fault>'.
|
||||
$this->serialize_val($this->faultcode, 'faultcode').
|
||||
$this->serialize_val($this->faultactor, 'faultactor').
|
||||
$this->serialize_val($this->faultstring, 'faultstring').
|
||||
$this->serialize_val($this->faultdetail, 'detail').
|
||||
'</SOAP-ENV:Fault>'.
|
||||
'</SOAP-ENV:Body>'.
|
||||
'</SOAP-ENV:Envelope>';
|
||||
return $return_msg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,107 +1,107 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* For creating serializable abstractions of native PHP types. This class
|
||||
* allows element name/namespace, XSD type, and XML attributes to be
|
||||
* associated with a value. This is extremely useful when WSDL is not
|
||||
* used, but is also useful when WSDL is used with polymorphic types, including
|
||||
* xsd:anyType and user-defined types.
|
||||
*
|
||||
* @author Dietrich Ayala <dietrich@ganx4.com>
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class soapval extends nusoap_base {
|
||||
/**
|
||||
* The XML element name
|
||||
*
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $name;
|
||||
/**
|
||||
* The XML type name (string or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $type;
|
||||
/**
|
||||
* The PHP value
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $value;
|
||||
/**
|
||||
* The XML element namespace (string or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $element_ns;
|
||||
/**
|
||||
* The XML type namespace (string or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $type_ns;
|
||||
/**
|
||||
* The XML element attributes (array or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $attributes;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param string $name optional name
|
||||
* @param mixed $type optional type name
|
||||
* @param mixed $value optional value
|
||||
* @param mixed $element_ns optional namespace of value
|
||||
* @param mixed $type_ns optional namespace of type
|
||||
* @param mixed $attributes associative array of attributes to add to element serialization
|
||||
* @access public
|
||||
*/
|
||||
function soapval($name='soapval',$type=false,$value=-1,$element_ns=false,$type_ns=false,$attributes=false) {
|
||||
parent::nusoap_base();
|
||||
$this->name = $name;
|
||||
$this->type = $type;
|
||||
$this->value = $value;
|
||||
$this->element_ns = $element_ns;
|
||||
$this->type_ns = $type_ns;
|
||||
$this->attributes = $attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* return serialized value
|
||||
*
|
||||
* @param string $use The WSDL use value (encoded|literal)
|
||||
* @return string XML data
|
||||
* @access public
|
||||
*/
|
||||
function serialize($use='encoded') {
|
||||
return $this->serialize_val($this->value,$this->name,$this->type,$this->element_ns,$this->type_ns,$this->attributes,$use);
|
||||
}
|
||||
|
||||
/**
|
||||
* decodes a soapval object into a PHP native type
|
||||
*
|
||||
* @return mixed
|
||||
* @access public
|
||||
*/
|
||||
function decode(){
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* For creating serializable abstractions of native PHP types. This class
|
||||
* allows element name/namespace, XSD type, and XML attributes to be
|
||||
* associated with a value. This is extremely useful when WSDL is not
|
||||
* used, but is also useful when WSDL is used with polymorphic types, including
|
||||
* xsd:anyType and user-defined types.
|
||||
*
|
||||
* @author Dietrich Ayala <dietrich@ganx4.com>
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class soapval extends nusoap_base {
|
||||
/**
|
||||
* The XML element name
|
||||
*
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $name;
|
||||
/**
|
||||
* The XML type name (string or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $type;
|
||||
/**
|
||||
* The PHP value
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $value;
|
||||
/**
|
||||
* The XML element namespace (string or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $element_ns;
|
||||
/**
|
||||
* The XML type namespace (string or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $type_ns;
|
||||
/**
|
||||
* The XML element attributes (array or false)
|
||||
*
|
||||
* @var mixed
|
||||
* @access private
|
||||
*/
|
||||
var $attributes;
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param string $name optional name
|
||||
* @param mixed $type optional type name
|
||||
* @param mixed $value optional value
|
||||
* @param mixed $element_ns optional namespace of value
|
||||
* @param mixed $type_ns optional namespace of type
|
||||
* @param mixed $attributes associative array of attributes to add to element serialization
|
||||
* @access public
|
||||
*/
|
||||
function soapval($name='soapval',$type=false,$value=-1,$element_ns=false,$type_ns=false,$attributes=false) {
|
||||
parent::nusoap_base();
|
||||
$this->name = $name;
|
||||
$this->type = $type;
|
||||
$this->value = $value;
|
||||
$this->element_ns = $element_ns;
|
||||
$this->type_ns = $type_ns;
|
||||
$this->attributes = $attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* return serialized value
|
||||
*
|
||||
* @param string $use The WSDL use value (encoded|literal)
|
||||
* @return string XML data
|
||||
* @access public
|
||||
*/
|
||||
function serialize($use='encoded') {
|
||||
return $this->serialize_val($this->value,$this->name,$this->type,$this->element_ns,$this->type_ns,$this->attributes,$use);
|
||||
}
|
||||
|
||||
/**
|
||||
* decodes a soapval object into a PHP native type
|
||||
*
|
||||
* @return mixed
|
||||
* @access public
|
||||
*/
|
||||
function decode(){
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,184 +1,184 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* caches instances of the wsdl class
|
||||
*
|
||||
* @author Scott Nichol <snichol@computer.org>
|
||||
* @author Ingo Fischer <ingo@apollon.de>
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class wsdlcache {
|
||||
/**
|
||||
* @var resource
|
||||
* @access private
|
||||
*/
|
||||
var $fplock;
|
||||
/**
|
||||
* @var integer
|
||||
* @access private
|
||||
*/
|
||||
var $cache_lifetime;
|
||||
/**
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $cache_dir;
|
||||
/**
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $debug_str = '';
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param string $cache_dir directory for cache-files
|
||||
* @param integer $cache_lifetime lifetime for caching-files in seconds or 0 for unlimited
|
||||
* @access public
|
||||
*/
|
||||
function wsdlcache($cache_dir='.', $cache_lifetime=0) {
|
||||
$this->fplock = array();
|
||||
$this->cache_dir = $cache_dir != '' ? $cache_dir : '.';
|
||||
$this->cache_lifetime = $cache_lifetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* creates the filename used to cache a wsdl instance
|
||||
*
|
||||
* @param string $wsdl The URL of the wsdl instance
|
||||
* @return string The filename used to cache the instance
|
||||
* @access private
|
||||
*/
|
||||
function createFilename($wsdl) {
|
||||
return $this->cache_dir.'/wsdlcache-' . md5($wsdl);
|
||||
}
|
||||
|
||||
/**
|
||||
* adds debug data to the class level debug string
|
||||
*
|
||||
* @param string $string debug data
|
||||
* @access private
|
||||
*/
|
||||
function debug($string){
|
||||
$this->debug_str .= get_class($this).": $string\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* gets a wsdl instance from the cache
|
||||
*
|
||||
* @param string $wsdl The URL of the wsdl instance
|
||||
* @return object wsdl The cached wsdl instance, null if the instance is not in the cache
|
||||
* @access public
|
||||
*/
|
||||
function get($wsdl) {
|
||||
$filename = $this->createFilename($wsdl);
|
||||
if ($this->obtainMutex($filename, "r")) {
|
||||
// check for expired WSDL that must be removed from the cache
|
||||
if ($this->cache_lifetime > 0) {
|
||||
if (file_exists($filename) && (time() - filemtime($filename) > $this->cache_lifetime)) {
|
||||
unlink($filename);
|
||||
$this->debug("Expired $wsdl ($filename) from cache");
|
||||
$this->releaseMutex($filename);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
// see what there is to return
|
||||
$fp = @fopen($filename, "r");
|
||||
if ($fp) {
|
||||
$s = implode("", @file($filename));
|
||||
fclose($fp);
|
||||
$this->debug("Got $wsdl ($filename) from cache");
|
||||
} else {
|
||||
$s = null;
|
||||
$this->debug("$wsdl ($filename) not in cache");
|
||||
}
|
||||
$this->releaseMutex($filename);
|
||||
return (!is_null($s)) ? unserialize($s) : null;
|
||||
} else {
|
||||
$this->debug("Unable to obtain mutex for $filename in get");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* obtains the local mutex
|
||||
*
|
||||
* @param string $filename The Filename of the Cache to lock
|
||||
* @param string $mode The open-mode ("r" or "w") or the file - affects lock-mode
|
||||
* @return boolean Lock successfully obtained ?!
|
||||
* @access private
|
||||
*/
|
||||
function obtainMutex($filename, $mode) {
|
||||
if (isset($this->fplock[md5($filename)])) {
|
||||
$this->debug("Lock for $filename already exists");
|
||||
return false;
|
||||
}
|
||||
$this->fplock[md5($filename)] = fopen($filename.".lock", "w");
|
||||
if ($mode == "r") {
|
||||
return flock($this->fplock[md5($filename)], LOCK_SH);
|
||||
} else {
|
||||
return flock($this->fplock[md5($filename)], LOCK_EX);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* adds a wsdl instance to the cache
|
||||
*
|
||||
* @param object wsdl $wsdl_instance The wsdl instance to add
|
||||
* @return boolean WSDL successfully cached
|
||||
* @access public
|
||||
*/
|
||||
function put($wsdl_instance) {
|
||||
$filename = $this->createFilename($wsdl_instance->wsdl);
|
||||
$s = serialize($wsdl_instance);
|
||||
if ($this->obtainMutex($filename, "w")) {
|
||||
$fp = fopen($filename, "w");
|
||||
fputs($fp, $s);
|
||||
fclose($fp);
|
||||
$this->debug("Put $wsdl_instance->wsdl ($filename) in cache");
|
||||
$this->releaseMutex($filename);
|
||||
return true;
|
||||
} else {
|
||||
$this->debug("Unable to obtain mutex for $filename in put");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* releases the local mutex
|
||||
*
|
||||
* @param string $filename The Filename of the Cache to lock
|
||||
* @return boolean Lock successfully released
|
||||
* @access private
|
||||
*/
|
||||
function releaseMutex($filename) {
|
||||
$ret = flock($this->fplock[md5($filename)], LOCK_UN);
|
||||
fclose($this->fplock[md5($filename)]);
|
||||
unset($this->fplock[md5($filename)]);
|
||||
if (! $ret) {
|
||||
$this->debug("Not able to release lock for $filename");
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* removes a wsdl instance from the cache
|
||||
*
|
||||
* @param string $wsdl The URL of the wsdl instance
|
||||
* @return boolean Whether there was an instance to remove
|
||||
* @access public
|
||||
*/
|
||||
function remove($wsdl) {
|
||||
$filename = $this->createFilename($wsdl);
|
||||
// ignore errors obtaining mutex
|
||||
$this->obtainMutex($filename, "w");
|
||||
$ret = unlink($filename);
|
||||
$this->debug("Removed ($ret) $wsdl ($filename) from cache");
|
||||
$this->releaseMutex($filename);
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* caches instances of the wsdl class
|
||||
*
|
||||
* @author Scott Nichol <snichol@computer.org>
|
||||
* @author Ingo Fischer <ingo@apollon.de>
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class wsdlcache {
|
||||
/**
|
||||
* @var resource
|
||||
* @access private
|
||||
*/
|
||||
var $fplock;
|
||||
/**
|
||||
* @var integer
|
||||
* @access private
|
||||
*/
|
||||
var $cache_lifetime;
|
||||
/**
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $cache_dir;
|
||||
/**
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $debug_str = '';
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
* @param string $cache_dir directory for cache-files
|
||||
* @param integer $cache_lifetime lifetime for caching-files in seconds or 0 for unlimited
|
||||
* @access public
|
||||
*/
|
||||
function wsdlcache($cache_dir='.', $cache_lifetime=0) {
|
||||
$this->fplock = array();
|
||||
$this->cache_dir = $cache_dir != '' ? $cache_dir : '.';
|
||||
$this->cache_lifetime = $cache_lifetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* creates the filename used to cache a wsdl instance
|
||||
*
|
||||
* @param string $wsdl The URL of the wsdl instance
|
||||
* @return string The filename used to cache the instance
|
||||
* @access private
|
||||
*/
|
||||
function createFilename($wsdl) {
|
||||
return $this->cache_dir.'/wsdlcache-' . md5($wsdl);
|
||||
}
|
||||
|
||||
/**
|
||||
* adds debug data to the class level debug string
|
||||
*
|
||||
* @param string $string debug data
|
||||
* @access private
|
||||
*/
|
||||
function debug($string){
|
||||
$this->debug_str .= get_class($this).": $string\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* gets a wsdl instance from the cache
|
||||
*
|
||||
* @param string $wsdl The URL of the wsdl instance
|
||||
* @return object wsdl The cached wsdl instance, null if the instance is not in the cache
|
||||
* @access public
|
||||
*/
|
||||
function get($wsdl) {
|
||||
$filename = $this->createFilename($wsdl);
|
||||
if ($this->obtainMutex($filename, "r")) {
|
||||
// check for expired WSDL that must be removed from the cache
|
||||
if ($this->cache_lifetime > 0) {
|
||||
if (file_exists($filename) && (time() - filemtime($filename) > $this->cache_lifetime)) {
|
||||
unlink($filename);
|
||||
$this->debug("Expired $wsdl ($filename) from cache");
|
||||
$this->releaseMutex($filename);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
// see what there is to return
|
||||
$fp = @fopen($filename, "r");
|
||||
if ($fp) {
|
||||
$s = implode("", @file($filename));
|
||||
fclose($fp);
|
||||
$this->debug("Got $wsdl ($filename) from cache");
|
||||
} else {
|
||||
$s = null;
|
||||
$this->debug("$wsdl ($filename) not in cache");
|
||||
}
|
||||
$this->releaseMutex($filename);
|
||||
return (!is_null($s)) ? unserialize($s) : null;
|
||||
} else {
|
||||
$this->debug("Unable to obtain mutex for $filename in get");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* obtains the local mutex
|
||||
*
|
||||
* @param string $filename The Filename of the Cache to lock
|
||||
* @param string $mode The open-mode ("r" or "w") or the file - affects lock-mode
|
||||
* @return boolean Lock successfully obtained ?!
|
||||
* @access private
|
||||
*/
|
||||
function obtainMutex($filename, $mode) {
|
||||
if (isset($this->fplock[md5($filename)])) {
|
||||
$this->debug("Lock for $filename already exists");
|
||||
return false;
|
||||
}
|
||||
$this->fplock[md5($filename)] = fopen($filename.".lock", "w");
|
||||
if ($mode == "r") {
|
||||
return flock($this->fplock[md5($filename)], LOCK_SH);
|
||||
} else {
|
||||
return flock($this->fplock[md5($filename)], LOCK_EX);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* adds a wsdl instance to the cache
|
||||
*
|
||||
* @param object wsdl $wsdl_instance The wsdl instance to add
|
||||
* @return boolean WSDL successfully cached
|
||||
* @access public
|
||||
*/
|
||||
function put($wsdl_instance) {
|
||||
$filename = $this->createFilename($wsdl_instance->wsdl);
|
||||
$s = serialize($wsdl_instance);
|
||||
if ($this->obtainMutex($filename, "w")) {
|
||||
$fp = fopen($filename, "w");
|
||||
fputs($fp, $s);
|
||||
fclose($fp);
|
||||
$this->debug("Put $wsdl_instance->wsdl ($filename) in cache");
|
||||
$this->releaseMutex($filename);
|
||||
return true;
|
||||
} else {
|
||||
$this->debug("Unable to obtain mutex for $filename in put");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* releases the local mutex
|
||||
*
|
||||
* @param string $filename The Filename of the Cache to lock
|
||||
* @return boolean Lock successfully released
|
||||
* @access private
|
||||
*/
|
||||
function releaseMutex($filename) {
|
||||
$ret = flock($this->fplock[md5($filename)], LOCK_UN);
|
||||
fclose($this->fplock[md5($filename)]);
|
||||
unset($this->fplock[md5($filename)]);
|
||||
if (! $ret) {
|
||||
$this->debug("Not able to release lock for $filename");
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* removes a wsdl instance from the cache
|
||||
*
|
||||
* @param string $wsdl The URL of the wsdl instance
|
||||
* @return boolean Whether there was an instance to remove
|
||||
* @access public
|
||||
*/
|
||||
function remove($wsdl) {
|
||||
$filename = $this->createFilename($wsdl);
|
||||
// ignore errors obtaining mutex
|
||||
$this->obtainMutex($filename, "w");
|
||||
$ret = unlink($filename);
|
||||
$this->debug("Removed ($ret) $wsdl ($filename) from cache");
|
||||
$this->releaseMutex($filename);
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,478 +1,478 @@
|
||||
<?php
|
||||
/*
|
||||
$Id$
|
||||
|
||||
NuSOAP - Web Services Toolkit for PHP
|
||||
|
||||
Copyright (c) 2002 NuSphere Corporation
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
If you have any questions or comments, please email:
|
||||
|
||||
Dietrich Ayala
|
||||
dietrich@ganx4.com
|
||||
http://dietrich.ganx4.com/nusoap
|
||||
|
||||
NuSphere Corporation
|
||||
http://www.nusphere.com
|
||||
|
||||
*/
|
||||
|
||||
/*require_once('nusoap.php');*/
|
||||
/* PEAR Mail_MIME library */
|
||||
require_once('Mail/mimeDecode.php');
|
||||
require_once('Mail/mimePart.php');
|
||||
|
||||
/**
|
||||
* soapclientmime client supporting MIME attachments defined at
|
||||
* http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.
|
||||
*
|
||||
* @author Scott Nichol <snichol@sourceforge.net>
|
||||
* @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class soapclientmime extends soapclient {
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $requestAttachments = array();
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $responseAttachments;
|
||||
/**
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $mimeContentType;
|
||||
|
||||
/**
|
||||
* adds a MIME attachment to the current request.
|
||||
*
|
||||
* If the $data parameter contains an empty string, this method will read
|
||||
* the contents of the file named by the $filename parameter.
|
||||
*
|
||||
* If the $cid parameter is false, this method will generate the cid.
|
||||
*
|
||||
* @param string $data The data of the attachment
|
||||
* @param string $filename The filename of the attachment (default is empty string)
|
||||
* @param string $contenttype The MIME Content-Type of the attachment (default is application/octet-stream)
|
||||
* @param string $cid The content-id (cid) of the attachment (default is false)
|
||||
* @return string The content-id (cid) of the attachment
|
||||
* @access public
|
||||
*/
|
||||
function addAttachment($data, $filename = '', $contenttype = 'application/octet-stream', $cid = false) {
|
||||
if (! $cid) {
|
||||
$cid = md5(uniqid(time()));
|
||||
}
|
||||
|
||||
$info['data'] = $data;
|
||||
$info['filename'] = $filename;
|
||||
$info['contenttype'] = $contenttype;
|
||||
$info['cid'] = $cid;
|
||||
|
||||
$this->requestAttachments[] = $info;
|
||||
|
||||
return $cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* clears the MIME attachments for the current request.
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function clearAttachments() {
|
||||
$this->requestAttachments = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the MIME attachments from the current response.
|
||||
*
|
||||
* Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid. These keys correspond to the parameters
|
||||
* for addAttachment.
|
||||
*
|
||||
* @return array The attachments.
|
||||
* @access public
|
||||
*/
|
||||
function getAttachments() {
|
||||
return $this->responseAttachments;
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP body for the current request.
|
||||
*
|
||||
* @param string $soapmsg The SOAP payload
|
||||
* @return string The HTTP body, which includes the SOAP payload
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type=text/xml';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
$params['encoding'] = '8bit';
|
||||
$params['charset'] = $this->soap_defencoding;
|
||||
$mimeMessage->addSubpart($soapmsg, $params);
|
||||
|
||||
foreach ($this->requestAttachments as $att) {
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = $att['contenttype'];
|
||||
$params['encoding'] = 'base64';
|
||||
$params['disposition'] = 'attachment';
|
||||
$params['dfilename'] = $att['filename'];
|
||||
$params['cid'] = $att['cid'];
|
||||
|
||||
if ($att['data'] == '' && $att['filename'] <> '') {
|
||||
if ($fd = fopen($att['filename'], 'rb')) {
|
||||
$data = fread($fd, filesize($att['filename']));
|
||||
fclose($fd);
|
||||
} else {
|
||||
$data = '';
|
||||
}
|
||||
$mimeMessage->addSubpart($data, $params);
|
||||
} else {
|
||||
$mimeMessage->addSubpart($att['data'], $params);
|
||||
}
|
||||
}
|
||||
|
||||
$output = $mimeMessage->encode();
|
||||
$mimeHeaders = $output['headers'];
|
||||
|
||||
foreach ($mimeHeaders as $k => $v) {
|
||||
$this->debug("MIME header $k: $v");
|
||||
if (strtolower($k) == 'content-type') {
|
||||
// PHP header() seems to strip leading whitespace starting
|
||||
// the second line, so force everything to one line
|
||||
$this->mimeContentType = str_replace("\r\n", " ", $v);
|
||||
}
|
||||
}
|
||||
|
||||
return $output['body'];
|
||||
}
|
||||
|
||||
return parent::getHTTPBody($soapmsg);
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type for the current request.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type for the current request.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentType() {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
return $this->mimeContentType;
|
||||
}
|
||||
return parent::getHTTPContentType();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type charset for the current request.
|
||||
* returns false for non-text content types.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type charset for the current request.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentTypeCharset() {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
return false;
|
||||
}
|
||||
return parent::getHTTPContentTypeCharset();
|
||||
}
|
||||
|
||||
/**
|
||||
* processes SOAP message returned from server
|
||||
*
|
||||
* @param array $headers The HTTP headers
|
||||
* @param string $data unprocessed response data from server
|
||||
* @return mixed value of the message, decoded into a PHP type
|
||||
* @access private
|
||||
*/
|
||||
function parseResponse($headers, $data) {
|
||||
$this->debug('Entering parseResponse() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
|
||||
$this->responseAttachments = array();
|
||||
if (strstr($headers['content-type'], 'multipart/related')) {
|
||||
$this->debug('Decode multipart/related');
|
||||
$input = '';
|
||||
foreach ($headers as $k => $v) {
|
||||
$input .= "$k: $v\r\n";
|
||||
}
|
||||
$params['input'] = $input . "\r\n" . $data;
|
||||
$params['include_bodies'] = true;
|
||||
$params['decode_bodies'] = true;
|
||||
$params['decode_headers'] = true;
|
||||
|
||||
$structure = Mail_mimeDecode::decode($params);
|
||||
|
||||
foreach ($structure->parts as $part) {
|
||||
if (!isset($part->disposition)) {
|
||||
$this->debug('Have root part of type ' . $part->headers['content-type']);
|
||||
$return = parent::parseResponse($part->headers, $part->body);
|
||||
} else {
|
||||
$this->debug('Have an attachment of type ' . $part->headers['content-type']);
|
||||
$info['data'] = $part->body;
|
||||
$info['filename'] = isset($part->d_parameters['filename']) ? $part->d_parameters['filename'] : '';
|
||||
$info['contenttype'] = $part->headers['content-type'];
|
||||
$info['cid'] = $part->headers['content-id'];
|
||||
$this->responseAttachments[] = $info;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($return)) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
$this->setError('No root part found in multipart/related content');
|
||||
return;
|
||||
}
|
||||
$this->debug('Not multipart/related');
|
||||
return parent::parseResponse($headers, $data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* nusoapservermime server supporting MIME attachments defined at
|
||||
* http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.
|
||||
*
|
||||
* @author Scott Nichol <snichol@sourceforge.net>
|
||||
* @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class nusoapservermime extends soap_server {
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $requestAttachments = array();
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $responseAttachments;
|
||||
/**
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $mimeContentType;
|
||||
|
||||
/**
|
||||
* adds a MIME attachment to the current response.
|
||||
*
|
||||
* If the $data parameter contains an empty string, this method will read
|
||||
* the contents of the file named by the $filename parameter.
|
||||
*
|
||||
* If the $cid parameter is false, this method will generate the cid.
|
||||
*
|
||||
* @param string $data The data of the attachment
|
||||
* @param string $filename The filename of the attachment (default is empty string)
|
||||
* @param string $contenttype The MIME Content-Type of the attachment (default is application/octet-stream)
|
||||
* @param string $cid The content-id (cid) of the attachment (default is false)
|
||||
* @return string The content-id (cid) of the attachment
|
||||
* @access public
|
||||
*/
|
||||
function addAttachment($data, $filename = '', $contenttype = 'application/octet-stream', $cid = false) {
|
||||
if (! $cid) {
|
||||
$cid = md5(uniqid(time()));
|
||||
}
|
||||
|
||||
$info['data'] = $data;
|
||||
$info['filename'] = $filename;
|
||||
$info['contenttype'] = $contenttype;
|
||||
$info['cid'] = $cid;
|
||||
|
||||
$this->responseAttachments[] = $info;
|
||||
|
||||
return $cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* clears the MIME attachments for the current response.
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function clearAttachments() {
|
||||
$this->responseAttachments = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the MIME attachments from the current request.
|
||||
*
|
||||
* Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid. These keys correspond to the parameters
|
||||
* for addAttachment.
|
||||
*
|
||||
* @return array The attachments.
|
||||
* @access public
|
||||
*/
|
||||
function getAttachments() {
|
||||
return $this->requestAttachments;
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP body for the current response.
|
||||
*
|
||||
* @param string $soapmsg The SOAP payload
|
||||
* @return string The HTTP body, which includes the SOAP payload
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type=text/xml';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
$params['encoding'] = '8bit';
|
||||
$params['charset'] = $this->soap_defencoding;
|
||||
$mimeMessage->addSubpart($soapmsg, $params);
|
||||
|
||||
foreach ($this->responseAttachments as $att) {
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = $att['contenttype'];
|
||||
$params['encoding'] = 'base64';
|
||||
$params['disposition'] = 'attachment';
|
||||
$params['dfilename'] = $att['filename'];
|
||||
$params['cid'] = $att['cid'];
|
||||
|
||||
if ($att['data'] == '' && $att['filename'] <> '') {
|
||||
if ($fd = fopen($att['filename'], 'rb')) {
|
||||
$data = fread($fd, filesize($att['filename']));
|
||||
fclose($fd);
|
||||
} else {
|
||||
$data = '';
|
||||
}
|
||||
$mimeMessage->addSubpart($data, $params);
|
||||
} else {
|
||||
$mimeMessage->addSubpart($att['data'], $params);
|
||||
}
|
||||
}
|
||||
|
||||
$output = $mimeMessage->encode();
|
||||
$mimeHeaders = $output['headers'];
|
||||
|
||||
foreach ($mimeHeaders as $k => $v) {
|
||||
$this->debug("MIME header $k: $v");
|
||||
if (strtolower($k) == 'content-type') {
|
||||
// PHP header() seems to strip leading whitespace starting
|
||||
// the second line, so force everything to one line
|
||||
$this->mimeContentType = str_replace("\r\n", " ", $v);
|
||||
}
|
||||
}
|
||||
|
||||
return $output['body'];
|
||||
}
|
||||
|
||||
return parent::getHTTPBody($soapmsg);
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type for the current response.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type for the current response.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentType() {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
return $this->mimeContentType;
|
||||
}
|
||||
return parent::getHTTPContentType();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type charset for the current response.
|
||||
* returns false for non-text content types.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type charset for the current response.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentTypeCharset() {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
return false;
|
||||
}
|
||||
return parent::getHTTPContentTypeCharset();
|
||||
}
|
||||
|
||||
/**
|
||||
* processes SOAP message received from client
|
||||
*
|
||||
* @param array $headers The HTTP headers
|
||||
* @param string $data unprocessed request data from client
|
||||
* @return mixed value of the message, decoded into a PHP type
|
||||
* @access private
|
||||
*/
|
||||
function parseRequest($headers, $data) {
|
||||
$this->debug('Entering parseRequest() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
|
||||
$this->requestAttachments = array();
|
||||
if (strstr($headers['content-type'], 'multipart/related')) {
|
||||
$this->debug('Decode multipart/related');
|
||||
$input = '';
|
||||
foreach ($headers as $k => $v) {
|
||||
$input .= "$k: $v\r\n";
|
||||
}
|
||||
$params['input'] = $input . "\r\n" . $data;
|
||||
$params['include_bodies'] = true;
|
||||
$params['decode_bodies'] = true;
|
||||
$params['decode_headers'] = true;
|
||||
|
||||
$structure = Mail_mimeDecode::decode($params);
|
||||
|
||||
foreach ($structure->parts as $part) {
|
||||
if (!isset($part->disposition)) {
|
||||
$this->debug('Have root part of type ' . $part->headers['content-type']);
|
||||
$return = parent::parseRequest($part->headers, $part->body);
|
||||
} else {
|
||||
$this->debug('Have an attachment of type ' . $part->headers['content-type']);
|
||||
$info['data'] = $part->body;
|
||||
$info['filename'] = isset($part->d_parameters['filename']) ? $part->d_parameters['filename'] : '';
|
||||
$info['contenttype'] = $part->headers['content-type'];
|
||||
$info['cid'] = $part->headers['content-id'];
|
||||
$this->requestAttachments[] = $info;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($return)) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
$this->setError('No root part found in multipart/related content');
|
||||
return;
|
||||
}
|
||||
$this->debug('Not multipart/related');
|
||||
return parent::parseRequest($headers, $data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
/*
|
||||
$Id$
|
||||
|
||||
NuSOAP - Web Services Toolkit for PHP
|
||||
|
||||
Copyright (c) 2002 NuSphere Corporation
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
If you have any questions or comments, please email:
|
||||
|
||||
Dietrich Ayala
|
||||
dietrich@ganx4.com
|
||||
http://dietrich.ganx4.com/nusoap
|
||||
|
||||
NuSphere Corporation
|
||||
http://www.nusphere.com
|
||||
|
||||
*/
|
||||
|
||||
/*require_once('nusoap.php');*/
|
||||
/* PEAR Mail_MIME library */
|
||||
require_once('Mail/mimeDecode.php');
|
||||
require_once('Mail/mimePart.php');
|
||||
|
||||
/**
|
||||
* soapclientmime client supporting MIME attachments defined at
|
||||
* http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.
|
||||
*
|
||||
* @author Scott Nichol <snichol@sourceforge.net>
|
||||
* @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class soapclientmime extends soapclient {
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $requestAttachments = array();
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $responseAttachments;
|
||||
/**
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $mimeContentType;
|
||||
|
||||
/**
|
||||
* adds a MIME attachment to the current request.
|
||||
*
|
||||
* If the $data parameter contains an empty string, this method will read
|
||||
* the contents of the file named by the $filename parameter.
|
||||
*
|
||||
* If the $cid parameter is false, this method will generate the cid.
|
||||
*
|
||||
* @param string $data The data of the attachment
|
||||
* @param string $filename The filename of the attachment (default is empty string)
|
||||
* @param string $contenttype The MIME Content-Type of the attachment (default is application/octet-stream)
|
||||
* @param string $cid The content-id (cid) of the attachment (default is false)
|
||||
* @return string The content-id (cid) of the attachment
|
||||
* @access public
|
||||
*/
|
||||
function addAttachment($data, $filename = '', $contenttype = 'application/octet-stream', $cid = false) {
|
||||
if (! $cid) {
|
||||
$cid = md5(uniqid(time()));
|
||||
}
|
||||
|
||||
$info['data'] = $data;
|
||||
$info['filename'] = $filename;
|
||||
$info['contenttype'] = $contenttype;
|
||||
$info['cid'] = $cid;
|
||||
|
||||
$this->requestAttachments[] = $info;
|
||||
|
||||
return $cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* clears the MIME attachments for the current request.
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function clearAttachments() {
|
||||
$this->requestAttachments = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the MIME attachments from the current response.
|
||||
*
|
||||
* Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid. These keys correspond to the parameters
|
||||
* for addAttachment.
|
||||
*
|
||||
* @return array The attachments.
|
||||
* @access public
|
||||
*/
|
||||
function getAttachments() {
|
||||
return $this->responseAttachments;
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP body for the current request.
|
||||
*
|
||||
* @param string $soapmsg The SOAP payload
|
||||
* @return string The HTTP body, which includes the SOAP payload
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type=text/xml';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
$params['encoding'] = '8bit';
|
||||
$params['charset'] = $this->soap_defencoding;
|
||||
$mimeMessage->addSubpart($soapmsg, $params);
|
||||
|
||||
foreach ($this->requestAttachments as $att) {
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = $att['contenttype'];
|
||||
$params['encoding'] = 'base64';
|
||||
$params['disposition'] = 'attachment';
|
||||
$params['dfilename'] = $att['filename'];
|
||||
$params['cid'] = $att['cid'];
|
||||
|
||||
if ($att['data'] == '' && $att['filename'] <> '') {
|
||||
if ($fd = fopen($att['filename'], 'rb')) {
|
||||
$data = fread($fd, filesize($att['filename']));
|
||||
fclose($fd);
|
||||
} else {
|
||||
$data = '';
|
||||
}
|
||||
$mimeMessage->addSubpart($data, $params);
|
||||
} else {
|
||||
$mimeMessage->addSubpart($att['data'], $params);
|
||||
}
|
||||
}
|
||||
|
||||
$output = $mimeMessage->encode();
|
||||
$mimeHeaders = $output['headers'];
|
||||
|
||||
foreach ($mimeHeaders as $k => $v) {
|
||||
$this->debug("MIME header $k: $v");
|
||||
if (strtolower($k) == 'content-type') {
|
||||
// PHP header() seems to strip leading whitespace starting
|
||||
// the second line, so force everything to one line
|
||||
$this->mimeContentType = str_replace("\r\n", " ", $v);
|
||||
}
|
||||
}
|
||||
|
||||
return $output['body'];
|
||||
}
|
||||
|
||||
return parent::getHTTPBody($soapmsg);
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type for the current request.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type for the current request.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentType() {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
return $this->mimeContentType;
|
||||
}
|
||||
return parent::getHTTPContentType();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type charset for the current request.
|
||||
* returns false for non-text content types.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type charset for the current request.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentTypeCharset() {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
return false;
|
||||
}
|
||||
return parent::getHTTPContentTypeCharset();
|
||||
}
|
||||
|
||||
/**
|
||||
* processes SOAP message returned from server
|
||||
*
|
||||
* @param array $headers The HTTP headers
|
||||
* @param string $data unprocessed response data from server
|
||||
* @return mixed value of the message, decoded into a PHP type
|
||||
* @access private
|
||||
*/
|
||||
function parseResponse($headers, $data) {
|
||||
$this->debug('Entering parseResponse() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
|
||||
$this->responseAttachments = array();
|
||||
if (strstr($headers['content-type'], 'multipart/related')) {
|
||||
$this->debug('Decode multipart/related');
|
||||
$input = '';
|
||||
foreach ($headers as $k => $v) {
|
||||
$input .= "$k: $v\r\n";
|
||||
}
|
||||
$params['input'] = $input . "\r\n" . $data;
|
||||
$params['include_bodies'] = true;
|
||||
$params['decode_bodies'] = true;
|
||||
$params['decode_headers'] = true;
|
||||
|
||||
$structure = Mail_mimeDecode::decode($params);
|
||||
|
||||
foreach ($structure->parts as $part) {
|
||||
if (!isset($part->disposition)) {
|
||||
$this->debug('Have root part of type ' . $part->headers['content-type']);
|
||||
$return = parent::parseResponse($part->headers, $part->body);
|
||||
} else {
|
||||
$this->debug('Have an attachment of type ' . $part->headers['content-type']);
|
||||
$info['data'] = $part->body;
|
||||
$info['filename'] = isset($part->d_parameters['filename']) ? $part->d_parameters['filename'] : '';
|
||||
$info['contenttype'] = $part->headers['content-type'];
|
||||
$info['cid'] = $part->headers['content-id'];
|
||||
$this->responseAttachments[] = $info;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($return)) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
$this->setError('No root part found in multipart/related content');
|
||||
return;
|
||||
}
|
||||
$this->debug('Not multipart/related');
|
||||
return parent::parseResponse($headers, $data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* nusoapservermime server supporting MIME attachments defined at
|
||||
* http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.
|
||||
*
|
||||
* @author Scott Nichol <snichol@sourceforge.net>
|
||||
* @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list
|
||||
* @version $Id$
|
||||
* @access public
|
||||
*/
|
||||
class nusoapservermime extends soap_server {
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $requestAttachments = array();
|
||||
/**
|
||||
* @var array Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid
|
||||
* @access private
|
||||
*/
|
||||
var $responseAttachments;
|
||||
/**
|
||||
* @var string
|
||||
* @access private
|
||||
*/
|
||||
var $mimeContentType;
|
||||
|
||||
/**
|
||||
* adds a MIME attachment to the current response.
|
||||
*
|
||||
* If the $data parameter contains an empty string, this method will read
|
||||
* the contents of the file named by the $filename parameter.
|
||||
*
|
||||
* If the $cid parameter is false, this method will generate the cid.
|
||||
*
|
||||
* @param string $data The data of the attachment
|
||||
* @param string $filename The filename of the attachment (default is empty string)
|
||||
* @param string $contenttype The MIME Content-Type of the attachment (default is application/octet-stream)
|
||||
* @param string $cid The content-id (cid) of the attachment (default is false)
|
||||
* @return string The content-id (cid) of the attachment
|
||||
* @access public
|
||||
*/
|
||||
function addAttachment($data, $filename = '', $contenttype = 'application/octet-stream', $cid = false) {
|
||||
if (! $cid) {
|
||||
$cid = md5(uniqid(time()));
|
||||
}
|
||||
|
||||
$info['data'] = $data;
|
||||
$info['filename'] = $filename;
|
||||
$info['contenttype'] = $contenttype;
|
||||
$info['cid'] = $cid;
|
||||
|
||||
$this->responseAttachments[] = $info;
|
||||
|
||||
return $cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* clears the MIME attachments for the current response.
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function clearAttachments() {
|
||||
$this->responseAttachments = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the MIME attachments from the current request.
|
||||
*
|
||||
* Each array element in the return is an associative array with keys
|
||||
* data, filename, contenttype, cid. These keys correspond to the parameters
|
||||
* for addAttachment.
|
||||
*
|
||||
* @return array The attachments.
|
||||
* @access public
|
||||
*/
|
||||
function getAttachments() {
|
||||
return $this->requestAttachments;
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP body for the current response.
|
||||
*
|
||||
* @param string $soapmsg The SOAP payload
|
||||
* @return string The HTTP body, which includes the SOAP payload
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type=text/xml';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
$params['encoding'] = '8bit';
|
||||
$params['charset'] = $this->soap_defencoding;
|
||||
$mimeMessage->addSubpart($soapmsg, $params);
|
||||
|
||||
foreach ($this->responseAttachments as $att) {
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = $att['contenttype'];
|
||||
$params['encoding'] = 'base64';
|
||||
$params['disposition'] = 'attachment';
|
||||
$params['dfilename'] = $att['filename'];
|
||||
$params['cid'] = $att['cid'];
|
||||
|
||||
if ($att['data'] == '' && $att['filename'] <> '') {
|
||||
if ($fd = fopen($att['filename'], 'rb')) {
|
||||
$data = fread($fd, filesize($att['filename']));
|
||||
fclose($fd);
|
||||
} else {
|
||||
$data = '';
|
||||
}
|
||||
$mimeMessage->addSubpart($data, $params);
|
||||
} else {
|
||||
$mimeMessage->addSubpart($att['data'], $params);
|
||||
}
|
||||
}
|
||||
|
||||
$output = $mimeMessage->encode();
|
||||
$mimeHeaders = $output['headers'];
|
||||
|
||||
foreach ($mimeHeaders as $k => $v) {
|
||||
$this->debug("MIME header $k: $v");
|
||||
if (strtolower($k) == 'content-type') {
|
||||
// PHP header() seems to strip leading whitespace starting
|
||||
// the second line, so force everything to one line
|
||||
$this->mimeContentType = str_replace("\r\n", " ", $v);
|
||||
}
|
||||
}
|
||||
|
||||
return $output['body'];
|
||||
}
|
||||
|
||||
return parent::getHTTPBody($soapmsg);
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type for the current response.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type for the current response.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentType() {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
return $this->mimeContentType;
|
||||
}
|
||||
return parent::getHTTPContentType();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the HTTP content type charset for the current response.
|
||||
* returns false for non-text content types.
|
||||
*
|
||||
* Note: getHTTPBody must be called before this.
|
||||
*
|
||||
* @return string the HTTP content type charset for the current response.
|
||||
* @access private
|
||||
*/
|
||||
function getHTTPContentTypeCharset() {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
return false;
|
||||
}
|
||||
return parent::getHTTPContentTypeCharset();
|
||||
}
|
||||
|
||||
/**
|
||||
* processes SOAP message received from client
|
||||
*
|
||||
* @param array $headers The HTTP headers
|
||||
* @param string $data unprocessed request data from client
|
||||
* @return mixed value of the message, decoded into a PHP type
|
||||
* @access private
|
||||
*/
|
||||
function parseRequest($headers, $data) {
|
||||
$this->debug('Entering parseRequest() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
|
||||
$this->requestAttachments = array();
|
||||
if (strstr($headers['content-type'], 'multipart/related')) {
|
||||
$this->debug('Decode multipart/related');
|
||||
$input = '';
|
||||
foreach ($headers as $k => $v) {
|
||||
$input .= "$k: $v\r\n";
|
||||
}
|
||||
$params['input'] = $input . "\r\n" . $data;
|
||||
$params['include_bodies'] = true;
|
||||
$params['decode_bodies'] = true;
|
||||
$params['decode_headers'] = true;
|
||||
|
||||
$structure = Mail_mimeDecode::decode($params);
|
||||
|
||||
foreach ($structure->parts as $part) {
|
||||
if (!isset($part->disposition)) {
|
||||
$this->debug('Have root part of type ' . $part->headers['content-type']);
|
||||
$return = parent::parseRequest($part->headers, $part->body);
|
||||
} else {
|
||||
$this->debug('Have an attachment of type ' . $part->headers['content-type']);
|
||||
$info['data'] = $part->body;
|
||||
$info['filename'] = isset($part->d_parameters['filename']) ? $part->d_parameters['filename'] : '';
|
||||
$info['contenttype'] = $part->headers['content-type'];
|
||||
$info['cid'] = $part->headers['content-id'];
|
||||
$this->requestAttachments[] = $info;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($return)) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
$this->setError('No root part found in multipart/related content');
|
||||
return;
|
||||
}
|
||||
$this->debug('Not multipart/related');
|
||||
return parent::parseRequest($headers, $data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
doc
|
||||
examples
|
||||
doc
|
||||
examples
|
||||
|
||||
@ -1 +1 @@
|
||||
test
|
||||
test
|
||||
|
||||
@ -1,390 +1,390 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
Traduction de R.Cougnec et M.Makarévitch
|
||||
|
||||
Introduction :
|
||||
This is an unofficial translation of the GNU General Public License into
|
||||
French. It was not published by the Free Software Foundation, and does not
|
||||
legally state the distribution terms for software that uses the GNU
|
||||
GPL--only the original English text of the GNU GPL does that. However, we
|
||||
hope that this translation will help French speakers understand the GNU GPL
|
||||
better.
|
||||
|
||||
Voici une adaptation non officielle de la Licence Publique Générale du
|
||||
projet GNU. Elle n'a pas été publiée par la Free Software Foundation et son
|
||||
contenu n'a aucune portée légale car seule la version anglaise de ce
|
||||
document détaille le mode de distribution des logiciels sous GNU GPL. Nous
|
||||
espérons cependant qu'elle permettra aux francophones de mieux comprendre
|
||||
la GPL.
|
||||
|
||||
-Licence Publique Générale GNU Version 2, Juin 1991-
|
||||
|
||||
Copyright (c) Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307
|
||||
États-Unis, 1989, 1991.
|
||||
La copie et la distribution de copies exactes de ce document sont
|
||||
autorisées, mais aucune modification n'est permise.
|
||||
|
||||
Préambule
|
||||
|
||||
Les licences d'utilisation de la plupart des programmes sont définies pour
|
||||
limiter ou supprimer toute liberté à l'utilisateur. À l'inverse, la
|
||||
Licence Publique Générale (General Public License) est destinée à vous
|
||||
garantir la liberté de partager et de modifier les logiciels libres, et de
|
||||
s'assurer que ces logiciels sont effectivement accessibles à tout
|
||||
utilisateur.
|
||||
|
||||
Cette Licence Publique Générale s'applique à la plupart des programmes de
|
||||
la Free Software Foundation, comme à tout autre programme dont l'auteur
|
||||
l'aura décidé (d'autres logiciels de la FSF sont couverts pour leur part
|
||||
par la Licence Publique Générale pour Bibliothèques GNU (LGPL)). Vous
|
||||
pouvez aussi appliquer les termes de cette Licence à vos propres
|
||||
programmes, si vous le désirez.
|
||||
|
||||
_Liberté des logiciels ne signifie pas nécessairement
|
||||
gratuité. Notre Licence est conçue pour vous assurer la liberté de
|
||||
distribuer des copies des programmes, gratuitement ou non, de recevoir le
|
||||
code source ou de pouvoir l'obtenir, de modifier les programmes ou d'en
|
||||
utiliser des éléments dans de nouveaux programmes libres, en sachant que
|
||||
vous y êtes autorisé.
|
||||
|
||||
Afin de garantir ces droits, nous avons dû introduire des restrictions
|
||||
interdisant à quiconque de vous les refuser ou de vous demander d'y
|
||||
renoncer. Ces restrictions vous imposent en retour certaines obligations si
|
||||
vous distribuez ou modifiez des copies de programmes protégés par la
|
||||
Licence. En d'autre termes, il vous incombera en ce cas de :
|
||||
|
||||
-transmettre aux destinataires tous les droits que vous possédez,
|
||||
-expédier aux destinataires le code source ou bien tenir celui-ci à
|
||||
leur disposition,
|
||||
-leur remettre cette Licence afin qu'ils prennent connaissance de
|
||||
leurs droits.
|
||||
|
||||
|
||||
Nous protégeons vos droits de deux façons : d'abord par le copyright
|
||||
du logiciel, ensuite par la remise de cette Licence qui vous autorise
|
||||
légalement à copier, distribuer et/ou modifier le logiciel.
|
||||
|
||||
En outre, pour protéger chaque auteur ainsi que la FSF, nous affirmons
|
||||
solennellement que le programme concerné ne fait l'objet d'aucune garantie.
|
||||
Si un tiers le modifie puis le redistribue, tous ceux qui en recevront une
|
||||
copie doivent savoir qu'il ne s'agit pas de l'original afin qu'une copie
|
||||
défectueuse n'entache pas la réputation de l'auteur du logiciel.
|
||||
|
||||
Enfin, tout programme libre est sans cesse menacé par des dépôts de
|
||||
brevets. Nous souhaitons à tout prix éviter que des distributeurs puissent
|
||||
déposer des brevets sur les Logiciels Libres pour leur propre compte. Pour
|
||||
éviter cela, nous stipulons bien que tout dépôt éventuel de brevet doit
|
||||
accorder expressément à tout un chacun le libre usage du produit.
|
||||
|
||||
Les dispositions précises et les conditions de copie, de distribution et de
|
||||
modification de nos logiciels sont les suivantes :
|
||||
|
||||
Stipulations et conditions relatives à la copie, la distribution et la modification
|
||||
|
||||
|
||||
_Article 0.
|
||||
La présente Licence s'applique à tout Programme (ou autre travail) où
|
||||
figure une note, placée par le détenteur des droits, stipulant que ledit
|
||||
Programme ou travail peut être distribué selon les termes de la présente
|
||||
Licence. Le terme Programme désigne aussi bien le Programme
|
||||
lui-même que tout travail qui en est dérivé selon la loi, c'est-à-dire
|
||||
tout ouvrage reproduisant le Programme ou une partie de celui-ci, à
|
||||
l'identique ou bien modifié, et/ou traduit dans une autre langue (la
|
||||
traduction est considérée comme une modification). Chaque personne
|
||||
concernée par la Licence Publique Générale sera désignée par le terme
|
||||
Vous.
|
||||
|
||||
Les activités autres que copie, distribution et modification ne sont pas
|
||||
couvertes par la présente Licence et sortent de son cadre. Rien ne
|
||||
restreint l'utilisation du Programme et les données issues de celui-ci ne
|
||||
sont couvertes que si leur contenu constitue un travail basé sur le
|
||||
logiciel (indépendemment du fait d'avoir été réalisé en lançant le
|
||||
Programme). Tout dépend de ce que le Programme est censé produire.
|
||||
|
||||
_Article 1.
|
||||
Vous pouvez copier et distribuer des copies conformes du code source du
|
||||
Programme, tel que Vous l'avez reçu, sur n'importe quel support, à
|
||||
condition de placer sur chaque copie un copyright approprié et une
|
||||
restriction de garantie, de ne pas modifier ou omettre toutes les
|
||||
stipulations se référant à la présente Licence et à la limitation de
|
||||
garantie, et de fournir avec toute copie du Programme un exemplaire de la
|
||||
Licence.
|
||||
|
||||
Vous pouvez demander une rétribution financière pour la réalisation de la
|
||||
copie et demeurez libre de proposer une garantie assurée par vos soins,
|
||||
moyennant finances.
|
||||
|
||||
_Article 2.
|
||||
Vous pouvez modifier votre copie ou vos copies du Programme ou partie de
|
||||
celui-ci, ou d'un travail basé sur ce Programme, et copier et distribuer
|
||||
ces modifications selon les termes de l'article 1, à condition de Vous
|
||||
conformer également aux conditions suivantes :
|
||||
|
||||
|
||||
a) Ajouter aux fichiers modifiés l'indication très claire des
|
||||
modifications effectuées, ainsi que la date de chaque changement.
|
||||
|
||||
b) Distribuer sous les termes de la Licence Publique Générale
|
||||
l'ensemble de toute réalisation contenant tout ou partie du
|
||||
Programme, avec ou sans modifications.
|
||||
c) Si le Programme modifié lit des commandes de manière interactive
|
||||
lors de son exécution, faire en sorte qu'il affiche, lors d'une
|
||||
invocation ordinaire, le copyright approprié en indiquant
|
||||
clairement la limitation de garantie (ou la garantie que Vous Vous
|
||||
engagez à fournir Vous-même), qu'il stipule que tout utilisateur
|
||||
peut librement redistribuer le Programme selon les conditions de la
|
||||
Licence Publique Générale GNU, et qu'il montre à tout utilisateur
|
||||
comment lire une copie de celle-ci (exception : si le
|
||||
Programme original est interactif mais n'affiche pas un tel
|
||||
message en temps normal, tout travail dérivé de ce Programme ne
|
||||
sera pas non plus contraint de l'afficher).
|
||||
|
||||
Toutes ces conditions s'appliquent à l'ensemble des modifications. Si des
|
||||
éléments identifiables de ce travail ne sont pas dérivés du Programme
|
||||
et peuvent être raisonnablement considérés comme indépendants, la
|
||||
présente Licence ne s'applique pas à ces éléments lorsque Vous les
|
||||
distribuez seuls.
|
||||
Mais, si Vous distribuez ces mêmes éléments comme partie d'un ensemble
|
||||
cohérent dont le reste est basé sur un Programme soumis à la Licence, ils
|
||||
lui sont également soumis, et la Licence s'étend ainsi à l'ensemble du
|
||||
produit, quel qu'en soit l'auteur.
|
||||
|
||||
Cet article n'a pas pour but de s'approprier ou de contester vos
|
||||
droits sur un travail entièrement réalisé par Vous, mais plutôt
|
||||
d'ouvrir droit à un contrôle de la libre distribution de tout travail
|
||||
dérivé ou collectif basé sur le Programme.
|
||||
|
||||
En outre, toute fusion d'un autre travail, non basé sur le Programme,
|
||||
avec le Programme (ou avec un travail dérivé de ce dernier),
|
||||
effectuée sur un support de stockage ou de distribution, ne fait pas
|
||||
tomber cet autre travail sous le contrôle de la Licence.
|
||||
|
||||
_Article 3.
|
||||
Vous pouvez copier et distribuer le Programme (ou tout travail dérivé
|
||||
selon les conditions énoncées dans l'article 1) sous forme de code
|
||||
objet ou exécutable, selon les termes des articles 0 et 1, à
|
||||
condition de respecter les clauses suivantes :
|
||||
|
||||
|
||||
a) Fournir le code source complet du Programme,
|
||||
sous une forme lisible par un ordinateur et selon les termes des
|
||||
articles 0 et 1, sur un support habituellement utilisé pour
|
||||
l'échange de données ou,
|
||||
|
||||
b) Faire une offre écrite, valable pendant au moins trois ans,
|
||||
prévoyant de donner à tout tiers qui en fera la demande une copie,
|
||||
sous forme lisible par un ordinateur, du code source correspondant,
|
||||
pour un tarif n'excédant pas le coût de la copie, selon
|
||||
les termes des articles 0 et 1, sur un support couramment utilisé
|
||||
pour l'échange de données informatiques ou,
|
||||
|
||||
c) Informer le destinataire de l'endroit où le code source peut
|
||||
être obtenu (cette solution n'est recevable que dans le cas d'une
|
||||
distribution non commerciale, et uniquement si Vous avez reçu le
|
||||
Programme sous forme de code objet ou exécutable avec l'offre
|
||||
prévue à l'alinéa b ci-dessus).
|
||||
|
||||
|
||||
Le code source d'un travail désigne la forme de cet ouvrage sous laquelle
|
||||
les modifications sont les plus aisées. Sont ainsi désignés la totalité
|
||||
du code source de tous les modules composant un Programme exécutable, de
|
||||
même que tout fichier de définition associé, ainsi que les scripts
|
||||
utilisés pour effectuer la compilation et l'installation du Programme
|
||||
exécutable. Toutefois, l'environnement standard de développement du
|
||||
système d'exploitation mis en oeuvre (source ou binaire) -- compilateurs,
|
||||
bibliothèques, noyau, etc. -- constitue une exception, sauf si ces
|
||||
éléments sont diffusés en même temps que le Programme exécutable.
|
||||
|
||||
Si la distribution de l'exécutable ou du code objet consiste à offrir un
|
||||
accès permettant de copier le Programme depuis un endroit particulier,
|
||||
l'offre d'un accès équivalent pour se procurer le code source au même
|
||||
endroit est considéré comme une distribution de ce code source, même si
|
||||
l'utilisateur choisit de ne pas profiter de cette offre.
|
||||
|
||||
_Article 4.
|
||||
Vous ne pouvez pas copier, modifier, céder, déposer ou distribuer le
|
||||
Programme d'une autre manière que l'autorise la Licence Publique Générale.
|
||||
Toute tentative de ce type annule immédiatement vos droits d'utilisation du
|
||||
Programme sous cette Licence. Toutefois, les tiers ayant reçu de Vous
|
||||
des copies du Programme ou le droit d'utiliser ces copies continueront à
|
||||
bénéficier de leur droit d'utilisation tant qu'ils respecteront pleinement
|
||||
les conditions de la Licence.
|
||||
|
||||
_Article 5.
|
||||
Ne l'ayant pas signée, Vous n'êtes pas obligé d'accepter cette
|
||||
Licence. Cependant, rien d'autre ne Vous autorise à modifier ou distribuer
|
||||
le Programme ou quelque travaux dérivés : la loi l'interdit tant que Vous
|
||||
n'acceptez pas les termes de cette Licence. En conséquence, en modifiant
|
||||
ou en distribuant le Programme (ou tout travail basé sur lui), Vous
|
||||
acceptez implicitement tous les termes et conditions de cette Licence.
|
||||
|
||||
_Article 6.
|
||||
La diffusion d'un Programme (ou de tout travail dérivé) suppose l'envoi
|
||||
simultané d'une licence autorisant la copie, la distribution ou la
|
||||
modification du Programme, aux termes et conditions de la Licence. Vous
|
||||
n'avez pas le droit d'imposer de restrictions supplémentaires aux droits
|
||||
transmis au destinataire. Vous n'êtes pas responsable du respect de la
|
||||
Licence par un tiers.
|
||||
|
||||
_Article 7.
|
||||
Si, à la suite d'une décision de Justice, d'une plainte en contrefaçon ou
|
||||
pour toute autre raison (liée ou non à la contrefaçon), des conditions Vous
|
||||
sont imposées (que ce soit par ordonnance, accord amiable ou autre) qui se
|
||||
révèlent incompatibles avec les termes de la présente Licence, Vous n'êtes
|
||||
pas pour autant dégagé des obligations liées à celle-ci : si Vous ne
|
||||
pouvez concilier vos obligations légales ou autres avec les conditions de
|
||||
cette Licence, Vous ne devez pas distribuer le Programme.
|
||||
|
||||
Si une partie quelconque de cet article est invalidée ou inapplicable
|
||||
pour quelque raison que ce soit, le reste de l'article continue de
|
||||
s'appliquer et l'intégralité de l'article s'appliquera en toute autre
|
||||
circonstance.
|
||||
|
||||
Le présent article n'a pas pour but de Vous pousser à enfreindre des
|
||||
droits ou des dispositions légales ni en contester la validité ;
|
||||
son seul objectif est de protéger l'intégrité du système de
|
||||
distribution du Logiciel Libre. De nombreuses personnes ont
|
||||
généreusement contribué à la large gamme de Programmes distribuée
|
||||
de cette façon en toute confiance il appartient à chaque
|
||||
auteur/donateur de décider de diffuser ses Programmes selon les critères
|
||||
de son choix.
|
||||
|
||||
_Article 8.
|
||||
Si la distribution et/ou l'utilisation du Programme est limitée dans
|
||||
certains pays par des brevets ou des droits sur des interfaces, le
|
||||
détenteur original des droits qui place le Programme sous la Licence
|
||||
Publique Générale peut ajouter explicitement une clause de limitation
|
||||
géographique excluant ces pays. Dans ce cas, cette clause devient une
|
||||
partie intégrante de la Licence.
|
||||
|
||||
_Article 9.
|
||||
La Free Software Foundation se réserve le droit de publier périodiquement
|
||||
des mises à jour ou de nouvelles versions de la Licence. Rédigées dans le
|
||||
même esprit que la présente version, elles seront cependant susceptibles
|
||||
d'en modifier certains détails à mesure que de nouveaux problèmes se font
|
||||
jour.
|
||||
|
||||
Chaque version possède un numéro distinct. Si le Programme précise un
|
||||
numéro de version de cette Licence et « toute version ultérieure », Vous
|
||||
avez le choix de suivre les termes et conditions de cette version ou de
|
||||
toute autre version plus récente publiée par la Free Software Foundation.
|
||||
Si le Programme ne spécifie aucun numéro de version, Vous pouvez alors
|
||||
choisir l'une quelconque des versions publiées par la Free Software
|
||||
Foundation.
|
||||
|
||||
|
||||
_Article 10.
|
||||
Si Vous désirez incorporer des éléments du Programme dans d'autres
|
||||
Programmes libres dont les conditions de distribution diffèrent, Vous devez
|
||||
écrire à l'auteur pour lui en demander la permission. Pour ce qui est des
|
||||
Programmes directement déposés par la Free Software Foundation,
|
||||
écrivez-nous : une exception est toujours envisageable. Notre décision
|
||||
sera basée sur notre volonté de préserver la liberté de notre Programme ou
|
||||
de ses dérivés et celle de promouvoir le partage et la réutilisation du
|
||||
logiciel en général.
|
||||
|
||||
|
||||
LIMITATION DE GARANTIE
|
||||
|
||||
|
||||
_Article 11.
|
||||
|
||||
Parce que l'utilisation de ce Programme est libre et gratuite, aucune
|
||||
garantie n'est fournie, comme le permet la loi. Sauf mention écrite, les
|
||||
détenteurs du copyright et/ou les tiers fournissent le Programme en l'état,
|
||||
sans aucune sorte de garantie explicite ou implicite, y compris les
|
||||
garanties de commercialisation ou d'adaptation dans un but
|
||||
particulier. Vous assumez tous les risques quant à la qualité et aux effets
|
||||
du Programme. Si le Programme est défectueux, Vous assumez le coût de tous
|
||||
les services, corrections ou réparations nécessaires.
|
||||
|
||||
|
||||
_Article 12.
|
||||
Sauf lorsqu'explicitement prévu par la Loi ou accepté par écrit, ni le
|
||||
détenteur des droits, ni quiconque autorisé à modifier et/ou redistribuer
|
||||
le Programme comme il est permis ci-dessus ne pourra être tenu pour
|
||||
responsable de tout dommage direct, indirect, secondaire ou accessoire
|
||||
(pertes financières dues au manque à gagner, à l'interruption d'activités
|
||||
ou à la perte de données, etc., découlant de l'utilisation du Programme ou
|
||||
de l'impossibilité d'utiliser celui-ci).
|
||||
|
||||
|
||||
|
||||
FIN DES TERMES ET CONDITIONS
|
||||
|
||||
Comment appliquer ces directives à vos nouveaux programmes
|
||||
|
||||
Si vous développez un nouveau programme et désirez en faire bénéficier tout
|
||||
un chacun, la meilleure méthode est d'en faire un Logiciel Libre que tout
|
||||
le monde pourra redistribuer et modifier selon les termes de la Licence
|
||||
Publique Générale.
|
||||
|
||||
Pour cela, insérez les indications suivantes dans votre programme (il est
|
||||
préférable et plus sûr de les faire figurer au début de chaque fichier
|
||||
source dans tous les cas, chaque module source devra comporter au
|
||||
minimum la ligne de « copyright » et indiquer où résident toutes les
|
||||
autres indications):
|
||||
|
||||
|
||||
((une ligne pour donner le nom du programme et donner une idée de
|
||||
sa finalité))
|
||||
Copyright (C) 19xx ((nom de l'auteur))
|
||||
|
||||
Ce programme est libre, vous pouvez le redistribuer et/ou le modifier
|
||||
selon les termes de la Licence Publique Générale GNU publiée par la
|
||||
Free Software Foundation (version 2 ou bien toute autre version
|
||||
ultérieure choisie par vous).
|
||||
|
||||
Ce programme est distribué car potentiellement utile, mais SANS AUCUNE
|
||||
GARANTIE, ni explicite ni implicite, y compris les garanties de
|
||||
commercialisation ou d'adaptation dans un but spécifique.
|
||||
Reportez-vous à la Licence Publique Générale GNU pour plus de détails.
|
||||
|
||||
Vous devez avoir reçu une copie de la Licence Publique Générale GNU
|
||||
en même temps que ce programme si ce n'est pas le cas, écrivez à la
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307, États-Unis.
|
||||
|
||||
|
||||
Ajoutez également votre adresse électronique, le cas échéant, ainsi que
|
||||
votre adresse postale.
|
||||
|
||||
Si le programme est interactif, faites-lui afficher un court avertissement
|
||||
du type de celui-ci à chaque invocation:
|
||||
|
||||
|
||||
...(nom du programme) version 69, Copyright (C) 19aa nom de l'auteur
|
||||
|
||||
...(nom du programme) est fourni sans AUCUNE GARANTIE.
|
||||
Pour plus de détails, tapez `g'.
|
||||
|
||||
Ce programme est libre et vous êtes encouragé à le redistribuer
|
||||
sous certaines conditions tapez `c' pour plus de détails.
|
||||
|
||||
Les commandes hypothétiques `g' et `c' doivent afficher les sections
|
||||
appropriées de la Licence Publique Générale GNU. Bien entendu, vous pouvez
|
||||
implanter ces commandes comme bon vous semble : options dans un menu,
|
||||
ou bien accessibles d'un clic de souris, etc., tout dépend de votre
|
||||
programme.
|
||||
|
||||
Si vous officiez en tant que programmeur, n'omettez pas de demander à votre
|
||||
employeur, votre établissement scolaire ou autres de signer une décharge
|
||||
stipulant leur renoncement aux droits qu'ils pourraient avoir sur le
|
||||
programme:
|
||||
>
|
||||
...((employeur, école...)) déclare par la présente ne pas revendiquer
|
||||
de droits sur le programme « (nom du programme) » réalisé par ...((nom de
|
||||
l'auteur)).
|
||||
|
||||
((signature du responsable)), ...((date)),
|
||||
...((nom et qualité du responsable)).
|
||||
|
||||
La Licence Publique Générale ne permet pas d'inclure votre programme dans
|
||||
des logiciels sous licence commerciale spécifique. Si votre programme est
|
||||
une fonction de bibliothèque, vous jugerez probablement plus judicieux de
|
||||
le faire relever de la Licence Générale de Bibliothèque GNU (LGPL) plutôt
|
||||
que de la présente.
|
||||
|
||||
|
||||
Traduction de R.Cougnec et M.Makarévitch
|
||||
|
||||
Introduction :
|
||||
This is an unofficial translation of the GNU General Public License into
|
||||
French. It was not published by the Free Software Foundation, and does not
|
||||
legally state the distribution terms for software that uses the GNU
|
||||
GPL--only the original English text of the GNU GPL does that. However, we
|
||||
hope that this translation will help French speakers understand the GNU GPL
|
||||
better.
|
||||
|
||||
Voici une adaptation non officielle de la Licence Publique Générale du
|
||||
projet GNU. Elle n'a pas été publiée par la Free Software Foundation et son
|
||||
contenu n'a aucune portée légale car seule la version anglaise de ce
|
||||
document détaille le mode de distribution des logiciels sous GNU GPL. Nous
|
||||
espérons cependant qu'elle permettra aux francophones de mieux comprendre
|
||||
la GPL.
|
||||
|
||||
-Licence Publique Générale GNU Version 2, Juin 1991-
|
||||
|
||||
Copyright (c) Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307
|
||||
États-Unis, 1989, 1991.
|
||||
La copie et la distribution de copies exactes de ce document sont
|
||||
autorisées, mais aucune modification n'est permise.
|
||||
|
||||
Préambule
|
||||
|
||||
Les licences d'utilisation de la plupart des programmes sont définies pour
|
||||
limiter ou supprimer toute liberté à l'utilisateur. À l'inverse, la
|
||||
Licence Publique Générale (General Public License) est destinée à vous
|
||||
garantir la liberté de partager et de modifier les logiciels libres, et de
|
||||
s'assurer que ces logiciels sont effectivement accessibles à tout
|
||||
utilisateur.
|
||||
|
||||
Cette Licence Publique Générale s'applique à la plupart des programmes de
|
||||
la Free Software Foundation, comme à tout autre programme dont l'auteur
|
||||
l'aura décidé (d'autres logiciels de la FSF sont couverts pour leur part
|
||||
par la Licence Publique Générale pour Bibliothèques GNU (LGPL)). Vous
|
||||
pouvez aussi appliquer les termes de cette Licence à vos propres
|
||||
programmes, si vous le désirez.
|
||||
|
||||
_Liberté des logiciels ne signifie pas nécessairement
|
||||
gratuité. Notre Licence est conçue pour vous assurer la liberté de
|
||||
distribuer des copies des programmes, gratuitement ou non, de recevoir le
|
||||
code source ou de pouvoir l'obtenir, de modifier les programmes ou d'en
|
||||
utiliser des éléments dans de nouveaux programmes libres, en sachant que
|
||||
vous y êtes autorisé.
|
||||
|
||||
Afin de garantir ces droits, nous avons dû introduire des restrictions
|
||||
interdisant à quiconque de vous les refuser ou de vous demander d'y
|
||||
renoncer. Ces restrictions vous imposent en retour certaines obligations si
|
||||
vous distribuez ou modifiez des copies de programmes protégés par la
|
||||
Licence. En d'autre termes, il vous incombera en ce cas de :
|
||||
|
||||
-transmettre aux destinataires tous les droits que vous possédez,
|
||||
-expédier aux destinataires le code source ou bien tenir celui-ci à
|
||||
leur disposition,
|
||||
-leur remettre cette Licence afin qu'ils prennent connaissance de
|
||||
leurs droits.
|
||||
|
||||
|
||||
Nous protégeons vos droits de deux façons : d'abord par le copyright
|
||||
du logiciel, ensuite par la remise de cette Licence qui vous autorise
|
||||
légalement à copier, distribuer et/ou modifier le logiciel.
|
||||
|
||||
En outre, pour protéger chaque auteur ainsi que la FSF, nous affirmons
|
||||
solennellement que le programme concerné ne fait l'objet d'aucune garantie.
|
||||
Si un tiers le modifie puis le redistribue, tous ceux qui en recevront une
|
||||
copie doivent savoir qu'il ne s'agit pas de l'original afin qu'une copie
|
||||
défectueuse n'entache pas la réputation de l'auteur du logiciel.
|
||||
|
||||
Enfin, tout programme libre est sans cesse menacé par des dépôts de
|
||||
brevets. Nous souhaitons à tout prix éviter que des distributeurs puissent
|
||||
déposer des brevets sur les Logiciels Libres pour leur propre compte. Pour
|
||||
éviter cela, nous stipulons bien que tout dépôt éventuel de brevet doit
|
||||
accorder expressément à tout un chacun le libre usage du produit.
|
||||
|
||||
Les dispositions précises et les conditions de copie, de distribution et de
|
||||
modification de nos logiciels sont les suivantes :
|
||||
|
||||
Stipulations et conditions relatives à la copie, la distribution et la modification
|
||||
|
||||
|
||||
_Article 0.
|
||||
La présente Licence s'applique à tout Programme (ou autre travail) où
|
||||
figure une note, placée par le détenteur des droits, stipulant que ledit
|
||||
Programme ou travail peut être distribué selon les termes de la présente
|
||||
Licence. Le terme Programme désigne aussi bien le Programme
|
||||
lui-même que tout travail qui en est dérivé selon la loi, c'est-à-dire
|
||||
tout ouvrage reproduisant le Programme ou une partie de celui-ci, à
|
||||
l'identique ou bien modifié, et/ou traduit dans une autre langue (la
|
||||
traduction est considérée comme une modification). Chaque personne
|
||||
concernée par la Licence Publique Générale sera désignée par le terme
|
||||
Vous.
|
||||
|
||||
Les activités autres que copie, distribution et modification ne sont pas
|
||||
couvertes par la présente Licence et sortent de son cadre. Rien ne
|
||||
restreint l'utilisation du Programme et les données issues de celui-ci ne
|
||||
sont couvertes que si leur contenu constitue un travail basé sur le
|
||||
logiciel (indépendemment du fait d'avoir été réalisé en lançant le
|
||||
Programme). Tout dépend de ce que le Programme est censé produire.
|
||||
|
||||
_Article 1.
|
||||
Vous pouvez copier et distribuer des copies conformes du code source du
|
||||
Programme, tel que Vous l'avez reçu, sur n'importe quel support, à
|
||||
condition de placer sur chaque copie un copyright approprié et une
|
||||
restriction de garantie, de ne pas modifier ou omettre toutes les
|
||||
stipulations se référant à la présente Licence et à la limitation de
|
||||
garantie, et de fournir avec toute copie du Programme un exemplaire de la
|
||||
Licence.
|
||||
|
||||
Vous pouvez demander une rétribution financière pour la réalisation de la
|
||||
copie et demeurez libre de proposer une garantie assurée par vos soins,
|
||||
moyennant finances.
|
||||
|
||||
_Article 2.
|
||||
Vous pouvez modifier votre copie ou vos copies du Programme ou partie de
|
||||
celui-ci, ou d'un travail basé sur ce Programme, et copier et distribuer
|
||||
ces modifications selon les termes de l'article 1, à condition de Vous
|
||||
conformer également aux conditions suivantes :
|
||||
|
||||
|
||||
a) Ajouter aux fichiers modifiés l'indication très claire des
|
||||
modifications effectuées, ainsi que la date de chaque changement.
|
||||
|
||||
b) Distribuer sous les termes de la Licence Publique Générale
|
||||
l'ensemble de toute réalisation contenant tout ou partie du
|
||||
Programme, avec ou sans modifications.
|
||||
c) Si le Programme modifié lit des commandes de manière interactive
|
||||
lors de son exécution, faire en sorte qu'il affiche, lors d'une
|
||||
invocation ordinaire, le copyright approprié en indiquant
|
||||
clairement la limitation de garantie (ou la garantie que Vous Vous
|
||||
engagez à fournir Vous-même), qu'il stipule que tout utilisateur
|
||||
peut librement redistribuer le Programme selon les conditions de la
|
||||
Licence Publique Générale GNU, et qu'il montre à tout utilisateur
|
||||
comment lire une copie de celle-ci (exception : si le
|
||||
Programme original est interactif mais n'affiche pas un tel
|
||||
message en temps normal, tout travail dérivé de ce Programme ne
|
||||
sera pas non plus contraint de l'afficher).
|
||||
|
||||
Toutes ces conditions s'appliquent à l'ensemble des modifications. Si des
|
||||
éléments identifiables de ce travail ne sont pas dérivés du Programme
|
||||
et peuvent être raisonnablement considérés comme indépendants, la
|
||||
présente Licence ne s'applique pas à ces éléments lorsque Vous les
|
||||
distribuez seuls.
|
||||
Mais, si Vous distribuez ces mêmes éléments comme partie d'un ensemble
|
||||
cohérent dont le reste est basé sur un Programme soumis à la Licence, ils
|
||||
lui sont également soumis, et la Licence s'étend ainsi à l'ensemble du
|
||||
produit, quel qu'en soit l'auteur.
|
||||
|
||||
Cet article n'a pas pour but de s'approprier ou de contester vos
|
||||
droits sur un travail entièrement réalisé par Vous, mais plutôt
|
||||
d'ouvrir droit à un contrôle de la libre distribution de tout travail
|
||||
dérivé ou collectif basé sur le Programme.
|
||||
|
||||
En outre, toute fusion d'un autre travail, non basé sur le Programme,
|
||||
avec le Programme (ou avec un travail dérivé de ce dernier),
|
||||
effectuée sur un support de stockage ou de distribution, ne fait pas
|
||||
tomber cet autre travail sous le contrôle de la Licence.
|
||||
|
||||
_Article 3.
|
||||
Vous pouvez copier et distribuer le Programme (ou tout travail dérivé
|
||||
selon les conditions énoncées dans l'article 1) sous forme de code
|
||||
objet ou exécutable, selon les termes des articles 0 et 1, à
|
||||
condition de respecter les clauses suivantes :
|
||||
|
||||
|
||||
a) Fournir le code source complet du Programme,
|
||||
sous une forme lisible par un ordinateur et selon les termes des
|
||||
articles 0 et 1, sur un support habituellement utilisé pour
|
||||
l'échange de données ou,
|
||||
|
||||
b) Faire une offre écrite, valable pendant au moins trois ans,
|
||||
prévoyant de donner à tout tiers qui en fera la demande une copie,
|
||||
sous forme lisible par un ordinateur, du code source correspondant,
|
||||
pour un tarif n'excédant pas le coût de la copie, selon
|
||||
les termes des articles 0 et 1, sur un support couramment utilisé
|
||||
pour l'échange de données informatiques ou,
|
||||
|
||||
c) Informer le destinataire de l'endroit où le code source peut
|
||||
être obtenu (cette solution n'est recevable que dans le cas d'une
|
||||
distribution non commerciale, et uniquement si Vous avez reçu le
|
||||
Programme sous forme de code objet ou exécutable avec l'offre
|
||||
prévue à l'alinéa b ci-dessus).
|
||||
|
||||
|
||||
Le code source d'un travail désigne la forme de cet ouvrage sous laquelle
|
||||
les modifications sont les plus aisées. Sont ainsi désignés la totalité
|
||||
du code source de tous les modules composant un Programme exécutable, de
|
||||
même que tout fichier de définition associé, ainsi que les scripts
|
||||
utilisés pour effectuer la compilation et l'installation du Programme
|
||||
exécutable. Toutefois, l'environnement standard de développement du
|
||||
système d'exploitation mis en oeuvre (source ou binaire) -- compilateurs,
|
||||
bibliothèques, noyau, etc. -- constitue une exception, sauf si ces
|
||||
éléments sont diffusés en même temps que le Programme exécutable.
|
||||
|
||||
Si la distribution de l'exécutable ou du code objet consiste à offrir un
|
||||
accès permettant de copier le Programme depuis un endroit particulier,
|
||||
l'offre d'un accès équivalent pour se procurer le code source au même
|
||||
endroit est considéré comme une distribution de ce code source, même si
|
||||
l'utilisateur choisit de ne pas profiter de cette offre.
|
||||
|
||||
_Article 4.
|
||||
Vous ne pouvez pas copier, modifier, céder, déposer ou distribuer le
|
||||
Programme d'une autre manière que l'autorise la Licence Publique Générale.
|
||||
Toute tentative de ce type annule immédiatement vos droits d'utilisation du
|
||||
Programme sous cette Licence. Toutefois, les tiers ayant reçu de Vous
|
||||
des copies du Programme ou le droit d'utiliser ces copies continueront à
|
||||
bénéficier de leur droit d'utilisation tant qu'ils respecteront pleinement
|
||||
les conditions de la Licence.
|
||||
|
||||
_Article 5.
|
||||
Ne l'ayant pas signée, Vous n'êtes pas obligé d'accepter cette
|
||||
Licence. Cependant, rien d'autre ne Vous autorise à modifier ou distribuer
|
||||
le Programme ou quelque travaux dérivés : la loi l'interdit tant que Vous
|
||||
n'acceptez pas les termes de cette Licence. En conséquence, en modifiant
|
||||
ou en distribuant le Programme (ou tout travail basé sur lui), Vous
|
||||
acceptez implicitement tous les termes et conditions de cette Licence.
|
||||
|
||||
_Article 6.
|
||||
La diffusion d'un Programme (ou de tout travail dérivé) suppose l'envoi
|
||||
simultané d'une licence autorisant la copie, la distribution ou la
|
||||
modification du Programme, aux termes et conditions de la Licence. Vous
|
||||
n'avez pas le droit d'imposer de restrictions supplémentaires aux droits
|
||||
transmis au destinataire. Vous n'êtes pas responsable du respect de la
|
||||
Licence par un tiers.
|
||||
|
||||
_Article 7.
|
||||
Si, à la suite d'une décision de Justice, d'une plainte en contrefaçon ou
|
||||
pour toute autre raison (liée ou non à la contrefaçon), des conditions Vous
|
||||
sont imposées (que ce soit par ordonnance, accord amiable ou autre) qui se
|
||||
révèlent incompatibles avec les termes de la présente Licence, Vous n'êtes
|
||||
pas pour autant dégagé des obligations liées à celle-ci : si Vous ne
|
||||
pouvez concilier vos obligations légales ou autres avec les conditions de
|
||||
cette Licence, Vous ne devez pas distribuer le Programme.
|
||||
|
||||
Si une partie quelconque de cet article est invalidée ou inapplicable
|
||||
pour quelque raison que ce soit, le reste de l'article continue de
|
||||
s'appliquer et l'intégralité de l'article s'appliquera en toute autre
|
||||
circonstance.
|
||||
|
||||
Le présent article n'a pas pour but de Vous pousser à enfreindre des
|
||||
droits ou des dispositions légales ni en contester la validité ;
|
||||
son seul objectif est de protéger l'intégrité du système de
|
||||
distribution du Logiciel Libre. De nombreuses personnes ont
|
||||
généreusement contribué à la large gamme de Programmes distribuée
|
||||
de cette façon en toute confiance il appartient à chaque
|
||||
auteur/donateur de décider de diffuser ses Programmes selon les critères
|
||||
de son choix.
|
||||
|
||||
_Article 8.
|
||||
Si la distribution et/ou l'utilisation du Programme est limitée dans
|
||||
certains pays par des brevets ou des droits sur des interfaces, le
|
||||
détenteur original des droits qui place le Programme sous la Licence
|
||||
Publique Générale peut ajouter explicitement une clause de limitation
|
||||
géographique excluant ces pays. Dans ce cas, cette clause devient une
|
||||
partie intégrante de la Licence.
|
||||
|
||||
_Article 9.
|
||||
La Free Software Foundation se réserve le droit de publier périodiquement
|
||||
des mises à jour ou de nouvelles versions de la Licence. Rédigées dans le
|
||||
même esprit que la présente version, elles seront cependant susceptibles
|
||||
d'en modifier certains détails à mesure que de nouveaux problèmes se font
|
||||
jour.
|
||||
|
||||
Chaque version possède un numéro distinct. Si le Programme précise un
|
||||
numéro de version de cette Licence et « toute version ultérieure », Vous
|
||||
avez le choix de suivre les termes et conditions de cette version ou de
|
||||
toute autre version plus récente publiée par la Free Software Foundation.
|
||||
Si le Programme ne spécifie aucun numéro de version, Vous pouvez alors
|
||||
choisir l'une quelconque des versions publiées par la Free Software
|
||||
Foundation.
|
||||
|
||||
|
||||
_Article 10.
|
||||
Si Vous désirez incorporer des éléments du Programme dans d'autres
|
||||
Programmes libres dont les conditions de distribution diffèrent, Vous devez
|
||||
écrire à l'auteur pour lui en demander la permission. Pour ce qui est des
|
||||
Programmes directement déposés par la Free Software Foundation,
|
||||
écrivez-nous : une exception est toujours envisageable. Notre décision
|
||||
sera basée sur notre volonté de préserver la liberté de notre Programme ou
|
||||
de ses dérivés et celle de promouvoir le partage et la réutilisation du
|
||||
logiciel en général.
|
||||
|
||||
|
||||
LIMITATION DE GARANTIE
|
||||
|
||||
|
||||
_Article 11.
|
||||
|
||||
Parce que l'utilisation de ce Programme est libre et gratuite, aucune
|
||||
garantie n'est fournie, comme le permet la loi. Sauf mention écrite, les
|
||||
détenteurs du copyright et/ou les tiers fournissent le Programme en l'état,
|
||||
sans aucune sorte de garantie explicite ou implicite, y compris les
|
||||
garanties de commercialisation ou d'adaptation dans un but
|
||||
particulier. Vous assumez tous les risques quant à la qualité et aux effets
|
||||
du Programme. Si le Programme est défectueux, Vous assumez le coût de tous
|
||||
les services, corrections ou réparations nécessaires.
|
||||
|
||||
|
||||
_Article 12.
|
||||
Sauf lorsqu'explicitement prévu par la Loi ou accepté par écrit, ni le
|
||||
détenteur des droits, ni quiconque autorisé à modifier et/ou redistribuer
|
||||
le Programme comme il est permis ci-dessus ne pourra être tenu pour
|
||||
responsable de tout dommage direct, indirect, secondaire ou accessoire
|
||||
(pertes financières dues au manque à gagner, à l'interruption d'activités
|
||||
ou à la perte de données, etc., découlant de l'utilisation du Programme ou
|
||||
de l'impossibilité d'utiliser celui-ci).
|
||||
|
||||
|
||||
|
||||
FIN DES TERMES ET CONDITIONS
|
||||
|
||||
Comment appliquer ces directives à vos nouveaux programmes
|
||||
|
||||
Si vous développez un nouveau programme et désirez en faire bénéficier tout
|
||||
un chacun, la meilleure méthode est d'en faire un Logiciel Libre que tout
|
||||
le monde pourra redistribuer et modifier selon les termes de la Licence
|
||||
Publique Générale.
|
||||
|
||||
Pour cela, insérez les indications suivantes dans votre programme (il est
|
||||
préférable et plus sûr de les faire figurer au début de chaque fichier
|
||||
source dans tous les cas, chaque module source devra comporter au
|
||||
minimum la ligne de « copyright » et indiquer où résident toutes les
|
||||
autres indications):
|
||||
|
||||
|
||||
((une ligne pour donner le nom du programme et donner une idée de
|
||||
sa finalité))
|
||||
Copyright (C) 19xx ((nom de l'auteur))
|
||||
|
||||
Ce programme est libre, vous pouvez le redistribuer et/ou le modifier
|
||||
selon les termes de la Licence Publique Générale GNU publiée par la
|
||||
Free Software Foundation (version 2 ou bien toute autre version
|
||||
ultérieure choisie par vous).
|
||||
|
||||
Ce programme est distribué car potentiellement utile, mais SANS AUCUNE
|
||||
GARANTIE, ni explicite ni implicite, y compris les garanties de
|
||||
commercialisation ou d'adaptation dans un but spécifique.
|
||||
Reportez-vous à la Licence Publique Générale GNU pour plus de détails.
|
||||
|
||||
Vous devez avoir reçu une copie de la Licence Publique Générale GNU
|
||||
en même temps que ce programme si ce n'est pas le cas, écrivez à la
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307, États-Unis.
|
||||
|
||||
|
||||
Ajoutez également votre adresse électronique, le cas échéant, ainsi que
|
||||
votre adresse postale.
|
||||
|
||||
Si le programme est interactif, faites-lui afficher un court avertissement
|
||||
du type de celui-ci à chaque invocation:
|
||||
|
||||
|
||||
...(nom du programme) version 69, Copyright (C) 19aa nom de l'auteur
|
||||
|
||||
...(nom du programme) est fourni sans AUCUNE GARANTIE.
|
||||
Pour plus de détails, tapez `g'.
|
||||
|
||||
Ce programme est libre et vous êtes encouragé à le redistribuer
|
||||
sous certaines conditions tapez `c' pour plus de détails.
|
||||
|
||||
Les commandes hypothétiques `g' et `c' doivent afficher les sections
|
||||
appropriées de la Licence Publique Générale GNU. Bien entendu, vous pouvez
|
||||
implanter ces commandes comme bon vous semble : options dans un menu,
|
||||
ou bien accessibles d'un clic de souris, etc., tout dépend de votre
|
||||
programme.
|
||||
|
||||
Si vous officiez en tant que programmeur, n'omettez pas de demander à votre
|
||||
employeur, votre établissement scolaire ou autres de signer une décharge
|
||||
stipulant leur renoncement aux droits qu'ils pourraient avoir sur le
|
||||
programme:
|
||||
>
|
||||
...((employeur, école...)) déclare par la présente ne pas revendiquer
|
||||
de droits sur le programme « (nom du programme) » réalisé par ...((nom de
|
||||
l'auteur)).
|
||||
|
||||
((signature du responsable)), ...((date)),
|
||||
...((nom et qualité du responsable)).
|
||||
|
||||
La Licence Publique Générale ne permet pas d'inclure votre programme dans
|
||||
des logiciels sous licence commerciale spécifique. Si votre programme est
|
||||
une fonction de bibliothèque, vous jugerez probablement plus judicieux de
|
||||
le faire relever de la Licence Générale de Bibliothèque GNU (LGPL) plutôt
|
||||
que de la présente.
|
||||
|
||||
==========================================================================
|
||||
@ -1,390 +1,390 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
Traduction de R.Cougnec et M.Makarévitch
|
||||
|
||||
Introduction :
|
||||
This is an unofficial translation of the GNU General Public License into
|
||||
French. It was not published by the Free Software Foundation, and does not
|
||||
legally state the distribution terms for software that uses the GNU
|
||||
GPL--only the original English text of the GNU GPL does that. However, we
|
||||
hope that this translation will help French speakers understand the GNU GPL
|
||||
better.
|
||||
|
||||
Voici une adaptation non officielle de la Licence Publique Générale du
|
||||
projet GNU. Elle n'a pas été publiée par la Free Software Foundation et son
|
||||
contenu n'a aucune portée légale car seule la version anglaise de ce
|
||||
document détaille le mode de distribution des logiciels sous GNU GPL. Nous
|
||||
espérons cependant qu'elle permettra aux francophones de mieux comprendre
|
||||
la GPL.
|
||||
|
||||
-Licence Publique Générale GNU Version 2, Juin 1991-
|
||||
|
||||
Copyright (c) Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307
|
||||
États-Unis, 1989, 1991.
|
||||
La copie et la distribution de copies exactes de ce document sont
|
||||
autorisées, mais aucune modification n'est permise.
|
||||
|
||||
Préambule
|
||||
|
||||
Les licences d'utilisation de la plupart des programmes sont définies pour
|
||||
limiter ou supprimer toute liberté à l'utilisateur. À l'inverse, la
|
||||
Licence Publique Générale (General Public License) est destinée à vous
|
||||
garantir la liberté de partager et de modifier les logiciels libres, et de
|
||||
s'assurer que ces logiciels sont effectivement accessibles à tout
|
||||
utilisateur.
|
||||
|
||||
Cette Licence Publique Générale s'applique à la plupart des programmes de
|
||||
la Free Software Foundation, comme à tout autre programme dont l'auteur
|
||||
l'aura décidé (d'autres logiciels de la FSF sont couverts pour leur part
|
||||
par la Licence Publique Générale pour Bibliothèques GNU (LGPL)). Vous
|
||||
pouvez aussi appliquer les termes de cette Licence à vos propres
|
||||
programmes, si vous le désirez.
|
||||
|
||||
_Liberté des logiciels ne signifie pas nécessairement
|
||||
gratuité. Notre Licence est conçue pour vous assurer la liberté de
|
||||
distribuer des copies des programmes, gratuitement ou non, de recevoir le
|
||||
code source ou de pouvoir l'obtenir, de modifier les programmes ou d'en
|
||||
utiliser des éléments dans de nouveaux programmes libres, en sachant que
|
||||
vous y êtes autorisé.
|
||||
|
||||
Afin de garantir ces droits, nous avons dû introduire des restrictions
|
||||
interdisant à quiconque de vous les refuser ou de vous demander d'y
|
||||
renoncer. Ces restrictions vous imposent en retour certaines obligations si
|
||||
vous distribuez ou modifiez des copies de programmes protégés par la
|
||||
Licence. En d'autre termes, il vous incombera en ce cas de :
|
||||
|
||||
-transmettre aux destinataires tous les droits que vous possédez,
|
||||
-expédier aux destinataires le code source ou bien tenir celui-ci à
|
||||
leur disposition,
|
||||
-leur remettre cette Licence afin qu'ils prennent connaissance de
|
||||
leurs droits.
|
||||
|
||||
|
||||
Nous protégeons vos droits de deux façons : d'abord par le copyright
|
||||
du logiciel, ensuite par la remise de cette Licence qui vous autorise
|
||||
légalement à copier, distribuer et/ou modifier le logiciel.
|
||||
|
||||
En outre, pour protéger chaque auteur ainsi que la FSF, nous affirmons
|
||||
solennellement que le programme concerné ne fait l'objet d'aucune garantie.
|
||||
Si un tiers le modifie puis le redistribue, tous ceux qui en recevront une
|
||||
copie doivent savoir qu'il ne s'agit pas de l'original afin qu'une copie
|
||||
défectueuse n'entache pas la réputation de l'auteur du logiciel.
|
||||
|
||||
Enfin, tout programme libre est sans cesse menacé par des dépôts de
|
||||
brevets. Nous souhaitons à tout prix éviter que des distributeurs puissent
|
||||
déposer des brevets sur les Logiciels Libres pour leur propre compte. Pour
|
||||
éviter cela, nous stipulons bien que tout dépôt éventuel de brevet doit
|
||||
accorder expressément à tout un chacun le libre usage du produit.
|
||||
|
||||
Les dispositions précises et les conditions de copie, de distribution et de
|
||||
modification de nos logiciels sont les suivantes :
|
||||
|
||||
Stipulations et conditions relatives à la copie, la distribution et la modification
|
||||
|
||||
|
||||
_Article 0.
|
||||
La présente Licence s'applique à tout Programme (ou autre travail) où
|
||||
figure une note, placée par le détenteur des droits, stipulant que ledit
|
||||
Programme ou travail peut être distribué selon les termes de la présente
|
||||
Licence. Le terme Programme désigne aussi bien le Programme
|
||||
lui-même que tout travail qui en est dérivé selon la loi, c'est-à-dire
|
||||
tout ouvrage reproduisant le Programme ou une partie de celui-ci, à
|
||||
l'identique ou bien modifié, et/ou traduit dans une autre langue (la
|
||||
traduction est considérée comme une modification). Chaque personne
|
||||
concernée par la Licence Publique Générale sera désignée par le terme
|
||||
Vous.
|
||||
|
||||
Les activités autres que copie, distribution et modification ne sont pas
|
||||
couvertes par la présente Licence et sortent de son cadre. Rien ne
|
||||
restreint l'utilisation du Programme et les données issues de celui-ci ne
|
||||
sont couvertes que si leur contenu constitue un travail basé sur le
|
||||
logiciel (indépendemment du fait d'avoir été réalisé en lançant le
|
||||
Programme). Tout dépend de ce que le Programme est censé produire.
|
||||
|
||||
_Article 1.
|
||||
Vous pouvez copier et distribuer des copies conformes du code source du
|
||||
Programme, tel que Vous l'avez reçu, sur n'importe quel support, à
|
||||
condition de placer sur chaque copie un copyright approprié et une
|
||||
restriction de garantie, de ne pas modifier ou omettre toutes les
|
||||
stipulations se référant à la présente Licence et à la limitation de
|
||||
garantie, et de fournir avec toute copie du Programme un exemplaire de la
|
||||
Licence.
|
||||
|
||||
Vous pouvez demander une rétribution financière pour la réalisation de la
|
||||
copie et demeurez libre de proposer une garantie assurée par vos soins,
|
||||
moyennant finances.
|
||||
|
||||
_Article 2.
|
||||
Vous pouvez modifier votre copie ou vos copies du Programme ou partie de
|
||||
celui-ci, ou d'un travail basé sur ce Programme, et copier et distribuer
|
||||
ces modifications selon les termes de l'article 1, à condition de Vous
|
||||
conformer également aux conditions suivantes :
|
||||
|
||||
|
||||
a) Ajouter aux fichiers modifiés l'indication très claire des
|
||||
modifications effectuées, ainsi que la date de chaque changement.
|
||||
|
||||
b) Distribuer sous les termes de la Licence Publique Générale
|
||||
l'ensemble de toute réalisation contenant tout ou partie du
|
||||
Programme, avec ou sans modifications.
|
||||
c) Si le Programme modifié lit des commandes de manière interactive
|
||||
lors de son exécution, faire en sorte qu'il affiche, lors d'une
|
||||
invocation ordinaire, le copyright approprié en indiquant
|
||||
clairement la limitation de garantie (ou la garantie que Vous Vous
|
||||
engagez à fournir Vous-même), qu'il stipule que tout utilisateur
|
||||
peut librement redistribuer le Programme selon les conditions de la
|
||||
Licence Publique Générale GNU, et qu'il montre à tout utilisateur
|
||||
comment lire une copie de celle-ci (exception : si le
|
||||
Programme original est interactif mais n'affiche pas un tel
|
||||
message en temps normal, tout travail dérivé de ce Programme ne
|
||||
sera pas non plus contraint de l'afficher).
|
||||
|
||||
Toutes ces conditions s'appliquent à l'ensemble des modifications. Si des
|
||||
éléments identifiables de ce travail ne sont pas dérivés du Programme
|
||||
et peuvent être raisonnablement considérés comme indépendants, la
|
||||
présente Licence ne s'applique pas à ces éléments lorsque Vous les
|
||||
distribuez seuls.
|
||||
Mais, si Vous distribuez ces mêmes éléments comme partie d'un ensemble
|
||||
cohérent dont le reste est basé sur un Programme soumis à la Licence, ils
|
||||
lui sont également soumis, et la Licence s'étend ainsi à l'ensemble du
|
||||
produit, quel qu'en soit l'auteur.
|
||||
|
||||
Cet article n'a pas pour but de s'approprier ou de contester vos
|
||||
droits sur un travail entièrement réalisé par Vous, mais plutôt
|
||||
d'ouvrir droit à un contrôle de la libre distribution de tout travail
|
||||
dérivé ou collectif basé sur le Programme.
|
||||
|
||||
En outre, toute fusion d'un autre travail, non basé sur le Programme,
|
||||
avec le Programme (ou avec un travail dérivé de ce dernier),
|
||||
effectuée sur un support de stockage ou de distribution, ne fait pas
|
||||
tomber cet autre travail sous le contrôle de la Licence.
|
||||
|
||||
_Article 3.
|
||||
Vous pouvez copier et distribuer le Programme (ou tout travail dérivé
|
||||
selon les conditions énoncées dans l'article 1) sous forme de code
|
||||
objet ou exécutable, selon les termes des articles 0 et 1, à
|
||||
condition de respecter les clauses suivantes :
|
||||
|
||||
|
||||
a) Fournir le code source complet du Programme,
|
||||
sous une forme lisible par un ordinateur et selon les termes des
|
||||
articles 0 et 1, sur un support habituellement utilisé pour
|
||||
l'échange de données ou,
|
||||
|
||||
b) Faire une offre écrite, valable pendant au moins trois ans,
|
||||
prévoyant de donner à tout tiers qui en fera la demande une copie,
|
||||
sous forme lisible par un ordinateur, du code source correspondant,
|
||||
pour un tarif n'excédant pas le coût de la copie, selon
|
||||
les termes des articles 0 et 1, sur un support couramment utilisé
|
||||
pour l'échange de données informatiques ou,
|
||||
|
||||
c) Informer le destinataire de l'endroit où le code source peut
|
||||
être obtenu (cette solution n'est recevable que dans le cas d'une
|
||||
distribution non commerciale, et uniquement si Vous avez reçu le
|
||||
Programme sous forme de code objet ou exécutable avec l'offre
|
||||
prévue à l'alinéa b ci-dessus).
|
||||
|
||||
|
||||
Le code source d'un travail désigne la forme de cet ouvrage sous laquelle
|
||||
les modifications sont les plus aisées. Sont ainsi désignés la totalité
|
||||
du code source de tous les modules composant un Programme exécutable, de
|
||||
même que tout fichier de définition associé, ainsi que les scripts
|
||||
utilisés pour effectuer la compilation et l'installation du Programme
|
||||
exécutable. Toutefois, l'environnement standard de développement du
|
||||
système d'exploitation mis en oeuvre (source ou binaire) -- compilateurs,
|
||||
bibliothèques, noyau, etc. -- constitue une exception, sauf si ces
|
||||
éléments sont diffusés en même temps que le Programme exécutable.
|
||||
|
||||
Si la distribution de l'exécutable ou du code objet consiste à offrir un
|
||||
accès permettant de copier le Programme depuis un endroit particulier,
|
||||
l'offre d'un accès équivalent pour se procurer le code source au même
|
||||
endroit est considéré comme une distribution de ce code source, même si
|
||||
l'utilisateur choisit de ne pas profiter de cette offre.
|
||||
|
||||
_Article 4.
|
||||
Vous ne pouvez pas copier, modifier, céder, déposer ou distribuer le
|
||||
Programme d'une autre manière que l'autorise la Licence Publique Générale.
|
||||
Toute tentative de ce type annule immédiatement vos droits d'utilisation du
|
||||
Programme sous cette Licence. Toutefois, les tiers ayant reçu de Vous
|
||||
des copies du Programme ou le droit d'utiliser ces copies continueront à
|
||||
bénéficier de leur droit d'utilisation tant qu'ils respecteront pleinement
|
||||
les conditions de la Licence.
|
||||
|
||||
_Article 5.
|
||||
Ne l'ayant pas signée, Vous n'êtes pas obligé d'accepter cette
|
||||
Licence. Cependant, rien d'autre ne Vous autorise à modifier ou distribuer
|
||||
le Programme ou quelque travaux dérivés : la loi l'interdit tant que Vous
|
||||
n'acceptez pas les termes de cette Licence. En conséquence, en modifiant
|
||||
ou en distribuant le Programme (ou tout travail basé sur lui), Vous
|
||||
acceptez implicitement tous les termes et conditions de cette Licence.
|
||||
|
||||
_Article 6.
|
||||
La diffusion d'un Programme (ou de tout travail dérivé) suppose l'envoi
|
||||
simultané d'une licence autorisant la copie, la distribution ou la
|
||||
modification du Programme, aux termes et conditions de la Licence. Vous
|
||||
n'avez pas le droit d'imposer de restrictions supplémentaires aux droits
|
||||
transmis au destinataire. Vous n'êtes pas responsable du respect de la
|
||||
Licence par un tiers.
|
||||
|
||||
_Article 7.
|
||||
Si, à la suite d'une décision de Justice, d'une plainte en contrefaçon ou
|
||||
pour toute autre raison (liée ou non à la contrefaçon), des conditions Vous
|
||||
sont imposées (que ce soit par ordonnance, accord amiable ou autre) qui se
|
||||
révèlent incompatibles avec les termes de la présente Licence, Vous n'êtes
|
||||
pas pour autant dégagé des obligations liées à celle-ci : si Vous ne
|
||||
pouvez concilier vos obligations légales ou autres avec les conditions de
|
||||
cette Licence, Vous ne devez pas distribuer le Programme.
|
||||
|
||||
Si une partie quelconque de cet article est invalidée ou inapplicable
|
||||
pour quelque raison que ce soit, le reste de l'article continue de
|
||||
s'appliquer et l'intégralité de l'article s'appliquera en toute autre
|
||||
circonstance.
|
||||
|
||||
Le présent article n'a pas pour but de Vous pousser à enfreindre des
|
||||
droits ou des dispositions légales ni en contester la validité ;
|
||||
son seul objectif est de protéger l'intégrité du système de
|
||||
distribution du Logiciel Libre. De nombreuses personnes ont
|
||||
généreusement contribué à la large gamme de Programmes distribuée
|
||||
de cette façon en toute confiance il appartient à chaque
|
||||
auteur/donateur de décider de diffuser ses Programmes selon les critères
|
||||
de son choix.
|
||||
|
||||
_Article 8.
|
||||
Si la distribution et/ou l'utilisation du Programme est limitée dans
|
||||
certains pays par des brevets ou des droits sur des interfaces, le
|
||||
détenteur original des droits qui place le Programme sous la Licence
|
||||
Publique Générale peut ajouter explicitement une clause de limitation
|
||||
géographique excluant ces pays. Dans ce cas, cette clause devient une
|
||||
partie intégrante de la Licence.
|
||||
|
||||
_Article 9.
|
||||
La Free Software Foundation se réserve le droit de publier périodiquement
|
||||
des mises à jour ou de nouvelles versions de la Licence. Rédigées dans le
|
||||
même esprit que la présente version, elles seront cependant susceptibles
|
||||
d'en modifier certains détails à mesure que de nouveaux problèmes se font
|
||||
jour.
|
||||
|
||||
Chaque version possède un numéro distinct. Si le Programme précise un
|
||||
numéro de version de cette Licence et « toute version ultérieure », Vous
|
||||
avez le choix de suivre les termes et conditions de cette version ou de
|
||||
toute autre version plus récente publiée par la Free Software Foundation.
|
||||
Si le Programme ne spécifie aucun numéro de version, Vous pouvez alors
|
||||
choisir l'une quelconque des versions publiées par la Free Software
|
||||
Foundation.
|
||||
|
||||
|
||||
_Article 10.
|
||||
Si Vous désirez incorporer des éléments du Programme dans d'autres
|
||||
Programmes libres dont les conditions de distribution diffèrent, Vous devez
|
||||
écrire à l'auteur pour lui en demander la permission. Pour ce qui est des
|
||||
Programmes directement déposés par la Free Software Foundation,
|
||||
écrivez-nous : une exception est toujours envisageable. Notre décision
|
||||
sera basée sur notre volonté de préserver la liberté de notre Programme ou
|
||||
de ses dérivés et celle de promouvoir le partage et la réutilisation du
|
||||
logiciel en général.
|
||||
|
||||
|
||||
LIMITATION DE GARANTIE
|
||||
|
||||
|
||||
_Article 11.
|
||||
|
||||
Parce que l'utilisation de ce Programme est libre et gratuite, aucune
|
||||
garantie n'est fournie, comme le permet la loi. Sauf mention écrite, les
|
||||
détenteurs du copyright et/ou les tiers fournissent le Programme en l'état,
|
||||
sans aucune sorte de garantie explicite ou implicite, y compris les
|
||||
garanties de commercialisation ou d'adaptation dans un but
|
||||
particulier. Vous assumez tous les risques quant à la qualité et aux effets
|
||||
du Programme. Si le Programme est défectueux, Vous assumez le coût de tous
|
||||
les services, corrections ou réparations nécessaires.
|
||||
|
||||
|
||||
_Article 12.
|
||||
Sauf lorsqu'explicitement prévu par la Loi ou accepté par écrit, ni le
|
||||
détenteur des droits, ni quiconque autorisé à modifier et/ou redistribuer
|
||||
le Programme comme il est permis ci-dessus ne pourra être tenu pour
|
||||
responsable de tout dommage direct, indirect, secondaire ou accessoire
|
||||
(pertes financières dues au manque à gagner, à l'interruption d'activités
|
||||
ou à la perte de données, etc., découlant de l'utilisation du Programme ou
|
||||
de l'impossibilité d'utiliser celui-ci).
|
||||
|
||||
|
||||
|
||||
FIN DES TERMES ET CONDITIONS
|
||||
|
||||
Comment appliquer ces directives à vos nouveaux programmes
|
||||
|
||||
Si vous développez un nouveau programme et désirez en faire bénéficier tout
|
||||
un chacun, la meilleure méthode est d'en faire un Logiciel Libre que tout
|
||||
le monde pourra redistribuer et modifier selon les termes de la Licence
|
||||
Publique Générale.
|
||||
|
||||
Pour cela, insérez les indications suivantes dans votre programme (il est
|
||||
préférable et plus sûr de les faire figurer au début de chaque fichier
|
||||
source dans tous les cas, chaque module source devra comporter au
|
||||
minimum la ligne de « copyright » et indiquer où résident toutes les
|
||||
autres indications):
|
||||
|
||||
|
||||
((une ligne pour donner le nom du programme et donner une idée de
|
||||
sa finalité))
|
||||
Copyright (C) 19xx ((nom de l'auteur))
|
||||
|
||||
Ce programme est libre, vous pouvez le redistribuer et/ou le modifier
|
||||
selon les termes de la Licence Publique Générale GNU publiée par la
|
||||
Free Software Foundation (version 2 ou bien toute autre version
|
||||
ultérieure choisie par vous).
|
||||
|
||||
Ce programme est distribué car potentiellement utile, mais SANS AUCUNE
|
||||
GARANTIE, ni explicite ni implicite, y compris les garanties de
|
||||
commercialisation ou d'adaptation dans un but spécifique.
|
||||
Reportez-vous à la Licence Publique Générale GNU pour plus de détails.
|
||||
|
||||
Vous devez avoir reçu une copie de la Licence Publique Générale GNU
|
||||
en même temps que ce programme si ce n'est pas le cas, écrivez à la
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307, États-Unis.
|
||||
|
||||
|
||||
Ajoutez également votre adresse électronique, le cas échéant, ainsi que
|
||||
votre adresse postale.
|
||||
|
||||
Si le programme est interactif, faites-lui afficher un court avertissement
|
||||
du type de celui-ci à chaque invocation:
|
||||
|
||||
|
||||
...(nom du programme) version 69, Copyright (C) 19aa nom de l'auteur
|
||||
|
||||
...(nom du programme) est fourni sans AUCUNE GARANTIE.
|
||||
Pour plus de détails, tapez `g'.
|
||||
|
||||
Ce programme est libre et vous êtes encouragé à le redistribuer
|
||||
sous certaines conditions tapez `c' pour plus de détails.
|
||||
|
||||
Les commandes hypothétiques `g' et `c' doivent afficher les sections
|
||||
appropriées de la Licence Publique Générale GNU. Bien entendu, vous pouvez
|
||||
implanter ces commandes comme bon vous semble : options dans un menu,
|
||||
ou bien accessibles d'un clic de souris, etc., tout dépend de votre
|
||||
programme.
|
||||
|
||||
Si vous officiez en tant que programmeur, n'omettez pas de demander à votre
|
||||
employeur, votre établissement scolaire ou autres de signer une décharge
|
||||
stipulant leur renoncement aux droits qu'ils pourraient avoir sur le
|
||||
programme:
|
||||
>
|
||||
...((employeur, école...)) déclare par la présente ne pas revendiquer
|
||||
de droits sur le programme « (nom du programme) » réalisé par ...((nom de
|
||||
l'auteur)).
|
||||
|
||||
((signature du responsable)), ...((date)),
|
||||
...((nom et qualité du responsable)).
|
||||
|
||||
La Licence Publique Générale ne permet pas d'inclure votre programme dans
|
||||
des logiciels sous licence commerciale spécifique. Si votre programme est
|
||||
une fonction de bibliothèque, vous jugerez probablement plus judicieux de
|
||||
le faire relever de la Licence Générale de Bibliothèque GNU (LGPL) plutôt
|
||||
que de la présente.
|
||||
|
||||
|
||||
Traduction de R.Cougnec et M.Makarévitch
|
||||
|
||||
Introduction :
|
||||
This is an unofficial translation of the GNU General Public License into
|
||||
French. It was not published by the Free Software Foundation, and does not
|
||||
legally state the distribution terms for software that uses the GNU
|
||||
GPL--only the original English text of the GNU GPL does that. However, we
|
||||
hope that this translation will help French speakers understand the GNU GPL
|
||||
better.
|
||||
|
||||
Voici une adaptation non officielle de la Licence Publique Générale du
|
||||
projet GNU. Elle n'a pas été publiée par la Free Software Foundation et son
|
||||
contenu n'a aucune portée légale car seule la version anglaise de ce
|
||||
document détaille le mode de distribution des logiciels sous GNU GPL. Nous
|
||||
espérons cependant qu'elle permettra aux francophones de mieux comprendre
|
||||
la GPL.
|
||||
|
||||
-Licence Publique Générale GNU Version 2, Juin 1991-
|
||||
|
||||
Copyright (c) Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307
|
||||
États-Unis, 1989, 1991.
|
||||
La copie et la distribution de copies exactes de ce document sont
|
||||
autorisées, mais aucune modification n'est permise.
|
||||
|
||||
Préambule
|
||||
|
||||
Les licences d'utilisation de la plupart des programmes sont définies pour
|
||||
limiter ou supprimer toute liberté à l'utilisateur. À l'inverse, la
|
||||
Licence Publique Générale (General Public License) est destinée à vous
|
||||
garantir la liberté de partager et de modifier les logiciels libres, et de
|
||||
s'assurer que ces logiciels sont effectivement accessibles à tout
|
||||
utilisateur.
|
||||
|
||||
Cette Licence Publique Générale s'applique à la plupart des programmes de
|
||||
la Free Software Foundation, comme à tout autre programme dont l'auteur
|
||||
l'aura décidé (d'autres logiciels de la FSF sont couverts pour leur part
|
||||
par la Licence Publique Générale pour Bibliothèques GNU (LGPL)). Vous
|
||||
pouvez aussi appliquer les termes de cette Licence à vos propres
|
||||
programmes, si vous le désirez.
|
||||
|
||||
_Liberté des logiciels ne signifie pas nécessairement
|
||||
gratuité. Notre Licence est conçue pour vous assurer la liberté de
|
||||
distribuer des copies des programmes, gratuitement ou non, de recevoir le
|
||||
code source ou de pouvoir l'obtenir, de modifier les programmes ou d'en
|
||||
utiliser des éléments dans de nouveaux programmes libres, en sachant que
|
||||
vous y êtes autorisé.
|
||||
|
||||
Afin de garantir ces droits, nous avons dû introduire des restrictions
|
||||
interdisant à quiconque de vous les refuser ou de vous demander d'y
|
||||
renoncer. Ces restrictions vous imposent en retour certaines obligations si
|
||||
vous distribuez ou modifiez des copies de programmes protégés par la
|
||||
Licence. En d'autre termes, il vous incombera en ce cas de :
|
||||
|
||||
-transmettre aux destinataires tous les droits que vous possédez,
|
||||
-expédier aux destinataires le code source ou bien tenir celui-ci à
|
||||
leur disposition,
|
||||
-leur remettre cette Licence afin qu'ils prennent connaissance de
|
||||
leurs droits.
|
||||
|
||||
|
||||
Nous protégeons vos droits de deux façons : d'abord par le copyright
|
||||
du logiciel, ensuite par la remise de cette Licence qui vous autorise
|
||||
légalement à copier, distribuer et/ou modifier le logiciel.
|
||||
|
||||
En outre, pour protéger chaque auteur ainsi que la FSF, nous affirmons
|
||||
solennellement que le programme concerné ne fait l'objet d'aucune garantie.
|
||||
Si un tiers le modifie puis le redistribue, tous ceux qui en recevront une
|
||||
copie doivent savoir qu'il ne s'agit pas de l'original afin qu'une copie
|
||||
défectueuse n'entache pas la réputation de l'auteur du logiciel.
|
||||
|
||||
Enfin, tout programme libre est sans cesse menacé par des dépôts de
|
||||
brevets. Nous souhaitons à tout prix éviter que des distributeurs puissent
|
||||
déposer des brevets sur les Logiciels Libres pour leur propre compte. Pour
|
||||
éviter cela, nous stipulons bien que tout dépôt éventuel de brevet doit
|
||||
accorder expressément à tout un chacun le libre usage du produit.
|
||||
|
||||
Les dispositions précises et les conditions de copie, de distribution et de
|
||||
modification de nos logiciels sont les suivantes :
|
||||
|
||||
Stipulations et conditions relatives à la copie, la distribution et la modification
|
||||
|
||||
|
||||
_Article 0.
|
||||
La présente Licence s'applique à tout Programme (ou autre travail) où
|
||||
figure une note, placée par le détenteur des droits, stipulant que ledit
|
||||
Programme ou travail peut être distribué selon les termes de la présente
|
||||
Licence. Le terme Programme désigne aussi bien le Programme
|
||||
lui-même que tout travail qui en est dérivé selon la loi, c'est-à-dire
|
||||
tout ouvrage reproduisant le Programme ou une partie de celui-ci, à
|
||||
l'identique ou bien modifié, et/ou traduit dans une autre langue (la
|
||||
traduction est considérée comme une modification). Chaque personne
|
||||
concernée par la Licence Publique Générale sera désignée par le terme
|
||||
Vous.
|
||||
|
||||
Les activités autres que copie, distribution et modification ne sont pas
|
||||
couvertes par la présente Licence et sortent de son cadre. Rien ne
|
||||
restreint l'utilisation du Programme et les données issues de celui-ci ne
|
||||
sont couvertes que si leur contenu constitue un travail basé sur le
|
||||
logiciel (indépendemment du fait d'avoir été réalisé en lançant le
|
||||
Programme). Tout dépend de ce que le Programme est censé produire.
|
||||
|
||||
_Article 1.
|
||||
Vous pouvez copier et distribuer des copies conformes du code source du
|
||||
Programme, tel que Vous l'avez reçu, sur n'importe quel support, à
|
||||
condition de placer sur chaque copie un copyright approprié et une
|
||||
restriction de garantie, de ne pas modifier ou omettre toutes les
|
||||
stipulations se référant à la présente Licence et à la limitation de
|
||||
garantie, et de fournir avec toute copie du Programme un exemplaire de la
|
||||
Licence.
|
||||
|
||||
Vous pouvez demander une rétribution financière pour la réalisation de la
|
||||
copie et demeurez libre de proposer une garantie assurée par vos soins,
|
||||
moyennant finances.
|
||||
|
||||
_Article 2.
|
||||
Vous pouvez modifier votre copie ou vos copies du Programme ou partie de
|
||||
celui-ci, ou d'un travail basé sur ce Programme, et copier et distribuer
|
||||
ces modifications selon les termes de l'article 1, à condition de Vous
|
||||
conformer également aux conditions suivantes :
|
||||
|
||||
|
||||
a) Ajouter aux fichiers modifiés l'indication très claire des
|
||||
modifications effectuées, ainsi que la date de chaque changement.
|
||||
|
||||
b) Distribuer sous les termes de la Licence Publique Générale
|
||||
l'ensemble de toute réalisation contenant tout ou partie du
|
||||
Programme, avec ou sans modifications.
|
||||
c) Si le Programme modifié lit des commandes de manière interactive
|
||||
lors de son exécution, faire en sorte qu'il affiche, lors d'une
|
||||
invocation ordinaire, le copyright approprié en indiquant
|
||||
clairement la limitation de garantie (ou la garantie que Vous Vous
|
||||
engagez à fournir Vous-même), qu'il stipule que tout utilisateur
|
||||
peut librement redistribuer le Programme selon les conditions de la
|
||||
Licence Publique Générale GNU, et qu'il montre à tout utilisateur
|
||||
comment lire une copie de celle-ci (exception : si le
|
||||
Programme original est interactif mais n'affiche pas un tel
|
||||
message en temps normal, tout travail dérivé de ce Programme ne
|
||||
sera pas non plus contraint de l'afficher).
|
||||
|
||||
Toutes ces conditions s'appliquent à l'ensemble des modifications. Si des
|
||||
éléments identifiables de ce travail ne sont pas dérivés du Programme
|
||||
et peuvent être raisonnablement considérés comme indépendants, la
|
||||
présente Licence ne s'applique pas à ces éléments lorsque Vous les
|
||||
distribuez seuls.
|
||||
Mais, si Vous distribuez ces mêmes éléments comme partie d'un ensemble
|
||||
cohérent dont le reste est basé sur un Programme soumis à la Licence, ils
|
||||
lui sont également soumis, et la Licence s'étend ainsi à l'ensemble du
|
||||
produit, quel qu'en soit l'auteur.
|
||||
|
||||
Cet article n'a pas pour but de s'approprier ou de contester vos
|
||||
droits sur un travail entièrement réalisé par Vous, mais plutôt
|
||||
d'ouvrir droit à un contrôle de la libre distribution de tout travail
|
||||
dérivé ou collectif basé sur le Programme.
|
||||
|
||||
En outre, toute fusion d'un autre travail, non basé sur le Programme,
|
||||
avec le Programme (ou avec un travail dérivé de ce dernier),
|
||||
effectuée sur un support de stockage ou de distribution, ne fait pas
|
||||
tomber cet autre travail sous le contrôle de la Licence.
|
||||
|
||||
_Article 3.
|
||||
Vous pouvez copier et distribuer le Programme (ou tout travail dérivé
|
||||
selon les conditions énoncées dans l'article 1) sous forme de code
|
||||
objet ou exécutable, selon les termes des articles 0 et 1, à
|
||||
condition de respecter les clauses suivantes :
|
||||
|
||||
|
||||
a) Fournir le code source complet du Programme,
|
||||
sous une forme lisible par un ordinateur et selon les termes des
|
||||
articles 0 et 1, sur un support habituellement utilisé pour
|
||||
l'échange de données ou,
|
||||
|
||||
b) Faire une offre écrite, valable pendant au moins trois ans,
|
||||
prévoyant de donner à tout tiers qui en fera la demande une copie,
|
||||
sous forme lisible par un ordinateur, du code source correspondant,
|
||||
pour un tarif n'excédant pas le coût de la copie, selon
|
||||
les termes des articles 0 et 1, sur un support couramment utilisé
|
||||
pour l'échange de données informatiques ou,
|
||||
|
||||
c) Informer le destinataire de l'endroit où le code source peut
|
||||
être obtenu (cette solution n'est recevable que dans le cas d'une
|
||||
distribution non commerciale, et uniquement si Vous avez reçu le
|
||||
Programme sous forme de code objet ou exécutable avec l'offre
|
||||
prévue à l'alinéa b ci-dessus).
|
||||
|
||||
|
||||
Le code source d'un travail désigne la forme de cet ouvrage sous laquelle
|
||||
les modifications sont les plus aisées. Sont ainsi désignés la totalité
|
||||
du code source de tous les modules composant un Programme exécutable, de
|
||||
même que tout fichier de définition associé, ainsi que les scripts
|
||||
utilisés pour effectuer la compilation et l'installation du Programme
|
||||
exécutable. Toutefois, l'environnement standard de développement du
|
||||
système d'exploitation mis en oeuvre (source ou binaire) -- compilateurs,
|
||||
bibliothèques, noyau, etc. -- constitue une exception, sauf si ces
|
||||
éléments sont diffusés en même temps que le Programme exécutable.
|
||||
|
||||
Si la distribution de l'exécutable ou du code objet consiste à offrir un
|
||||
accès permettant de copier le Programme depuis un endroit particulier,
|
||||
l'offre d'un accès équivalent pour se procurer le code source au même
|
||||
endroit est considéré comme une distribution de ce code source, même si
|
||||
l'utilisateur choisit de ne pas profiter de cette offre.
|
||||
|
||||
_Article 4.
|
||||
Vous ne pouvez pas copier, modifier, céder, déposer ou distribuer le
|
||||
Programme d'une autre manière que l'autorise la Licence Publique Générale.
|
||||
Toute tentative de ce type annule immédiatement vos droits d'utilisation du
|
||||
Programme sous cette Licence. Toutefois, les tiers ayant reçu de Vous
|
||||
des copies du Programme ou le droit d'utiliser ces copies continueront à
|
||||
bénéficier de leur droit d'utilisation tant qu'ils respecteront pleinement
|
||||
les conditions de la Licence.
|
||||
|
||||
_Article 5.
|
||||
Ne l'ayant pas signée, Vous n'êtes pas obligé d'accepter cette
|
||||
Licence. Cependant, rien d'autre ne Vous autorise à modifier ou distribuer
|
||||
le Programme ou quelque travaux dérivés : la loi l'interdit tant que Vous
|
||||
n'acceptez pas les termes de cette Licence. En conséquence, en modifiant
|
||||
ou en distribuant le Programme (ou tout travail basé sur lui), Vous
|
||||
acceptez implicitement tous les termes et conditions de cette Licence.
|
||||
|
||||
_Article 6.
|
||||
La diffusion d'un Programme (ou de tout travail dérivé) suppose l'envoi
|
||||
simultané d'une licence autorisant la copie, la distribution ou la
|
||||
modification du Programme, aux termes et conditions de la Licence. Vous
|
||||
n'avez pas le droit d'imposer de restrictions supplémentaires aux droits
|
||||
transmis au destinataire. Vous n'êtes pas responsable du respect de la
|
||||
Licence par un tiers.
|
||||
|
||||
_Article 7.
|
||||
Si, à la suite d'une décision de Justice, d'une plainte en contrefaçon ou
|
||||
pour toute autre raison (liée ou non à la contrefaçon), des conditions Vous
|
||||
sont imposées (que ce soit par ordonnance, accord amiable ou autre) qui se
|
||||
révèlent incompatibles avec les termes de la présente Licence, Vous n'êtes
|
||||
pas pour autant dégagé des obligations liées à celle-ci : si Vous ne
|
||||
pouvez concilier vos obligations légales ou autres avec les conditions de
|
||||
cette Licence, Vous ne devez pas distribuer le Programme.
|
||||
|
||||
Si une partie quelconque de cet article est invalidée ou inapplicable
|
||||
pour quelque raison que ce soit, le reste de l'article continue de
|
||||
s'appliquer et l'intégralité de l'article s'appliquera en toute autre
|
||||
circonstance.
|
||||
|
||||
Le présent article n'a pas pour but de Vous pousser à enfreindre des
|
||||
droits ou des dispositions légales ni en contester la validité ;
|
||||
son seul objectif est de protéger l'intégrité du système de
|
||||
distribution du Logiciel Libre. De nombreuses personnes ont
|
||||
généreusement contribué à la large gamme de Programmes distribuée
|
||||
de cette façon en toute confiance il appartient à chaque
|
||||
auteur/donateur de décider de diffuser ses Programmes selon les critères
|
||||
de son choix.
|
||||
|
||||
_Article 8.
|
||||
Si la distribution et/ou l'utilisation du Programme est limitée dans
|
||||
certains pays par des brevets ou des droits sur des interfaces, le
|
||||
détenteur original des droits qui place le Programme sous la Licence
|
||||
Publique Générale peut ajouter explicitement une clause de limitation
|
||||
géographique excluant ces pays. Dans ce cas, cette clause devient une
|
||||
partie intégrante de la Licence.
|
||||
|
||||
_Article 9.
|
||||
La Free Software Foundation se réserve le droit de publier périodiquement
|
||||
des mises à jour ou de nouvelles versions de la Licence. Rédigées dans le
|
||||
même esprit que la présente version, elles seront cependant susceptibles
|
||||
d'en modifier certains détails à mesure que de nouveaux problèmes se font
|
||||
jour.
|
||||
|
||||
Chaque version possède un numéro distinct. Si le Programme précise un
|
||||
numéro de version de cette Licence et « toute version ultérieure », Vous
|
||||
avez le choix de suivre les termes et conditions de cette version ou de
|
||||
toute autre version plus récente publiée par la Free Software Foundation.
|
||||
Si le Programme ne spécifie aucun numéro de version, Vous pouvez alors
|
||||
choisir l'une quelconque des versions publiées par la Free Software
|
||||
Foundation.
|
||||
|
||||
|
||||
_Article 10.
|
||||
Si Vous désirez incorporer des éléments du Programme dans d'autres
|
||||
Programmes libres dont les conditions de distribution diffèrent, Vous devez
|
||||
écrire à l'auteur pour lui en demander la permission. Pour ce qui est des
|
||||
Programmes directement déposés par la Free Software Foundation,
|
||||
écrivez-nous : une exception est toujours envisageable. Notre décision
|
||||
sera basée sur notre volonté de préserver la liberté de notre Programme ou
|
||||
de ses dérivés et celle de promouvoir le partage et la réutilisation du
|
||||
logiciel en général.
|
||||
|
||||
|
||||
LIMITATION DE GARANTIE
|
||||
|
||||
|
||||
_Article 11.
|
||||
|
||||
Parce que l'utilisation de ce Programme est libre et gratuite, aucune
|
||||
garantie n'est fournie, comme le permet la loi. Sauf mention écrite, les
|
||||
détenteurs du copyright et/ou les tiers fournissent le Programme en l'état,
|
||||
sans aucune sorte de garantie explicite ou implicite, y compris les
|
||||
garanties de commercialisation ou d'adaptation dans un but
|
||||
particulier. Vous assumez tous les risques quant à la qualité et aux effets
|
||||
du Programme. Si le Programme est défectueux, Vous assumez le coût de tous
|
||||
les services, corrections ou réparations nécessaires.
|
||||
|
||||
|
||||
_Article 12.
|
||||
Sauf lorsqu'explicitement prévu par la Loi ou accepté par écrit, ni le
|
||||
détenteur des droits, ni quiconque autorisé à modifier et/ou redistribuer
|
||||
le Programme comme il est permis ci-dessus ne pourra être tenu pour
|
||||
responsable de tout dommage direct, indirect, secondaire ou accessoire
|
||||
(pertes financières dues au manque à gagner, à l'interruption d'activités
|
||||
ou à la perte de données, etc., découlant de l'utilisation du Programme ou
|
||||
de l'impossibilité d'utiliser celui-ci).
|
||||
|
||||
|
||||
|
||||
FIN DES TERMES ET CONDITIONS
|
||||
|
||||
Comment appliquer ces directives à vos nouveaux programmes
|
||||
|
||||
Si vous développez un nouveau programme et désirez en faire bénéficier tout
|
||||
un chacun, la meilleure méthode est d'en faire un Logiciel Libre que tout
|
||||
le monde pourra redistribuer et modifier selon les termes de la Licence
|
||||
Publique Générale.
|
||||
|
||||
Pour cela, insérez les indications suivantes dans votre programme (il est
|
||||
préférable et plus sûr de les faire figurer au début de chaque fichier
|
||||
source dans tous les cas, chaque module source devra comporter au
|
||||
minimum la ligne de « copyright » et indiquer où résident toutes les
|
||||
autres indications):
|
||||
|
||||
|
||||
((une ligne pour donner le nom du programme et donner une idée de
|
||||
sa finalité))
|
||||
Copyright (C) 19xx ((nom de l'auteur))
|
||||
|
||||
Ce programme est libre, vous pouvez le redistribuer et/ou le modifier
|
||||
selon les termes de la Licence Publique Générale GNU publiée par la
|
||||
Free Software Foundation (version 2 ou bien toute autre version
|
||||
ultérieure choisie par vous).
|
||||
|
||||
Ce programme est distribué car potentiellement utile, mais SANS AUCUNE
|
||||
GARANTIE, ni explicite ni implicite, y compris les garanties de
|
||||
commercialisation ou d'adaptation dans un but spécifique.
|
||||
Reportez-vous à la Licence Publique Générale GNU pour plus de détails.
|
||||
|
||||
Vous devez avoir reçu une copie de la Licence Publique Générale GNU
|
||||
en même temps que ce programme si ce n'est pas le cas, écrivez à la
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307, États-Unis.
|
||||
|
||||
|
||||
Ajoutez également votre adresse électronique, le cas échéant, ainsi que
|
||||
votre adresse postale.
|
||||
|
||||
Si le programme est interactif, faites-lui afficher un court avertissement
|
||||
du type de celui-ci à chaque invocation:
|
||||
|
||||
|
||||
...(nom du programme) version 69, Copyright (C) 19aa nom de l'auteur
|
||||
|
||||
...(nom du programme) est fourni sans AUCUNE GARANTIE.
|
||||
Pour plus de détails, tapez `g'.
|
||||
|
||||
Ce programme est libre et vous êtes encouragé à le redistribuer
|
||||
sous certaines conditions tapez `c' pour plus de détails.
|
||||
|
||||
Les commandes hypothétiques `g' et `c' doivent afficher les sections
|
||||
appropriées de la Licence Publique Générale GNU. Bien entendu, vous pouvez
|
||||
implanter ces commandes comme bon vous semble : options dans un menu,
|
||||
ou bien accessibles d'un clic de souris, etc., tout dépend de votre
|
||||
programme.
|
||||
|
||||
Si vous officiez en tant que programmeur, n'omettez pas de demander à votre
|
||||
employeur, votre établissement scolaire ou autres de signer une décharge
|
||||
stipulant leur renoncement aux droits qu'ils pourraient avoir sur le
|
||||
programme:
|
||||
>
|
||||
...((employeur, école...)) déclare par la présente ne pas revendiquer
|
||||
de droits sur le programme « (nom du programme) » réalisé par ...((nom de
|
||||
l'auteur)).
|
||||
|
||||
((signature du responsable)), ...((date)),
|
||||
...((nom et qualité du responsable)).
|
||||
|
||||
La Licence Publique Générale ne permet pas d'inclure votre programme dans
|
||||
des logiciels sous licence commerciale spécifique. Si votre programme est
|
||||
une fonction de bibliothèque, vous jugerez probablement plus judicieux de
|
||||
le faire relever de la Licence Générale de Bibliothèque GNU (LGPL) plutôt
|
||||
que de la présente.
|
||||
|
||||
==========================================================================
|
||||
@ -1,25 +1,25 @@
|
||||
# Dolibarr language file - pt_PT - dict
|
||||
CountryFR=França
|
||||
CountryBE=Belgica
|
||||
CountryIT=Italia
|
||||
CountryES=Espanha
|
||||
CountryDE=Alemanha
|
||||
CountryCH=Suiça
|
||||
CountryGB=Gră-Bretanha
|
||||
CountryIE=Irlanda
|
||||
CountryCN=China
|
||||
CountryTN=Tunísia
|
||||
CountryUS=Estados Unidos
|
||||
CountryMA=Marrocos
|
||||
CountryDZ=Algeria
|
||||
CountryCA=Canada
|
||||
CountryTG=Togo
|
||||
CountryGA=Gabăo
|
||||
CountryNL=Holanda
|
||||
CountryHU=Hungria
|
||||
CountryRU=Russia
|
||||
CountrySE=Suécia
|
||||
CountryCI=Costa do Marfim
|
||||
CountrySN=Senegal
|
||||
CountryAR=Argentina
|
||||
# Dolibarr language file - pt_PT - dict
|
||||
CountryFR=França
|
||||
CountryBE=Belgica
|
||||
CountryIT=Italia
|
||||
CountryES=Espanha
|
||||
CountryDE=Alemanha
|
||||
CountryCH=Suiça
|
||||
CountryGB=Gră-Bretanha
|
||||
CountryIE=Irlanda
|
||||
CountryCN=China
|
||||
CountryTN=Tunísia
|
||||
CountryUS=Estados Unidos
|
||||
CountryMA=Marrocos
|
||||
CountryDZ=Algeria
|
||||
CountryCA=Canada
|
||||
CountryTG=Togo
|
||||
CountryGA=Gabăo
|
||||
CountryNL=Holanda
|
||||
CountryHU=Hungria
|
||||
CountryRU=Russia
|
||||
CountrySE=Suécia
|
||||
CountryCI=Costa do Marfim
|
||||
CountrySN=Senegal
|
||||
CountryAR=Argentina
|
||||
CountryCM=Camarões
|
||||
@ -1,378 +1,378 @@
|
||||
LICENÇA PÚBLICA GERAL GNU
|
||||
Versão 2, junho de 1991
|
||||
|
||||
This is an unofficial translation of the GNU General Public License into
|
||||
Portuguese. It was not published by the Free Software Foundation, and does not
|
||||
legally state the distribution terms for software that uses the GNU GPL -- only
|
||||
the original English text of the GNU GPL does that. However, we hope that this
|
||||
translation will help Portuguese speakers understand the GNU GPL better.
|
||||
|
||||
Esta é uma tradução não-oficial da Licença Pública Geral GNU ("GPL GNU") para
|
||||
Português. Não foi publicada pela Free Software Foundation, e legalmente não
|
||||
afirma os termos de distribuição de software que utilize a GPL GNU -- apenas o
|
||||
texto original da GPL GNU, em inglês, faz isso. Contudo, esperamos que esta
|
||||
tradução ajude aos que falam português a entender melhor a GPL GNU.
|
||||
|
||||
Para sugestões ou correcções a esta tradução, contacte:
|
||||
|
||||
miguel.andrade@neoscopio.com
|
||||
|
||||
|
||||
--- Tradução do documento original a partir desta linha ---
|
||||
|
||||
|
||||
LICENÇA PÚBLICA GERAL GNU
|
||||
Versão 2, junho de 1991
|
||||
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave,
|
||||
Cambridge, MA 02139, USA
|
||||
|
||||
A qualquer pessoa é permitido copiar e distribuir cópias deste documento de
|
||||
licença, desde que sem qualquer alteração.
|
||||
|
||||
Introdução
|
||||
|
||||
As licenças de software são normalmente desenvolvidas para restringir a
|
||||
liberdade de compartilhá-lo e modifica-lo. Pelo contrário, a Licença Pública
|
||||
Geral GNU pretende garantir a sua liberdade de compartilhar e modificar o
|
||||
software livre -- garantindo que o software será livre para os seus
|
||||
utilizadores. Esta Licença Pública Geral aplica-se à maioria do software da
|
||||
Free Software Foundation e a qualquer outro programa ao qual o seu autor decida
|
||||
aplicá-la. (Algum software da FSF é cobertos pela Licença Pública Geral de
|
||||
Bibliotecas.) Também poderá aplicá-la aos seus programas.
|
||||
|
||||
Quando nos referimos a software livre, estamo-nos a referir à liberdade e não
|
||||
ao preço. A Licença Pública Geral (GPL - General Public Licence - em Inglês.)
|
||||
foi desenvolvida para garantir a sua liberdade de distribuir cópias de software
|
||||
livre (e cobrar por isso, se quiser); receber o código-fonte ou ter acesso a
|
||||
ele, se quiser; poder modificar o software ou utilizar partes dele em novos
|
||||
programas livres; e que saiba que está no seu direito de o fazer.
|
||||
|
||||
Para proteger seus direitos, precisamos fazer restrições que impeçam a qualquer
|
||||
um negar estes direitos ou solicitar que você abdique deles. Estas restrições
|
||||
traduzem-se em certas responsabilidades para si, caso venha a distribuir cópias
|
||||
do software, ou modificá-lo.
|
||||
|
||||
Por exemplo, se você distribuir cópias de um programa sobre este tipo de
|
||||
licenciamento, gratuitamente ou por alguma quantia, tem que fornecer igualmente
|
||||
todos os direitos que possui sobre ele. Tem igualmente que garantir que os
|
||||
destinatários recebam ou possam obter o código-fonte. Além disto, tem que
|
||||
fornecer-lhes estes termos para que possam conhecer seus direitos.
|
||||
|
||||
Nós protegemos seus direitos por duas formas que se completam: (1) com
|
||||
copyright do software e (2) com a oferta desta licença, que lhe dá permissão
|
||||
legal para copiar, distribuir e/ou modificar o software.
|
||||
|
||||
Além disso, tanto para a protecção do autor quanto a nossa, gostaríamos de
|
||||
certificar-nos de que todos entendam que não há qualquer garantia sobre o
|
||||
software livre. Se o software é modificado por alguém e redistribuído, queremos
|
||||
que seus destinatários saibam que o que eles obtiveram não é original, de forma
|
||||
que qualquer problema introduzido por terceiros não interfira na reputação do
|
||||
autor original.
|
||||
|
||||
Finalmente, qualquer programa é ameaçado constantemente por patentes de
|
||||
software. Queremos evitar o perigo de que distribuidores de software livre
|
||||
obtenham patentes individuais sobre o software, o que teria o efeito de tornar
|
||||
o software proprietário. Para prevenir isso, deixamos claro que qualquer
|
||||
patente tem que ser licenciada para uso livre e gratuito por qualquer pessoa,
|
||||
ou então que nem necessite ser licenciada.
|
||||
|
||||
Os termos e condições precisas para cópia, distribuição e modificação
|
||||
encontram-se abaixo:
|
||||
|
||||
LICENÇA PÚBLICA GERAL GNU TERMOS E CONDIÇÕES PARA CÓPIA, DISTRIBUIÇÃO E
|
||||
MODIFICAÇÃO
|
||||
|
||||
0. Esta licença aplica-se a qualquer programa ou outro trabalho que contenha um
|
||||
aviso colocado pelo detentor dos direitos autorais informando que aquele pode
|
||||
ser distribuído sob as condições desta Licença Pública Geral. O "Programa"
|
||||
abaixo refere-se a qualquer programa ou trabalho e "trabalho baseado no
|
||||
Programa" significa tanto o Programa em si, como quaisquer trabalhos derivados,
|
||||
de acordo com a lei de direitos de autor: isto quer dizer um trabalho que
|
||||
contenha o Programa ou parte dele, tanto na forma original ou modificado, e/ou
|
||||
tradução para outros idiomas. ***(Doravante o termo "modificação" ou sinónimos
|
||||
serão usados livremente.) *** Cada licenciado é mencionado como "você".
|
||||
|
||||
Actividades outras que a cópia, a distribuição e modificação não estão cobertas
|
||||
por esta Licença; elas estão fora do seu âmbito. O acto de executar o Programa
|
||||
não é restringido e o resultado do Programa é coberto pela licença apenas se o
|
||||
seu conteúdo contenha trabalhos baseados no Programa (independentemente de
|
||||
terem sido gerados pela execução do Programa). Este último ponto depende das
|
||||
funcionalidades específicas de cada programa.
|
||||
|
||||
1. Você pode copiar e distribuir cópias fiéis do código-fonte do Programa da
|
||||
mesma forma que você o recebeu, usando qualquer meio, deste que inclua em cada
|
||||
cópia um aviso de direitos de autor e uma declaração de inexistência de
|
||||
garantias; mantenha intactos todos os avisos que se referem a esta Licença e à
|
||||
ausência total de garantias; e forneça aos destinatários do Programa uma cópia
|
||||
desta Licença, em conjunto com o Programa.
|
||||
|
||||
Você pode cobrar pelo acto físico de transferir uma cópia e pode,
|
||||
opcionalmente, oferecer garantias em troca de pagamento.
|
||||
|
||||
2. Você pode modificar sua cópia ou cópias do Programa, ou qualquer parte dele,
|
||||
gerando assim um trabalho derivado, copiar e distribuir essas modificações ou
|
||||
trabalhos sob os termos da secção 1 acima, desde que se enquadre nas seguintes
|
||||
condições:
|
||||
|
||||
a) Os arquivos modificados devem conter avisos proeminentes afirmando que você
|
||||
alterou os arquivos, incluindo a data de qualquer alteração.
|
||||
|
||||
b) Deve ser licenciado, sob os termos desta Licença, integralmente e sem custo
|
||||
algum para terceiros, qualquer trabalho seu que contenha ou seja derivado do
|
||||
Programa ou de parte dele.
|
||||
|
||||
c) Se qualquer programa modificado, quando executado, lê normalmente comandos
|
||||
interactivamente, tem que fazer com que, quando iniciado o uso interactivo,
|
||||
seja impresso ou mostrado um anúncio de que não há qualquer garantia (ou então
|
||||
que você fornece a garantia) e que os utilizadores podem redistribuir o
|
||||
programa sob estas condições, ainda informando os utilizadores como consultar
|
||||
uma cópia desta Licença. (Excepção: se o Programa em si é interactivo mas
|
||||
normalmente não imprime estes tipos de anúncios, então o seu trabalho derivado
|
||||
não precisa imprimir um anúncio.)
|
||||
|
||||
Estas exigências aplicam-se ao trabalho derivado como um todo. Se secções
|
||||
identificáveis de tal trabalho não são derivadas do Programa, e podem ser
|
||||
razoavelmente consideradas trabalhos independentes e separados por si só, então
|
||||
esta Licença, e seus termos, não se aplicam a estas secções caso as distribua
|
||||
como um trabalho separado. Mas se distribuir as mesmas secções como parte de um
|
||||
todo que constitui trabalho derivado, a distribuição como um todo tem que
|
||||
enquadrar-se nos termos desta Licença, cujos direitos para outros licenciados
|
||||
se estendem ao todo, portanto também para toda e qualquer parte do programa,
|
||||
independente de quem a escreveu.
|
||||
|
||||
Desta forma, esta secção não tem a intenção de reclamar direitos ou contestar
|
||||
seus direitos sobre o trabalho escrito completamente por si; ao invés disso, a
|
||||
intenção é a de exercitar o direito de controlar a distribuição de trabalhos,
|
||||
derivados ou colectivos, baseados no Programa.
|
||||
|
||||
Adicionalmente, a mera adição ao Programa (ou a um trabalho derivado deste) de
|
||||
um outro trabalho num volume de armazenamento ou meio de distribuição não faz
|
||||
esse outro trabalho seja incluído no âmbito desta Licença.
|
||||
|
||||
3. Você pode copiar e distribuir o Programa (ou trabalho derivado, conforme
|
||||
descrito na Secção 2) em código-objecto ou em forma executável sob os termos
|
||||
das Secções 1 e 2 acima, desde que cumpra uma das seguintes alienas:
|
||||
|
||||
a) O faça acompanhar com o código-fonte completo e em forma acessível por
|
||||
máquinas, código esse que tem que ser distribuído sob os termos das Secções 1 e
|
||||
2 acima e em meio normalmente utilizado para o intercâmbio de software; ou,
|
||||
|
||||
b) O acompanhe com uma oferta escrita, válida por pelo menos três anos, de
|
||||
fornecer a qualquer um, com um custo não superior ao custo de distribuição
|
||||
física do material, uma cópia do código-fonte completo e em forma acessível por
|
||||
máquinas, código esse que tem que ser distribuído sob os termos das Secções 1
|
||||
e 2 acima e em meio normalmente utilizado para o intercâmbio de software; ou,
|
||||
|
||||
c) O acompanhe com a informação que você recebeu em relação à oferta de
|
||||
distribuição do código-fonte correspondente. (Esta alternativa é permitida
|
||||
somente em distribuição não comerciais, e apenas se você recebeu o programa em
|
||||
forma de código-objecto ou executável, com uma oferta de acordo com a Subsecção
|
||||
b) acima.)
|
||||
|
||||
O código-fonte de um trabalho corresponde à forma de trabalho preferida para se
|
||||
fazer modificações. Para um trabalho em forma executável, o código-fonte
|
||||
completo significa todo o código-fonte de todos os módulos que ele contém, mais
|
||||
quaisquer arquivos de definição de "interface", mais os "scripts" utilizados
|
||||
para se controlar a compilação e a instalação do executável. Contudo, como
|
||||
excepção especial, o código-fonte distribuído não precisa incluir qualquer
|
||||
componente normalmente distribuído (tanto em forma original quanto binária) com
|
||||
os maiores componentes (o compilador, o "kernel" etc.) do sistema operativo sob
|
||||
o qual o executável funciona, a menos que o componente em si acompanhe o
|
||||
executável.
|
||||
|
||||
Se a distribuição do executável ou código-objecto é feita através da oferta de
|
||||
acesso a cópias em algum lugar, então oferecer o acesso equivalente a cópia, no
|
||||
mesmo lugar, do código-fonte, equivale à distribuição do código-fonte, mesmo
|
||||
que terceiros não sejam compelidos a copiar o código-fonte em conjunto com o
|
||||
código-objecto.
|
||||
|
||||
4. Você não pode copiar, modificar, sublicenciar ou distribuir o Programa,
|
||||
excepto de acordo com as condições expressas nesta Licença. Qualquer outra
|
||||
tentativa de cópia, modificação, sublicenciamento ou distribuição do Programa
|
||||
não é valida, e cancelará automaticamente os direitos que lhe foram fornecidos
|
||||
por esta Licença. No entanto, terceiros que receberam de si cópias ou direitos,
|
||||
fornecidos sob os termos desta Licença, não terão a sua licença terminada,
|
||||
desde que permaneçam em total concordância com ela.
|
||||
|
||||
5. Você não é obrigado a aceitar esta Licença já que não a assinou. No entanto,
|
||||
nada mais lhe dará permissão para modificar ou distribuir o Programa ou
|
||||
trabalhos derivados deste. Estas acções são proibidas por lei, caso você não
|
||||
aceite esta Licença. Desta forma, ao modificar ou distribuir o Programa (ou
|
||||
qualquer trabalho derivado do Programa), você estará a indicar a sua total
|
||||
concordância com os termos desta Licença, nomeadamente os termos e condições
|
||||
para copiar, distribuir ou modificar o Programa, ou trabalhos baseados nele.
|
||||
|
||||
6. Cada vez que redistribuir o Programa (ou qualquer trabalho derivado), os
|
||||
destinatários adquirirão automaticamente do autor original uma licença para
|
||||
copiar, distribuir ou modificar o Programa, sujeitos a estes termos e
|
||||
condições. Você não poderá impor aos destinatários qualquer outra restrição ao
|
||||
exercício dos direitos então adquiridos. Você não é responsável em garantir a
|
||||
concordância de terceiros a esta Licença.
|
||||
|
||||
7. Se, em consequência de decisões judiciais ou alegações de violação de
|
||||
patentes ou quaisquer outras razões (não limitadas a assuntos relacionados a
|
||||
patentes), lhe forem impostas condições (por ordem judicial, acordos ou outras
|
||||
formas) e que contradigam as condições desta Licença, elas não o livram das
|
||||
condições desta Licença. Se não puder distribuir de forma a satisfazer
|
||||
simultaneamente suas obrigações para com esta Licença e para com as outras
|
||||
obrigações pertinentes, então como consequência você não poderá distribuir o
|
||||
Programa. Por exemplo, se uma licença de patente não permitir a redistribuição,
|
||||
sem obrigação ao pagamento de "royalties", por todos aqueles que receberem
|
||||
cópias directa ou indirectamente de si, então a única forma de você satisfazer
|
||||
a licença de patente e a esta Licença seria a de desistir completamente de
|
||||
distribuir o Programa.
|
||||
|
||||
Se qualquer parte desta secção for considerada inválida ou não aplicável em
|
||||
qualquer circunstância particular, o restante da secção aplica-se, e a secção
|
||||
como um todo aplicar-se-á em outras circunstâncias.
|
||||
|
||||
O propósito desta secção não é o de induzi-lo a infringir quaisquer patentes ou
|
||||
reivindicação de direitos de propriedade de outros, ou a contestar a validade
|
||||
de quaisquer dessas reivindicações; esta secção tem como único propósito
|
||||
proteger a integridade dos sistemas de distribuição de software livre, que é
|
||||
implementado pela prática de licenças públicas. Várias pessoas têm contribuído
|
||||
generosamente e em grande escala para software distribuído usando este sistema,
|
||||
na certeza de que sua aplicação é feita de forma consistente; fica a critério
|
||||
do autor/doador decidir se ele ou ela está disposto(a) a distribuir software
|
||||
utilizando outro sistema, e um outro detentor de uma licença não pode impor
|
||||
esta ou qualquer outra escolha.
|
||||
|
||||
Esta secção destina-se a tornar bastante claro o que se acredita ser
|
||||
consequência do restante desta Licença.
|
||||
|
||||
8. Se a distribuição e/ou uso do Programa são restringidos em certos países por
|
||||
patentes ou direitos de autor, o detentor dos direitos de autor original, que
|
||||
colocou o Programa sob esta Licença, pode incluir uma limitação geográfica de
|
||||
distribuição, excluindo aqueles países, de forma a apenas permitir a
|
||||
distribuição nos países não excluídos. Nestes casos, esta Licença incorpora a
|
||||
limitação como se a mesma constasse escrita nesta Licença.
|
||||
|
||||
9. A Free Software Foundation pode publicar versões revistas e/ou novas da
|
||||
Licença Pública Geral de tempos em tempos. Estas novas versões serão similares
|
||||
em espírito à versão actual, mas podem diferir em detalhes que resolvam novos
|
||||
problemas ou situações.
|
||||
|
||||
A cada versão é dada um número distinto. Se o Programa especifica um número de
|
||||
versão específico desta Licença que se aplica a ele e a "qualquer nova versão",
|
||||
você tem a opção de aceitar os termos e condições daquela versão ou de qualquer
|
||||
outra versão posterior publicada pela Free Software Foundation. Se o programa
|
||||
não especificar um número de versão desta Licença, poderá escolher qualquer
|
||||
versão publicada pela Free Software Foundation.
|
||||
|
||||
10. Se você pretende incorporar partes do Programa em outros programas livres
|
||||
cujas condições de distribuição sejam diferentes, escreva ao autor e solicite
|
||||
permissão para tal. Para o software que a Free Software Foundation detém
|
||||
direitos de autor, escreva à Free Software Foundation; às vezes nós permitimos
|
||||
excepções para estes casos. A nossa decisão será guiada por dois objectivos: o
|
||||
de preservar a condição de liberdade de todas os trabalhos derivados do nosso
|
||||
software livre, e o de promover a partilha e reutilização de software de um
|
||||
modo geral.
|
||||
|
||||
|
||||
AUSÊNCIA DE GARANTIAS
|
||||
|
||||
11. UMA VEZ QUE O PROGRAMA É LICENCIADO SEM ÓNUS, NÃO HÁ QUALQUER GARANTIA PARA
|
||||
O PROGRAMA, NA EXTENSÃO PERMITIDA PELAS LEIS APLICÁVEIS. EXCEPTO QUANDO
|
||||
EXPRESSO DE FORMA ESCRITA, OS DETENTORES DOS DIREITOS AUTORAIS E/OU TERCEIROS
|
||||
DISPONIBILIZAM O PROGRAMA "COMO ESTA", SEM QUALQUER TIPO DE GARANTIAS,
|
||||
EXPRESSAS OU IMPLÍCITAS, INCLUINDO, MAS NÃO LIMITADO A, ÀS GARANTIAS IMPLÍCITAS
|
||||
DE COMERCIALIZAÇÃO E ÀS DE ADEQUAÇÃO A QUALQUER PROPÓSITO. O RISCO COM A
|
||||
QUALIDADE E DESEMPENHO DO PROGRAMA É TOTALMENTE SEU. CASO O PROGRAMA SE REVELE
|
||||
DEFEITUOSO, VOCÊ ASSUME OS CUSTOS DE TODAS AS MANUTENÇÕES, REPAROS E CORRECÇÕES
|
||||
QUE JULGUE NECESSÁRIAS.
|
||||
|
||||
12. EM NENHUMA CIRCUNSTÂNCIA, A MENOS QUE EXIGIDO PELAS LEIS APLICÁVEIS OU
|
||||
ACORDO ESCRITO, OS DETENTORES DOS DIREITOS DE AUTOR, OU QUALQUER OUTRA PARTE
|
||||
QUE POSSA MODIFICAR E/OU REDISTRIBUIR O PROGRAMA CONFORME PERMITIDO ACIMA,
|
||||
SERÃO RESPONSABILIZADOS POR SI OU POR SEU INTERMÉDIO, POR DANOS, INCLUINDO
|
||||
QUALQUER DANO EM GERAL, ESPECIAL, ACIDENTAL OU CONSEQUENTE, RESULTANTES DO USO
|
||||
OU INCAPACIDADE DE USO DO PROGRAMA (INCLUINDO, MAS NÃO LIMITADO A, A PERDA DE
|
||||
DADOS OU DADOS TORNADOS INCORRECTOS, OU PERDAS SOFRIDAS POR SI OU POR OUTRAS
|
||||
PARTES, OU FALHAS DO PROGRAMA AO OPERAR COM QUALQUER OUTRO PROGRAMA), MESMO QUE
|
||||
TAIS DETENTORES OU PARTES TENHAM SIDO AVISADOS DA POSSIBILIDADE DE TAIS DANOS.
|
||||
|
||||
FIM DOS TERMOS E CONDIÇÕES
|
||||
|
||||
---------------------
|
||||
|
||||
|
||||
|
||||
Como Aplicar Estes Termos aos Seus Novos Programas
|
||||
|
||||
Se você desenvolver um novo programa, e quer que ele seja utilizado amplamente
|
||||
pelo público, a melhor forma de alcançar este objectivo é torná-lo software
|
||||
livre, software que qualquer um pode redistribuir e alterar, sob estes termos.
|
||||
|
||||
Para tal, inclua os seguintes avisos no programa. É mais seguro inclui-los logo
|
||||
no início de cada arquivo-fonte para reforçar mais efectivamente a inexistência
|
||||
de garantias; e cada arquivo deve conter pelo menos a linha de "copyright" e
|
||||
uma indicação sobre onde encontrar o texto completo da licença.
|
||||
|
||||
Exemplo:
|
||||
|
||||
|
||||
<uma linha que forneça o nome do programa e uma ideia do que ele faz.>
|
||||
Copyright (C) <ano> <nome do autor>
|
||||
|
||||
Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo sob
|
||||
os termos da Licença Pública Geral GNU, conforme publicada pela Free Software
|
||||
Foundation; tanto a versão 2 da Licença como (a seu critério) qualquer versão
|
||||
mais actual.
|
||||
|
||||
Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
|
||||
GARANTIA; incluindo as garantias implícitas de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
|
||||
A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
|
||||
obter mais detalhes.
|
||||
|
||||
Você deve ter recebido uma cópia da Licença Pública Geral GNU em conjunto com
|
||||
este programa; caso contrário, escreva para a Free Software Foundation, Inc.,
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
|
||||
Inclua também informações sobre como contactá-lo electronicamente e por carta.
|
||||
|
||||
Se o programa é interactivo, faça-o mostrar um aviso breve como este, ao
|
||||
iniciar um modo interactivo:
|
||||
|
||||
Exemplo:
|
||||
|
||||
|
||||
Gnomovision versão 69, Copyright (C) <ano> <nome do autor> O Gnomovision não
|
||||
possui QUALQUER GARANTIA; para obter mais detalhes escreva `mostrar g'. É
|
||||
software livre e você está convidado a redistribui-lo sob certas condições;
|
||||
digite `mostrar c' para obter detalhes.
|
||||
|
||||
Os comandos hipotéticos `mostrar g e `mostrar c' devem mostrar as partes
|
||||
apropriadas da Licença Pública Geral. É claro que os comandos que escolher usar
|
||||
podem ser activados de outra forma que `mostrar g' e `mostrar c'; podem ser
|
||||
cliques do rato ou itens de um menu -- o que melhor se adequar ao seu programa.
|
||||
|
||||
Você também deve obter da sua entidade patronal (se trabalhar como
|
||||
programador) ou escola, conforme o caso, uma "declaração de ausência de
|
||||
direitos autorais" sobre o programa, se necessário. Aqui está um exemplo:
|
||||
|
||||
|
||||
Neoscopio Lda., declara a ausência de quaisquer direitos autorais sobre o
|
||||
programa `Gnomovision' escrito por Jorge Andrade.
|
||||
|
||||
10 de Junho de 2004
|
||||
<assinatura de Miguel Nunes>,
|
||||
|
||||
Miguel Nunes, Gerente de Neoscopio Lda.
|
||||
|
||||
|
||||
|
||||
Esta Licença Pública Geral não permite incorporar o seu programa em programas
|
||||
proprietários. Se o seu programa é uma biblioteca de sub-rotinas, poderá
|
||||
considerar mais útil permitir ligar aplicações proprietárias com a biblioteca.
|
||||
Se é isto que pretende, use a Licença Pública Geral de Bibliotecas GNU, em vez
|
||||
desta Licença.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
LICENÇA PÚBLICA GERAL GNU
|
||||
Versão 2, junho de 1991
|
||||
|
||||
This is an unofficial translation of the GNU General Public License into
|
||||
Portuguese. It was not published by the Free Software Foundation, and does not
|
||||
legally state the distribution terms for software that uses the GNU GPL -- only
|
||||
the original English text of the GNU GPL does that. However, we hope that this
|
||||
translation will help Portuguese speakers understand the GNU GPL better.
|
||||
|
||||
Esta é uma tradução não-oficial da Licença Pública Geral GNU ("GPL GNU") para
|
||||
Português. Não foi publicada pela Free Software Foundation, e legalmente não
|
||||
afirma os termos de distribuição de software que utilize a GPL GNU -- apenas o
|
||||
texto original da GPL GNU, em inglês, faz isso. Contudo, esperamos que esta
|
||||
tradução ajude aos que falam português a entender melhor a GPL GNU.
|
||||
|
||||
Para sugestões ou correcções a esta tradução, contacte:
|
||||
|
||||
miguel.andrade@neoscopio.com
|
||||
|
||||
|
||||
--- Tradução do documento original a partir desta linha ---
|
||||
|
||||
|
||||
LICENÇA PÚBLICA GERAL GNU
|
||||
Versão 2, junho de 1991
|
||||
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave,
|
||||
Cambridge, MA 02139, USA
|
||||
|
||||
A qualquer pessoa é permitido copiar e distribuir cópias deste documento de
|
||||
licença, desde que sem qualquer alteração.
|
||||
|
||||
Introdução
|
||||
|
||||
As licenças de software são normalmente desenvolvidas para restringir a
|
||||
liberdade de compartilhá-lo e modifica-lo. Pelo contrário, a Licença Pública
|
||||
Geral GNU pretende garantir a sua liberdade de compartilhar e modificar o
|
||||
software livre -- garantindo que o software será livre para os seus
|
||||
utilizadores. Esta Licença Pública Geral aplica-se à maioria do software da
|
||||
Free Software Foundation e a qualquer outro programa ao qual o seu autor decida
|
||||
aplicá-la. (Algum software da FSF é cobertos pela Licença Pública Geral de
|
||||
Bibliotecas.) Também poderá aplicá-la aos seus programas.
|
||||
|
||||
Quando nos referimos a software livre, estamo-nos a referir à liberdade e não
|
||||
ao preço. A Licença Pública Geral (GPL - General Public Licence - em Inglês.)
|
||||
foi desenvolvida para garantir a sua liberdade de distribuir cópias de software
|
||||
livre (e cobrar por isso, se quiser); receber o código-fonte ou ter acesso a
|
||||
ele, se quiser; poder modificar o software ou utilizar partes dele em novos
|
||||
programas livres; e que saiba que está no seu direito de o fazer.
|
||||
|
||||
Para proteger seus direitos, precisamos fazer restrições que impeçam a qualquer
|
||||
um negar estes direitos ou solicitar que você abdique deles. Estas restrições
|
||||
traduzem-se em certas responsabilidades para si, caso venha a distribuir cópias
|
||||
do software, ou modificá-lo.
|
||||
|
||||
Por exemplo, se você distribuir cópias de um programa sobre este tipo de
|
||||
licenciamento, gratuitamente ou por alguma quantia, tem que fornecer igualmente
|
||||
todos os direitos que possui sobre ele. Tem igualmente que garantir que os
|
||||
destinatários recebam ou possam obter o código-fonte. Além disto, tem que
|
||||
fornecer-lhes estes termos para que possam conhecer seus direitos.
|
||||
|
||||
Nós protegemos seus direitos por duas formas que se completam: (1) com
|
||||
copyright do software e (2) com a oferta desta licença, que lhe dá permissão
|
||||
legal para copiar, distribuir e/ou modificar o software.
|
||||
|
||||
Além disso, tanto para a protecção do autor quanto a nossa, gostaríamos de
|
||||
certificar-nos de que todos entendam que não há qualquer garantia sobre o
|
||||
software livre. Se o software é modificado por alguém e redistribuído, queremos
|
||||
que seus destinatários saibam que o que eles obtiveram não é original, de forma
|
||||
que qualquer problema introduzido por terceiros não interfira na reputação do
|
||||
autor original.
|
||||
|
||||
Finalmente, qualquer programa é ameaçado constantemente por patentes de
|
||||
software. Queremos evitar o perigo de que distribuidores de software livre
|
||||
obtenham patentes individuais sobre o software, o que teria o efeito de tornar
|
||||
o software proprietário. Para prevenir isso, deixamos claro que qualquer
|
||||
patente tem que ser licenciada para uso livre e gratuito por qualquer pessoa,
|
||||
ou então que nem necessite ser licenciada.
|
||||
|
||||
Os termos e condições precisas para cópia, distribuição e modificação
|
||||
encontram-se abaixo:
|
||||
|
||||
LICENÇA PÚBLICA GERAL GNU TERMOS E CONDIÇÕES PARA CÓPIA, DISTRIBUIÇÃO E
|
||||
MODIFICAÇÃO
|
||||
|
||||
0. Esta licença aplica-se a qualquer programa ou outro trabalho que contenha um
|
||||
aviso colocado pelo detentor dos direitos autorais informando que aquele pode
|
||||
ser distribuído sob as condições desta Licença Pública Geral. O "Programa"
|
||||
abaixo refere-se a qualquer programa ou trabalho e "trabalho baseado no
|
||||
Programa" significa tanto o Programa em si, como quaisquer trabalhos derivados,
|
||||
de acordo com a lei de direitos de autor: isto quer dizer um trabalho que
|
||||
contenha o Programa ou parte dele, tanto na forma original ou modificado, e/ou
|
||||
tradução para outros idiomas. ***(Doravante o termo "modificação" ou sinónimos
|
||||
serão usados livremente.) *** Cada licenciado é mencionado como "você".
|
||||
|
||||
Actividades outras que a cópia, a distribuição e modificação não estão cobertas
|
||||
por esta Licença; elas estão fora do seu âmbito. O acto de executar o Programa
|
||||
não é restringido e o resultado do Programa é coberto pela licença apenas se o
|
||||
seu conteúdo contenha trabalhos baseados no Programa (independentemente de
|
||||
terem sido gerados pela execução do Programa). Este último ponto depende das
|
||||
funcionalidades específicas de cada programa.
|
||||
|
||||
1. Você pode copiar e distribuir cópias fiéis do código-fonte do Programa da
|
||||
mesma forma que você o recebeu, usando qualquer meio, deste que inclua em cada
|
||||
cópia um aviso de direitos de autor e uma declaração de inexistência de
|
||||
garantias; mantenha intactos todos os avisos que se referem a esta Licença e à
|
||||
ausência total de garantias; e forneça aos destinatários do Programa uma cópia
|
||||
desta Licença, em conjunto com o Programa.
|
||||
|
||||
Você pode cobrar pelo acto físico de transferir uma cópia e pode,
|
||||
opcionalmente, oferecer garantias em troca de pagamento.
|
||||
|
||||
2. Você pode modificar sua cópia ou cópias do Programa, ou qualquer parte dele,
|
||||
gerando assim um trabalho derivado, copiar e distribuir essas modificações ou
|
||||
trabalhos sob os termos da secção 1 acima, desde que se enquadre nas seguintes
|
||||
condições:
|
||||
|
||||
a) Os arquivos modificados devem conter avisos proeminentes afirmando que você
|
||||
alterou os arquivos, incluindo a data de qualquer alteração.
|
||||
|
||||
b) Deve ser licenciado, sob os termos desta Licença, integralmente e sem custo
|
||||
algum para terceiros, qualquer trabalho seu que contenha ou seja derivado do
|
||||
Programa ou de parte dele.
|
||||
|
||||
c) Se qualquer programa modificado, quando executado, lê normalmente comandos
|
||||
interactivamente, tem que fazer com que, quando iniciado o uso interactivo,
|
||||
seja impresso ou mostrado um anúncio de que não há qualquer garantia (ou então
|
||||
que você fornece a garantia) e que os utilizadores podem redistribuir o
|
||||
programa sob estas condições, ainda informando os utilizadores como consultar
|
||||
uma cópia desta Licença. (Excepção: se o Programa em si é interactivo mas
|
||||
normalmente não imprime estes tipos de anúncios, então o seu trabalho derivado
|
||||
não precisa imprimir um anúncio.)
|
||||
|
||||
Estas exigências aplicam-se ao trabalho derivado como um todo. Se secções
|
||||
identificáveis de tal trabalho não são derivadas do Programa, e podem ser
|
||||
razoavelmente consideradas trabalhos independentes e separados por si só, então
|
||||
esta Licença, e seus termos, não se aplicam a estas secções caso as distribua
|
||||
como um trabalho separado. Mas se distribuir as mesmas secções como parte de um
|
||||
todo que constitui trabalho derivado, a distribuição como um todo tem que
|
||||
enquadrar-se nos termos desta Licença, cujos direitos para outros licenciados
|
||||
se estendem ao todo, portanto também para toda e qualquer parte do programa,
|
||||
independente de quem a escreveu.
|
||||
|
||||
Desta forma, esta secção não tem a intenção de reclamar direitos ou contestar
|
||||
seus direitos sobre o trabalho escrito completamente por si; ao invés disso, a
|
||||
intenção é a de exercitar o direito de controlar a distribuição de trabalhos,
|
||||
derivados ou colectivos, baseados no Programa.
|
||||
|
||||
Adicionalmente, a mera adição ao Programa (ou a um trabalho derivado deste) de
|
||||
um outro trabalho num volume de armazenamento ou meio de distribuição não faz
|
||||
esse outro trabalho seja incluído no âmbito desta Licença.
|
||||
|
||||
3. Você pode copiar e distribuir o Programa (ou trabalho derivado, conforme
|
||||
descrito na Secção 2) em código-objecto ou em forma executável sob os termos
|
||||
das Secções 1 e 2 acima, desde que cumpra uma das seguintes alienas:
|
||||
|
||||
a) O faça acompanhar com o código-fonte completo e em forma acessível por
|
||||
máquinas, código esse que tem que ser distribuído sob os termos das Secções 1 e
|
||||
2 acima e em meio normalmente utilizado para o intercâmbio de software; ou,
|
||||
|
||||
b) O acompanhe com uma oferta escrita, válida por pelo menos três anos, de
|
||||
fornecer a qualquer um, com um custo não superior ao custo de distribuição
|
||||
física do material, uma cópia do código-fonte completo e em forma acessível por
|
||||
máquinas, código esse que tem que ser distribuído sob os termos das Secções 1
|
||||
e 2 acima e em meio normalmente utilizado para o intercâmbio de software; ou,
|
||||
|
||||
c) O acompanhe com a informação que você recebeu em relação à oferta de
|
||||
distribuição do código-fonte correspondente. (Esta alternativa é permitida
|
||||
somente em distribuição não comerciais, e apenas se você recebeu o programa em
|
||||
forma de código-objecto ou executável, com uma oferta de acordo com a Subsecção
|
||||
b) acima.)
|
||||
|
||||
O código-fonte de um trabalho corresponde à forma de trabalho preferida para se
|
||||
fazer modificações. Para um trabalho em forma executável, o código-fonte
|
||||
completo significa todo o código-fonte de todos os módulos que ele contém, mais
|
||||
quaisquer arquivos de definição de "interface", mais os "scripts" utilizados
|
||||
para se controlar a compilação e a instalação do executável. Contudo, como
|
||||
excepção especial, o código-fonte distribuído não precisa incluir qualquer
|
||||
componente normalmente distribuído (tanto em forma original quanto binária) com
|
||||
os maiores componentes (o compilador, o "kernel" etc.) do sistema operativo sob
|
||||
o qual o executável funciona, a menos que o componente em si acompanhe o
|
||||
executável.
|
||||
|
||||
Se a distribuição do executável ou código-objecto é feita através da oferta de
|
||||
acesso a cópias em algum lugar, então oferecer o acesso equivalente a cópia, no
|
||||
mesmo lugar, do código-fonte, equivale à distribuição do código-fonte, mesmo
|
||||
que terceiros não sejam compelidos a copiar o código-fonte em conjunto com o
|
||||
código-objecto.
|
||||
|
||||
4. Você não pode copiar, modificar, sublicenciar ou distribuir o Programa,
|
||||
excepto de acordo com as condições expressas nesta Licença. Qualquer outra
|
||||
tentativa de cópia, modificação, sublicenciamento ou distribuição do Programa
|
||||
não é valida, e cancelará automaticamente os direitos que lhe foram fornecidos
|
||||
por esta Licença. No entanto, terceiros que receberam de si cópias ou direitos,
|
||||
fornecidos sob os termos desta Licença, não terão a sua licença terminada,
|
||||
desde que permaneçam em total concordância com ela.
|
||||
|
||||
5. Você não é obrigado a aceitar esta Licença já que não a assinou. No entanto,
|
||||
nada mais lhe dará permissão para modificar ou distribuir o Programa ou
|
||||
trabalhos derivados deste. Estas acções são proibidas por lei, caso você não
|
||||
aceite esta Licença. Desta forma, ao modificar ou distribuir o Programa (ou
|
||||
qualquer trabalho derivado do Programa), você estará a indicar a sua total
|
||||
concordância com os termos desta Licença, nomeadamente os termos e condições
|
||||
para copiar, distribuir ou modificar o Programa, ou trabalhos baseados nele.
|
||||
|
||||
6. Cada vez que redistribuir o Programa (ou qualquer trabalho derivado), os
|
||||
destinatários adquirirão automaticamente do autor original uma licença para
|
||||
copiar, distribuir ou modificar o Programa, sujeitos a estes termos e
|
||||
condições. Você não poderá impor aos destinatários qualquer outra restrição ao
|
||||
exercício dos direitos então adquiridos. Você não é responsável em garantir a
|
||||
concordância de terceiros a esta Licença.
|
||||
|
||||
7. Se, em consequência de decisões judiciais ou alegações de violação de
|
||||
patentes ou quaisquer outras razões (não limitadas a assuntos relacionados a
|
||||
patentes), lhe forem impostas condições (por ordem judicial, acordos ou outras
|
||||
formas) e que contradigam as condições desta Licença, elas não o livram das
|
||||
condições desta Licença. Se não puder distribuir de forma a satisfazer
|
||||
simultaneamente suas obrigações para com esta Licença e para com as outras
|
||||
obrigações pertinentes, então como consequência você não poderá distribuir o
|
||||
Programa. Por exemplo, se uma licença de patente não permitir a redistribuição,
|
||||
sem obrigação ao pagamento de "royalties", por todos aqueles que receberem
|
||||
cópias directa ou indirectamente de si, então a única forma de você satisfazer
|
||||
a licença de patente e a esta Licença seria a de desistir completamente de
|
||||
distribuir o Programa.
|
||||
|
||||
Se qualquer parte desta secção for considerada inválida ou não aplicável em
|
||||
qualquer circunstância particular, o restante da secção aplica-se, e a secção
|
||||
como um todo aplicar-se-á em outras circunstâncias.
|
||||
|
||||
O propósito desta secção não é o de induzi-lo a infringir quaisquer patentes ou
|
||||
reivindicação de direitos de propriedade de outros, ou a contestar a validade
|
||||
de quaisquer dessas reivindicações; esta secção tem como único propósito
|
||||
proteger a integridade dos sistemas de distribuição de software livre, que é
|
||||
implementado pela prática de licenças públicas. Várias pessoas têm contribuído
|
||||
generosamente e em grande escala para software distribuído usando este sistema,
|
||||
na certeza de que sua aplicação é feita de forma consistente; fica a critério
|
||||
do autor/doador decidir se ele ou ela está disposto(a) a distribuir software
|
||||
utilizando outro sistema, e um outro detentor de uma licença não pode impor
|
||||
esta ou qualquer outra escolha.
|
||||
|
||||
Esta secção destina-se a tornar bastante claro o que se acredita ser
|
||||
consequência do restante desta Licença.
|
||||
|
||||
8. Se a distribuição e/ou uso do Programa são restringidos em certos países por
|
||||
patentes ou direitos de autor, o detentor dos direitos de autor original, que
|
||||
colocou o Programa sob esta Licença, pode incluir uma limitação geográfica de
|
||||
distribuição, excluindo aqueles países, de forma a apenas permitir a
|
||||
distribuição nos países não excluídos. Nestes casos, esta Licença incorpora a
|
||||
limitação como se a mesma constasse escrita nesta Licença.
|
||||
|
||||
9. A Free Software Foundation pode publicar versões revistas e/ou novas da
|
||||
Licença Pública Geral de tempos em tempos. Estas novas versões serão similares
|
||||
em espírito à versão actual, mas podem diferir em detalhes que resolvam novos
|
||||
problemas ou situações.
|
||||
|
||||
A cada versão é dada um número distinto. Se o Programa especifica um número de
|
||||
versão específico desta Licença que se aplica a ele e a "qualquer nova versão",
|
||||
você tem a opção de aceitar os termos e condições daquela versão ou de qualquer
|
||||
outra versão posterior publicada pela Free Software Foundation. Se o programa
|
||||
não especificar um número de versão desta Licença, poderá escolher qualquer
|
||||
versão publicada pela Free Software Foundation.
|
||||
|
||||
10. Se você pretende incorporar partes do Programa em outros programas livres
|
||||
cujas condições de distribuição sejam diferentes, escreva ao autor e solicite
|
||||
permissão para tal. Para o software que a Free Software Foundation detém
|
||||
direitos de autor, escreva à Free Software Foundation; às vezes nós permitimos
|
||||
excepções para estes casos. A nossa decisão será guiada por dois objectivos: o
|
||||
de preservar a condição de liberdade de todas os trabalhos derivados do nosso
|
||||
software livre, e o de promover a partilha e reutilização de software de um
|
||||
modo geral.
|
||||
|
||||
|
||||
AUSÊNCIA DE GARANTIAS
|
||||
|
||||
11. UMA VEZ QUE O PROGRAMA É LICENCIADO SEM ÓNUS, NÃO HÁ QUALQUER GARANTIA PARA
|
||||
O PROGRAMA, NA EXTENSÃO PERMITIDA PELAS LEIS APLICÁVEIS. EXCEPTO QUANDO
|
||||
EXPRESSO DE FORMA ESCRITA, OS DETENTORES DOS DIREITOS AUTORAIS E/OU TERCEIROS
|
||||
DISPONIBILIZAM O PROGRAMA "COMO ESTA", SEM QUALQUER TIPO DE GARANTIAS,
|
||||
EXPRESSAS OU IMPLÍCITAS, INCLUINDO, MAS NÃO LIMITADO A, ÀS GARANTIAS IMPLÍCITAS
|
||||
DE COMERCIALIZAÇÃO E ÀS DE ADEQUAÇÃO A QUALQUER PROPÓSITO. O RISCO COM A
|
||||
QUALIDADE E DESEMPENHO DO PROGRAMA É TOTALMENTE SEU. CASO O PROGRAMA SE REVELE
|
||||
DEFEITUOSO, VOCÊ ASSUME OS CUSTOS DE TODAS AS MANUTENÇÕES, REPAROS E CORRECÇÕES
|
||||
QUE JULGUE NECESSÁRIAS.
|
||||
|
||||
12. EM NENHUMA CIRCUNSTÂNCIA, A MENOS QUE EXIGIDO PELAS LEIS APLICÁVEIS OU
|
||||
ACORDO ESCRITO, OS DETENTORES DOS DIREITOS DE AUTOR, OU QUALQUER OUTRA PARTE
|
||||
QUE POSSA MODIFICAR E/OU REDISTRIBUIR O PROGRAMA CONFORME PERMITIDO ACIMA,
|
||||
SERÃO RESPONSABILIZADOS POR SI OU POR SEU INTERMÉDIO, POR DANOS, INCLUINDO
|
||||
QUALQUER DANO EM GERAL, ESPECIAL, ACIDENTAL OU CONSEQUENTE, RESULTANTES DO USO
|
||||
OU INCAPACIDADE DE USO DO PROGRAMA (INCLUINDO, MAS NÃO LIMITADO A, A PERDA DE
|
||||
DADOS OU DADOS TORNADOS INCORRECTOS, OU PERDAS SOFRIDAS POR SI OU POR OUTRAS
|
||||
PARTES, OU FALHAS DO PROGRAMA AO OPERAR COM QUALQUER OUTRO PROGRAMA), MESMO QUE
|
||||
TAIS DETENTORES OU PARTES TENHAM SIDO AVISADOS DA POSSIBILIDADE DE TAIS DANOS.
|
||||
|
||||
FIM DOS TERMOS E CONDIÇÕES
|
||||
|
||||
---------------------
|
||||
|
||||
|
||||
|
||||
Como Aplicar Estes Termos aos Seus Novos Programas
|
||||
|
||||
Se você desenvolver um novo programa, e quer que ele seja utilizado amplamente
|
||||
pelo público, a melhor forma de alcançar este objectivo é torná-lo software
|
||||
livre, software que qualquer um pode redistribuir e alterar, sob estes termos.
|
||||
|
||||
Para tal, inclua os seguintes avisos no programa. É mais seguro inclui-los logo
|
||||
no início de cada arquivo-fonte para reforçar mais efectivamente a inexistência
|
||||
de garantias; e cada arquivo deve conter pelo menos a linha de "copyright" e
|
||||
uma indicação sobre onde encontrar o texto completo da licença.
|
||||
|
||||
Exemplo:
|
||||
|
||||
|
||||
<uma linha que forneça o nome do programa e uma ideia do que ele faz.>
|
||||
Copyright (C) <ano> <nome do autor>
|
||||
|
||||
Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo sob
|
||||
os termos da Licença Pública Geral GNU, conforme publicada pela Free Software
|
||||
Foundation; tanto a versão 2 da Licença como (a seu critério) qualquer versão
|
||||
mais actual.
|
||||
|
||||
Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
|
||||
GARANTIA; incluindo as garantias implícitas de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
|
||||
A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
|
||||
obter mais detalhes.
|
||||
|
||||
Você deve ter recebido uma cópia da Licença Pública Geral GNU em conjunto com
|
||||
este programa; caso contrário, escreva para a Free Software Foundation, Inc.,
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
|
||||
Inclua também informações sobre como contactá-lo electronicamente e por carta.
|
||||
|
||||
Se o programa é interactivo, faça-o mostrar um aviso breve como este, ao
|
||||
iniciar um modo interactivo:
|
||||
|
||||
Exemplo:
|
||||
|
||||
|
||||
Gnomovision versão 69, Copyright (C) <ano> <nome do autor> O Gnomovision não
|
||||
possui QUALQUER GARANTIA; para obter mais detalhes escreva `mostrar g'. É
|
||||
software livre e você está convidado a redistribui-lo sob certas condições;
|
||||
digite `mostrar c' para obter detalhes.
|
||||
|
||||
Os comandos hipotéticos `mostrar g e `mostrar c' devem mostrar as partes
|
||||
apropriadas da Licença Pública Geral. É claro que os comandos que escolher usar
|
||||
podem ser activados de outra forma que `mostrar g' e `mostrar c'; podem ser
|
||||
cliques do rato ou itens de um menu -- o que melhor se adequar ao seu programa.
|
||||
|
||||
Você também deve obter da sua entidade patronal (se trabalhar como
|
||||
programador) ou escola, conforme o caso, uma "declaração de ausência de
|
||||
direitos autorais" sobre o programa, se necessário. Aqui está um exemplo:
|
||||
|
||||
|
||||
Neoscopio Lda., declara a ausência de quaisquer direitos autorais sobre o
|
||||
programa `Gnomovision' escrito por Jorge Andrade.
|
||||
|
||||
10 de Junho de 2004
|
||||
<assinatura de Miguel Nunes>,
|
||||
|
||||
Miguel Nunes, Gerente de Neoscopio Lda.
|
||||
|
||||
|
||||
|
||||
Esta Licença Pública Geral não permite incorporar o seu programa em programas
|
||||
proprietários. Se o seu programa é uma biblioteca de sub-rotinas, poderá
|
||||
considerar mais útil permitir ligar aplicações proprietárias com a biblioteca.
|
||||
Se é isto que pretende, use a Licença Pública Geral de Bibliotecas GNU, em vez
|
||||
desta Licença.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
# Dolibarr language file - pt_PT - fornecedores
|
||||
Suppliers=Fornecedores
|
||||
Supplier=Fornecedor
|
||||
AddSupplier=Adicionar Fornecedor
|
||||
SupplierRemoved=Fornecedor removido
|
||||
NewSupplier=Novo fornecedor
|
||||
History=História
|
||||
OrderCard=Cartão de encomenda
|
||||
ListOfSuppliers=Lista de fornecedores
|
||||
# Dolibarr language file - pt_PT - fornecedores
|
||||
Suppliers=Fornecedores
|
||||
Supplier=Fornecedor
|
||||
AddSupplier=Adicionar Fornecedor
|
||||
SupplierRemoved=Fornecedor removido
|
||||
NewSupplier=Novo fornecedor
|
||||
History=História
|
||||
OrderCard=Cartão de encomenda
|
||||
ListOfSuppliers=Lista de fornecedores
|
||||
ShowSupplier=Mostrar fonecedor
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
|
||||
*
|
||||
*
|
||||
@ -19,21 +19,21 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
set_magic_quotes_runtime(0);
|
||||
|
||||
// Soap Server.
|
||||
require_once('./lib/nusoap.php');
|
||||
set_magic_quotes_runtime(0);
|
||||
|
||||
// Soap Server.
|
||||
require_once('./lib/nusoap.php');
|
||||
|
||||
require_once('./includes/configure.php');
|
||||
|
||||
// Create the soap Object
|
||||
$s = new soap_server;
|
||||
|
||||
// Register the methods available for clients
|
||||
|
||||
// Create the soap Object
|
||||
$s = new soap_server;
|
||||
|
||||
// Register the methods available for clients
|
||||
$s->register('get_CAmensuel');
|
||||
$s->register('get_orders');
|
||||
$s->register('get_lastOrderClients');
|
||||
$s->register('get_Order');
|
||||
$s->register('get_Order');
|
||||
|
||||
/*----------------------------------------------
|
||||
* renvoie un tableau avec le CA mensuel réalisé
|
||||
@ -41,7 +41,7 @@ $s->register('get_Order');
|
||||
function get_CAmensuel() {
|
||||
|
||||
//on se connecte
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error());
|
||||
|
||||
//la requête
|
||||
@ -54,10 +54,10 @@ function get_CAmensuel() {
|
||||
|
||||
if (!($resquer = mysql_query($sql,$connexion))) return new soap_fault("Server", "MySQL 3 ".$sql, mysql_error());
|
||||
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
return new soap_fault("Server", "MySQL 4", $sql);
|
||||
break;
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
return new soap_fault("Server", "MySQL 4", $sql);
|
||||
break;
|
||||
default :
|
||||
$i = 0;
|
||||
while ( $i < $numrows) {
|
||||
@ -74,7 +74,7 @@ return $result;
|
||||
function get_orders($limit='', $status='') {
|
||||
|
||||
//on se connecte
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error());
|
||||
|
||||
//on recherche
|
||||
@ -88,10 +88,10 @@ if ($limit > 0) $sql .= " LIMIT ".$limit;
|
||||
if (!($resquer = mysql_query($sql,$connexion))) return new soap_fault("Server", "MySQL 3 ".$sql, mysql_error());
|
||||
$result ='';
|
||||
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
//return new soap_fault("Server", "MySQL 4", "produit inexistant");
|
||||
break;
|
||||
break;
|
||||
default :
|
||||
$i = 0;
|
||||
while ( $i < $numrows) {
|
||||
@ -109,7 +109,7 @@ return $result;
|
||||
function get_lastOrderClients($id='',$name='',$limit='') {
|
||||
|
||||
//on se connecte
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error());
|
||||
|
||||
//on recherche
|
||||
@ -122,10 +122,10 @@ function get_lastOrderClients($id='',$name='',$limit='') {
|
||||
if (!($resquer = mysql_query($sql,$connexion))) return new soap_fault("Server", "MySQL 3 ".$sql, mysql_error());
|
||||
$result ='';
|
||||
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
return new soap_fault("Server", "MySQL 4", "produit inexistant");
|
||||
break;
|
||||
break;
|
||||
default :
|
||||
$i = 0;
|
||||
while ( $i < $numrows) {
|
||||
@ -145,7 +145,7 @@ function get_Order($orderid="0")
|
||||
{
|
||||
|
||||
//on se connecte
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible");
|
||||
if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error());
|
||||
|
||||
//on recherche la commande
|
||||
@ -166,10 +166,10 @@ $sql .= " ORDER BY o.date_purchased desc";
|
||||
if (!($resquer = mysql_query($sql,$connexion))) return new soap_fault("Server", "MySQL 3 ".$sql, mysql_error());
|
||||
$result ='';
|
||||
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
return new soap_fault("Server", "MySQL 4", "commande inexistante ".$sql);
|
||||
break;
|
||||
break;
|
||||
default :
|
||||
$i = 0;
|
||||
while ( $i < $numrows) {
|
||||
@ -190,10 +190,10 @@ if ($orderid > 0)
|
||||
|
||||
if (!($resquer = mysql_query($sql,$connexion))) return new soap_fault("Server", "MySQL 3 ".$sql, mysql_error());
|
||||
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
switch ($numrows = mysql_numrows($resquer)) {
|
||||
case 0 :
|
||||
return new soap_fault("Server", "MySQL 5", "commande sans articles");
|
||||
break;
|
||||
break;
|
||||
default :
|
||||
|
||||
while ( $i < $numrows) {
|
||||
@ -208,8 +208,8 @@ mysql_close($connexion);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Return the results.
|
||||
|
||||
// Return the results.
|
||||
$s->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
?>
|
||||
|
||||
?>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 5 B |
@ -1,2 +1,2 @@
|
||||
*.db
|
||||
*.db
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 692 B After Width: | Height: | Size: 5 B |
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
*.db
|
||||
*.db
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
*.db
|
||||
*.db
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1 +1 @@
|
||||
*.db
|
||||
*.db
|
||||
|
||||
@ -1,26 +1,26 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 2.6.2-Debian-3sarge3
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Serveur: localhost
|
||||
-- Généré le : Mercredi 20 Juin 2007 à 15:13
|
||||
-- Version du serveur: 4.0.24
|
||||
-- Version de PHP: 4.3.10-19
|
||||
--
|
||||
-- Base de données: `dolidev`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Structure de la table `llx_osc_categories`
|
||||
--
|
||||
|
||||
CREATE TABLE llx_osc_categories (
|
||||
rowid int(11) unsigned NOT NULL auto_increment,
|
||||
dolicatid int(11) NOT NULL default '0',
|
||||
osccatid int(11) NOT NULL default '0',
|
||||
PRIMARY KEY (rowid),
|
||||
UNIQUE KEY dolicatid (dolicatid),
|
||||
UNIQUE KEY osccatid (osccatid)
|
||||
) TYPE=InnoDB COMMENT='Correspondance categorie Dolibarr categorie OSC';
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 2.6.2-Debian-3sarge3
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Serveur: localhost
|
||||
-- Généré le : Mercredi 20 Juin 2007 à 15:13
|
||||
-- Version du serveur: 4.0.24
|
||||
-- Version de PHP: 4.3.10-19
|
||||
--
|
||||
-- Base de données: `dolidev`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Structure de la table `llx_osc_categories`
|
||||
--
|
||||
|
||||
CREATE TABLE llx_osc_categories (
|
||||
rowid int(11) unsigned NOT NULL auto_increment,
|
||||
dolicatid int(11) NOT NULL default '0',
|
||||
osccatid int(11) NOT NULL default '0',
|
||||
PRIMARY KEY (rowid),
|
||||
UNIQUE KEY dolicatid (dolicatid),
|
||||
UNIQUE KEY osccatid (osccatid)
|
||||
) TYPE=InnoDB COMMENT='Correspondance categorie Dolibarr categorie OSC';
|
||||
|
||||
@ -1,31 +1,31 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ===========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_accountingaccount ADD INDEX idx_accountingaccount_fk_pcg_version (fk_pcg_version);
|
||||
|
||||
|
||||
ALTER TABLE llx_accountingaccount ADD CONSTRAINT fk_accountingaccount_fk_pcg_version FOREIGN KEY (fk_pcg_version) REFERENCES llx_accountingsystem (pcg_version);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ===========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_accountingaccount ADD INDEX idx_accountingaccount_fk_pcg_version (fk_pcg_version);
|
||||
|
||||
|
||||
ALTER TABLE llx_accountingaccount ADD CONSTRAINT fk_accountingaccount_fk_pcg_version FOREIGN KEY (fk_pcg_version) REFERENCES llx_accountingsystem (pcg_version);
|
||||
|
||||
@ -1,35 +1,35 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingaccount
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_pcg_version" varchar(12) NOT NULL,
|
||||
"pcg_type" varchar(20) NOT NULL,
|
||||
"pcg_subtype" varchar(20) NOT NULL,
|
||||
"label" varchar(128) NOT NULL,
|
||||
"account_number" varchar(20) NOT NULL,
|
||||
"account_parent" varchar(20)
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingaccount
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_pcg_version" varchar(12) NOT NULL,
|
||||
"pcg_type" varchar(20) NOT NULL,
|
||||
"pcg_subtype" varchar(20) NOT NULL,
|
||||
"label" varchar(128) NOT NULL,
|
||||
"account_number" varchar(20) NOT NULL,
|
||||
"account_parent" varchar(20)
|
||||
);
|
||||
|
||||
@ -1,32 +1,32 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingdebcred
|
||||
(
|
||||
"fk_transaction" integer NOT NULL,
|
||||
"fk_account" integer NOT NULL,
|
||||
"amount" real NOT NULL,
|
||||
"direction" varchar(1) NOT NULL
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingdebcred
|
||||
(
|
||||
"fk_transaction" integer NOT NULL,
|
||||
"fk_account" integer NOT NULL,
|
||||
"amount" real NOT NULL,
|
||||
"direction" varchar(1) NOT NULL
|
||||
);
|
||||
|
||||
@ -1,35 +1,35 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingsystem
|
||||
(
|
||||
pcg_version varchar(12) PRIMARY KEY,
|
||||
"fk_pays" integer NOT NULL,
|
||||
"label" varchar(128) NOT NULL,
|
||||
"datec" varchar(12) NOT NULL,
|
||||
"fk_author" varchar(20),
|
||||
"tms" timestamp,
|
||||
"active" smallint DEFAULT 0
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingsystem
|
||||
(
|
||||
pcg_version varchar(12) PRIMARY KEY,
|
||||
"fk_pays" integer NOT NULL,
|
||||
"label" varchar(128) NOT NULL,
|
||||
"datec" varchar(12) NOT NULL,
|
||||
"fk_author" varchar(20),
|
||||
"tms" timestamp,
|
||||
"active" smallint DEFAULT 0
|
||||
);
|
||||
|
||||
@ -1,37 +1,37 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingtransaction
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"label" varchar(128) NOT NULL,
|
||||
"datec" date NOT NULL,
|
||||
"fk_author" varchar(20) NOT NULL,
|
||||
"tms" timestamp,
|
||||
"fk_facture" integer,
|
||||
"fk_facture_fourn" integer,
|
||||
"fk_paiement" integer,
|
||||
"fk_paiement_fourn" integer
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_accountingtransaction
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"label" varchar(128) NOT NULL,
|
||||
"datec" date NOT NULL,
|
||||
"fk_author" varchar(20) NOT NULL,
|
||||
"tms" timestamp,
|
||||
"fk_facture" integer,
|
||||
"fk_facture_fourn" integer,
|
||||
"fk_paiement" integer,
|
||||
"fk_paiement_fourn" integer
|
||||
);
|
||||
|
||||
@ -1,37 +1,37 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
-- Copyright (C) 2004 Guillaume Delecourt <guillaume.delecourt@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_action_def
|
||||
(
|
||||
rowid integer NOT NULL PRIMARY KEY,
|
||||
"code" varchar(24) UNIQUE NOT NULL,
|
||||
"tms" timestamp,
|
||||
"titre" varchar(255) NOT NULL,
|
||||
"description" text,
|
||||
"objet_type" varchar(10) CHECK (objet_type IN ('ficheinter','facture','propale','mailing'))
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
-- Copyright (C) 2004 Guillaume Delecourt <guillaume.delecourt@opensides.be>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_action_def
|
||||
(
|
||||
rowid integer NOT NULL PRIMARY KEY,
|
||||
"code" varchar(24) UNIQUE NOT NULL,
|
||||
"tms" timestamp,
|
||||
"titre" varchar(255) NOT NULL,
|
||||
"description" text,
|
||||
"objet_type" varchar(10) CHECK (objet_type IN ('ficheinter','facture','propale','mailing'))
|
||||
);
|
||||
|
||||
@ -1,31 +1,31 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_datea (datea);
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_soc (fk_soc);
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_contact (fk_contact);
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_facture (fk_facture);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_datea (datea);
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_soc (fk_soc);
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_contact (fk_contact);
|
||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_facture (fk_facture);
|
||||
|
||||
@ -1,53 +1,53 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- Actions commerciales
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_actioncomm
|
||||
(
|
||||
id SERIAL PRIMARY KEY,
|
||||
"datec" timestamp, -- date creation
|
||||
"datep" timestamp, -- date 0%
|
||||
"datea" timestamp, -- date 100%
|
||||
"tms" timestamp, -- date modif
|
||||
"fk_action" integer,
|
||||
"label" varchar(50) NOT NULL, -- libelle de l'action
|
||||
"fk_soc" integer,
|
||||
"fk_contact" integer default 0,
|
||||
"fk_user_action" integer, -- id de la personne qui doit effectuer l'action
|
||||
"fk_user_author" integer,
|
||||
"priority" smallint,
|
||||
"percent" smallint NOT NULL default 0,
|
||||
"note" text,
|
||||
"propalrowid" integer,
|
||||
"fk_commande" integer,
|
||||
"fk_facture" integer
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- Actions commerciales
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_actioncomm
|
||||
(
|
||||
id SERIAL PRIMARY KEY,
|
||||
"datec" timestamp, -- date creation
|
||||
"datep" timestamp, -- date 0%
|
||||
"datea" timestamp, -- date 100%
|
||||
"tms" timestamp, -- date modif
|
||||
"fk_action" integer,
|
||||
"label" varchar(50) NOT NULL, -- libelle de l'action
|
||||
"fk_soc" integer,
|
||||
"fk_contact" integer default 0,
|
||||
"fk_user_action" integer, -- id de la personne qui doit effectuer l'action
|
||||
"fk_user_author" integer,
|
||||
"priority" smallint,
|
||||
"percent" smallint NOT NULL default 0,
|
||||
"note" text,
|
||||
"propalrowid" integer,
|
||||
"fk_commande" integer,
|
||||
"fk_facture" integer
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,63 +1,63 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
--
|
||||
-- statut
|
||||
-- 0 : non adherent
|
||||
-- 1 : adherent
|
||||
|
||||
create table llx_adherent
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"tms" timestamp,
|
||||
"statut" smallint NOT NULL DEFAULT 0,
|
||||
"public" smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
||||
"fk_adherent_type" smallint,
|
||||
"morphy" varchar(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique
|
||||
"datevalid" timestamp, -- date de validation
|
||||
"datec" timestamp, -- date de creation
|
||||
"prenom" varchar(50),
|
||||
"nom" varchar(50),
|
||||
"societe" varchar(50),
|
||||
"adresse" text,
|
||||
"cp" varchar(30),
|
||||
"ville" varchar(50),
|
||||
"pays" varchar(50),
|
||||
"email" varchar(255),
|
||||
"login" varchar(50) NOT NULL, -- login utilise pour editer sa fiche
|
||||
"pass" varchar(50), -- pass utilise pour editer sa fiche
|
||||
"naiss" date, -- date de naissance
|
||||
"photo" varchar(255), -- url vers la photo de l'adherent
|
||||
"fk_user_author" integer NOT NULL,
|
||||
"fk_user_mod" integer NOT NULL,
|
||||
"fk_user_valid" integer NOT NULL,
|
||||
"datefin" timestamp, -- date de fin de validité de la cotisation
|
||||
"note" text,
|
||||
|
||||
UNIQUE(login)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_adherent_login ON llx_adherent (login);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
--
|
||||
-- statut
|
||||
-- 0 : non adherent
|
||||
-- 1 : adherent
|
||||
|
||||
create table llx_adherent
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"tms" timestamp,
|
||||
"statut" smallint NOT NULL DEFAULT 0,
|
||||
"public" smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
||||
"fk_adherent_type" smallint,
|
||||
"morphy" varchar(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique
|
||||
"datevalid" timestamp, -- date de validation
|
||||
"datec" timestamp, -- date de creation
|
||||
"prenom" varchar(50),
|
||||
"nom" varchar(50),
|
||||
"societe" varchar(50),
|
||||
"adresse" text,
|
||||
"cp" varchar(30),
|
||||
"ville" varchar(50),
|
||||
"pays" varchar(50),
|
||||
"email" varchar(255),
|
||||
"login" varchar(50) NOT NULL, -- login utilise pour editer sa fiche
|
||||
"pass" varchar(50), -- pass utilise pour editer sa fiche
|
||||
"naiss" date, -- date de naissance
|
||||
"photo" varchar(255), -- url vers la photo de l'adherent
|
||||
"fk_user_author" integer NOT NULL,
|
||||
"fk_user_mod" integer NOT NULL,
|
||||
"fk_user_valid" integer NOT NULL,
|
||||
"datefin" timestamp, -- date de fin de validité de la cotisation
|
||||
"note" text,
|
||||
|
||||
UNIQUE(login)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_adherent_login ON llx_adherent (login);
|
||||
|
||||
@ -1,37 +1,37 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
create table llx_adherent_options
|
||||
(
|
||||
optid SERIAL PRIMARY KEY,
|
||||
"tms" timestamp,
|
||||
"adhid" integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel
|
||||
UNIQUE(adhid)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_adherent_options_adhid ON llx_adherent_options (adhid);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
create table llx_adherent_options
|
||||
(
|
||||
optid SERIAL PRIMARY KEY,
|
||||
"tms" timestamp,
|
||||
"adhid" integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel
|
||||
UNIQUE(adhid)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_adherent_options_adhid ON llx_adherent_options (adhid);
|
||||
|
||||
@ -1,33 +1,33 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_adherent_options_label
|
||||
(
|
||||
name varchar(64) PRIMARY KEY, -- nom de l'attribut
|
||||
"tms" timestamp,
|
||||
"label" varchar(255) NOT NULL -- label correspondant a l'attribut
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_adherent_options_label
|
||||
(
|
||||
name varchar(64) PRIMARY KEY, -- nom de l'attribut
|
||||
"tms" timestamp,
|
||||
"label" varchar(255) NOT NULL -- label correspondant a l'attribut
|
||||
);
|
||||
|
||||
@ -1,42 +1,42 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
--
|
||||
-- statut
|
||||
-- 0 : actif
|
||||
-- 1 : inactif
|
||||
|
||||
create table llx_adherent_type
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"tms" timestamp,
|
||||
"statut" smallint NOT NULL DEFAULT 0,
|
||||
"libelle" varchar(50),
|
||||
"cotisation" varchar(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||
"vote" varchar(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||
"note" text,
|
||||
"mail_valid" text -- mail envoye a la validation
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
--
|
||||
-- statut
|
||||
-- 0 : actif
|
||||
-- 1 : inactif
|
||||
|
||||
create table llx_adherent_type
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"tms" timestamp,
|
||||
"statut" smallint NOT NULL DEFAULT 0,
|
||||
"libelle" varchar(50),
|
||||
"cotisation" varchar(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||
"vote" varchar(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||
"note" text,
|
||||
"mail_valid" text -- mail envoye a la validation
|
||||
);
|
||||
|
||||
@ -1,37 +1,37 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_appro
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"datec" timestamp,
|
||||
"tms" timestamp,
|
||||
"fk_product" integer NOT NULL,
|
||||
"quantity" smallint NOT NULL,
|
||||
"price" real,
|
||||
"fk_user_author" integer
|
||||
);
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_appro
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"datec" timestamp,
|
||||
"tms" timestamp,
|
||||
"fk_product" integer NOT NULL,
|
||||
"quantity" smallint NOT NULL,
|
||||
"price" real,
|
||||
"fk_user_author" integer
|
||||
);
|
||||
|
||||
|
||||
@ -1,47 +1,47 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
|
||||
create table llx_bank
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"datec" timestamp,
|
||||
"datev" date, -- date de valeur
|
||||
"dateo" date, -- date operation
|
||||
"amount" real NOT NULL default 0,
|
||||
"label" varchar(255),
|
||||
"fk_account" integer,
|
||||
"fk_user_author" integer,
|
||||
"fk_user_rappro" integer,
|
||||
"fk_type" varchar(4), -- CB, Virement, cheque
|
||||
"num_releve" varchar(50),
|
||||
"num_chq" int,
|
||||
"rappro" smallint default 0,
|
||||
"note" text,
|
||||
"author" varchar(40) -- a supprimer apres migration
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
|
||||
create table llx_bank
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"datec" timestamp,
|
||||
"datev" date, -- date de valeur
|
||||
"dateo" date, -- date operation
|
||||
"amount" real NOT NULL default 0,
|
||||
"label" varchar(255),
|
||||
"fk_account" integer,
|
||||
"fk_user_author" integer,
|
||||
"fk_user_rappro" integer,
|
||||
"fk_type" varchar(4), -- CB, Virement, cheque
|
||||
"num_releve" varchar(50),
|
||||
"num_chq" int,
|
||||
"rappro" smallint default 0,
|
||||
"note" text,
|
||||
"author" varchar(40) -- a supprimer apres migration
|
||||
);
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_bank_account ADD UNIQUE uk_bank_account_label (label);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_bank_account ADD UNIQUE uk_bank_account_label (label);
|
||||
|
||||
@ -1,54 +1,54 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- =============================================================================
|
||||
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
--
|
||||
-- courant : type de compte: 0 epargne, 1 courant, 2 caisse
|
||||
-- clos : le compte est-il clos ou encore ouvert
|
||||
--
|
||||
-- =============================================================================
|
||||
|
||||
create table llx_bank_account
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"datec" timestamp,
|
||||
"tms" timestamp,
|
||||
"ref" varchar(12) NOT NULL,
|
||||
"label" varchar(30) NOT NULL,
|
||||
"bank" varchar(60),
|
||||
"code_banque" varchar(7),
|
||||
"code_guichet" varchar(6),
|
||||
"number" varchar(255),
|
||||
"cle_rib" varchar(5),
|
||||
"bic" varchar(10),
|
||||
"iban_prefix" varchar(5),
|
||||
"domiciliation" varchar(255),
|
||||
"proprio" varchar(60),
|
||||
"adresse_proprio" varchar(255),
|
||||
"courant" smallint DEFAULT 0 NOT NULL,
|
||||
"clos" smallint DEFAULT 0 NOT NULL,
|
||||
"rappro" smallint DEFAULT 1,
|
||||
"url" varchar(128),
|
||||
"account_number" varchar(8)
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- =============================================================================
|
||||
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
--
|
||||
-- courant : type de compte: 0 epargne, 1 courant, 2 caisse
|
||||
-- clos : le compte est-il clos ou encore ouvert
|
||||
--
|
||||
-- =============================================================================
|
||||
|
||||
create table llx_bank_account
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"datec" timestamp,
|
||||
"tms" timestamp,
|
||||
"ref" varchar(12) NOT NULL,
|
||||
"label" varchar(30) NOT NULL,
|
||||
"bank" varchar(60),
|
||||
"code_banque" varchar(7),
|
||||
"code_guichet" varchar(6),
|
||||
"number" varchar(255),
|
||||
"cle_rib" varchar(5),
|
||||
"bic" varchar(10),
|
||||
"iban_prefix" varchar(5),
|
||||
"domiciliation" varchar(255),
|
||||
"proprio" varchar(60),
|
||||
"adresse_proprio" varchar(255),
|
||||
"courant" smallint DEFAULT 0 NOT NULL,
|
||||
"clos" smallint DEFAULT 0 NOT NULL,
|
||||
"rappro" smallint DEFAULT 1,
|
||||
"url" varchar(128),
|
||||
"account_number" varchar(8)
|
||||
);
|
||||
|
||||
@ -1,29 +1,29 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_bank_categ
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"label" varchar(255)
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_bank_categ
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"label" varchar(255)
|
||||
);
|
||||
|
||||
@ -1,32 +1,32 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
create table llx_bank_class
|
||||
(
|
||||
"lineid" integer NOT NULL,
|
||||
"fk_categ" integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_bank_class_lineid ON llx_bank_class (lineid);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
create table llx_bank_class
|
||||
(
|
||||
"lineid" integer NOT NULL,
|
||||
"fk_categ" integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_bank_class_lineid ON llx_bank_class (lineid);
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_bank_url ADD UNIQUE uk_bank_url (fk_bank,url_id);
|
||||
@ -1,35 +1,35 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_bank_url
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_bank" integer,
|
||||
"url_id" integer,
|
||||
"url" varchar(255),
|
||||
"label" varchar(255),
|
||||
"type" varchar(8) CHECK (type IN ('company','payment','member','donation','charge'))
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_bank_url
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_bank" integer,
|
||||
"url_id" integer,
|
||||
"url" varchar(255),
|
||||
"label" varchar(255),
|
||||
"type" varchar(8) CHECK (type IN ('company','payment','member','donation','charge'))
|
||||
);
|
||||
|
||||
@ -1,29 +1,29 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_url (fk_user, url);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_url (fk_user, url);
|
||||
ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_title (fk_user, title);
|
||||
@ -1,35 +1,35 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_bookmark
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_soc" integer,
|
||||
"fk_user" integer NOT NULL,
|
||||
"dateb" timestamp,
|
||||
"url" varchar(128) NOT NULL,
|
||||
"target" varchar(16),
|
||||
"title" varchar(64),
|
||||
"favicon" varchar(24)
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_bookmark
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_soc" integer,
|
||||
"fk_user" integer NOT NULL,
|
||||
"dateb" timestamp,
|
||||
"url" varchar(128) NOT NULL,
|
||||
"target" varchar(16),
|
||||
"title" varchar(64),
|
||||
"favicon" varchar(24)
|
||||
);
|
||||
|
||||
@ -1,36 +1,36 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
|
||||
|
||||
create table llx_bookmark4u_login
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_user" integer,
|
||||
"bk4u_uid" integer,
|
||||
UNIQUE(fk_user)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_bookmark4u_login_fk_user ON llx_bookmark4u_login (fk_user);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
|
||||
|
||||
create table llx_bookmark4u_login
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_user" integer,
|
||||
"bk4u_uid" integer,
|
||||
UNIQUE(fk_user)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_bookmark4u_login_fk_user ON llx_bookmark4u_login (fk_user);
|
||||
|
||||
@ -1,37 +1,37 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
--
|
||||
-- position : 0-index.php, 1-left, 2-right
|
||||
--
|
||||
--
|
||||
|
||||
create table llx_boxes
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"box_id" integer NOT NULL,
|
||||
"position" smallint NOT NULL,
|
||||
"box_order" smallint default 0 NOT NULL
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
--
|
||||
-- position : 0-index.php, 1-left, 2-right
|
||||
--
|
||||
--
|
||||
|
||||
create table llx_boxes
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"box_id" integer NOT NULL,
|
||||
"position" smallint NOT NULL,
|
||||
"box_order" smallint default 0 NOT NULL
|
||||
);
|
||||
|
||||
@ -1,33 +1,33 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
|
||||
create table llx_boxes_def
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"name" varchar(255) NOT NULL,
|
||||
"file" varchar(255) NOT NULL,
|
||||
"note" text
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===========================================================================
|
||||
|
||||
create table llx_boxes_def
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"name" varchar(255) NOT NULL,
|
||||
"file" varchar(255) NOT NULL,
|
||||
"note" text
|
||||
);
|
||||
|
||||
@ -1,36 +1,36 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_actioncomm
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
"code" varchar(12) UNIQUE NOT NULL,
|
||||
"type" varchar(10) DEFAULT 'system' NOT NULL,
|
||||
"libelle" varchar(30) NOT NULL,
|
||||
"active" smallint DEFAULT 1 NOT NULL,
|
||||
"todo" smallint
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_actioncomm
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
"code" varchar(12) UNIQUE NOT NULL,
|
||||
"type" varchar(10) DEFAULT 'system' NOT NULL,
|
||||
"libelle" varchar(30) NOT NULL,
|
||||
"active" smallint DEFAULT 1 NOT NULL,
|
||||
"todo" smallint
|
||||
);
|
||||
|
||||
@ -1,39 +1,39 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
create table llx_c_ape
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code_ape" varchar(5) NOT NULL,
|
||||
"libelle" varchar(255),
|
||||
"active" smallint DEFAULT 1 NOT NULL,
|
||||
UNIQUE(code_ape)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_c_ape_code_ape ON llx_c_ape (code_ape);
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
create table llx_c_ape
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code_ape" varchar(5) NOT NULL,
|
||||
"libelle" varchar(255),
|
||||
"active" smallint DEFAULT 1 NOT NULL,
|
||||
UNIQUE(code_ape)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_c_ape_code_ape ON llx_c_ape (code_ape);
|
||||
|
||||
|
||||
@ -1,37 +1,37 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_chargesociales
|
||||
(
|
||||
id SERIAL PRIMARY KEY,
|
||||
"libelle" varchar(80),
|
||||
"deductible" smallint DEFAULT 0 NOT NULL,
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_chargesociales
|
||||
(
|
||||
id SERIAL PRIMARY KEY,
|
||||
"libelle" varchar(80),
|
||||
"deductible" smallint DEFAULT 0 NOT NULL,
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,34 +1,34 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_civilite
|
||||
(
|
||||
rowid integer PRIMARY KEY,
|
||||
"code" varchar(6) UNIQUE NOT NULL,
|
||||
"civilite" varchar(50),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_civilite
|
||||
(
|
||||
rowid integer PRIMARY KEY,
|
||||
"code" varchar(6) UNIQUE NOT NULL,
|
||||
"civilite" varchar(50),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_c_currencies ADD UNIQUE uk_c_currencies_code_iso(code_iso);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_c_currencies ADD UNIQUE uk_c_currencies_code_iso(code_iso);
|
||||
|
||||
@ -1,34 +1,34 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_currencies
|
||||
(
|
||||
code varchar(2) PRIMARY KEY,
|
||||
"code_iso" varchar(3) NOT NULL,
|
||||
"label" varchar(64),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_currencies
|
||||
(
|
||||
code varchar(2) PRIMARY KEY,
|
||||
"code_iso" varchar(3) NOT NULL,
|
||||
"label" varchar(64),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@ -1,31 +1,31 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_c_departements ADD UNIQUE uk_departements (code_departement,fk_region);
|
||||
|
||||
|
||||
ALTER TABLE llx_c_departements ADD INDEX idx_departements_fk_region (fk_region);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_c_departements ADD UNIQUE uk_departements (code_departement,fk_region);
|
||||
|
||||
|
||||
ALTER TABLE llx_c_departements ADD INDEX idx_departements_fk_region (fk_region);
|
||||
|
||||
@ -1,41 +1,41 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_departements
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code_departement" varchar(6) NOT NULL,
|
||||
"fk_region" integer,
|
||||
"cheflieu" varchar(7),
|
||||
"tncc" integer,
|
||||
"ncc" varchar(50),
|
||||
"nom" varchar(50),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_departements
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code_departement" varchar(6) NOT NULL,
|
||||
"fk_region" integer,
|
||||
"cheflieu" varchar(7),
|
||||
"tncc" integer,
|
||||
"ncc" varchar(50),
|
||||
"nom" varchar(50),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,35 +1,35 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_effectif
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
"code" varchar(12) UNIQUE NOT NULL,
|
||||
"libelle" varchar(30),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_effectif
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
"code" varchar(12) UNIQUE NOT NULL,
|
||||
"libelle" varchar(30),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@ -1,37 +1,37 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
create table llx_c_forme_juridique
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code" varchar(12) UNIQUE NOT NULL,
|
||||
"fk_pays" integer NOT NULL,
|
||||
"libelle" varchar(255),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
create table llx_c_forme_juridique
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code" varchar(12) UNIQUE NOT NULL,
|
||||
"fk_pays" integer NOT NULL,
|
||||
"libelle" varchar(255),
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@ -1,39 +1,39 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
create table llx_c_methode_commande_fournisseur
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code" varchar(30),
|
||||
"libelle" varchar(60),
|
||||
"active" smallint default 1 NOT NULL,
|
||||
UNIQUE(code)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_c_methode_commande_fournisseur_code ON llx_c_methode_commande_fournisseur (code);
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
create table llx_c_methode_commande_fournisseur
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"code" varchar(30),
|
||||
"libelle" varchar(60),
|
||||
"active" smallint default 1 NOT NULL,
|
||||
UNIQUE(code)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_llx_c_methode_commande_fournisseur_code ON llx_c_methode_commande_fournisseur (code);
|
||||
|
||||
|
||||
@ -1,44 +1,44 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
--
|
||||
-- Type :
|
||||
--
|
||||
-- 0 : entrée d'argent
|
||||
-- 1 : sortie d'argent
|
||||
-- 2 : entrée ou sortie d'argent
|
||||
|
||||
create table llx_c_paiement
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
"code" varchar(6) UNIQUE NOT NULL,
|
||||
"libelle" varchar(30),
|
||||
"type" smallint,
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
--
|
||||
-- Type :
|
||||
--
|
||||
-- 0 : entrée d'argent
|
||||
-- 1 : sortie d'argent
|
||||
-- 2 : entrée ou sortie d'argent
|
||||
|
||||
create table llx_c_paiement
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
"code" varchar(6) UNIQUE NOT NULL,
|
||||
"libelle" varchar(30),
|
||||
"type" smallint,
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,30 +1,30 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code (code);
|
||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code_iso (code_iso);
|
||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_libelle (libelle);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code (code);
|
||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code_iso (code_iso);
|
||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_libelle (libelle);
|
||||
|
||||
@ -1,35 +1,35 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_pays
|
||||
(
|
||||
rowid integer PRIMARY KEY,
|
||||
"code" varchar(2) NOT NULL,
|
||||
"code_iso" varchar(3) ,
|
||||
"libelle" varchar(50) NOT NULL,
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_pays
|
||||
(
|
||||
rowid integer PRIMARY KEY,
|
||||
"code" varchar(2) NOT NULL,
|
||||
"code_iso" varchar(3) ,
|
||||
"libelle" varchar(50) NOT NULL,
|
||||
"active" smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user