as
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
/** Windows IIS Compatibility */ | |
if (!isset($_SERVER['DOCUMENT_ROOT'])) { | |
if (isset($_SERVER['SCRIPT_FILENAME'])) { | |
$_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen($_SERVER['PHP_SELF']))); | |
} | |
} | |
if (!isset($_SERVER['DOCUMENT_ROOT'])) { | |
if (isset($_SERVER['PATH_TRANSLATED'])) { | |
$_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF']))); |
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
<!DOCTYPE html> | |
<!--[if IE 6]> <html class="ie6 no-js" lang="en-US" prefix=""><![endif]--> | |
<!--[if lt IE 7]> <html class="ie ie6 lte9 lte8 lte7 no-js" lang="en-US" prefix=""><![endif]--> | |
<!--[if IE 7]> <html class="ie ie7 lte9 lte8 lte7 no-js" lang="en-US" prefix=""> <![endif]--> | |
<!--[if IE 8]> <html class="ie ie8 lte9 lte8 no-js" lang="en-US" prefix=""><![endif]--> | |
<!--[if IE 9]> <html class="ie ie9 lte9 no-js" lang="en-US" prefix=""><![endif]--> | |
<!--[if gt IE 9]> <html class="gtie9 ie9 no-js" lang="en-US" prefix=""><![endif]--> | |
<!--[if !IE]> <html class="not-ie no-js" lang="en-US" prefix=""><![endif]--> | |
<head itemscope itemtype="http://schema.org/WebSite"> | |
<meta charset="utf-8"> |
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
## create user | |
```sql | |
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; | |
``` | |
## grant privilages to user | |
```sql | |
GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost'; |
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
SET FOREIGN_KEY_CHECKS=0; | |
############################## | |
# SALES RELATED TABLES | |
############################## | |
TRUNCATE `sales_flat_creditmemo`; | |
TRUNCATE `sales_flat_creditmemo_comment`; | |
TRUNCATE `sales_flat_creditmemo_grid`; | |
TRUNCATE `sales_flat_creditmemo_item`; | |
TRUNCATE `sales_flat_invoice`; |
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
# This file contains defaults for application properties | |
# | |
# The keys must match up with the keys found in APKeys.java | |
# | |
# NB - the values in this file are not automatically | |
# handed to the application. The special call | |
# ApplicationProperties().getDefaultBackedString() | |
# will return the values in this file if they are not found | |
# in the database |
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/bash | |
# Remove Sessions older than specified time. | |
DIR=/var/www/magento/var/session/ | |
RANGE=30 | |
/usr/bin/find $DIR -depth -mtime +$RANGE -exec rm -rf '{}' \; |
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
# Temp/ignore file types. | |
*.diff | |
*.err | |
*.orig | |
*.log | |
*.rej | |
*.swo | |
*.swp | |
*.vi | |
*~ |
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 | |
/** | |
* Observer to core_block_abstract_to_html_before | |
* | |
* Specifies required cache information like key (block id) | |
* and tag (Mage_Cms_Model_Block::CACHE_TAG). | |
*/ | |
public function cmsBlockCache($observer) | |
{ | |
if ($block instanceof Mage_Cms_Block_Widget_Block || $block instanceof Mage_Cms_Block_Block) |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--><!-- Le fav and touch icons --> |
OlderNewer