Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merged commits from the original repository.

  • Loading branch information...
commit 4bdbf6b6ebc4b53dbde9483df745cfca7e864a36 1 parent be09cb9
@mage2-team mage2-team authored
Showing with 28,736 additions and 0 deletions.
  1. +33 −0 .gitignore
  2. +186 −0 .htaccess
  3. +179 −0 .htaccess.sample
  4. +42 −0 LICENSE.html
  5. +48 −0 LICENSE_AFL.txt
  6. +30 −0 _classmap.php
  7. +2 −0  app/.htaccess
  8. +896 −0 app/Mage.php
  9. +92 −0 app/bootstrap.php
  10. +100 −0 app/code/community/Phoenix/Moneybookers/Block/Form.php
  11. +57 −0 app/code/community/Phoenix/Moneybookers/Block/Info.php
  12. +55 −0 app/code/community/Phoenix/Moneybookers/Block/Jsinit.php
  13. +43 −0 app/code/community/Phoenix/Moneybookers/Block/Payment.php
  14. +73 −0 app/code/community/Phoenix/Moneybookers/Block/Placeform.php
  15. +36 −0 app/code/community/Phoenix/Moneybookers/Block/Redirect.php
  16. +136 −0 app/code/community/Phoenix/Moneybookers/Helper/Data.php
  17. +214 −0 app/code/community/Phoenix/Moneybookers/Model/Abstract.php
  18. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Acc.php
  19. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Csi.php
  20. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Did.php
  21. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Dnk.php
  22. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Ebt.php
  23. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Ent.php
  24. +276 −0 app/code/community/Phoenix/Moneybookers/Model/Event.php
  25. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Gcb.php
  26. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Gir.php
  27. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Idl.php
  28. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Lsr.php
  29. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Mae.php
  30. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Npy.php
  31. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Obt.php
  32. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Pli.php
  33. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Psp.php
  34. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Pwy.php
  35. +33 −0 app/code/community/Phoenix/Moneybookers/Model/Sft.php
  36. +33 −0 app/code/community/Phoenix/Moneybookers/Model/So2.php
  37. +34 −0 app/code/community/Phoenix/Moneybookers/Model/Wlt.php
  38. +93 −0 app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php
  39. +152 −0 app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php
  40. +299 −0 app/code/community/Phoenix/Moneybookers/etc/config.xml
  41. +1,207 −0 app/code/community/Phoenix/Moneybookers/etc/system.xml
  42. +28 −0 app/code/community/Phoenix/Moneybookers/sql/moneybookers_setup/install-1.6.0.0.php
  43. +218 −0 app/code/community/Phoenix/Moneybookers/view/adminhtml/activation.js
  44. BIN  app/code/community/Phoenix/Moneybookers/view/adminhtml/banner.jpg
  45. +32 −0 app/code/community/Phoenix/Moneybookers/view/adminhtml/info.phtml
  46. +43 −0 app/code/community/Phoenix/Moneybookers/view/adminhtml/jsinit.phtml
  47. +34 −0 app/code/community/Phoenix/Moneybookers/view/adminhtml/layout.xml
  48. +30 −0 app/code/community/Phoenix/Moneybookers/view/adminhtml/pdf/info.phtml
  49. +6 −0 app/code/community/Phoenix/Moneybookers/view/email/activation.html
  50. +34 −0 app/code/community/Phoenix/Moneybookers/view/frontend/blank.phtml
  51. +48 −0 app/code/community/Phoenix/Moneybookers/view/frontend/form.phtml
  52. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_de.gif
  53. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_de.png
  54. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_dk.gif
  55. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_fr.gif
  56. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_fr.png
  57. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_int.gif
  58. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_int.png
  59. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_pl.gif
  60. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_pl.png
  61. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_sp.gif
  62. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/banner_120_sp.png
  63. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_acc.png
  64. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_csi.gif
  65. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_did.gif
  66. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_dnk.gif
  67. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_ebt.gif
  68. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_ent.gif
  69. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_gcb.gif
  70. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_gir.gif
  71. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_idl.gif
  72. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_lsr.gif
  73. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_mae.gif
  74. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_npy.gif
  75. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_de.png
  76. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_dk.png
  77. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_ee.png
  78. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_en.png
  79. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_fl.png
  80. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_lt.png
  81. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_lv.png
  82. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_pl.png
  83. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_obt_se.png
  84. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_pli.gif
  85. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_psp.gif
  86. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_pwy.gif
  87. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_sft.gif
  88. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_so2.gif
  89. BIN  app/code/community/Phoenix/Moneybookers/view/frontend/images/moneybookers_wlt.gif
  90. +32 −0 app/code/community/Phoenix/Moneybookers/view/frontend/info.phtml
  91. +47 −0 app/code/community/Phoenix/Moneybookers/view/frontend/layout.xml
  92. +39 −0 app/code/community/Phoenix/Moneybookers/view/frontend/payment.phtml
  93. +42 −0 app/code/community/Phoenix/Moneybookers/view/frontend/placeform.phtml
  94. +29 −0 app/code/community/Phoenix/Moneybookers/view/frontend/redirect.phtml
  95. +61 −0 app/code/core/Mage/Admin/Helper/Data.php
  96. +92 −0 app/code/core/Mage/Admin/Model/Acl.php
  97. +38 −0 app/code/core/Mage/Admin/Model/Acl/Resource.php
  98. +38 −0 app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
  99. +38 −0 app/code/core/Mage/Admin/Model/Acl/Role/Group.php
  100. +76 −0 app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
  101. +38 −0 app/code/core/Mage/Admin/Model/Acl/Role/User.php
  102. +174 −0 app/code/core/Mage/Admin/Model/Config.php
  103. +95 −0 app/code/core/Mage/Admin/Model/Observer.php
  104. +171 −0 app/code/core/Mage/Admin/Model/Resource/Acl.php
  105. +45 −0 app/code/core/Mage/Admin/Model/Resource/Permissions/Collection.php
  106. +60 −0 app/code/core/Mage/Admin/Model/Resource/Role.php
  107. +69 −0 app/code/core/Mage/Admin/Model/Resource/Role/Collection.php
  108. +178 −0 app/code/core/Mage/Admin/Model/Resource/Roles.php
  109. +69 −0 app/code/core/Mage/Admin/Model/Resource/Roles/Collection.php
  110. +59 −0 app/code/core/Mage/Admin/Model/Resource/Roles/User/Collection.php
  111. +100 −0 app/code/core/Mage/Admin/Model/Resource/Rules.php
  112. +71 −0 app/code/core/Mage/Admin/Model/Resource/Rules/Collection.php
  113. +463 −0 app/code/core/Mage/Admin/Model/Resource/User.php
  114. +45 −0 app/code/core/Mage/Admin/Model/Resource/User/Collection.php
  115. +55 −0 app/code/core/Mage/Admin/Model/Role.php
  116. +142 −0 app/code/core/Mage/Admin/Model/Roles.php
  117. +69 −0 app/code/core/Mage/Admin/Model/Rules.php
  118. +231 −0 app/code/core/Mage/Admin/Model/Session.php
  119. +573 −0 app/code/core/Mage/Admin/Model/User.php
  120. +48 −0 app/code/core/Mage/Admin/data/admin_setup/data-install-1.6.0.0.php
  121. +52 −0 app/code/core/Mage/Admin/etc/config.xml
  122. +193 −0 app/code/core/Mage/Admin/sql/admin_setup/install-1.6.0.0.php
  123. +48 −0 app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-1.6.0.0-1.6.1.0.php
  124. +111 −0 app/code/core/Mage/AdminNotification/Helper/Data.php
  125. +194 −0 app/code/core/Mage/AdminNotification/Model/Feed.php
  126. +119 −0 app/code/core/Mage/AdminNotification/Model/Inbox.php
  127. +55 −0 app/code/core/Mage/AdminNotification/Model/Observer.php
  128. +118 −0 app/code/core/Mage/AdminNotification/Model/Resource/Inbox.php
  129. +57 −0 app/code/core/Mage/AdminNotification/Model/Resource/Inbox/Collection.php
  130. +114 −0 app/code/core/Mage/AdminNotification/Model/Survey.php
  131. +74 −0 app/code/core/Mage/AdminNotification/etc/adminhtml.xml
  132. +76 −0 app/code/core/Mage/AdminNotification/etc/config.xml
  133. +72 −0 app/code/core/Mage/AdminNotification/etc/system.xml
  134. +83 −0 app/code/core/Mage/AdminNotification/sql/adminnotification_setup/install-1.6.0.0.php
  135. +47 −0 app/code/core/Mage/Adminhtml/Block/Abstract.php
  136. +102 −0 app/code/core/Mage/Adminhtml/Block/Api/Buttons.php
  137. +69 −0 app/code/core/Mage/Adminhtml/Block/Api/Editroles.php
  138. +81 −0 app/code/core/Mage/Adminhtml/Block/Api/Grid/Role.php
  139. +46 −0 app/code/core/Mage/Adminhtml/Block/Api/Role.php
  140. +182 −0 app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php
  141. +51 −0 app/code/core/Mage/Adminhtml/Block/Api/Roles.php
  142. +81 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Roleinfo.php
  143. +119 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
  144. +60 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesusers.php
  145. +45 −0 app/code/core/Mage/Adminhtml/Block/Api/User.php
  146. +58 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php
  147. +45 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Form.php
  148. +153 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php
  149. +119 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Roles.php
  150. +65 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tabs.php
  151. +106 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Grid.php
  152. +68 −0 app/code/core/Mage/Adminhtml/Block/Backup.php
  153. +108 −0 app/code/core/Mage/Adminhtml/Block/Backup/Grid.php
  154. +67 −0 app/code/core/Mage/Adminhtml/Block/Cache.php
  155. +38 −0 app/code/core/Mage/Adminhtml/Block/Cache/Additional.php
  156. +182 −0 app/code/core/Mage/Adminhtml/Block/Cache/Grid.php
  157. +66 −0 app/code/core/Mage/Adminhtml/Block/Cache/Notifications.php
  158. +209 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Abstract.php
  159. +98 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Checkboxes/Tree.php
  160. +45 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit.php
  161. +234 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php
  162. +44 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Image.php
  163. +64 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Pricestep.php
  164. +67 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Available.php
  165. +67 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Default.php
  166. +179 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php
  167. +58 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Design.php
  168. +137 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/General.php
  169. +162 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php
  170. +167 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php
  171. +352 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php
  172. +178 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php
  173. +48 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form.php
  174. +65 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Attribute/Urlkey.php
  175. +61 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/DateFieldsOrder.php
  176. +54 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/YearRange.php
  177. +188 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Fieldset/Element.php
  178. +74 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg.php
  179. +65 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg/Content.php
  180. +87 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product.php
  181. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute.php
  182. +101 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit.php
  183. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Form.php
  184. +106 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Front.php
  185. +263 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php
  186. +36 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
  187. +134 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/System.php
  188. +76 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tabs.php
  189. +123 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Grid.php
  190. +97 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php
  191. +89 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Created.php
  192. +78 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Grid.php
  193. +397 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php
  194. +70 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formattribute.php
  195. +88 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formgroup.php
  196. +88 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formset.php
  197. +39 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Attribute.php
  198. +39 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Group.php
  199. +88 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php
  200. +71 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php
  201. +64 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main/Filter.php
  202. +74 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Configure.php
  203. +47 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Error.php
  204. +62 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset.php
  205. +76 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Configurable.php
  206. +146 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Grouped.php
  207. +73 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Options.php
  208. +75 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Fieldset/Qty.php
  209. +50 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Update/Result.php
  210. +156 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Created.php
  211. +252 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php
  212. +142 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute.php
  213. +125 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php
  214. +102 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Inventory.php
  215. +75 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Websites.php
  216. +45 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tabs.php
  217. +52 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Js.php
  218. +71 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Ajax/Serializer.php
  219. +80 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php
  220. +122 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php
  221. +114 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Stock.php
  222. +166 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php
  223. +104 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php
  224. +293 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php
  225. +260 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Crosssell.php
  226. +145 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
  227. +72 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php
  228. +345 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php
  229. +69 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Abstract.php
  230. +44 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Date.php
  231. +43 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/File.php
  232. +90 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Select.php
  233. +44 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Text.php
  234. +63 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price.php
  235. +49 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Recurring.php
  236. +382 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Tier.php
  237. +258 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Related.php
  238. +55 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Reviews.php
  239. +90 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Settings.php
  240. +341 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php
  241. +312 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php
  242. +56 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Filter/Inventory.php
  243. +72 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Checkbox.php
  244. +51 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Inventory.php
  245. +197 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php
  246. +236 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php
  247. +159 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Settings.php
  248. +108 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag.php
  249. +103 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag/Customer.php
  250. +257 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Upsell.php
  251. +150 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Websites.php
  252. +240 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php
  253. +51 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Configurable.php
  254. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Grouped.php
  255. +107 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Frontend/Product/Watermark.php
  256. +327 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
  257. +71 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Apply.php
  258. +50 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Boolean.php
  259. +70 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Config.php
  260. +189 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery.php
  261. +170 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php
  262. +64 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Image.php
  263. +49 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Msrp/Enabled.php
  264. +49 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Msrp/Price.php
  265. +90 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php
  266. +37 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Price.php
  267. +294 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser.php
  268. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser/Container.php
  269. +46 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search.php
  270. +59 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit.php
  271. +157 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php
  272. +178 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Grid.php
  273. +44 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement.php
  274. +66 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit.php
  275. +151 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit/Form.php
  276. +110 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Grid.php
  277. +45 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block.php
  278. +83 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit.php
  279. +140 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit/Form.php
  280. +132 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php
  281. +159 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Widget/Chooser.php
  282. +67 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page.php
  283. +145 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit.php
  284. +46 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Form.php
  285. +153 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php
  286. +184 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php
  287. +175 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php
  288. +135 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
  289. +44 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tabs.php
  290. +150 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php
  291. +41 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid/Renderer/Action.php
  292. +165 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Widget/Chooser.php
  293. +161 −0 app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content.php
  294. +157 −0 app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Files.php
  295. +37 −0 app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Newfolder.php
  296. +71 −0 app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Uploader.php
  297. +99 −0 app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Tree.php
  298. +46 −0 app/code/core/Mage/Adminhtml/Block/Customer.php
  299. +124 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit.php
  300. +60 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Form.php
