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 | |
//Identify the page type | |
$pageIdentifier = Mage::app()->getFrontController()->getAction()->getFullActionName(); | |
echo $pageIdentifier; | |
?> | |
<!-- Do something if on the specific page you need --> | |
<?php if(Mage::getBlockSingleton('page/html_header')->getIsHomePage()): ?> | |
home page | |
<?php elseif(Mage::app()->getRequest()->getRouteName()=='cms'): ?> |
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
-- Import dump Windows | |
C:\path\to\mysql.exe -u {username} -p {databasename} < file_name.sql |
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
npm i -g npm-check-updates | |
ncu | |
ncu -u # to upgrade package.json | |
npm install |
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; | |
-- Customers | |
TRUNCATE `customer_entity`; | |
TRUNCATE `customer_entity_datetime`; | |
TRUNCATE `customer_entity_decimal`; | |
TRUNCATE `customer_entity_int`; | |
TRUNCATE `customer_entity_text`; | |
TRUNCATE `customer_entity_varchar`; |
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
{ | |
"directory": "assets/_src/bower_components/", | |
"scripts": { | |
"postinstall": "./bower-postinstall.bat" | |
} | |
} |
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 | |
##Test What Exact Version PHP & MySQL | |
echo "<h2>Exact Version PHP & MySQL: </h2>"; | |
printf("PHP version: %s\n", PHP_VERSION); | |
$mysql = mysqli_connect('localhost', 'root', ''); | |
## Test the MySQL connection | |
if (mysqli_connect_errno()) { | |
printf("</br> Connection failed: %s\n", mysqli_connect_error()); | |
exit(); | |
} |
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
Para a inscrição: | |
1. {{var customer}} irá imprimir todas as informações do cliente | |
2. {{var customer.ID}} | |
3. {{var customer.email}} | |
4. {{var customer.firstname}} | |
5. {{var customer.lastname}} | |
6. {{var customer.name}} | |
7. {{var customer.password}} | |
8. {{var customer.created_in}} |
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 | |
## Function to set file permissions to 0644 and folder permissions to 0755 | |
function AllDirChmod( $dir = "./", $dirModes = 0755, $fileModes = 0644 ){ | |
$d = new RecursiveDirectoryIterator( $dir ); | |
foreach( new RecursiveIteratorIterator( $d, 1 ) as $path ){ | |
if( $path->isDir() ) chmod( $path, $dirModes ); | |
else if( is_file( $path ) ) chmod( $path, $fileModes ); | |
} |
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 | |
// cleanup.php?clean=var | |
// cleanup.php?clean=log | |
$xml = simplexml_load_file('./app/etc/local.xml', NULL, LIBXML_NOCDATA); | |
$db['host'] = $xml->global->resources->default_setup->connection->host; | |
$db['name'] = $xml->global->resources->default_setup->connection->dbname; | |
$db['user'] = $xml->global->resources->default_setup->connection->username; |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"path": "app/design/frontend/default/dhcpv5", | |
"name": "app/design/frontend/default/dhcpv5" | |
}, | |
{ | |
"path": "skin/frontend/default/dhcpv5", | |
"name": "skin/frontend/default/dhcpv5" |
NewerOlder