Skip to content
Browse files

No commit message

  • Loading branch information...
0 parents commit 4cc769781271c7169275acfe22dd34fb5235118b Magento Core Team committed Jun 12, 2008
Showing with 19,666 additions and 0 deletions.
  1. +176 −0 .htaccess
  2. +175 −0 .htaccess.sample
  3. +24 −0 404/index.php
  4. BIN 404/skin/default/images/404.gif
  5. BIN 404/skin/default/images/body_bg.gif
  6. BIN 404/skin/default/images/error_msg_icon.gif
  7. BIN 404/skin/default/images/favicon.ico
  8. BIN 404/skin/default/images/header_top_container_bg.jpg
  9. BIN 404/skin/default/images/logo.gif
  10. BIN 404/skin/default/images/main_bg.gif
  11. BIN 404/skin/default/images/main_container_bg.gif
  12. +345 −0 404/skin/default/index.phtml
  13. +48 −0 LICENSE.txt
  14. +2 −0 app/.htaccess
  15. +595 −0 app/Mage.php
  16. +86 −0 app/code/core/Mage/Admin/Model/Acl.php
  17. +50 −0 app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
  18. +50 −0 app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
  19. +32 −0 app/code/core/Mage/Admin/Model/Acl/Resource.php
  20. +32 −0 app/code/core/Mage/Admin/Model/Acl/Role.php
  21. +32 −0 app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
  22. +32 −0 app/code/core/Mage/Admin/Model/Acl/Role/Group.php
  23. +70 −0 app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
  24. +32 −0 app/code/core/Mage/Admin/Model/Acl/Role/User.php
  25. +118 −0 app/code/core/Mage/Admin/Model/Config.php
  26. +161 −0 app/code/core/Mage/Admin/Model/Mysql4/Acl.php
  27. +79 −0 app/code/core/Mage/Admin/Model/Mysql4/Acl/Role.php
  28. +40 −0 app/code/core/Mage/Admin/Model/Mysql4/Acl/Role/Collection.php
  29. +27 −0 app/code/core/Mage/Admin/Model/Mysql4/Permissions/Collection.php
  30. +49 −0 app/code/core/Mage/Admin/Model/Mysql4/Role.php
  31. +46 −0 app/code/core/Mage/Admin/Model/Mysql4/Role/Collection.php
  32. +90 −0 app/code/core/Mage/Admin/Model/Mysql4/Roles.php
  33. +37 −0 app/code/core/Mage/Admin/Model/Mysql4/Roles/Collection.php
  34. +34 −0 app/code/core/Mage/Admin/Model/Mysql4/Roles/User/Collection.php
  35. +61 −0 app/code/core/Mage/Admin/Model/Mysql4/Rules.php
  36. +40 −0 app/code/core/Mage/Admin/Model/Mysql4/Rules/Collection.php
  37. +256 −0 app/code/core/Mage/Admin/Model/Mysql4/User.php
  38. +27 −0 app/code/core/Mage/Admin/Model/Mysql4/User/Collection.php
  39. +67 −0 app/code/core/Mage/Admin/Model/Observer.php
  40. +27 −0 app/code/core/Mage/Admin/Model/Role.php
  41. +104 −0 app/code/core/Mage/Admin/Model/Roles.php
  42. +41 −0 app/code/core/Mage/Admin/Model/Rules.php
  43. +140 −0 app/code/core/Mage/Admin/Model/Session.php
  44. +233 −0 app/code/core/Mage/Admin/Model/User.php
  45. +205 −0 app/code/core/Mage/Admin/etc/admin.xml
  46. +66 −0 app/code/core/Mage/Admin/etc/config.xml
  47. +90 −0 app/code/core/Mage/Admin/sql/admin_setup/mysql4-install-0.7.0.php
  48. +28 −0 app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.0-0.7.1.php
  49. +60 −0 app/code/core/Mage/AdminNotification/Helper/Data.php
  50. +183 −0 app/code/core/Mage/AdminNotification/Model/Feed.php
  51. +95 −0 app/code/core/Mage/AdminNotification/Model/Inbox.php
  52. +84 −0 app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox.php
  53. +42 −0 app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox/Collection.php
  54. +43 −0 app/code/core/Mage/AdminNotification/Model/Observer.php
  55. +154 −0 app/code/core/Mage/AdminNotification/etc/config.xml
  56. +66 −0 app/code/core/Mage/AdminNotification/etc/system.xml
  57. +42 −0 app/code/core/Mage/AdminNotification/sql/adminnotification_setup/mysql4-install-1.0.0.php
  58. +41 −0 app/code/core/Mage/Adminhtml/Block/Abstract.php
  59. +96 −0 app/code/core/Mage/Adminhtml/Block/Api/Buttons.php
  60. +58 −0 app/code/core/Mage/Adminhtml/Block/Api/Editroles.php
  61. +51 −0 app/code/core/Mage/Adminhtml/Block/Api/Edituser.php
  62. +75 −0 app/code/core/Mage/Adminhtml/Block/Api/Grid/Role.php
  63. +40 −0 app/code/core/Mage/Adminhtml/Block/Api/Role.php
  64. +176 −0 app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php
  65. +45 −0 app/code/core/Mage/Adminhtml/Block/Api/Roles.php
  66. +73 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Roleinfo.php
  67. +111 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
  68. +51 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesusers.php
  69. +43 −0 app/code/core/Mage/Adminhtml/Block/Api/Tab/Userroles.php
  70. +39 −0 app/code/core/Mage/Adminhtml/Block/Api/User.php
  71. +52 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php
  72. +39 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Form.php
  73. +147 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php
  74. +113 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Roles.php
  75. +56 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tabs.php
  76. +100 −0 app/code/core/Mage/Adminhtml/Block/Api/User/Grid.php
  77. +48 −0 app/code/core/Mage/Adminhtml/Block/Api/Users.php
  78. +62 −0 app/code/core/Mage/Adminhtml/Block/Backup.php
  79. +104 −0 app/code/core/Mage/Adminhtml/Block/Backup/Grid.php
  80. +49 −0 app/code/core/Mage/Adminhtml/Block/Backup/Grid/Filter/Type.php
  81. +48 −0 app/code/core/Mage/Adminhtml/Block/Backup/Grid/Renderer/Type.php
  82. +35 −0 app/code/core/Mage/Adminhtml/Block/Catalog.php
  83. +154 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit.php
  84. +38 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Image.php
  85. +52 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Design.php
  86. +19 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Feature.php
  87. +113 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/General.php
  88. +145 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php
  89. +65 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php
  90. +214 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php
  91. +42 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form.php
  92. +156 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Fieldset/Element.php
  93. +77 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product.php
  94. +40 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute.php
  95. +80 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit.php
  96. +40 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Form.php
  97. +100 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Front.php
  98. +343 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php
  99. +174 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
  100. +128 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/System.php
  101. +67 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tabs.php
  102. +167 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Grid.php
  103. +77 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php
  104. +83 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Created.php
  105. +72 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Grid.php
  106. +281 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php
  107. +64 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formattribute.php
  108. +82 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formgroup.php
  109. +80 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formset.php
  110. +33 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Attribute.php
  111. +33 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Group.php
  112. +82 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php
  113. +59 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php
  114. +58 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main/Filter.php
  115. +146 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Created.php
  116. +227 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php
  117. +107 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute.php
  118. +92 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php
  119. +65 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Inventory.php
  120. +67 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Websites.php
  121. +64 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tabs.php
  122. +49 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Ajax/Serializer.php
  123. +71 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php
  124. +114 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php
  125. +106 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Stock.php
  126. +107 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php
  127. +91 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php
  128. +75 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php
  129. +190 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Crosssell.php
  130. +91 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
  131. +66 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php
  132. +293 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php
  133. +53 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Abstract.php
  134. +38 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Date.php
  135. +37 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/File.php
  136. +78 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Select.php
  137. +38 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Text.php
  138. +57 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price.php
  139. +190 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Tier.php
  140. +198 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Related.php
  141. +80 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Settings.php
  142. +183 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php
  143. +268 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php
  144. +50 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Filter/Inventory.php
  145. +66 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Checkbox.php
  146. +45 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Inventory.php
  147. +178 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php
  148. +155 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php
  149. +126 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Settings.php
  150. +103 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag.php
  151. +98 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag/Customer.php
  152. +188 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Upsell.php
  153. +95 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Websites.php
  154. +188 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php
  155. +52 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Configurable.php
  156. +40 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Grouped.php
  157. +101 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Frontend/Product/Watermark.php
  158. +275 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
  159. +40 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Apply.php
  160. +44 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Boolean.php
  161. +146 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery.php
  162. +164 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php
  163. +58 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Image.php
  164. +81 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php
  165. +19 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Set/Main.php
  166. +19 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Set/Toolbar/Main.php
  167. +40 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search.php
  168. +53 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit.php
  169. +116 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php
  170. +140 −0 app/code/core/Mage/Adminhtml/Block/Catalog/Search/Grid.php
  171. +38 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement.php
  172. +60 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit.php
  173. +123 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit/Form.php
  174. +104 −0 app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Grid.php
  175. +39 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block.php
  176. +78 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit.php
  177. +120 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit/Form.php
  178. +126 −0 app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php
  179. +43 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page.php
  180. +72 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit.php
  181. +40 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Form.php
  182. +83 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php
  183. +110 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php
  184. +66 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
  185. +62 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tabs.php
  186. +155 −0 app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php
  187. +40 −0 app/code/core/Mage/Adminhtml/Block/Customer.php
  188. +74 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit.php
  189. +49 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Form.php
  190. +50 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Newpass.php
  191. +57 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Region.php
  192. +107 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php
  193. +127 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Addresses.php
  194. +135 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Cart.php
  195. +60 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Carts.php
  196. +89 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter.php
  197. +120 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid.php
  198. +65 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Filter/Status.php
  199. +67 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Action.php
  200. +59 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Status.php
  201. +125 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php
  202. +139 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Reviews.php
  203. +115 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tag.php
  204. +116 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tags.php
  205. +151 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View.php
  206. +134 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Cart.php
  207. +127 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Orders.php
  208. +131 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Sales.php
  209. +110 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Wishlist.php
  210. +154 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist.php
  211. +36 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist/Grid/Renderer/Description.php
  212. +103 −0 app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
  213. +218 −0 app/code/core/Mage/Adminhtml/Block/Customer/Grid.php
  214. +38 −0 app/code/core/Mage/Adminhtml/Block/Customer/Grid/Filter/Country.php
  215. +44 −0 app/code/core/Mage/Adminhtml/Block/Customer/Group.php