Sorry, we could not display the entire diff because too many files (10,959) changed.
View
33 .gitignore
@@ -0,0 +1,33 @@
+/.buildpath
+/.cache
+/.htaccess
+/.metadata
+/.project
+/.settings
+/index.php
+/nbproject
+/sitemap
+/staging
+/.htaccess.orig
+/.idea
+/app/config_sandbox
+/app/etc/local.xml
+/app/etc/local.xml.*
+/app/etc/modules/XEnterprise_Enabler.xml
+/app/locale/en_US_org
+/downloader/.cache
+/downloader/cache.cfg
+/downloader/connect.cfg
+/lib/flex/uploader/.actionScriptProperties
+/lib/flex/uploader/.flexProperties
+/lib/flex/uploader/.project
+/lib/flex/uploader/.settings
+/lib/flex/varien/.actionScriptProperties
+/lib/flex/varien/.flexLibProperties
+/lib/flex/varien/.project
+/lib/flex/varien/.settings
+/pub/media/*
+/pub/media/customer/*
+/pub/media/downloadable/*
+/pub/media/xmlconnect/*
+/var/*
View
186 .htaccess
@@ -0,0 +1,186 @@
+############################################
+## uncomment these lines for CGI mode
+## make sure to specify the correct cgi php binary file name
+## it might be /cgi-bin/php-cgi
+
+# Action php5-cgi /cgi-bin/php5-cgi
+# AddHandler php5-cgi .php
+
+############################################
+## GoDaddy specific options
+
+# Options -MultiViews
+
+## you might also need to add this line to php.ini
+## cgi.fix_pathinfo = 1
+## if it still doesn't work, rename php.ini to php5.ini
+
+############################################
+## this line is specific for 1and1 hosting
+
+ #AddType x-mapp-php5 .php
+ #AddHandler x-mapp-php5 .php
+
+############################################
+## default index file
+
+ DirectoryIndex index.php
+
+<IfModule mod_php5.c>
+
+############################################
+## adjust memory limit
+
+# php_value memory_limit 64M
+ php_value memory_limit 256M
+ php_value max_execution_time 18000
+
+############################################
+## disable magic quotes for php request vars
+
+ php_flag magic_quotes_gpc off
+
+############################################
+## disable automatic session start
+## before autoload was initialized
+
+ php_flag session.auto_start off
+
+############################################
+## enable resulting html compression
+
+ #php_flag zlib.output_compression on
+
+###########################################
+# disable user agent verification to not break multiple image upload
+
+ php_flag suhosin.session.cryptua off
+
+###########################################
+# turn off compatibility with PHP4 when dealing with objects
+
+ php_flag zend.ze1_compatibility_mode Off
+
+</IfModule>
+
+<IfModule mod_security.c>
+###########################################
+# disable POST processing to not break multiple image upload
+
+ SecFilterEngine Off
+ SecFilterScanPOST Off
+</IfModule>
+
+<IfModule mod_deflate.c>
+
+############################################
+## enable apache served files compression
+## http://developer.yahoo.com/performance/rules.html#gzip
+
+ # Insert filter on all content
+ ###SetOutputFilter DEFLATE
+ # Insert filter on selected content types only
+ #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
+
+ # Netscape 4.x has some problems...
+ #BrowserMatch ^Mozilla/4 gzip-only-text/html
+
+ # Netscape 4.06-4.08 have some more problems
+ #BrowserMatch ^Mozilla/4\.0[678] no-gzip
+
+ # MSIE masquerades as Netscape, but it is fine
+ #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+
+ # Don't compress images
+ #SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+
+ # Make sure proxies don't deliver the wrong content
+ #Header append Vary User-Agent env=!dont-vary
+
+</IfModule>
+
+<IfModule mod_ssl.c>
+
+############################################
+## make HTTPS env vars available for CGI mode
+
+ SSLOptions StdEnvVars
+
+</IfModule>
+
+<IfModule mod_rewrite.c>
+
+############################################
+## enable rewrites
+
+ Options +FollowSymLinks
+ RewriteEngine on
+
+############################################
+## you can put here your magento root folder
+## path relative to web root
+
+ #RewriteBase /magento/
+
+############################################
+## workaround for HTTP authorization
+## in CGI environment
+
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+
+############################################
+## always send 404 on missing files in these folders
+
+ RewriteCond %{REQUEST_URI} !^/pub/(media|js)/
+
+############################################
+## never rewrite for existing files, directories and links
+
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteCond %{REQUEST_FILENAME} !-l
+
+############################################
+## rewrite everything else to index.php
+
+ RewriteRule .* index.php [L]
+
+</IfModule>
+
+
+############################################
+## Prevent character encoding issues from server overrides
+## If you still have problems, use the second line instead
+
+ AddDefaultCharset Off
+ #AddDefaultCharset UTF-8
+
+<IfModule mod_expires.c>
+
+############################################
+## Add default Expires header
+## http://developer.yahoo.com/performance/rules.html#expires
+
+ ExpiresDefault "access plus 1 year"
+
+</IfModule>
+
+############################################
+## By default allow all access
+
+ Order allow,deny
+ Allow from all
+
+###########################################
+## Deny access to release notes to prevent disclosure of the installed Magento version
+
+ <Files RELEASE_NOTES.txt>
+ order allow,deny
+ deny from all
+ </Files>
+
+############################################
+## If running in cluster environment, uncomment this
+## http://developer.yahoo.com/performance/rules.html#etags
+
+ #FileETag none
View
179 .htaccess.sample
@@ -0,0 +1,179 @@
+############################################
+## uncomment these lines for CGI mode
+## make sure to specify the correct cgi php binary file name
+## it might be /cgi-bin/php-cgi
+
+# Action php5-cgi /cgi-bin/php5-cgi
+# AddHandler php5-cgi .php
+
+############################################
+## GoDaddy specific options
+
+# Options -MultiViews
+
+## you might also need to add this line to php.ini
+## cgi.fix_pathinfo = 1
+## if it still doesn't work, rename php.ini to php5.ini
+
+############################################
+## this line is specific for 1and1 hosting
+
+ #AddType x-mapp-php5 .php
+ #AddHandler x-mapp-php5 .php
+
+############################################
+## default index file
+
+ DirectoryIndex index.php
+
+<IfModule mod_php5.c>
+
+############################################
+## adjust memory limit
+
+# php_value memory_limit 64M
+ php_value memory_limit 128M
+ php_value max_execution_time 18000
+
+############################################
+## disable magic quotes for php request vars
+
+ php_flag magic_quotes_gpc off
+
+############################################
+## disable automatic session start
+## before autoload was initialized
+
+ php_flag session.auto_start off
+
+############################################
+## enable resulting html compression
+
+ #php_flag zlib.output_compression on
+
+###########################################
+# disable user agent verification to not break multiple image upload
+
+ php_flag suhosin.session.cryptua off
+
+###########################################
+# turn off compatibility with PHP4 when dealing with objects
+
+ php_flag zend.ze1_compatibility_mode Off
+
+</IfModule>
+
+<IfModule mod_security.c>
+###########################################
+# disable POST processing to not break multiple image upload
+
+ SecFilterEngine Off
+ SecFilterScanPOST Off
+</IfModule>
+
+<IfModule mod_deflate.c>
+
+############################################
+## enable apache served files compression
+## http://developer.yahoo.com/performance/rules.html#gzip
+
+ # Insert filter on all content
+ ###SetOutputFilter DEFLATE
+ # Insert filter on selected content types only
+ #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
+
+ # Netscape 4.x has some problems...
+ #BrowserMatch ^Mozilla/4 gzip-only-text/html
+
+ # Netscape 4.06-4.08 have some more problems
+ #BrowserMatch ^Mozilla/4\.0[678] no-gzip
+
+ # MSIE masquerades as Netscape, but it is fine
+ #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+
+ # Don't compress images
+ #SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+
+ # Make sure proxies don't deliver the wrong content
+ #Header append Vary User-Agent env=!dont-vary
+
+</IfModule>
+
+<IfModule mod_ssl.c>
+
+############################################
+## make HTTPS env vars available for CGI mode
+
+ SSLOptions StdEnvVars
+
+</IfModule>
+
+<IfModule mod_rewrite.c>
+
+############################################
+## enable rewrites
+
+ Options +FollowSymLinks
+ RewriteEngine on
+
+############################################
+## you can put here your magento root folder
+## path relative to web root
+
+ #RewriteBase /magento/
+
+############################################
+## workaround for HTTP authorization
+## in CGI environment
+
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+
+############################################
+## always send 404 on missing files in these folders
+
+ RewriteCond %{REQUEST_URI} !^/pub/(media|js)/
+
+############################################
+## never rewrite for existing files, directories and links
+
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteCond %{REQUEST_FILENAME} !-l
+
+############################################
+## rewrite everything else to index.php
+
+ RewriteRule .* index.php [L]
+
+</IfModule>
+
+
+############################################
+## Prevent character encoding issues from server overrides
+## If you still have problems, use the second line instead
+
+ AddDefaultCharset Off
+ #AddDefaultCharset UTF-8
+
+<IfModule mod_expires.c>
+
+############################################
+## Add default Expires header
+## http://developer.yahoo.com/performance/rules.html#expires
+
+ ExpiresDefault "access plus 1 year"
+
+</IfModule>
+
+############################################
+## By default allow all access
+
+ Order allow,deny
+ Allow from all
+
+############################################
+## If running in cluster environment, uncomment this
+## http://developer.yahoo.com/performance/rules.html#etags
+
+ #FileETag none
+
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_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
30 _classmap.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.
+ *
+ * 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 Magento
+ * @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)
+ */
+
+/**
+ * Class files map
+ */
+return array (
+);
View
2  app/.htaccess
@@ -0,0 +1,2 @@
+Order deny,allow
+Deny from all
View
896 app/Mage.php
@@ -0,0 +1,896 @@
+<?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) 2011 Magento Inc. (http://www.magentocommerce.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+/**
+ * Main Mage hub class
+ */
+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;
+
+ /**
+ * 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' => '2',
+ 'minor' => '0',
+ 'revision' => '0',
+ 'patch' => '0',
+ 'stability' => 'dev',
+ 'number' => '1',
+ );
+ }
+
+ /**
+ * 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
+ * @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('Mage_Core_Model_Url')->getUrl($route, $params);
+ }
+
+ /**
+ * Get design package singleton
+ *
+ * @return Mage_Core_Model_Design_Package
+ */
+ public static function getDesign()
+ {
+ return self::getSingleton('Mage_Core_Model_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 multiobservers matching event name pattern
+ *
+ * @param string $name
+ * @param array $args
+ * @return Mage_Core_Model_App
+ */
+ public static function dispatchEvent($name, array $data = array())
+ {
+ Magento_Profiler::start('EVENT:' . $name);
+ $result = self::app()->dispatchEvent($name, $data);
+ #$result = self::registry('events')->dispatch($name, $data);
+ Magento_Profiler::stop('EVENT:' . $name);
+ return $result;
+ }
+
+ /**
+ * Retrieve model object
+ *
+ * @link Mage_Core_Model_Config::getModelInstance
+ * @param string $modelClass
+ * @param array $arguments
+ * @return Mage_Core_Model_Abstract
+ */
+ 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);
+ }
+
+ /**
+ * Returns block singleton instance, if current action exists. Otherwise returns FALSE.
+ *
+ * @param string $className
+ * @return mixed
+ */
+ public static function getBlockSingleton($className)
+ {
+ $action = self::app()->getFrontController()->getAction();
+ return $action ? $action->getLayout()->getBlockSingleton($className) : false;
+ }
+
+ /**
+ * Retrieve helper object
+ *
+ * @param string $name the helper name
+ * @return Mage_Core_Helper_Abstract
+ */
+ public static function helper($name)
+ {
+ /* Default helper class for a module */
+ if (strpos($name, '_Helper_') === false) {
+ $name .= '_Helper_Data';
+ }
+
+ $registryKey = '_helper/' . $name;
+ if (!self::registry($registryKey)) {
+ $helperClass = self::getConfig()->getHelperClassName($name);
+ self::register($registryKey, new $helperClass);
+ }
+ return self::registry($registryKey);
+ }
+
+ /**
+ * Retreive 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
+ */
+ 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::$_config = new Mage_Core_Model_Config($options);
+
+ Magento_Profiler::start('self::app::init');
+ self::$_app->init($code, $type, $options);
+ Magento_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::$_config = new Mage_Core_Model_Config();
+
+ 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 . 'pub' . 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 {
+ Magento_Profiler::start('mage');
+ self::setRoot();
+ 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::$_config = new Mage_Core_Model_Config($options);
+ self::$_app->run(array(
+ 'scope_code' => $code,
+ 'scope_type' => $type,
+ 'options' => $options,
+ ));
+ Magento_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 . 'pub' . 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());
+ }
+ }
+ }
+
+ /**
+ * 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 . 'pub' . 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
92 app/bootstrap.php
@@ -0,0 +1,92 @@
+<?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 Magento
+ * @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)
+ */
+
+/* PHP version validation */
+if (version_compare(phpversion(), '5.3.0', '<') === true) {
+ if (PHP_SAPI == 'cli') {
+ echo 'Magento supports PHP 5.3.0 or newer. Please read http://www.magento.com/install.';
+ } else {
+ echo <<<HTML
+<div style="font:12px/1.35em arial, helvetica, sans-serif;">
+ <div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
+ <h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
+ Whoops, it looks like you have an invalid PHP version.</h3>
+ </div>
+ <p>Magento supports PHP 5.3.0 or newer.
+ <a href="http://www.magento.com/install" target="">Find out</a>
+ how to install Magento using PHP-CGI as a work-around.
+ </p>
+</div>
+HTML;
+ }
+ exit;
+}
+
+/**
+ * Constants definition
+ */
+define('DS', DIRECTORY_SEPARATOR);
+define('BP', dirname(__DIR__));
+
+if (file_exists(BP . '/maintenance.flag')) {
+ if (PHP_SAPI == 'cli') {
+ echo 'Service temporarily unavailable due to maintenance downtime.';
+ } else {
+ include_once BP . '/pub/errors/503.php';
+ }
+ exit;
+}
+
+/**
+ * Environment initialization
+ */
+error_reporting(E_ALL | E_STRICT);
+#ini_set('display_errors', 1);
+umask(0);
+
+/**
+ * Require necessary files
+ */
+require_once BP . '/lib/Magento/Autoload.php';
+require_once BP . '/app/code/core/Mage/Core/functions.php';
+require_once BP . '/app/Mage.php';
+
+if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
+ Mage::setIsDeveloperMode(true);
+}
+Mage::register('original_include_path', get_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';
+
+Magento_Autoload::getInstance()->addIncludePath($paths)
+ ->addFilesMap(BP . '/_classmap.php');
+
+#Magento_Profiler::enable();
+#Magento_Profiler::registerOutput(new Magento_Profiler_Output_Html());
+#Magento_Profiler::registerOutput(new Magento_Profiler_Output_Firebug());
+#Magento_Profiler::registerOutput(new Magento_Profiler_Output_Csvfile(__DIR__ . '/var/log/profiler.csv'));
View
100 app/code/community/Phoenix/Moneybookers/Block/Form.php
@@ -0,0 +1,100 @@
+<?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 Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2011 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('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();
+ }
+
+ $design = Mage::getDesign();
+ $images = array(
+ 'Phoenix_Moneybookers::images/' . $payment . '.png',
+ 'Phoenix_Moneybookers::images/' . $payment . '.gif'
+ );
+ foreach ($images as $image) {
+ if (file_exists($design->getSkinFile($image))) {
+ return $design->getSkinUrl($image);
+ }
+ }
+ 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
57 app/code/community/Phoenix/Moneybookers/Block/Info.php
@@ -0,0 +1,57 @@
+<?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 Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2011 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('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('pdf/info.phtml');
+ return $this->toHtml();
+ }
+}
View
55 app/code/community/Phoenix/Moneybookers/Block/Jsinit.php
@@ -0,0 +1,55 @@
+<?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 Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2011 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('Phoenix_Moneybookers::activation.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
43 app/code/community/Phoenix/Moneybookers/Block/Payment.php
@@ -0,0 +1,43 @@
+<?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 Phoenix
+ * @package Phoenix_Moneybookers
+ * @copyright Copyright (c) 2011 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
+{
+ /**