Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial import from bitbucket repository

  • Loading branch information...
commit c543d649baa94ee53652518ada1d19e9e6054eec 1 parent e7ed65c
@leesbian leesbian authored
Showing with 37,469 additions and 96 deletions.
  1. +1 −96 .gitignore
  2. +42 −0 LICENSE.html
  3. +48 −0 LICENSE.txt
  4. +48 −0 LICENSE_AFL.txt
  5. +8,318 −0 RELEASE_NOTES.txt
  6. +88 −0 api.php
  7. +2 −0  app/.htaccess
  8. +990 −0 app/Mage.php
  9. +93 −0 app/code/community/Phoenix/Moneybookers/Block/Form.php
  10. +51 −0 app/code/community/Phoenix/Moneybookers/Block/Info.php
  11. +49 −0 app/code/community/Phoenix/Moneybookers/Block/Jsinit.php
  12. +39 −0 app/code/community/Phoenix/Moneybookers/Block/Payment.php
  13. +67 −0 app/code/community/Phoenix/Moneybookers/Block/Placeform.php
  14. +30 −0 app/code/community/Phoenix/Moneybookers/Block/Redirect.php
  15. +130 −0 app/code/community/Phoenix/Moneybookers/Helper/Data.php
  16. +208 −0 app/code/community/Phoenix/Moneybookers/Model/Abstract.php
  17. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Acc.php
  18. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Csi.php
  19. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Did.php
  20. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Dnk.php
  21. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Ebt.php
  22. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Ent.php
  23. +270 −0 app/code/community/Phoenix/Moneybookers/Model/Event.php
  24. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Gcb.php
  25. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Gir.php
  26. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Idl.php
  27. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Lsr.php
  28. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Mae.php
  29. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Npy.php
  30. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Obt.php
  31. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Pli.php
  32. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Psp.php
  33. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Pwy.php
  34. +27 −0 app/code/community/Phoenix/Moneybookers/Model/Sft.php
  35. +27 −0 app/code/community/Phoenix/Moneybookers/Model/So2.php
  36. +28 −0 app/code/community/Phoenix/Moneybookers/Model/Wlt.php
  37. +87 −0 app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php
  38. +146 −0 app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php
  39. +306 −0 app/code/community/Phoenix/Moneybookers/etc/config.xml
  40. +1,201 −0 app/code/community/Phoenix/Moneybookers/etc/system.xml
  41. +22 −0 app/code/community/Phoenix/Moneybookers/sql/moneybookers_setup/install-1.6.0.0.php
  42. +41 −0 app/code/community/Phoenix/Moneybookers/sql/moneybookers_setup/mysql4-upgrade-1.2-1.2.0.1.php
  43. +61 −0 app/code/core/Mage/Admin/Helper/Data.php
  44. +92 −0 app/code/core/Mage/Admin/Model/Acl.php
  45. +56 −0 app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
  46. +56 −0 app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
  47. +38 −0 app/code/core/Mage/Admin/Model/Acl/Resource.php
  48. +60 −0 app/code/core/Mage/Admin/Model/Acl/Role.php
  49. +38 −0 app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
  50. +38 −0 app/code/core/Mage/Admin/Model/Acl/Role/Group.php
  51. +76 −0 app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
  52. +38 −0 app/code/core/Mage/Admin/Model/Acl/Role/User.php
  53. +190 −0 app/code/core/Mage/Admin/Model/Config.php
  54. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Acl.php
  55. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Acl/Role.php
  56. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Acl/Role/Collection.php
  57. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Permissions/Collection.php
  58. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Role.php
  59. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Role/Collection.php
  60. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Roles.php
  61. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Roles/Collection.php
  62. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Roles/User/Collection.php
  63. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Rules.php
  64. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Rules/Collection.php
  65. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/User.php
  66. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/User/Collection.php
  67. +107 −0 app/code/core/Mage/Admin/Model/Observer.php
  68. +171 −0 app/code/core/Mage/Admin/Model/Resource/Acl.php
  69. +45 −0 app/code/core/Mage/Admin/Model/Resource/Acl/Role.php
  70. +45 −0 app/code/core/Mage/Admin/Model/Resource/Acl/Role/Collection.php
  71. +45 −0 app/code/core/Mage/Admin/Model/Resource/Permissions/Collection.php
  72. +60 −0 app/code/core/Mage/Admin/Model/Resource/Role.php
  73. +69 −0 app/code/core/Mage/Admin/Model/Resource/Role/Collection.php
  74. +178 −0 app/code/core/Mage/Admin/Model/Resource/Roles.php
  75. +69 −0 app/code/core/Mage/Admin/Model/Resource/Roles/Collection.php
  76. +59 −0 app/code/core/Mage/Admin/Model/Resource/Roles/User/Collection.php
  77. +100 −0 app/code/core/Mage/Admin/Model/Resource/Rules.php
  78. +71 −0 app/code/core/Mage/Admin/Model/Resource/Rules/Collection.php
  79. +463 −0 app/code/core/Mage/Admin/Model/Resource/User.php
  80. +45 −0 app/code/core/Mage/Admin/Model/Resource/User/Collection.php
  81. +55 −0 app/code/core/Mage/Admin/Model/Role.php
  82. +184 −0 app/code/core/Mage/Admin/Model/Roles.php
  83. +69 −0 app/code/core/Mage/Admin/Model/Rules.php
  84. +231 −0 app/code/core/Mage/Admin/Model/Session.php
  85. +600 −0 app/code/core/Mage/Admin/Model/User.php
  86. +48 −0 app/code/core/Mage/Admin/data/admin_setup/data-install-1.6.0.0.php
  87. +95 −0 app/code/core/Mage/Admin/etc/config.xml
  88. +193 −0 app/code/core/Mage/Admin/sql/admin_setup/install-1.6.0.0.php
  89. +93 −0 app/code/core/Mage/Admin/sql/admin_setup/mysql4-install-0.7.0.php
  90. +34 −0 app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.0-0.7.1.php
  91. +46 −0 app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.1-0.7.2.php
  92. +329 −0 app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php
  93. +48 −0 app/code/core/Mage/Admin/sql/admin_setup/upgrade-1.6.0.0-1.6.1.0.php
  94. +137 −0 app/code/core/Mage/AdminNotification/Helper/Data.php
  95. +194 −0 app/code/core/Mage/AdminNotification/Model/Feed.php
  96. +210 −0 app/code/core/Mage/AdminNotification/Model/Inbox.php
  97. +37 −0 app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox.php
  98. +38 −0 app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox/Collection.php
  99. +55 −0 app/code/core/Mage/AdminNotification/Model/Observer.php
  100. +124 −0 app/code/core/Mage/AdminNotification/Model/Resource/Inbox.php
  101. +57 −0 app/code/core/Mage/AdminNotification/Model/Resource/Inbox/Collection.php
  102. +114 −0 app/code/core/Mage/AdminNotification/Model/Survey.php
  103. +74 −0 app/code/core/Mage/AdminNotification/etc/adminhtml.xml
  104. +103 −0 app/code/core/Mage/AdminNotification/etc/config.xml
  105. +72 −0 app/code/core/Mage/AdminNotification/etc/system.xml
  106. +83 −0 app/code/core/Mage/AdminNotification/sql/adminnotification_setup/install-1.6.0.0.php
  107. +48 −0 app/code/core/Mage/AdminNotification/sql/adminnotification_setup/mysql4-install-1.0.0.php
  108. +135 −0 app/code/core/Mage/AdminNotification/sql/adminnotification_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php
  109. +47 −0 app/code/core/Mage/Adminhtml/Block/Abstract.php
  110. +102 −0 app/code/core/Mage/Adminhtml/Block/Api/Buttons.php
  111. +64 −0 app/code/core/Mage/Adminhtml/Block/Api/Editroles.php
  112. +57 −0 app/code/core/Mage/Adminhtml/Block/Api/Edituser.php
  113. +81 −0 app/code/core/Mage/Adminhtml/Block/Api/Grid/Role.php
  114. +46 −0 app/code/core/Mage/Adminhtml/Block/Api/Role.php
  115. +182 −0 app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php
  116. +51 −0 app/code/core/Mage/Adminhtml/Block/Api/Roles.php
  117. +81 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Roleinfo.php
  118. +119 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
  119. +57 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesusers.php
  120. +49 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Userroles.php
  121. +55 −0 app/code/core/Mage/Adminhtml/Block/Api/User.php
  122. +58 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php
  123. +45 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Form.php
  124. +153 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php
  125. +119 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Roles.php
  126. +62 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tabs.php
  127. +106 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Grid.php
  128. +54 −0 app/code/core/Mage/Adminhtml/Block/Api/Users.php
  129. +116 −0 app/code/core/Mage/Adminhtml/Block/Backup.php
  130. +53 −0 app/code/core/Mage/Adminhtml/Block/Backup/Dialogs.php
  131. +142 −0 app/code/core/Mage/Adminhtml/Block/Backup/Grid.php
  132. +67 −0 app/code/core/Mage/Adminhtml/Block/Cache.php
  133. +38 −0 app/code/core/Mage/Adminhtml/Block/Cache/Additional.php
  134. +182 −0 app/code/core/Mage/Adminhtml/Block/Cache/Grid.php
  135. +66 −0 app/code/core/Mage/Adminhtml/Block/Cache/Notifications.php
  136. +41 −0 app/code/core/Mage/Adminhtml/Block/Catalog.php
  137. +209 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Abstract.php
  138. +98 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Checkboxes/Tree.php
  139. +45 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit.php
  140. +234 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php
  141. +44 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Image.php
  142. +67 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Pricestep.php
  143. +67 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Available.php
  144. +67 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Default.php
  145. +181 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php
  146. +58 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Design.php
  147. +137 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/General.php
  148. +162 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php
  149. +167 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php
  150. +352 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php
  151. +178 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php
  152. +48 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form.php
  153. +65 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Attribute/Urlkey.php
  154. +62 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/DateFieldsOrder.php
  155. +54 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/YearRange.php
  156. +188 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Fieldset/Element.php
  157. +73 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg.php
  158. +65 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg/Content.php
  159. +94 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product.php
  160. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute.php
  161. +101 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit.php
  162. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Form.php
  163. +106 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Front.php
  164. +261 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php
  165. +36 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
  166. +134 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/System.php
  167. +73 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tabs.php
  168. +123 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Grid.php
  169. +94 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php
  170. +89 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Created.php
  171. +78 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Grid.php
  172. +409 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php
  173. +70 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formattribute.php
  174. +88 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formgroup.php
  175. +88 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formset.php
  176. +39 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Attribute.php
  177. +39 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Group.php
  178. +88 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php
  179. +71 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php
  180. +64 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main/Filter.php
  181. +74 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Configure.php
  182. +47 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Error.php
  183. +62 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset.php
  184. +76 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Configurable.php
  185. +146 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Grouped.php
  186. +73 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Options.php
  187. +75 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Qty.php
  188. +50 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Update/Result.php
  189. +152 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Created.php
  190. +249 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php
  191. +136 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute.php
  192. +130 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php
  193. +102 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Inventory.php
  194. +75 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Websites.php
  195. +45 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tabs.php
  196. +52 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Js.php
  197. +71 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Ajax/Serializer.php
  198. +77 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php
  199. +122 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php
  200. +114 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Stock.php
  201. +175 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php
  202. +103 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php
  203. +293 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php
  204. +260 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Crosssell.php
  205. +155 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
  206. +72 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php
  207. +345 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php
  208. +69 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Abstract.php
  209. +44 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Date.php
  210. +43 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/File.php
  211. +90 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Select.php
  212. +44 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Text.php
  213. +63 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price.php
  214. +96 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Group.php
  215. +347 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Group/Abstract.php
  216. +49 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Recurring.php
  217. +110 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Tier.php
  218. +258 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Related.php
  219. +55 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Reviews.php
  220. +90 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Settings.php
  221. +362 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php
  222. +312 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php
  223. +56 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Filter/Inventory.php
  224. +72 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Checkbox.php
  225. +51 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Inventory.php
  226. +198 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php
  227. +236 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php
  228. +159 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Settings.php
  229. +108 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag.php
  230. +103 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag/Customer.php
  231. +257 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Upsell.php
  232. +150 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Websites.php
  233. +238 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php
  234. +59 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Configurable.php
  235. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Grouped.php
  236. +107 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Frontend/Product/Watermark.php
  237. +327 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
  238. +71 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Apply.php
  239. +50 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Boolean.php
  240. +70 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Config.php
  241. +189 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery.php
  242. +172 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php
  243. +64 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Image.php
  244. +49 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Msrp/Enabled.php
  245. +49 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Msrp/Price.php
  246. +90 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php
  247. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Weight.php
  248. +37 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Price.php
  249. +294 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser.php
  250. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser/Container.php
  251. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search.php
  252. +59 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit.php
  253. +152 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php
  254. +178 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Grid.php
  255. +44 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement.php
  256. +66 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit.php
  257. +153 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit/Form.php
  258. +110 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Grid.php
  259. +45 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block.php
  260. +83 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit.php
  261. +144 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit/Form.php
  262. +132 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php
  263. +159 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Widget/Chooser.php
  264. +67 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page.php
  265. +145 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit.php
  266. +46 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Form.php
  267. +153 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php
  268. +184 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php
  269. +177 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php
  270. +135 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
  271. +44 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tabs.php
  272. +150 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php
  273. +41 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid/Renderer/Action.php