Sorry, we could not display the entire diff because too many files (8,293) changed.
176 .htaccess
@@ -0,0 +1,176 @@
+############################################
+## 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
+ #SetOutputFilter DEFLATE
+
+ # 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} !^/(media|skin|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
+
175 .htaccess.sample
@@ -0,0 +1,175 @@
+############################################
+## 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 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
+ #SetOutputFilter DEFLATE
+
+ # 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} !^/(media|skin|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
+
24 404/index.php
@@ -0,0 +1,24 @@
+<?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 Mage
+ * @package Mage_Core
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+$baseUrl = dirname(dirname($_SERVER['PHP_SELF']));
+$store = 'default';
+
+include_once ('skin/'.$store.'/index.phtml');
BIN 404/skin/default/images/404.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 404/skin/default/images/body_bg.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 404/skin/default/images/error_msg_icon.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 404/skin/default/images/favicon.ico
Binary file not shown.
BIN 404/skin/default/images/header_top_container_bg.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 404/skin/default/images/logo.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 404/skin/default/images/main_bg.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 404/skin/default/images/main_container_bg.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
345 404/skin/default/index.phtml
@@ -0,0 +1,345 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>404 error: Page not found</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <meta name="description" content=""/>
+ <meta name="keywords" content=""/>
+ <meta name="robots" content="*"/>
+ <link rel="icon" href="skin/<?php echo $store ?>/images/favicon.ico" type="image/x-icon"/>
+ <link rel="shortcut icon" href="skin/<?php echo $store ?>/images/favicon.ico" type="image/x-icon"/>
+<!--[if IE]>
+<style type="text/css">
+ .head,
+ .page-head,
+ .page-head-alt,
+ .header-top-container,
+ .header-top,
+ .header-nav-container,
+ .header-nav,
+ #nav,
+ #nav li,
+ #nav a,
+ .middle,
+ .button-set,
+ .form-list li,
+ .button-container,
+ .group-select li,
+ .listing-type-list .listing-item,
+ .listing-type-list .product-info .product-reviews { zoom:1; }
+
+ .clear {
+ display:block;
+ clear:both;
+ height:0;
+ font-size:0;
+ line-height:0;
+ }
+ .quick-access li { padding-right:4px; padding-left:6px;}
+ .home-spot { display:inline; }
+ .header-top-container { position:relative; }
+ #nav ul li.parent { margin-bottom:-3px;}
+</style>
+<![endif]-->
+<!--[if lt IE 7]>
+<style text="text/css">
+ h1#logo { display:inline; }
+ #nav li.parent { margin-bottom:-3px; }
+ .group-select .legend { position:relative; zoom:1; }
+
+ /* Min-height for IE */
+ .login-box .content { height:180px; }
+ .content-box { height:250px; }
+ #main { height:400px; }
+ .validation-advice { height:15px; }
+ .error-msg, .success-msg, .note-msg { height:23px; }
+ .base-mini .head h4, .shopping-cart-collaterals h4 { height:16px; }
+</style>
+<![endif]-->
+ <style type="text/css">
+ body {
+ -x-system-font:none;
+ background:#496778 url(skin/<?php echo $store ?>/images/body_bg.gif) repeat-y scroll 50% 0pt;
+ color:#2F2F2F;
+ font-family:arial,helvetica,sans-serif;
+ font-size:12px;
+ font-size-adjust:none;
+ font-stretch:normal;
+ font-style:normal;
+ font-variant:normal;
+ font-weight:normal;
+ line-height:1.55em;
+ text-align:center;
+ }
+ * {
+ margin:0pt;
+ padding:0pt;
+ }
+ .header {
+ border-top:5px solid #0D2131;
+ text-align:left;
+ z-index:999;
+ }
+ .header-top-container {
+ background:transparent url(skin/<?php echo $store ?>/images/header_top_container_bg.jpg) repeat-x scroll 50% 0pt;
+ border-bottom:1px solid #415966;
+ }
+ .header-top {
+ padding:10px;
+ margin:0pt auto;
+ position:relative;
+ width:930px;
+ }
+ h1#logo {
+ float:left;
+ margin:3px 0pt 10px 12px;
+ width:202px;
+ }
+ h1, h2, h3, h4, h5, h6, .head {
+ color:#0A263C;
+ line-height:1.3em;
+ margin-bottom:0.4em;
+ }
+ a {
+ color:#1E7EC8;
+ text-decoration:underline;
+ }
+ a img {
+ border:0pt none;
+ }
+ .middle-container {
+ background:#FBFAF6 url(skin/<?php echo $store ?>/images/main_container_bg.gif) no-repeat scroll 50% 0pt;
+ }
+ .middle {
+ background:#FFFFFE url(skin/<?php echo $store ?>/images/main_bg.gif) no-repeat scroll 0% 0%;
+ padding:25px 25px 80px;
+ margin:0pt auto;
+ min-height:400px;
+ position:relative;
+ text-align:left;
+ width:900px;
+ }
+ .col-1-layout .col-main {
+ float:none;
+ margin:0pt;
+ }
+ .col-main {
+ float:left;
+ }
+ .page-head, .page-head-alt {
+ text-align:right;
+ }
+ .page-head {
+ border-bottom:1px solid #CCCCCC;
+ margin:0pt 0pt 25px;
+ }
+ .page-head h3, .page-head-alt h3 {
+ font-size:1.7em !important;
+ font-weight:normal !important;
+ margin:0pt;
+ text-align:left;
+ text-transform:none !important;
+ }
+ form {
+ display:inline;
+ }
+ .group-select {
+ background:#FBFAF6 none repeat scroll 0% 0%;
+ border:1px solid #BBAFA0;
+ margin:28px 0pt;
+ padding:22px 25px 12px;
+ }
+ fieldset {
+ border:medium none;
+ }
+ input, select, button {
+ vertical-align:middle;
+ }
+ .group-select .legend {
+ background:#F9F3E3 none repeat scroll 0% 0%;
+ border:1px solid #F19900;
+ color:#E76200;
+ float:left;
+ font-size:1.1em;
+ font-weight:bold;
+ margin-top:-33px;
+ padding:0pt 8px;
+ }
+ .group-select li {
+ padding:4px 8px !important;
+ }
+ li {
+ list-style-image:none;
+ list-style-position:outside;
+ list-style-type:none;
+ }
+ .group-select li .input-box {
+ float:left;
+ width:275px;
+ }
+ .group-select label, .form-list label, .payment-methods label {
+ font-weight:bold;
+ }
+ label {
+ color:#666666;
+ font-weight:bold;
+ }
+ .required {
+ color:#EB340A;
+ }
+ .group-select li .input-box .input-text, .group-select li .input-box textarea {
+ width:250px;
+ }
+ input.input-text, textarea {
+ padding:2px;
+ }
+ input.input-text, select, textarea {
+ -x-system-font:none;
+ border:1px solid #B6B6B6;
+ font-family:arial,helvetica,sans-serif;
+ font-size:12px;
+ font-size-adjust:none;
+ font-stretch:normal;
+ font-style:normal;
+ font-variant:normal;
+ font-weight:normal;
+ line-height:normal;
+ }
+ .button-set {
+ border-top:1px solid #E4E4E4;
+ clear:both;
+ margin-top:4em;
+ padding-top:8px;
+ text-align:right;
+ }
+ p.required {
+ font-size:0.95em;
+ text-align:right;
+ }
+ p {
+ margin-bottom:0.8em;
+ }
+ .form-button, .form-button-alt {
+ -x-system-font:none !important;
+ background:#F18200 none repeat scroll 0% 0%;
+ border:1px solid #DE5400;
+ color:#FFFFFF;
+ cursor:pointer;
+ font-family:arial,sans-serif !important;
+ font-size:12px !important;
+ font-size-adjust:none !important;
+ font-stretch:normal !important;
+ font-style:normal !important;
+ font-variant:normal !important;
+ font-weight:bold !important;
+ line-height:normal !important;
+ overflow:visible;
+ padding:1px 8px;
+ text-align:center;
+ vertical-align:middle;
+ width:auto;
+ }
+ .form-button span, .form-button-alt span {
+ white-space:nowrap;
+ }
+ .footer-container {
+ border-top:15px solid #B6D1E2;
+ }
+ .footer {
+ margin:0pt auto;
+ padding:1em 1em 4em;
+ position:relative;
+ width:930px;
+ }
+ .footer .legality {
+ color:#ECF3F6;
+ padding:13px 0pt;
+ text-align:center;
+ }
+ .clear:after,
+ .head:after,
+ .header-top:after,
+ #nav:after,
+ .middle:after,
+ .button-set:after,
+ .legend:after,
+ .button-container:after,
+ .group-select li:after,
+ .side-col li:after,
+ .listing-type-list .listing-item:after,
+ .listing-type-list .product-info .product-reviews:after {
+ content:".";
+ display:block;
+ clear:both;
+ height:0;
+ font-size:0;
+ line-height:0em;
+ visibility:hidden;
+ overflow:hidden;
+ }
+ .messages {
+ overflow:hidden;
+ width:100%;
+ }
+ .error-msg {
+ background-color:#FAEBE7;
+ background-image:url(skin/<?php echo $store ?>/images/error_msg_icon.gif);
+ border-color:#F16048;
+ color:#DF280A;
+ }
+ .error-msg, .success-msg, .notice-msg, .note-msg {
+ background-position:10px 10px !important;
+ background-repeat:no-repeat !important;
+ border-style:solid !important;
+ border-width:1px !important;
+ font-size:0.95em !important;
+ font-weight:bold !important;
+ margin-bottom:1em !important;
+ min-height:23px !important;
+ padding:8px 8px 8px 32px !important;
+ }
+ .error-msg li, .success-msg li, .notice-msg li {
+ margin-bottom:0.2em;
+ }
+ </style>
+</head>
+
+<body class=" customer-account-create">
+<!-- [start] header -->
+ <div class="header">
+ <div class="header-top-container">
+ <div class="header-top">
+ <h1 id="logo"><a href="<?php echo $baseUrl?>"><img src="skin/<?php echo $store ?>/images/logo.gif" alt="Magento Commerce"/></a></h1>
+ </div>
+ </div>
+ </div>
+<!-- [end] header -->
+<!-- [start] middle -->
+ <div class="middle-container">
+ <div class="middle col-1-layout">
+ <!-- [start] center -->
+ <div id="main" class="col-main">
+ <!-- [start] content -->
+ <div class="page-head">
+ <h3>404 error: Page not found.</h3>
+ </div>
+ <!-- [end] content -->
+ </div>
+ <!-- [end] center -->
+ </div>
+ </div>
+<!-- [end] middle -->
+
+<!-- [start] footer -->
+ <div class="footer-container">
+ <div class="footer">
+ <p class="legality">
+ Magento is a trademark of Irubin Consulting Inc. DBA Varien. Copyright &copy; 2008 Irubin Consulting Inc.</p>
+ </div>
+ </div>
+<!-- [end] footer -->
+</body>
+</html>
+
+
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.
2 app/.htaccess
@@ -0,0 +1,2 @@
+Order deny,allow
+Deny from all
595 app/Mage.php
@@ -0,0 +1,595 @@
+<?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 Mage
+ * @package Mage_Core
+ * @copyright Copyright (c) 2004-2007 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__)));
+
+/**
+ * Error reporting
+ */
+error_reporting(E_ALL | E_STRICT);
+
+Mage::register('original_include_path', get_include_path());
+
+/**
+ * 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';
+
+$app_path = implode(PS, $paths);
+
+set_include_path($app_path . PS . Mage::registry('original_include_path'));
+
+include_once "Mage/Core/functions.php";
+include_once "Varien/Profiler.php";
+
+/**
+ * Main Mage hub class
+ *
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+final class Mage {
+ /**
+ * Registry collection
+ *
+ * @var array
+ */
+ static private $_registry = array();
+
+ /**
+ * Application model
+ *
+ * @var Mage_Core_Model_App
+ */
+ static private $_app;
+
+ static private $_useCache = array();
+
+ static private $_objects;
+
+ static private $_isDownloader = false;
+
+ static private $_isDeveloperMode = false;
+
+ public static function getVersion()
+ {
+ return '1.1.x.2';
+ }
+
+ /**
+ * Register a new variable
+ *
+ * @param string $key
+ * @param mixed $value
+ */
+ public static function register($key, $value)
+ {
+ if(isset(self::$_registry[$key])){
+ Mage::throwException('Mage registry key "'.$key.'" already exists');
+ }
+ self::$_registry[$key] = $value;
+ }
+
+ 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
+ */
+ public static function setRoot($appRoot='')
+ {
+ 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)) {
+ Mage::register('appRoot', $appRoot);
+ } else {
+ Mage::throwException($appRoot.' is not a directory or not readable by this user');
+ }
+ }
+
+ /**
+ * Get application root absolute path
+ *
+ * @return string
+ */
+
+ public static function getRoot()
+ {
+ return Mage::registry('appRoot');
+ }
+
+ /**
+ * 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
+ *
+ * @return string
+ */
+ public static function getBaseDir($type='base')
+ {
+ return Mage::getConfig()->getOptions()->getDir($type);
+ }
+
+ public static function getModuleDir($type, $moduleName)
+ {
+ return Mage::getConfig()->getModuleDir($type, $moduleName);
+ }
+
+ public static function getStoreConfig($path, $id=null)
+ {
+ return self::app()->getStore($id)->getConfig($path);
+ }
+
+ public static function getStoreConfigFlag($path, $id=null)
+ {
+ $flag = strtolower(Mage::getStoreConfig($path, $id));
+ if (!empty($flag) && 'false'!==$flag && '0'!==$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 Mage::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 Mage::getModel('core/url')->getUrl($route, $params);
+ }
+
+ /**
+ * Get design package singleton
+ *
+ * @return Mage_Core_Model_Design_Package
+ */
+ public static function getDesign()
+ {
+ return Mage::getSingleton('core/design_package');
+ }
+
+ /**
+ * Get a config object
+ *
+ * @return Mage_Core_Model_Config
+ */
+ public static function getConfig()
+ {
+ return Mage::registry('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 Mage::registry('events')->addObserver($observer);
+ }
+
+ /**
+ * Dispatch event
+ *
+ * Calls all observer callbacks registered for this event
+ * and multiobservers matching event name pattern
+ *
+ * @param string $name
+ * @param array $args
+ */
+ public static function dispatchEvent($name, array $data=array())
+ {
+ Varien_Profiler::start('DISPATCH EVENT:'.$name);
+ $result = Mage::app()->dispatchEvent($name, $data);
+ #$result = Mage::registry('events')->dispatch($name, $data);
+ Varien_Profiler::stop('DISPATCH 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 Mage::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 (!Mage::registry($registryKey)) {
+ Mage::register($registryKey, Mage::getModel($modelClass, $arguments));
+ }
+ return Mage::registry($registryKey);
+ }
+
+ /**
+ * Retrieve object of resource model
+ *
+ * @param string $modelClass
+ * @param array $arguments
+ * @return Object
+ */
+ public static function getResourceModel($modelClass, $arguments=array())
+ {
+ return Mage::getConfig()->getResourceModelInstance($modelClass, $arguments);
+ }
+
+ /**
+ * 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 (!Mage::registry($registryKey)) {
+ Mage::register($registryKey, Mage::getResourceModel($modelClass, $arguments));
+ }
+ return Mage::registry($registryKey);
+ }
+
+ /**
+ * Deprecated, use Mage::helper()
+ *
+ * @param string $type
+ * @return object
+ */
+ public static function getBlockSingleton($type)
+ {
+ $action = Mage::app()->getFrontController()->getAction();
+ return $action ? $action->getLayout()->getBlockSingleton($type) : false;
+ }
+
+ /**
+ * Retrieve helper object
+ *
+ * @param helper name $name
+ * @return Mage_Core_Helper_Abstract
+ */
+ public static function helper($name)
+ {
+ return Mage::app()->getHelper($name);
+ }
+
+ /**
+ * Return new exception by module to be thrown
+ *
+ * @param string $module
+ * @param string $message
+ * @param integer $code
+ */
+ public static function exception($module='Mage_Core', $message='', $code=0)
+ {
+ $className = $module.'_Exception';
+ return new $className($message, $code);
+ }
+
+ public static function throwException($message, $messageStorage=null)
+ {
+ if ($messageStorage && ($storage = Mage::getSingleton($messageStorage))) {
+ $storage->addError($message);
+ }
+ throw new Mage_Core_Exception($message);
+ }
+
+ /**
+ * Initialize and retrieve application
+ *
+ * @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) {
+ Varien_Profiler::start('app/init');
+
+ self::$_app = new Mage_Core_Model_App();
+
+ Mage::setRoot();
+ Mage::register('events', new Varien_Event_Collection());
+ Mage::register('config', new Mage_Core_Model_Config());
+
+ self::$_app->init($code, $type, $options);
+ self::$_app->loadAreaPart(Mage_Core_Model_App_Area::AREA_GLOBAL, Mage_Core_Model_App_Area::PART_EVENTS);
+ }
+ return self::$_app;
+ }
+
+ /**
+ * 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('app');
+
+ Varien_Profiler::start('app::init');
+ self::app($code, $type, $options);
+ Varien_Profiler::stop('app::init');
+
+ Varien_Profiler::start('app::dispatch');
+ self::app()->getFrontController()->dispatch();
+ Varien_Profiler::stop('app::dispatch');
+
+ Varien_Profiler::stop('app');
+ }
+ catch (Mage_Core_Model_Store_Exception $e) {
+ $baseUrl = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');
+ header('Location: ' . $baseUrl.'/404/');
+ die();
+ }
+ catch (Exception $e) {
+ if (self::app()->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());
+ }
+ }
+ }
+
+ /**
+ * log facility (??)
+ *
+ * @param string $message
+ * @param integer $level
+ * @param string $file
+ */
+ public static function log($message, $level=null, $file = '')
+ {
+ if (!self::getConfig()) {
+ return;
+ }
+ if (!Mage::getStoreConfig('dev/log/active')) {
+ return;
+ }
+
+ static $loggers = array();
+
+ $level = is_null($level) ? Zend_Log::DEBUG : $level;
+ if (empty($file)) {
+ $file = Mage::getStoreConfig('dev/log/file');
+ $file = empty($file) ? 'system.log' : $file;
+ }
+
+ try {
+ if (!isset($loggers[$file])) {
+ $logFile = Mage::getBaseDir('var').DS.'log'.DS.$file;
+ $logDir = Mage::getBaseDir('var').DS.'log';
+
+ if (!is_dir(Mage::getBaseDir('var').DS.'log')) {
+ mkdir(Mage::getBaseDir('var').DS.'log', 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);
+ $writer = new Zend_Log_Writer_Stream($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){
+
+ }
+ }
+
+ public static function logException(Exception $e)
+ {
+ if (!self::getConfig()) {
+ return;
+ }
+ $file = Mage::getStoreConfig('dev/log/exception_file');
+ self::log("\n".$e->getTraceAsString(), 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 {
+ self::getConfig()->createDirIfNotExists(self::getBaseDir('var') . DS . 'report');
+ $reportId = intval(microtime(true) * rand(100, 1000));
+ $reportFile = self::getBaseDir('var') . DS . 'report' . DS . $reportId;
+ $reportData = array(
+ !empty($extra) ? $extra . "\n\n" : '' . $e->getMessage(),
+ $e->getTraceAsString()
+ );
+ $reportData = serialize($reportData);
+
+ file_put_contents($reportFile, $reportData);
+ chmod($reportFile, 0777);
+
+ $storeCode = 'default';
+ try {
+ $storeCode = self::app()->getStore()->getCode();
+ }
+ catch (Exception $e) {}
+
+ $baseUrl = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');
+ $reportUrl = $baseUrl . '/report/?id='
+ . $reportId . '&s=' . $storeCode;
+
+ if (!headers_sent()) {
+ header('Location: ' . $reportUrl);
+ }
+ else {
+ print '<script type="text/javascript">';
+ print "window.location.href = '{$reportUrl}';";
+ print '</script>';
+ }
+ }
+
+ die();
+ }
+
+ public static function setIsDownloader($flag=true)
+ {
+ self::$_isDownloader = $flag;
+ }
+}
86 app/code/core/Mage/Admin/Model/Acl.php
@@ -0,0 +1,86 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * Acl model
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl extends Zend_Acl
+{
+ /**
+ * All the group roles are prepended by G
+ *
+ */
+ const ROLE_TYPE_GROUP = 'G';
+
+ /**
+ * All the user roles are prepended by U
+ *
+ */
+ const ROLE_TYPE_USER = 'U';
+
+ /**
+ * Permission level to deny access
+ *
+ */
+ const RULE_PERM_DENY = 0;
+
+ /**
+ * Permission level to inheric access from parent role
+ *
+ */
+ const RULE_PERM_INHERIT = 1;
+
+ /**
+ * Permission level to allow access
+ *
+ */
+ const RULE_PERM_ALLOW = 2;
+
+ /**
+ * Get role registry object or create one
+ *
+ * @return Mage_Admin_Model_Acl_Role_Registry
+ */
+ protected function _getRoleRegistry()
+ {
+ if (null === $this->_roleRegistry) {
+ $this->_roleRegistry = Mage::getModel('admin/acl_role_registry');
+ }
+ return $this->_roleRegistry;
+ }
+
+ /**
+ * Add parent to role object
+ *
+ * @param Zend_Acl_Role $role
+ * @param Zend_Acl_Role $parent
+ * @return Mage_Admin_Model_Acl
+ */
+ public function addRoleParent($role, $parent)
+ {
+ $this->_getRoleRegistry()->addParent($role, $parent);
+ return $this;
+ }
+}
50 app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
@@ -0,0 +1,50 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * IP assertion for admin acl
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl_Assert_Ip implements Zend_Acl_Assert_Interface
+{
+ /**
+ * Check whether ip is allowed
+ *
+ * @param Zend_Acl $acl
+ * @param Zend_Acl_Role_Interface $role
+ * @param Zend_Acl_Resource_Interface $resource
+ * @param string $privilege
+ * @return boolean
+ */
+ public function assert(Mage_Admin_Model_Acl $acl, Mage_Admin_Model_Acl_Role $role = null,
+ Mage_Admin_Model_Acl_Resource $resource = null, $privilege = null)
+ {
+ return $this->_isCleanIP($_SERVER['REMOTE_ADDR']);
+ }
+
+ protected function _isCleanIP($ip)
+ {
+ // ...
+ }
+}
50 app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
@@ -0,0 +1,50 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * Assert time for admin acl
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl_Assert_Time implements Zend_Acl_Assert_Interface
+{
+ /**
+ * Assert time
+ *
+ * @param Zend_Acl $acl
+ * @param Zend_Acl_Role_Interface $role
+ * @param Zend_Acl_Resource_Interface $resource
+ * @param string $privilege
+ * @return boolean
+ */
+ public function assert(Mage_Admin_Model_Acl $acl, Mage_Admin_Model_Acl_Role $role = null,
+ Mage_Admin_Model_Acl_Resource $resource = null, $privilege = null)
+ {
+ return $this->_isCleanTime(time());
+ }
+
+ protected function _isCleanTime($time)
+ {
+ // ...
+ }
+}
32 app/code/core/Mage/Admin/Model/Acl/Resource.php
@@ -0,0 +1,32 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * Acl resource
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl_Resource extends Zend_Acl_Resource
+{
+
+}
32 app/code/core/Mage/Admin/Model/Acl/Role.php
@@ -0,0 +1,32 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * User acl role
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl_Role extends Varien_Object
+{
+
+}
32 app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
@@ -0,0 +1,32 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * User acl role
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl_Role_Generic extends Zend_Acl_Role
+{
+
+}
32 app/code/core/Mage/Admin/Model/Acl/Role/Group.php
@@ -0,0 +1,32 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * Acl Group model
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl_Role_Group extends Mage_Admin_Model_Acl_Role_Generic
+{
+
+}
70 app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
@@ -0,0 +1,70 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * Acl role registry
+ *
+ * @category Mage
+ * @package Mage_Admin
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Admin_Model_Acl_Role_Registry extends Zend_Acl_Role_Registry
+{
+ /**
+ * Add parent to the $role node
+ *
+ * @param Zend_Acl_Role_Interface|string $role
+ * @param array|Zend_Acl_Role_Interface|string $parents
+ * @return Mage_Auth_Model_Acl_Role_Registry
+ */
+ function addParent($role, $parents)
+ {
+ try {
+ if ($role instanceof Zend_Acl_Role_Interface) {
+ $roleId = $role->getRoleId();
+ } else {
+ $roleId = $role;
+ $role = $this->get($role);
+ }
+ } catch (Zend_Acl_Role_Registry_Exception $e) {
+ throw new Zend_Acl_Role_Registry_Exception("Child Role id '$roleId' does not exist");
+ }
+
+ if (!is_array($parents)) {
+ $parents = array($parents);
+ }
+ foreach ($parents as $parent) {
+ try {
+ if ($parent instanceof Zend_Acl_Role_Interface) {
+ $roleParentId = $parent->getRoleId();
+ } else {
+ $roleParentId = $parent;
+ }
+ $roleParent = $this->get($roleParentId);
+ } catch (Zend_Acl_Role_Registry_Exception $e) {
+ throw new Zend_Acl_Role_Registry_Exception("Parent Role id '$roleParentId' does not exist");
+ }
+ $this->_roles[$roleId]['parents'][$roleParentId] = $roleParent;
+ $this->_roles[$roleParentId]['children'][$roleId] = $role;
+ }
+ return $this;
+ }
+}
32 app/code/core/Mage/Admin/Model/Acl/Role/User.php
@@ -0,0 +1,32 @@
+<?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 Mage
+ * @package Mage_Admin
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+
+/**
+ * User acl role
+ *
+ * @category Mage
+ * @package Mage_Admin