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
for ip in $(grep -ri Baidu /var/log/nginx/access.log | cut -f1 -d' ' | sort | uniq); do echo $ip && iptables -I INPUT -s $ip -j DROP; done | |
for ip in $(grep -ri 200please /var/log/nginx/access.log | cut -f1 -d' ' | sort | uniq); do echo $ip && iptables -I INPUT -s $ip -j DROP; done | |
for ip in $(grep -ri majestic12 /var/log/nginx/access.log | cut -f1 -d' ' | sort | uniq); do echo $ip && iptables -I INPUT -s $ip -j DROP; done | |
for ip in $(grep -ri opensiteexplorer /var/log/nginx/access.log | cut -f1 -d' ' | sort | uniq); do echo $ip && iptables -I INPUT -s $ip -j DROP; done | |
for ip in $(grep -ri seokicks /var/log/nginx/access.log | cut -f1 -d' ' | sort | uniq); do echo $ip && iptables -I INPUT -s $ip -j DROP; done |
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
<FilesMatch "^(xmlrpc\.php|wp-trackback\.php)"> | |
Order Deny,Allow | |
Deny from all | |
</FilesMatch> |
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
<?php | |
$installer = $this; | |
/* @var Loewenstark_Dummy_Model_Resource_Setup $installer */ | |
$installer->startSetup(); | |
$mail = ''; | |
$name = ''; | |
$company = ''; | |
$phone = ''; | |
$fax = ''; |
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
<?php | |
if(php_sapi_name() != 'cli') | |
{ | |
echo "only for cli!"; | |
exit; | |
} | |
require 'app/Mage.php'; | |
Mage::app('admin'); |
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
<?php | |
require 'app/Mage.php'; | |
Mage::app('admin'); | |
$resource = Mage::getSingleton('core/resource'); | |
/* @var $resource Mage_Core_Model_Resource */ | |
$conn = $resource->getConnection('core_write'); | |
/* @var $conn Varien_Db_Adapter_Interface */ |
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
<?php | |
/** | |
class required this modul: | |
https://github.com/integer-net/Autoshipping | |
*/ | |
class Custom_Module_Helper_Eu_Shipment | |
extends Mage_Core_Helper_Abstract | |
{ |
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
<?php | |
/* | |
* @copyright Copyright (c) 2013 by ESS-UA. | |
*/ | |
/** | |
* Configures the store settings to match account settings and order information | |
*/ | |
class Ess_M2ePro_Model_Magento_Quote_Store_Configurator |
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
<?php | |
if(php_sapi_name() != 'cli') | |
{ | |
echo "only for cli!"; | |
exit; | |
} | |
require 'app/Mage.php'; | |
Mage::app('admin'); |
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
<?php | |
class Custom_MyModule_Helper_Search | |
extends Mage_CatalogSearch_Helper_Data | |
{ | |
public function getSearchableDataFromCategory($productId, $storeId) | |
{ | |
$result = array(); | |
$default = Mage::app()->getStore($storeId)->getRootCategoryId(); | |
$adapter = Mage::getSingleton('core/resource')->getConnection('core_read'); |
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
<?php | |
class Observer | |
{ | |
/** | |
* mageEvent: <controller_action_predispatch_checkout_cart_add> | |
* | |
*/ | |
public function addDisableValidatFromKey(Varien_Event_Observer $observer) | |
{ | |
$controller = $observer->getControllerAction(); |
OlderNewer