Skip to content

Instantly share code, notes, and snippets.

View raybogman's full-sized avatar

Ray Bogman raybogman

  • Magento
  • Amsterdam
View GitHub Profile
Date: Fri, 5 Jul 2013 22:41:03 -0500
Subject: [PATCH] Magento_CE_1.7.0.2_v1-CSRF_Patch
---
.../core/Mage/Catalog/Block/Product/Abstract.php | 85 ++++-
app/code/core/Mage/Catalog/Block/Product/View.php | 10 +-
.../core/Mage/Catalog/Helper/Product/Compare.php | 28 +-
app/code/core/Mage/Checkout/Helper/Cart.php | 26 +-
.../Mage/Checkout/controllers/CartController.php | 69 ++--
.../Checkout/controllers/OnepageController.php | 70 +++-
<?xml version="1.0" ?>
<config>
<modules>
<Find_Feed>
<active>false</active>
</Find_Feed>
<Phoenix_Moneybookers>
<active>false</active>
</Phoenix_Moneybookers>
<Mage_XmlConnect>
// Functions to help figure out whether elements are in the viewport
// and lazy-load their content if so.
// Implemented as jQuery plugins.
(function() {
$.fn.inView = function(nearThreshold) {
var $elem = $(this);
// Checks if its visible, CSS-wise
if (!$elem.is(":visible")) {
return false;
@raybogman
raybogman / SupportDesk_FixAcl.php
Last active July 6, 2018 19:00
SupportDesk_FixAcl
<?php
/**
* SupportDesk_FixAcl.php v1.1
* SupportDesk (www.supportdesk.nu)
* 10/7/2015
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* It is available through the world-wide-web at this URL:
@raybogman
raybogman / PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
Created August 5, 2015 09:04
PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
This file has been truncated, but you can view the full file.
diff -ruN app/code/core/Mage/Api/Model/Server/Adapter/Soap.php app/code/core/Mage/Api/Model/Server/Adapter/Soap.php
--- app/code/core/Mage/Api/Model/Server/Adapter/Soap.php 2015-06-26 10:53:38.000000000 +0200
+++ app/code/core/Mage/Api/Model/Server/Adapter/Soap.php 2015-08-03 12:35:02.000000000 +0200
@@ -233,9 +233,9 @@
: $urlModel->getUrl('*/*/*');
if ( $withAuth ) {
- $phpAuthUser = $this->getController()->getRequest()->getServer('PHP_AUTH_USER', false);
- $phpAuthPw = $this->getController()->getRequest()->getServer('PHP_AUTH_PW', false);
- $scheme = $this->getController()->getRequest()->getScheme();
@raybogman
raybogman / PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
Last active August 29, 2015 14:26
PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
#!/bin/bash
# Patch apllying tool template
#
# THIS PATCH IS A TEMP FIX FOR THE SUPEE-6482 RELEASE [CURRENT PATCH WAS NOT UP TO DATE, MISSING DATA]
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@raybogman
raybogman / memcached.php
Created December 11, 2015 20:19
Memcached viewer for PHP
<?php
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
Verifying that +raybogman is my blockchain ID. https://onename.com/raybogman
@raybogman
raybogman / local.xml
Created September 1, 2016 14:01 — forked from jedgalbraith/local.xml
Magento disable logs and reports
<frontend>
<events>
<!-- logs -->
<controller_action_predispatch>
<observers><log><type>disabled</type></log></observers>
</controller_action_predispatch>
<controller_action_postdispatch>
<observers><log><type>disabled</type></log></observers>
</controller_action_postdispatch>
<customer_login>
@raybogman
raybogman / random-giphy-bg.html
Created January 16, 2017 19:11 — forked from dmerand/random-giphy-bg.html
HTML Template for Random Animated Gif Background Using Giphy
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
$(function() {
var xhr = $.get("http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC");
xhr.done(function(data) {
$('.gif-bg').css('background-image', 'url(' + data.data.image_url + ')');
});