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 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); |
| # Metadata | |
| /.buildpath | |
| /.cache | |
| /.metadata | |
| /.project | |
| /.settings | |
| atlassian* | |
| /nbproject | |
| /sitemap | |
| /.idea |
| <?php | |
| // Basic settings | |
| $storeCodes = array('french'); | |
| $attributes = array('name', 'description'); | |
| $categoryIds = array(4); | |
| // 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); |
| <?php | |
| defined('_JEXEC') or die(); | |
| class PlgSystemCustom extends JPlugin | |
| { | |
| /** | |
| * Plugin event dealing with raw VirtueMart data | |
| */ | |
| public function onVm2MageItemConvertBefore($item, $type) | |
| { |
| # Example robots.txt for MageBridge. | |
| # Jooomla! is assumed to be in the root / | |
| # Magento is assumed to be installed in /magento/ | |
| # MageBridge Root Menu-Item is assumed to have an URL /shop/ | |
| User-agent: * | |
| Disallow: /administrator/ | |
| Disallow: /bin/ | |
| Disallow: /cache/ | |
| Disallow: /cli/ |
| <?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"; |