Sorry, we could not display the entire diff because too many files (11,889) changed.
View
97 .gitignore
@@ -1,96 +1 @@
-app/code/community/Find/
-app/code/community/Phoenix/
-app/code/core/
-app/design/adminhtml/default/default/
-app/design/adminhtml/default/find/
-app/design/frontend/base/
-app/design/frontend/default/blank/
-app/design/frontend/default/default/
-app/design/frontend/default/iphone/
-app/design/frontend/default/modern/
-app/design/install/
-app/etc/modules/Find_Feed.xml
-app/etc/modules/Mage_All.xml
-app/etc/modules/Mage_Api.xml
-app/etc/modules/Mage_Authorizenet.xml
-app/etc/modules/Mage_Bundle.xml
-app/etc/modules/Mage_Centinel.xml
-app/etc/modules/Mage_Compiler.xml
-app/etc/modules/Mage_Connect.xml
-app/etc/modules/Mage_Downloadable.xml
-app/etc/modules/Mage_ImportExport.xml
-app/etc/modules/Mage_PageCache.xml
-app/etc/modules/Mage_Persistent.xml
-app/etc/modules/Mage_Weee.xml
-app/etc/modules/Mage_Widget.xml
-app/etc/modules/Mage_XmlConnect.xml
-app/etc/modules/Phoenix_Moneybookers.xml
-app/etc/config.xml
-app/etc/local.xml.additional
-app/etc/local.xml.template
-app/.htaccess
-app/locale/en_US/
-app/Mage.php
-cron.php
-cron.sh
-downloader/
-errors/
-favicon.ico
-get.php
-includes/
-index.php
-index.php.sample
-install.php
-js/blank.html
-js/calendar/
-js/extjs/
-js/flash/
-js/index.php
-js/jscolor/
-js/lib/
-js/mage/
-js/prototype/
-js/scriptaculous/
-js/spacer.gif
-js/tiny_mce/
-js/varien/
-lib/3Dsecure/
-lib/flex/
-lib/googlecheckout/
-lib/.htaccess
-lib/LinLibertineFont/
-lib/Mage/
-lib/PEAR/
-lib/phpseclib/
-lib/Varien/
-lib/Zend/
-LICENSE_AFL.txt
-LICENSE.html
-LICENSE.txt
-mage
-media/customer/
-media/downloadable/
-media/.htaccess
-media/import/
-media/xmlconnect/
-nbproject/
-pear
-pear/
-php.ini.sample
-pkginfo/
-RELEASE_NOTES.txt
-shell/abstract.php
-shell/compiler.php
-shell/indexer.php
-shell/log.php
-skin/adminhtml/default/default/
-skin/frontend/base/
-skin/frontend/default/blank/
-skin/frontend/default/blue/
-skin/frontend/default/default/
-skin/frontend/default/french/
-skin/frontend/default/german/
-skin/frontend/default/iphone/
-skin/frontend/default/modern/
-skin/install/
-var/
+.DS_Store
View
42 LICENSE.html
@@ -0,0 +1,42 @@
+<h4>Open Software License ("OSL") v. 3.0</h4>
+
+<p>This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:</p>
+<h5>Licensed under the Open Software License version 3.0</h5>
+<p>Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:</p>
+<ul class="disc">
+ <li>to reproduce the Original Work in copies, either alone or as part of a collective work</li>
+ <li>to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work</li>
+ <li>to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License</li>
+ <li>to perform the Original Work publicly</li>
+ <li>to display the Original Work publicly</li>
+</ul>
+
+<p><strong>Grant of Patent License.</strong> Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.</p>
+
+<p><strong>Grant of Source Code License.</strong> The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.</p>
+
+<p><strong>Exclusions From License Grant.</strong> Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.</p>
+
+<p><strong>External Deployment.</strong> The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).</p>
+
+<p><strong>Attribution Rights.</strong> You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.</p>
+
+<p><strong>Warranty of Provenance and Disclaimer of Warranty.</strong> Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.</p>
+
+<p><strong>Limitation of Liability.</strong> Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.</p>
+
+<p><strong>Acceptance and Termination.</strong> If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).</p>
+
+<p><strong>Termination for Patent Action.</strong> This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.</p>
+
+<p><strong>Jurisdiction, Venue and Governing Law.</strong> Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.</p>
+
+<p><strong>Attorneys Fees.</strong> In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.</p>
+
+<p><strong>Miscellaneous.</strong> If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.</p>
+
+<p><strong>Definition of "You" in This License.</strong> "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.</p>
+
+<p><strong>Right to Use.</strong> You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.</p>
+
+<p><strong>Modification of This License.</strong> This License is Copyright &copy; 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under Open Software License ("OSL") v. 3.0" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.</p>
View
48 LICENSE.txt
@@ -0,0 +1,48 @@
+
+Open Software License ("OSL") v. 3.0
+
+This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
+
+Licensed under the Open Software License version 3.0
+
+ 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
+
+ 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
+
+ 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
+
+ 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License;
+
+ 4. to perform the Original Work publicly; and
+
+ 5. to display the Original Work publicly.
+
+ 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
+
+ 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
+
+ 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
+
+ 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
+
+ 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+
+ 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
+
+ 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
+
+ 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
+
+ 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
+
+ 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
+
+ 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+
+ 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+
+ 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+
+ 16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
View
48 LICENSE_AFL.txt
@@ -0,0 +1,48 @@
+
+Academic Free License ("AFL") v. 3.0
+
+This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
+
+Licensed under the Academic Free License version 3.0
+
+ 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
+
+ 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
+
+ 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
+
+ 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor's reserved rights and remedies, in this Academic Free License;
+
+ 4. to perform the Original Work publicly; and
+
+ 5. to display the Original Work publicly.
+
+ 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
+
+ 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
+
+ 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
+
+ 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
+
+ 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+
+ 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
+
+ 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
+
+ 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
+
+ 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
+
+ 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
+
+ 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+
+ 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+
+ 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+
+ 16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
View
8,318 RELEASE_NOTES.txt
8,318 additions, 0 deletions not shown
View
88 api.php
@@ -0,0 +1,88 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category Mage
+ * @package Mage_Api2
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+if (version_compare(phpversion(), '5.2.0', '<')) {
+ echo 'It looks like you have an invalid PHP version. Magento supports PHP 5.2.0 or newer';
+ exit;
+}
+error_reporting(E_ALL | E_STRICT);
+
+$mageFilename = getcwd() . '/app/Mage.php';
+
+if (!file_exists($mageFilename)) {
+ echo 'Mage file not found';
+ exit;
+}
+require $mageFilename;
+
+if (!Mage::isInstalled()) {
+ echo 'Application is not installed yet, please complete install wizard first.';
+ exit;
+}
+
+if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
+ Mage::setIsDeveloperMode(true);
+}
+
+#ini_set('display_errors', 1);
+
+// emulate index.php entry point for correct URLs generation in API
+Mage::register('custom_entry_point', true);
+Mage::$headersSentThrowsException = false;
+Mage::init('admin');
+Mage::app()->loadAreaPart(Mage_Core_Model_App_Area::AREA_GLOBAL, Mage_Core_Model_App_Area::PART_EVENTS);
+Mage::app()->loadAreaPart(Mage_Core_Model_App_Area::AREA_ADMINHTML, Mage_Core_Model_App_Area::PART_EVENTS);
+
+// query parameter "type" is set by .htaccess rewrite rule
+$apiAlias = Mage::app()->getRequest()->getParam('type');
+
+// check request could be processed by API2
+if (in_array($apiAlias, Mage_Api2_Model_Server::getApiTypes())) {
+ /** @var $server Mage_Api2_Model_Server */
+ $server = Mage::getSingleton('api2/server');
+
+ $server->run();
+} else {
+ /* @var $server Mage_Api_Model_Server */
+ $server = Mage::getSingleton('api/server');
+ $adapterCode = $server->getAdapterCodeByAlias($apiAlias);
+
+ // if no adapters found in aliases - find it by default, by code
+ if (null === $adapterCode) {
+ $adapterCode = $apiAlias;
+ }
+ try {
+ $server->initialize($adapterCode);
+ $server->run();
+
+ Mage::app()->getResponse()->sendResponse();
+ } catch (Exception $e) {
+ Mage::logException($e);
+
+ echo $e->getMessage();
+ exit;
+ }
+}
View
2  app/.htaccess
@@ -0,0 +1,2 @@
+Order deny,allow
+Deny from all
View
990 app/Mage.php
@@ -0,0 +1,990 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category Mage
+ * @package Mage_Core
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+define('DS', DIRECTORY_SEPARATOR);
+define('PS', PATH_SEPARATOR);
+define('BP', dirname(dirname(__FILE__)));
+
+Mage::register('original_include_path', get_include_path());
+
+if (defined('COMPILER_INCLUDE_PATH')) {
+ $appPath = COMPILER_INCLUDE_PATH;
+ set_include_path($appPath . PS . Mage::registry('original_include_path'));
+ include_once COMPILER_INCLUDE_PATH . DS . "Mage_Core_functions.php";
+ include_once COMPILER_INCLUDE_PATH . DS . "Varien_Autoload.php";
+} else {
+ /**
+ * Set include path
+ */
+ $paths[] = BP . DS . 'app' . DS . 'code' . DS . 'local';
+ $paths[] = BP . DS . 'app' . DS . 'code' . DS . 'community';
+ $paths[] = BP . DS . 'app' . DS . 'code' . DS . 'core';
+ $paths[] = BP . DS . 'lib';
+
+ $appPath = implode(PS, $paths);
+ set_include_path($appPath . PS . Mage::registry('original_include_path'));
+ include_once "Mage/Core/functions.php";
+ include_once "Varien/Autoload.php";
+}
+
+Varien_Autoload::register();
+
+/**
+ * Main Mage hub class
+ *
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+final class Mage
+{
+ /**
+ * Registry collection
+ *
+ * @var array
+ */
+ static private $_registry = array();
+
+ /**
+ * Application root absolute path
+ *
+ * @var string
+ */
+ static private $_appRoot;
+
+ /**
+ * Application model
+ *
+ * @var Mage_Core_Model_App
+ */
+ static private $_app;
+
+ /**
+ * Config Model
+ *
+ * @var Mage_Core_Model_Config
+ */
+ static private $_config;
+
+ /**
+ * Event Collection Object
+ *
+ * @var Varien_Event_Collection
+ */
+ static private $_events;
+
+ /**
+ * Object cache instance
+ *
+ * @var Varien_Object_Cache
+ */
+ static private $_objects;
+
+ /**
+ * Is downloader flag
+ *
+ * @var bool
+ */
+ static private $_isDownloader = false;
+
+ /**
+ * Is developer mode flag
+ *
+ * @var bool
+ */
+ static private $_isDeveloperMode = false;
+
+ /**
+ * Is allow throw Exception about headers already sent
+ *
+ * @var bool
+ */
+ public static $headersSentThrowsException = true;
+
+ /**
+ * Is installed flag
+ *
+ * @var bool
+ */
+ static private $_isInstalled;
+
+ /**
+ * Magento edition constants
+ */
+ const EDITION_COMMUNITY = 'Community';
+ const EDITION_ENTERPRISE = 'Enterprise';
+ const EDITION_PROFESSIONAL = 'Professional';
+ const EDITION_GO = 'Go';
+ const EDITION_PLUS = 'Plus';
+
+ /**
+ * Current Magento edition.
+ *
+ * @var string
+ * @static
+ */
+ static private $_currentEdition = self::EDITION_PLUS;
+
+ /**
+ * Gets the current Magento version string
+ * @link http://www.magentocommerce.com/blog/new-community-edition-release-process/
+ *
+ * @return string
+ */
+ public static function getVersion()
+ {
+ $i = self::getVersionInfo();
+ return trim("{$i['major']}.{$i['minor']}.{$i['revision']}" . ($i['patch'] != '' ? ".{$i['patch']}" : "")
+ . "-{$i['stability']}{$i['number']}", '.-');
+ }
+
+ /**
+ * Gets the detailed Magento version information
+ * @link http://www.magentocommerce.com/blog/new-community-edition-release-process/
+ *
+ * @return array
+ */
+ public static function getVersionInfo()
+ {
+ return array(
+ 'major' => '1',
+ 'minor' => '0',
+ 'revision' => '0',
+ 'patch' => '0',
+ 'stability' => '',
+ 'number' => '',
+ );
+ }
+
+ /**
+ * Get current Magento edition
+ *
+ * @static
+ * @return string
+ */
+ public static function getEdition()
+ {
+ return self::$_currentEdition;
+ }
+
+ /**
+ * Set all my static data to defaults
+ *
+ */
+ public static function reset()
+ {
+ self::$_registry = array();
+ self::$_appRoot = null;
+ self::$_app = null;
+ self::$_config = null;
+ self::$_events = null;
+ self::$_objects = null;
+ self::$_isDownloader = false;
+ self::$_isDeveloperMode = false;
+ self::$_isInstalled = null;
+ // do not reset $headersSentThrowsException
+ }
+
+ /**
+ * Register a new variable
+ *
+ * @param string $key
+ * @param mixed $value
+ * @param bool $graceful
+ * @throws Mage_Core_Exception
+ */
+ public static function register($key, $value, $graceful = false)
+ {
+ if (isset(self::$_registry[$key])) {
+ if ($graceful) {
+ return;
+ }
+ self::throwException('Mage registry key "'.$key.'" already exists');
+ }
+ self::$_registry[$key] = $value;
+ }
+
+ /**
+ * Unregister a variable from register by key
+ *
+ * @param string $key
+ */
+ public static function unregister($key)
+ {
+ if (isset(self::$_registry[$key])) {
+ if (is_object(self::$_registry[$key]) && (method_exists(self::$_registry[$key], '__destruct'))) {
+ self::$_registry[$key]->__destruct();
+ }
+ unset(self::$_registry[$key]);
+ }
+ }
+
+ /**
+ * Retrieve a value from registry by a key
+ *
+ * @param string $key
+ * @return mixed
+ */
+ public static function registry($key)
+ {
+ if (isset(self::$_registry[$key])) {
+ return self::$_registry[$key];
+ }
+ return null;
+ }
+
+ /**
+ * Set application root absolute path
+ *
+ * @param string $appRoot
+ * @throws Mage_Core_Exception
+ */
+ public static function setRoot($appRoot = '')
+ {
+ if (self::$_appRoot) {
+ return ;
+ }
+
+ if ('' === $appRoot) {
+ // automagically find application root by dirname of Mage.php
+ $appRoot = dirname(__FILE__);
+ }
+
+ $appRoot = realpath($appRoot);
+
+ if (is_dir($appRoot) and is_readable($appRoot)) {
+ self::$_appRoot = $appRoot;
+ } else {
+ self::throwException($appRoot . ' is not a directory or not readable by this user');
+ }
+ }
+
+ /**
+ * Retrieve application root absolute path
+ *
+ * @return string
+ */
+ public static function getRoot()
+ {
+ return self::$_appRoot;
+ }
+
+ /**
+ * Retrieve Events Collection
+ *
+ * @return Varien_Event_Collection $collection
+ */
+ public static function getEvents()
+ {
+ return self::$_events;
+ }
+
+ /**
+ * Varien Objects Cache
+ *
+ * @param string $key optional, if specified will load this key
+ * @return Varien_Object_Cache
+ */
+ public static function objects($key = null)
+ {
+ if (!self::$_objects) {
+ self::$_objects = new Varien_Object_Cache;
+ }
+ if (is_null($key)) {
+ return self::$_objects;
+ } else {
+ return self::$_objects->load($key);
+ }
+ }
+
+ /**
+ * Retrieve application root absolute path
+ *
+ * @param string $type
+ * @return string
+ */
+ public static function getBaseDir($type = 'base')
+ {
+ return self::getConfig()->getOptions()->getDir($type);
+ }
+
+ /**
+ * Retrieve module absolute path by directory type
+ *
+ * @param string $type
+ * @param string $moduleName
+ * @return string
+ */
+ public static function getModuleDir($type, $moduleName)
+ {
+ return self::getConfig()->getModuleDir($type, $moduleName);
+ }
+
+ /**
+ * Retrieve config value for store by path
+ *
+ * @param string $path
+ * @param mixed $store
+ * @return mixed
+ */
+ public static function getStoreConfig($path, $store = null)
+ {
+ return self::app()->getStore($store)->getConfig($path);
+ }
+
+ /**
+ * Retrieve config flag for store by path
+ *
+ * @param string $path
+ * @param mixed $store
+ * @return bool
+ */
+ public static function getStoreConfigFlag($path, $store = null)
+ {
+ $flag = strtolower(self::getStoreConfig($path, $store));
+ if (!empty($flag) && 'false' !== $flag) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * Get base URL path by type
+ *
+ * @param string $type
+ * @param null|bool $secure
+ * @return string
+ */
+ public static function getBaseUrl($type = Mage_Core_Model_Store::URL_TYPE_LINK, $secure = null)
+ {
+ return self::app()->getStore()->getBaseUrl($type, $secure);
+ }
+
+ /**
+ * Generate url by route and parameters
+ *
+ * @param string $route
+ * @param array $params
+ * @return string
+ */
+ public static function getUrl($route = '', $params = array())
+ {
+ return self::getModel('core/url')->getUrl($route, $params);
+ }
+
+ /**
+ * Get design package singleton
+ *
+ * @return Mage_Core_Model_Design_Package
+ */
+ public static function getDesign()
+ {
+ return self::getSingleton('core/design_package');
+ }
+
+ /**
+ * Retrieve a config instance
+ *
+ * @return Mage_Core_Model_Config
+ */
+ public static function getConfig()
+ {
+ return self::$_config;
+ }
+
+ /**
+ * Add observer to even object
+ *
+ * @param string $eventName
+ * @param callback $callback
+ * @param array $arguments
+ * @param string $observerName
+ */
+ public static function addObserver($eventName, $callback, $data = array(), $observerName = '', $observerClass = '')
+ {
+ if ($observerClass == '') {
+ $observerClass = 'Varien_Event_Observer';
+ }
+ $observer = new $observerClass();
+ $observer->setName($observerName)->addData($data)->setEventName($eventName)->setCallback($callback);
+ return self::getEvents()->addObserver($observer);
+ }
+
+ /**
+ * Dispatch event
+ *
+ * Calls all observer callbacks registered for this event
+ * and multiple observers matching event name pattern
+ *
+ * @param string $name
+ * @param array $data
+ * @return Mage_Core_Model_App
+ */
+ public static function dispatchEvent($name, array $data = array())
+ {
+ Varien_Profiler::start('DISPATCH EVENT:'.$name);
+ $result = self::app()->dispatchEvent($name, $data);
+ Varien_Profiler::stop('DISPATCH EVENT:'.$name);
+ return $result;
+ }
+
+ /**
+ * Retrieve model object
+ *
+ * @link Mage_Core_Model_Config::getModelInstance
+ * @param string $modelClass
+ * @param array|object $arguments
+ * @return Mage_Core_Model_Abstract|false
+ */
+ public static function getModel($modelClass = '', $arguments = array())
+ {
+ return self::getConfig()->getModelInstance($modelClass, $arguments);
+ }
+
+ /**
+ * Retrieve model object singleton
+ *
+ * @param string $modelClass
+ * @param array $arguments
+ * @return Mage_Core_Model_Abstract
+ */
+ public static function getSingleton($modelClass='', array $arguments=array())
+ {
+ $registryKey = '_singleton/'.$modelClass;
+ if (!self::registry($registryKey)) {
+ self::register($registryKey, self::getModel($modelClass, $arguments));
+ }
+ return self::registry($registryKey);
+ }
+
+ /**
+ * Retrieve object of resource model
+ *
+ * @param string $modelClass
+ * @param array $arguments
+ * @return Object
+ */
+ public static function getResourceModel($modelClass, $arguments = array())
+ {
+ return self::getConfig()->getResourceModelInstance($modelClass, $arguments);
+ }
+
+ /**
+ * Retrieve Controller instance by ClassName
+ *
+ * @param string $class
+ * @param Mage_Core_Controller_Request_Http $request
+ * @param Mage_Core_Controller_Response_Http $response
+ * @param array $invokeArgs
+ * @return Mage_Core_Controller_Front_Action
+ */
+ public static function getControllerInstance($class, $request, $response, array $invokeArgs = array())
+ {
+ return new $class($request, $response, $invokeArgs);
+ }
+
+ /**
+ * Retrieve resource vodel object singleton
+ *
+ * @param string $modelClass
+ * @param array $arguments
+ * @return object
+ */
+ public static function getResourceSingleton($modelClass = '', array $arguments = array())
+ {
+ $registryKey = '_resource_singleton/'.$modelClass;
+ if (!self::registry($registryKey)) {
+ self::register($registryKey, self::getResourceModel($modelClass, $arguments));
+ }
+ return self::registry($registryKey);
+ }
+
+ /**
+ * Deprecated, use self::helper()
+ *
+ * @param string $type
+ * @return object
+ */
+ public static function getBlockSingleton($type)
+ {
+ $action = self::app()->getFrontController()->getAction();
+ return $action ? $action->getLayout()->getBlockSingleton($type) : false;
+ }
+
+ /**
+ * Retrieve helper object
+ *
+ * @param string $name the helper name
+ * @return Mage_Core_Helper_Abstract
+ */
+ public static function helper($name)
+ {
+ $registryKey = '_helper/' . $name;
+ if (!self::registry($registryKey)) {
+ $helperClass = self::getConfig()->getHelperClassName($name);
+ self::register($registryKey, new $helperClass);
+ }
+ return self::registry($registryKey);
+ }
+
+ /**
+ * Retrieve resource helper object
+ *
+ * @param string $moduleName
+ * @return Mage_Core_Model_Resource_Helper_Abstract
+ */
+ public static function getResourceHelper($moduleName)
+ {
+ $registryKey = '_resource_helper/' . $moduleName;
+ if (!self::registry($registryKey)) {
+ $helperClass = self::getConfig()->getResourceHelper($moduleName);
+ self::register($registryKey, $helperClass);
+ }
+
+ return self::registry($registryKey);
+ }
+
+ /**
+ * Return new exception by module to be thrown
+ *
+ * @param string $module
+ * @param string $message
+ * @param integer $code
+ * @return Mage_Core_Exception
+ */
+ public static function exception($module = 'Mage_Core', $message = '', $code = 0)
+ {
+ $className = $module . '_Exception';
+ return new $className($message, $code);
+ }
+
+ /**
+ * Throw Exception
+ *
+ * @param string $message
+ * @param string $messageStorage
+ * @throws Mage_Core_Exception
+ */
+ public static function throwException($message, $messageStorage = null)
+ {
+ if ($messageStorage && ($storage = self::getSingleton($messageStorage))) {
+ $storage->addError($message);
+ }
+ throw new Mage_Core_Exception($message);
+ }
+
+ /**
+ * Get initialized application object.
+ *
+ * @param string $code
+ * @param string $type
+ * @param string|array $options
+ * @return Mage_Core_Model_App
+ */
+ public static function app($code = '', $type = 'store', $options = array())
+ {
+ if (null === self::$_app) {
+ self::$_app = new Mage_Core_Model_App();
+ self::setRoot();
+ self::$_events = new Varien_Event_Collection();
+ self::_setIsInstalled($options);
+ self::_setConfigModel($options);
+
+ Varien_Profiler::start('self::app::init');
+ self::$_app->init($code, $type, $options);
+ Varien_Profiler::stop('self::app::init');
+ self::$_app->loadAreaPart(Mage_Core_Model_App_Area::AREA_GLOBAL, Mage_Core_Model_App_Area::PART_EVENTS);
+ }
+ return self::$_app;
+ }
+
+ /**
+ * @static
+ * @param string $code
+ * @param string $type
+ * @param array $options
+ * @param string|array $modules
+ */
+ public static function init($code = '', $type = 'store', $options = array(), $modules = array())
+ {
+ try {
+ self::setRoot();
+ self::$_app = new Mage_Core_Model_App();
+ self::_setIsInstalled($options);
+ self::_setConfigModel($options);
+
+ if (!empty($modules)) {
+ self::$_app->initSpecified($code, $type, $options, $modules);
+ } else {
+ self::$_app->init($code, $type, $options);
+ }
+ } catch (Mage_Core_Model_Session_Exception $e) {
+ header('Location: ' . self::getBaseUrl());
+ die;
+ } catch (Mage_Core_Model_Store_Exception $e) {
+ require_once(self::getBaseDir() . DS . 'errors' . DS . '404.php');
+ die;
+ } catch (Exception $e) {
+ self::printException($e);
+ die;
+ }
+ }
+
+ /**
+ * Front end main entry point
+ *
+ * @param string $code
+ * @param string $type
+ * @param string|array $options
+ */
+ public static function run($code = '', $type = 'store', $options = array())
+ {
+ try {
+ Varien_Profiler::start('mage');
+ self::setRoot();
+ if (isset($options['edition'])) {
+ self::$_currentEdition = $options['edition'];
+ }
+ self::$_app = new Mage_Core_Model_App();
+ if (isset($options['request'])) {
+ self::$_app->setRequest($options['request']);
+ }
+ if (isset($options['response'])) {
+ self::$_app->setResponse($options['response']);
+ }
+ self::$_events = new Varien_Event_Collection();
+ self::_setIsInstalled($options);
+ self::_setConfigModel($options);
+ self::$_app->run(array(
+ 'scope_code' => $code,
+ 'scope_type' => $type,
+ 'options' => $options,
+ ));
+ Varien_Profiler::stop('mage');
+ } catch (Mage_Core_Model_Session_Exception $e) {
+ header('Location: ' . self::getBaseUrl());
+ die();
+ } catch (Mage_Core_Model_Store_Exception $e) {
+ require_once(self::getBaseDir() . DS . 'errors' . DS . '404.php');
+ die();
+ } catch (Exception $e) {
+ if (self::isInstalled() || self::$_isDownloader) {
+ self::printException($e);
+ exit();
+ }
+ try {
+ self::dispatchEvent('mage_run_exception', array('exception' => $e));
+ if (!headers_sent()) {
+ header('Location:' . self::getUrl('install'));
+ } else {
+ self::printException($e);
+ }
+ } catch (Exception $ne) {
+ self::printException($ne, $e->getMessage());
+ }
+ }
+ }
+
+ /**
+ * Set application isInstalled flag based on given options
+ *
+ * @param array $options
+ */
+ protected static function _setIsInstalled($options = array())
+ {
+ if (isset($options['is_installed']) && $options['is_installed']) {
+ self::$_isInstalled = true;
+ }
+ }
+
+ /**
+ * Set application Config model
+ *
+ * @param array $options
+ */
+ protected static function _setConfigModel($options = array())
+ {
+ if (isset($options['config_model']) && class_exists($options['config_model'])) {
+ $alternativeConfigModelName = $options['config_model'];
+ unset($options['config_model']);
+ $alternativeConfigModel = new $alternativeConfigModelName($options);
+ } else {
+ $alternativeConfigModel = null;
+ }
+
+ if (!is_null($alternativeConfigModel) && ($alternativeConfigModel instanceof Mage_Core_Model_Config)) {
+ self::$_config = $alternativeConfigModel;
+ } else {
+ self::$_config = new Mage_Core_Model_Config($options);
+ }
+ }
+
+ /**
+ * Retrieve application installation flag
+ *
+ * @param string|array $options
+ * @return bool
+ */
+ public static function isInstalled($options = array())
+ {
+ if (self::$_isInstalled === null) {
+ self::setRoot();
+
+ if (is_string($options)) {
+ $options = array('etc_dir' => $options);
+ }
+ $etcDir = self::getRoot() . DS . 'etc';
+ if (!empty($options['etc_dir'])) {
+ $etcDir = $options['etc_dir'];
+ }
+ $localConfigFile = $etcDir . DS . 'local.xml';
+
+ self::$_isInstalled = false;
+
+ if (is_readable($localConfigFile)) {
+ $localConfig = simplexml_load_file($localConfigFile);
+ date_default_timezone_set('UTC');
+ if (($date = $localConfig->global->install->date) && strtotime($date)) {
+ self::$_isInstalled = true;
+ }
+ }
+ }
+ return self::$_isInstalled;
+ }
+
+ /**
+ * log facility (??)
+ *
+ * @param string $message
+ * @param integer $level
+ * @param string $file
+ * @param bool $forceLog
+ */
+ public static function log($message, $level = null, $file = '', $forceLog = false)
+ {
+ if (!self::getConfig()) {
+ return;
+ }
+
+ try {
+ $logActive = self::getStoreConfig('dev/log/active');
+ if (empty($file)) {
+ $file = self::getStoreConfig('dev/log/file');
+ }
+ }
+ catch (Exception $e) {
+ $logActive = true;
+ }
+
+ if (!self::$_isDeveloperMode && !$logActive && !$forceLog) {
+ return;
+ }
+
+ static $loggers = array();
+
+ $level = is_null($level) ? Zend_Log::DEBUG : $level;
+ $file = empty($file) ? 'system.log' : $file;
+
+ try {
+ if (!isset($loggers[$file])) {
+ $logDir = self::getBaseDir('var') . DS . 'log';
+ $logFile = $logDir . DS . $file;
+
+ if (!is_dir($logDir)) {
+ mkdir($logDir);
+ chmod($logDir, 0777);
+ }
+
+ if (!file_exists($logFile)) {
+ file_put_contents($logFile, '');
+ chmod($logFile, 0777);
+ }
+
+ $format = '%timestamp% %priorityName% (%priority%): %message%' . PHP_EOL;
+ $formatter = new Zend_Log_Formatter_Simple($format);
+ $writerModel = (string)self::getConfig()->getNode('global/log/core/writer_model');
+ if (!self::$_app || !$writerModel) {
+ $writer = new Zend_Log_Writer_Stream($logFile);
+ }
+ else {
+ $writer = new $writerModel($logFile);
+ }
+ $writer->setFormatter($formatter);
+ $loggers[$file] = new Zend_Log($writer);
+ }
+
+ if (is_array($message) || is_object($message)) {
+ $message = print_r($message, true);
+ }
+
+ $loggers[$file]->log($message, $level);
+ }
+ catch (Exception $e) {
+ }
+ }
+
+ /**
+ * Write exception to log
+ *
+ * @param Exception $e
+ */
+ public static function logException(Exception $e)
+ {
+ if (!self::getConfig()) {
+ return;
+ }
+ $file = self::getStoreConfig('dev/log/exception_file');
+ self::log("\n" . $e->__toString(), Zend_Log::ERR, $file);
+ }
+
+ /**
+ * Set enabled developer mode
+ *
+ * @param bool $mode
+ * @return bool
+ */
+ public static function setIsDeveloperMode($mode)
+ {
+ self::$_isDeveloperMode = (bool)$mode;
+ return self::$_isDeveloperMode;
+ }
+
+ /**
+ * Retrieve enabled developer mode
+ *
+ * @return bool
+ */
+ public static function getIsDeveloperMode()
+ {
+ return self::$_isDeveloperMode;
+ }
+
+ /**
+ * Display exception
+ *
+ * @param Exception $e
+ */
+ public static function printException(Exception $e, $extra = '')
+ {
+ if (self::$_isDeveloperMode) {
+ print '<pre>';
+
+ if (!empty($extra)) {
+ print $extra . "\n\n";
+ }
+
+ print $e->getMessage() . "\n\n";
+ print $e->getTraceAsString();
+ print '</pre>';
+ } else {
+
+ $reportData = array(
+ !empty($extra) ? $extra . "\n\n" : '' . $e->getMessage(),
+ $e->getTraceAsString()
+ );
+
+ // retrieve server data
+ if (isset($_SERVER)) {
+ if (isset($_SERVER['REQUEST_URI'])) {
+ $reportData['url'] = $_SERVER['REQUEST_URI'];
+ }
+ if (isset($_SERVER['SCRIPT_NAME'])) {
+ $reportData['script_name'] = $_SERVER['SCRIPT_NAME'];
+ }
+ }
+
+ // attempt to specify store as a skin
+ try {
+ $storeCode = self::app()->getStore()->getCode();
+ $reportData['skin'] = $storeCode;
+ }
+ catch (Exception $e) {}
+
+ require_once(self::getBaseDir() . DS . 'errors' . DS . 'report.php');
+ }
+
+ die();
+ }
+
+ /**
+ * Define system folder directory url by virtue of running script directory name
+ * Try to find requested folder by shifting to domain root directory
+ *
+ * @param string $folder
+ * @param boolean $exitIfNot
+ * @return string
+ */
+ public static function getScriptSystemUrl($folder, $exitIfNot = false)
+ {
+ $runDirUrl = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');
+ $runDir = rtrim(dirname($_SERVER['SCRIPT_FILENAME']), DS);
+
+ $baseUrl = null;
+ if (is_dir($runDir.'/'.$folder)) {
+ $baseUrl = str_replace(DS, '/', $runDirUrl);
+ } else {
+ $runDirUrlArray = explode('/', $runDirUrl);
+ $runDirArray = explode('/', $runDir);
+ $count = count($runDirArray);
+
+ for ($i=0; $i < $count; $i++) {
+ array_pop($runDirUrlArray);
+ array_pop($runDirArray);
+ $_runDir = implode('/', $runDirArray);
+ if (!empty($_runDir)) {
+ $_runDir .= '/';
+ }
+
+ if (is_dir($_runDir.$folder)) {
+ $_runDirUrl = implode('/', $runDirUrlArray);
+ $baseUrl = str_replace(DS, '/', $_runDirUrl);
+ break;
+ }
+ }
+ }
+
+ if (is_null($baseUrl)) {
+ $errorMessage = "Unable detect system directory: $folder";
+ if ($exitIfNot) {
+ // exit because of infinity loop
+ exit($errorMessage);
+ } else {
+ self::printException(new Exception(), $errorMessage);
+ }
+ }
+
+ return $baseUrl;
+ }
+
+ /**
+ * Set is downloader flag
+ *
+ * @param bool $flag
+ */
+ public static function setIsDownloader($flag = true)
+ {
+ self::$_isDownloader = $flag;
+ }
+}
View
93 app/code/community/Phoenix/Moneybookers/Block/Form.php
@@ -0,0 +1,93 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * @category Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+class Phoenix_Moneybookers_Block_Form extends Mage_Payment_Block_Form
+{
+ /**
+ * Available locales for content URL generation
+ *
+ * @var array
+ */
+ protected $_supportedInfoLocales = array('de');
+
+ /**
+ * Default locale for content URL generation
+ *
+ * @var string
+ */
+ protected $_defaultInfoLocale = 'en';
+
+ /**
+ * Constructor. Set template.
+ */
+ protected function _construct()
+ {
+ parent::_construct();
+ $this->setTemplate('moneybookers/form.phtml');
+ }
+
+ /**
+ * Return payment logo image src
+ *
+ * @param string $payment Payment Code
+ * @return string|bool
+ */
+ public function getPaymentImageSrc($payment)
+ {
+ if ($payment == 'moneybookers_obt') {
+ $payment .= '_'.$this->getInfoLocale();
+ }
+
+ $imageFilename = Mage::getDesign()
+ ->getFilename('images' . DS . 'moneybookers' . DS . $payment, array('_type' => 'skin'));
+
+ if (file_exists($imageFilename . '.png')) {
+ return $this->getSkinUrl('images/moneybookers/' . $payment . '.png');
+ } else if (file_exists($imageFilename . '.gif')) {
+ return $this->getSkinUrl('images/moneybookers/' . $payment . '.gif');
+ }
+
+ return false;
+ }
+
+ /**
+ * Return supported locale for information text
+ *
+ * @return string
+ */
+ public function getInfoLocale()
+ {
+ $locale = substr(Mage::app()->getLocale()->getLocaleCode(), 0 ,2);
+ if (!in_array($locale, $this->_supportedInfoLocales)) {
+ $locale = $this->_defaultInfoLocale;
+ }
+ return $locale;
+ }
+
+ /**
+ * Return info URL for eWallet payment
+ *
+ * @return string
+ */
+ public function getWltInfoUrl()
+ {
+ $locale = substr(Mage::app()->getLocale()->getLocaleCode(), 0 ,2);
+ return 'http://www.moneybookers.com/app/?l=' . strtoupper($locale);
+ }
+}
View
51 app/code/community/Phoenix/Moneybookers/Block/Info.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * @category Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+class Phoenix_Moneybookers_Block_Info extends Mage_Payment_Block_Info
+{
+ /**
+ * Constructor. Set template.
+ */
+ protected function _construct()
+ {
+ parent::_construct();
+ $this->setTemplate('moneybookers/info.phtml');
+ }
+
+ /**
+ * Returns code of payment method
+ *
+ * @return string
+ */
+ public function getMethodCode()
+ {
+ return $this->getInfo()->getMethodInstance()->getCode();
+ }
+
+ /**
+ * Build PDF content of info block
+ *
+ * @return string
+ */
+ public function toPdf()
+ {
+ $this->setTemplate('moneybookers/pdf/info.phtml');
+ return $this->toHtml();
+ }
+}
View
49 app/code/community/Phoenix/Moneybookers/Block/Jsinit.php
@@ -0,0 +1,49 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * @category Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+class Phoenix_Moneybookers_Block_Jsinit extends Mage_Adminhtml_Block_Template
+{
+ /**
+ * Include JS in head if section is moneybookers
+ */
+ protected function _prepareLayout()
+ {
+ $section = $this->getAction()->getRequest()->getParam('section', false);
+ if ($section == 'moneybookers') {
+ $this->getLayout()
+ ->getBlock('head')
+ ->addJs('mage/adminhtml/moneybookers.js');
+ }
+ parent::_prepareLayout();
+ }
+
+ /**
+ * Print init JS script into body
+ * @return string
+ */
+ protected function _toHtml()
+ {
+ $section = $this->getAction()->getRequest()->getParam('section', false);
+ if ($section == 'moneybookers') {
+ return parent::_toHtml();
+ } else {
+ return '';
+ }
+ }
+}
View
39 app/code/community/Phoenix/Moneybookers/Block/Payment.php
@@ -0,0 +1,39 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * @category Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+class Phoenix_Moneybookers_Block_Payment extends Mage_Core_Block_Template
+{
+ /**
+ * Return Payment logo src
+ *
+ * @return string
+ */
+ public function getMoneybookersLogoSrc()
+ {
+ $locale = Mage::getModel('moneybookers/acc')->getLocale();
+ $logoFilename = Mage::getDesign()
+ ->getFilename('images' . DS . 'moneybookers' . DS . 'banner_120_' . $locale . '.gif', array('_type' => 'skin'));
+
+ if (file_exists($logoFilename)) {
+ return $this->getSkinUrl('images/moneybookers/banner_120_'.$locale.'.gif');
+ }
+
+ return $this->getSkinUrl('images/moneybookers/banner_120_int.gif');
+ }
+}
View
67 app/code/community/Phoenix/Moneybookers/Block/Placeform.php
@@ -0,0 +1,67 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * @category Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+class Phoenix_Moneybookers_Block_Placeform extends Mage_Core_Block_Template
+{
+ /**
+ * Return checkout session instance
+ *
+ * @return Mage_Checkout_Model_Session
+ */
+ protected function _getCheckout()
+ {
+ return Mage::getSingleton('checkout/session');
+ }
+
+ /**
+ * Return order instance
+ *
+ * @return Mage_Sales_Model_Order|null
+ */
+ protected function _getOrder()
+ {
+ if ($this->getOrder()) {
+ return $this->getOrder();
+ } elseif ($orderIncrementId = $this->_getCheckout()->getLastRealOrderId()) {
+ return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
+ } else {
+ return null;
+ }
+ }
+
+ /**
+ * Get Form data by using ogone payment api
+ *
+ * @return array
+ */
+ public function getFormData()
+ {
+ return $this->_getOrder()->getPayment()->getMethodInstance()->getFormFields();
+ }
+
+ /**
+ * Getting gateway url
+ *
+ * @return string
+ */
+ public function getFormAction()
+ {
+ return $this->_getOrder()->getPayment()->getMethodInstance()->getUrl();
+ }
+}
View
30 app/code/community/Phoenix/Moneybookers/Block/Redirect.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * @category Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+class Phoenix_Moneybookers_Block_Redirect extends Mage_Core_Block_Template
+{
+ /**
+ * Constructor. Set template.
+ */
+ protected function _construct()
+ {
+ parent::_construct();
+ $this->setTemplate('moneybookers/redirect.phtml');
+ }
+}
View
130 app/code/community/Phoenix/Moneybookers/Helper/Data.php
@@ -0,0 +1,130 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * @category Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+class Phoenix_Moneybookers_Helper_Data extends Mage_Payment_Helper_Data
+{
+ const XML_PATH_EMAIL = 'moneybookers/settings/moneybookers_email';
+ const XML_PATH_CUSTOMER_ID = 'moneybookers/settings/customer_id';
+ const XML_PATH_SECRET_KEY = 'moneybookers/settings/secret_key';
+
+ /**
+ * Internal parameters for validation
+ */
+ protected $_moneybookersServer = 'https://www.moneybookers.com';
+ protected $_checkEmailUrl = '/app/email_check.pl';
+ protected $_checkEmailCustId = '6999315';
+ protected $_checkEmailPassword = 'a4ce5a98a8950c04a3d34a2e2cb8c89f';
+ protected $_checkSecretUrl = '/app/secret_word_check.pl';
+ protected $_activationEmailTo = 'ecommerce@moneybookers.com';
+ protected $_activationEmailSubject = 'Magento Moneybookers Activation';
+ protected $_moneybookersMasterCustId = '7283403';
+ protected $_moneybookersMasterSecretHash = 'c18524b6b1082653039078a4700367f0';
+
+ /**