Bricks_Search - Version 0.0.1.1

Version Notes

Bricks_Search

Download this release

Release Info

Developer adam
Extension Bricks_Search
Version 0.0.1.1
Comparing to
See all releases


Code changes from version 0.0.1 to 0.0.1.1

app/code/community/Bricks/Search/controllers/Adminhtml/SearchController.php CHANGED
@@ -47,7 +47,9 @@ class Bricks_Search_Adminhtml_SearchController extends Mage_Adminhtml_Controller
47
  try {
48
  $uploader = new Varien_File_Uploader('csvupload');
49
  $uploader->setAllowedExtensions(array('csv'));
50
- if ( $uploader->checkMimeType( array('text/csv') ) ) {
 
 
51
  $file = $_FILES['csvupload'];
52
  $csv = new Varien_File_Csv();
53
  foreach ( $csv->getData($file['tmp_name']) as $data ) {
47
  try {
48
  $uploader = new Varien_File_Uploader('csvupload');
49
  $uploader->setAllowedExtensions(array('csv'));
50
+ $finfo = finfo_open(FILEINFO_MIME_TYPE);
51
+ $mime = finfo_file($finfo, $_FILES['csvupload']['tmp_name']);
52
+ if ( $uploader->checkMimeType( array('text/csv','text/plain') ) || ($mime=='text/plain' || $mime=='text/csv')) {
53
  $file = $_FILES['csvupload'];
54
  $csv = new Varien_File_Csv();
55
  foreach ( $csv->getData($file['tmp_name']) as $data ) {
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bricks_Search</name>
4
- <version>0.0.1</version>
5
  <stability>stable</stability>
6
- <license>n/a</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>n/a</summary>
10
- <description>n/a</description>
11
- <notes>n/a</notes>
12
- <authors><author><name>Adam Hodson</name><user>admin</user><email>adam.hodson@gmail.com</email></author></authors>
13
- <date>2014-11-12</date>
14
- <time>05:31:46</time>
15
- <contents><target name="magecommunity"><dir name="Bricks"><dir name="Search"><dir name="Block"><dir name="Adminhtml"><dir name="Edit"><file name="Form.php" hash="3cafc623b3680ec74cae7c332d135cd3"/></dir><file name="Edit.php" hash="46f1e8666954c225bed6db14d3bf5f77"/><file name="Grid.php" hash="9bff6f7ed4c02a38ac7218013f758959"/><dir name="New"><file name="Form.php" hash="c428c57a56e5843e39c3193c440b9bfe"/></dir><file name="New.php" hash="a280283f5d30bdd892198b787ef1910c"/><file name="Search.php" hash="351e21edaf2089c0e1fe1bf966abc230"/></dir><file name="Widget.php" hash="d15835ad81b5899d0ac0cc81b2093f14"/></dir><dir name="Helper"><file name="Data.php" hash="55203a434276926c3079a29fb28549c9"/></dir><dir name="Model"><dir name="Resource"><dir name="Search"><file name="Collection.php" hash="783abf1f5f119b70b3722cca5acbb1af"/></dir><file name="Search.php" hash="5fcbff8cefd37cff718cb98f93a0770f"/><file name="Setup.php" hash="bb71579051a453c0866c96f7e161fad4"/></dir><file name="Search.php" hash="d3ff7d52e4cbd7fccf3b79542e7f560b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SearchController.php" hash="23eaa6454cdfe629bd8504246596abe9"/></dir><file name="AjaxController.php" hash="8e03d67a16532fc38fe07923dfbe990e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="295752c9211537bf48878ac94e305cff"/><file name="config.xml" hash="1662f9fc5312f7ff7e5c060e0fb78039"/><file name="widget.xml" hash="1d3a9255675069427f3661b8ab1ffba4"/></dir><dir name="sql"><dir name="bricks_search_setup"><file name="install-0.0.1.php" hash="3b310913d8d2afbd3963817f226caf03"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bricks_Search.xml" hash="82a392586e6012ac6d1d7e20038f5995"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="bricks"><file name="search.xml" hash="a8b51be9a134565517b547e32511a482"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bricks"><dir name="search"><file name="widget.phtml" hash="af2edd87cc4d5fe207bb05458044373f"/></dir></dir></dir><dir name="layout"><dir name="bricks"><file name="search.xml" hash="5606543a663a918fed2692e5b31dc653"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="bricks"><file name="jquery-ui.min.css" hash="1f1f006b55c15b1c6389b460f172552c"/><file name="jquery-ui.theme.min.css" hash="2af6e6496bf5ef53d84f99fe182250ce"/></dir></dir><dir name="js"><dir name="bricks"><file name="jquery-ui.min.js" hash="0eba99cb9225ba53daab7d4658635b82"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bricks_Search</name>
4
+ <version>0.0.1.1</version>
5
  <stability>stable</stability>
6
+ <license>OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Bricks_Search</summary>
10
+ <description>Bricks_Search</description>
11
+ <notes>Bricks_Search</notes>
12
+ <authors><author><name>adam</name><user>adam</user><email>adam@bricksandmortarsweb.com</email></author></authors>
13
+ <date>2016-02-03</date>
14
+ <time>14:56:46</time>
15
+ <contents><target name="magecommunity"><dir name="Bricks"><dir name="Search"><dir name="Block"><dir name="Adminhtml"><dir name="Edit"><file name="Form.php" hash="3cafc623b3680ec74cae7c332d135cd3"/></dir><file name="Edit.php" hash="46f1e8666954c225bed6db14d3bf5f77"/><file name="Grid.php" hash="9bff6f7ed4c02a38ac7218013f758959"/><dir name="New"><file name="Form.php" hash="c428c57a56e5843e39c3193c440b9bfe"/></dir><file name="New.php" hash="a280283f5d30bdd892198b787ef1910c"/><file name="Search.php" hash="351e21edaf2089c0e1fe1bf966abc230"/></dir><file name="Widget.php" hash="d15835ad81b5899d0ac0cc81b2093f14"/></dir><dir name="Helper"><file name="Data.php" hash="55203a434276926c3079a29fb28549c9"/></dir><dir name="Model"><dir name="Resource"><dir name="Search"><file name="Collection.php" hash="783abf1f5f119b70b3722cca5acbb1af"/></dir><file name="Search.php" hash="5fcbff8cefd37cff718cb98f93a0770f"/><file name="Setup.php" hash="bb71579051a453c0866c96f7e161fad4"/></dir><file name="Search.php" hash="d3ff7d52e4cbd7fccf3b79542e7f560b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SearchController.php" hash="f4973a76f647a2b4a7c78f21f782f1fd"/></dir><file name="AjaxController.php" hash="8e03d67a16532fc38fe07923dfbe990e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="295752c9211537bf48878ac94e305cff"/><file name="config.xml" hash="1662f9fc5312f7ff7e5c060e0fb78039"/><file name="widget.xml" hash="1d3a9255675069427f3661b8ab1ffba4"/></dir><dir name="sql"><dir name="bricks_search_setup"><file name="install-0.0.1.php" hash="3b310913d8d2afbd3963817f226caf03"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bricks_Search.xml" hash="82a392586e6012ac6d1d7e20038f5995"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="bricks"><file name="search.xml" hash="a8b51be9a134565517b547e32511a482"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bricks"><dir name="search"><file name="widget.phtml" hash="af2edd87cc4d5fe207bb05458044373f"/></dir></dir></dir><dir name="layout"><dir name="bricks"><file name="search.xml" hash="5606543a663a918fed2692e5b31dc653"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="bricks"><dir name="images"><file name="ui-anim_basic_16x16.gif" hash="03ce3dcc84af110e9da8699a841e5200"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="58d2cd501e01573cf537089c694ba899"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="79f41c0765e9ec18562b20b0801d748b"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery-ui.min.css" hash="1f1f006b55c15b1c6389b460f172552c"/><file name="jquery-ui.theme.min.css" hash="2af6e6496bf5ef53d84f99fe182250ce"/></dir></dir><dir name="js"><dir name="bricks"><file name="jquery-ui.min.js" hash="0eba99cb9225ba53daab7d4658635b82"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>2.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/frontend/base/default/css/bricks/images/ui-anim_basic_16x16.gif ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_diagonals-thick_18_b81900_40x40.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_diagonals-thick_20_666666_40x40.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_flat_10_000000_40x100.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_glass_100_f6f6f6_1x400.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_glass_100_fdf5ce_1x400.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_glass_65_ffffff_1x400.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_gloss-wave_35_f6a828_500x100.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_highlight-soft_100_eeeeee_1x100.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-bg_highlight-soft_75_ffe45c_1x100.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-icons_222222_256x240.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-icons_228ef1_256x240.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-icons_ef8c08_256x240.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-icons_ffd27a_256x240.png ADDED
Binary file
skin/frontend/base/default/css/bricks/images/ui-icons_ffffff_256x240.png ADDED
Binary file