Open up your XDebug file (possibly /etc/php.d/15-xdebug.ini
) and configure XDebug:
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.file_link_format="phpstorm://open?file=%f&line=%l"
Restart your webserver to activate XDebug.
<?php | |
/* | |
* Basic script to decrypt files encoded with eval(gzinflate(base64_decode($data))); | |
*/ | |
$file = 'encrypted.php'; | |
$content = file_get_contents($file); | |
function evaldecode($content, $step = 0) { | |
//echo "STEP $step\n"; |
# Metadata | |
/.buildpath | |
/.cache | |
/.metadata | |
/.project | |
/.settings | |
atlassian* | |
/nbproject | |
/sitemap | |
/.idea |
<?php | |
// Base-name | |
$name = 'foobar'; | |
// Init Magento | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
// Create the root catalog |
<layout> | |
<catalog_category_layered> | |
<reference name="head"> | |
<action method="setRobots"><meta>NOINDEX,FOLLOW</meta></action> | |
</reference> | |
</catalog_category_layered> | |
<catalog_category_layered_nochildren> | |
<reference name="head"> | |
<action method="setRobots"><meta>NOINDEX,FOLLOW</meta></action> |
<?php | |
// User settings | |
define('userDataName', 'EXAMPLE'); | |
define('userDataUsername', 'example'); | |
define('userDataEmail', 'info@example.com'); | |
define('userDataPassword', 'YOURPASSWORD'); | |
// Detect the Joomla! directory | |
define('DOCUMENT_ROOT', dirname(__FILE__).'/'); |
<?php | |
$database_host = 'localhost'; // Database hostname | |
$database_user = 'root'; // Database username | |
$database_password = ''; // Database password | |
$database_name = 'myjoomla'; // Database name | |
$new_table_prefix = 'zkl_'; // New table prefix | |
$old_table_prefix = 'jos_'; // Old table prefix (optional) | |
$test = false; // Test-run (true or false) | |
// NO NEED TO EDIT BELOW THIS LINE |
<?php | |
// Basic settings | |
$storeCodes = array('bork'); | |
$attributes = array('name', 'description'); | |
$categoryIds = array(); | |
// Initialize Magento | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); |
<?php | |
function getSkuById($productId) | |
{ | |
$productResourceModel = Mage::getResourceModel('catalog/product'); | |
$adapter = Mage::getSingleton('core/resource')->getConnection('core_read'); | |
$select = $adapter->select() | |
->from($productResourceModel->getEntityTable(), 'sku') | |
->where('entity_id = :entity_id'); | |
$bind = array(':entity_id' => (string)$productId); | |
$productSku = $adapter->fetchOne($select, $bind); |